![]() |
libbladeRF
2.5.0
Nuand bladeRF library
|
This group provides routines for applying manual offset, gain, and phase corrections.
These functions are thread-safe.
Typedefs | |
typedef int16_t | bladerf_correction_value |
Enumerations | |
enum | bladerf_correction { BLADERF_CORR_DCOFF_I , BLADERF_CORR_DCOFF_Q , BLADERF_CORR_PHASE , BLADERF_CORR_GAIN } |
Functions | |
API_EXPORT int CALL_CONV | bladerf_set_correction (struct bladerf *dev, bladerf_channel ch, bladerf_correction corr, bladerf_correction_value value) |
API_EXPORT int CALL_CONV | bladerf_get_correction (struct bladerf *dev, bladerf_channel ch, bladerf_correction corr, bladerf_correction_value *value) |
typedef int16_t bladerf_correction_value |
Correction value, in arbitrary units
Definition at line 1952 of file libbladeRF.h.
enum bladerf_correction |
Correction parameter selection
These values specify the correction parameter to modify or query when calling bladerf_set_correction() or bladerf_get_correction(). Note that the meaning of the value
parameter to these functions depends upon the correction parameter.
Definition at line 1963 of file libbladeRF.h.
API_EXPORT int CALL_CONV bladerf_get_correction | ( | struct bladerf * | dev, |
bladerf_channel | ch, | ||
bladerf_correction | corr, | ||
bladerf_correction_value * | value | ||
) |
Obtain the current value of the specified configuration parameter
dev | Device handle | |
[in] | ch | Channel |
[in] | corr | Correction type |
[out] | value | Current value |
API_EXPORT int CALL_CONV bladerf_set_correction | ( | struct bladerf * | dev, |
bladerf_channel | ch, | ||
bladerf_correction | corr, | ||
bladerf_correction_value | value | ||
) |
Set the value of the specified configuration parameter
value
parameter.dev | Device handle | |
[in] | ch | Channel |
[in] | corr | Correction type |
[in] | value | Value to apply |