Go to the source code of this file.
◆ IUTGC_INVALID
| #define IUTGC_INVALID (iutgc_t) NULL |
◆ iutgc_t
Time Gain Control defines a function of the receiver gain over time. The function is described by numTGCValues of [time,gain] pairs. The time values should be provided and kept in a strictly ascending order.
◆ iufTGCCompare()
Checks if two TGCs are equal.
- Returns
- Returns IUF_TRUE if the TGCs are equal and IUF_FALSE otherwise
- Parameters
-
| reference | The TGC object to compare to |
| actual | The TGC object to compare with |
◆ iufTGCCreate()
| iutgc_t iufTGCCreate |
( |
int |
numTGCValues | ) |
|
Create an empty TGC function of numTGC values.
- Returns
- Returns the created TGC object or NULL in case of a failure
- Parameters
-
| numTGCValues | The number of [time,gain] pairs to allocate |
◆ iufTGCDelete()
Frees the memory of the TGC object.
- Returns
- Returns the created TGC object or NULL in case of a failure
- Parameters
-
◆ iufTGCGetGain()
| float iufTGCGetGain |
( |
iutgc_t |
tgc, |
|
|
int |
index |
|
) |
| |
Get the gain value of a point in the TGC function at index.
- Returns
- The gain value
- Parameters
-
| tgc | The TGC object of interest |
| index | The index of the TGC function |
◆ iufTGCGetNumValues()
| int iufTGCGetNumValues |
( |
iutgc_t |
tgc | ) |
|
Get the number of [time,gain] pairs that the TGC function has.
- Returns
- Returns the number of
[time,gain] pairs
- Parameters
-
| tgc | The TGC object of interest |
◆ iufTGCGetTime()
| float iufTGCGetTime |
( |
iutgc_t |
tgc, |
|
|
int |
index |
|
) |
| |
Get the time value of a point in the TGC function at index.
- Returns
- The time value
- Parameters
-
| tgc | THe TGC object of interest |
| index | The index of the TGC function |
◆ iufTGCSet()
| int iufTGCSet |
( |
iutgc_t |
tgc, |
|
|
int |
index, |
|
|
float |
time, |
|
|
float |
gain |
|
) |
| |
Set a [time,gain] pair of the TGC function at index.
- Returns
- Returns IUF_E_OK in case of success or IUF_ERR_VALUE in case of an error
- Parameters
-
| tgc | The TGC function of interest |
| index | The index of the TGC function to replace the time, gain pair |
| time | The time value to set |
| gain | The gain value to set |