libbladeRF
2.5.0
Nuand bladeRF library
|
These functions provide the ability to manipulate the VCTCXO Trim DAC.
These functions are thread-safe.
Functions | |
API_EXPORT int CALL_CONV | bladerf_get_vctcxo_trim (struct bladerf *dev, uint16_t *trim) |
API_EXPORT int CALL_CONV | bladerf_trim_dac_write (struct bladerf *dev, uint16_t val) |
API_EXPORT int CALL_CONV | bladerf_trim_dac_read (struct bladerf *dev, uint16_t *val) |
API_EXPORT int CALL_CONV bladerf_get_vctcxo_trim | ( | struct bladerf * | dev, |
uint16_t * | trim | ||
) |
Query a device's VCTCXO calibration trim
dev | Device handle | |
[out] | trim | VCTCXO calibration trim |
API_EXPORT int CALL_CONV bladerf_trim_dac_read | ( | struct bladerf * | dev, |
uint16_t * | val | ||
) |
Read value from VCTCXO trim DAC.
This is similar to bladerf_get_vctcxo_trim(), except that it returns the current trim DAC value, as opposed to the calibration value read from flash.
Use this if you are trying to query the value after having previously made calls to bladerf_trim_dac_write().
dev | Device handle | |
[out] | val | Current VCTCXO trim DAC value |
API_EXPORT int CALL_CONV bladerf_trim_dac_write | ( | struct bladerf * | dev, |
uint16_t | val | ||
) |
Write value to VCTCXO trim DAC.
dev | Device handle | |
[in] | val | Desired VCTCXO trim DAC value |