![]() |
libbladeRF 2.6.0
Nuand bladeRF library
|
Functions | |
| API_EXPORT int CALL_CONV | bladerf_get_pll_lock_state (struct bladerf *dev, bool *locked) |
| API_EXPORT int CALL_CONV | bladerf_get_pll_enable (struct bladerf *dev, bool *enabled) |
| API_EXPORT int CALL_CONV | bladerf_set_pll_enable (struct bladerf *dev, bool enable) |
| API_EXPORT int CALL_CONV | bladerf_get_pll_refclk_range (struct bladerf *dev, const struct bladerf_range **range) |
| API_EXPORT int CALL_CONV | bladerf_get_pll_refclk (struct bladerf *dev, uint64_t *frequency) |
| API_EXPORT int CALL_CONV | bladerf_set_pll_refclk (struct bladerf *dev, uint64_t frequency) |
| API_EXPORT int CALL_CONV | bladerf_get_pll_register (struct bladerf *dev, uint8_t address, uint32_t *val) |
| API_EXPORT int CALL_CONV | bladerf_set_pll_register (struct bladerf *dev, uint8_t address, uint32_t val) |
| API_EXPORT int CALL_CONV bladerf_get_pll_enable | ( | struct bladerf * | dev, |
| bool * | enabled ) |
Fetch the state of the Phase Detector/Frequency Synthesizer
| dev | Device handle | |
| [out] | enabled | True if enabled, False otherwise |
| API_EXPORT int CALL_CONV bladerf_get_pll_lock_state | ( | struct bladerf * | dev, |
| bool * | locked ) |
Fetch the lock state of the Phase Detector/Frequency Synthesizer
| dev | Device handle | |
| [out] | locked | True if locked, False otherwise |
| API_EXPORT int CALL_CONV bladerf_get_pll_refclk | ( | struct bladerf * | dev, |
| uint64_t * | frequency ) |
Get the currently-configured frequency for the reference clock input.
| dev | Device handle | |
| [out] | frequency | Reference clock frequency |
| API_EXPORT int CALL_CONV bladerf_get_pll_refclk_range | ( | struct bladerf * | dev, |
| const struct bladerf_range ** | range ) |
Get the valid range of frequencies for the reference clock input
| dev | Device handle | |
| [out] | range | Reference clock frequency range |
| API_EXPORT int CALL_CONV bladerf_get_pll_register | ( | struct bladerf * | dev, |
| uint8_t | address, | ||
| uint32_t * | val ) |
Read value from Phase Detector/Frequency Synthesizer
The address is interpreted as the control bits (DB1 and DB0) used to write to a specific latch.
| dev | Device handle | |
| [in] | address | Latch address |
| [out] | val | Value to read from |
| API_EXPORT int CALL_CONV bladerf_set_pll_enable | ( | struct bladerf * | dev, |
| bool | enable ) |
Enable the Phase Detector/Frequency Synthesizer
Enabling this disables the VCTCXO trimmer DAC, and vice versa.
| dev | Device handle | |
| [in] | enable | True to enable, False otherwise |
| API_EXPORT int CALL_CONV bladerf_set_pll_refclk | ( | struct bladerf * | dev, |
| uint64_t | frequency ) |
Set the expected frequency for the reference clock input.
| dev | Device handle | |
| [in] | frequency | Reference clock frequency |
| API_EXPORT int CALL_CONV bladerf_set_pll_register | ( | struct bladerf * | dev, |
| uint8_t | address, | ||
| uint32_t | val ) |
Write value to Phase Detector/Frequency Synthesizer
The address is interpreted as the control bits (DB1 and DB0) used to write to a specific latch. These bits are masked out in val
| dev | Device handle | |
| [in] | address | Latch address |
| [in] | val | Value to write to |