These functions provide the ability to query various pieces of information from an attached device.
These functions are thread-safe.
This enum describes the USB Speed at which the bladeRF is connected. Speeds not listed here are not supported.
Definition at line 370 of file libbladeRF.h.
FPGA device variant (size)
Enumerator |
---|
BLADERF_FPGA_UNKNOWN |
Unable to determine FPGA variant
|
BLADERF_FPGA_40KLE |
40 kLE FPGA
|
BLADERF_FPGA_115KLE |
115 kLE FPGA
|
Definition at line 360 of file libbladeRF.h.
Obtain the bus speed at which the device is operating
- Parameters
-
- Returns
- speed Device speed
Query FPGA version
- Parameters
-
[in] | dev | Device handle |
[out] | version | Updated to contain firmware version |
- Returns
- 0 on success, value from Error codes list on failure
Query firmware version
- Parameters
-
[in] | dev | Device handle |
[out] | version | Updated to contain firmware version |
- Returns
- 0 on success, value from Error codes list upon failing to retrieve this information from the device.
Query a device's FPGA size
- Parameters
-
[in] | dev | Device handle |
[out] | size | Will be updated with the on-board FPGA's size. If an error occurs, no data will be written to this pointer. |
- Returns
- 0 on success, value from Error codes list on failure
Query a device's serial number
- Parameters
-
[in] | dev | Device handle |
[out] | serial | This user-supplied buffer, which must be at least BLADERF_SERIAL_LENGTH bytes, will be updated to contain a NUL-terminated serial number string. If an error occurs (as indicated by a non-zero return value), no data will be written to this pointer. |
- Returns
- 0 on success, value from Error codes list on failure
Query a device's VCTCXO calibration trim
- Parameters
-
[in] | dev | Device handle |
[out] | trim | Will be updated with the factory DAC trim value. If an error occurs, no data will be written to this pointer. |
- Returns
- 0 on success, value from Error codes list on failure
Check FPGA configuration status
- Parameters
-
- Returns
- 1 if FPGA is configured, 0 if it is not, and value from Error codes list on failure