![]() |
libbladeRF 2.6.0
Nuand bladeRF library
|
These functions are thread-safe.
Data Structures | |
| struct | bladerf_quick_tune |
Macros | |
| #define | BLADERF_RETUNE_NOW (bladerf_timestamp)0 |
Functions | |
| API_EXPORT int CALL_CONV | bladerf_schedule_retune (struct bladerf *dev, bladerf_channel ch, bladerf_timestamp timestamp, bladerf_frequency frequency, struct bladerf_quick_tune *quick_tune) |
| API_EXPORT int CALL_CONV | bladerf_cancel_scheduled_retunes (struct bladerf *dev, bladerf_channel ch) |
| API_EXPORT int CALL_CONV | bladerf_get_quick_tune (struct bladerf *dev, bladerf_channel ch, struct bladerf_quick_tune *quick_tune) |
| API_EXPORT int | bladerf_print_quick_tune (struct bladerf *dev, const struct bladerf_quick_tune *qt) |
| Prints the quick retune parameters for a bladeRF device. | |
| #define BLADERF_RETUNE_NOW (bladerf_timestamp)0 |
Specifies that scheduled retune should occur immediately when using bladerf_schedule_retune().
Definition at line 1824 of file libbladeRF.h.
| API_EXPORT int CALL_CONV bladerf_cancel_scheduled_retunes | ( | struct bladerf * | dev, |
| bladerf_channel | ch ) |
Cancel all pending scheduled retune operations for the specified channel.
This will be done automatically during bladerf_close() to ensure that previously queued retunes do not continue to occur after closing and then later re-opening a device.
| dev | Device handle | |
| [in] | ch | Channel |
| API_EXPORT int CALL_CONV bladerf_get_quick_tune | ( | struct bladerf * | dev, |
| bladerf_channel | ch, | ||
| struct bladerf_quick_tune * | quick_tune ) |
Fetch parameters used to tune the transceiver to the current frequency for use with bladerf_schedule_retune() to perform a "quick retune."
This allows for a faster retune, with a potential trade off of increased phase noise.
| dev | Device handle | |
| [in] | ch | Channel |
| [out] | quick_tune | Quick retune parameters |
| API_EXPORT int bladerf_print_quick_tune | ( | struct bladerf * | dev, |
| const struct bladerf_quick_tune * | qt ) |
Prints the quick retune parameters for a bladeRF device.
Outputs the current quick retune parameters of a bladeRF device to standard output. It is useful for debugging and verifying the configuration of quick tune settings.
| [in] | dev | Device handle. Must not be NULL. |
| [in] | qt | Pointer to the bladerf_quick_tune structure containing the quick retune parameters. Must not be NULL. |
| API_EXPORT int CALL_CONV bladerf_schedule_retune | ( | struct bladerf * | dev, |
| bladerf_channel | ch, | ||
| bladerf_timestamp | timestamp, | ||
| bladerf_frequency | frequency, | ||
| struct bladerf_quick_tune * | quick_tune ) |
Schedule a frequency retune to occur at specified sample timestamp value.
| dev | Device handle | |
| [in] | ch | Channel |
| [in] | timestamp | Channel's sample timestamp to perform the retune operation. If this value is in the past, the retune will occur immediately. To perform the retune immediately, specify BLADERF_RETUNE_NOW. |
| [in] | frequency | Desired frequency, in Hz. |
| [in] | quick_tune | If non-NULL, the provided "quick retune" values will be applied to the transceiver to tune it according to a previous state retrieved via bladerf_get_quick_tune(). |