![]() |
libbladeRF
1.7.2
Nuand bladeRF library
|
This section contains various helper/utility functions that do not fall into one of the other API categories.
These functions are thread-safe.
Macros | |
#define | LIBBLADERF_API_VERSION (0x01070200) |
Functions | |
API_EXPORT const char *CALL_CONV | bladerf_backend_str (bladerf_backend backend) |
API_EXPORT void CALL_CONV | bladerf_version (struct bladerf_version *version) |
API_EXPORT void CALL_CONV | bladerf_log_set_verbosity (bladerf_log_level level) |
API_EXPORT int CALL_CONV | bladerf_get_fw_log (struct bladerf *dev, const char *filename) |
#define LIBBLADERF_API_VERSION (0x01070200) |
libbladeRF API version
As of libbladeRF v1.5.0, this macro is defined to assist with feature detection. Generally, this will be used as follows:
This value is defined as follows: (major << 24) | (minor << 16) | (patch << 8) | (reserved << 0)
The reserved field may be used at a later date to denote additions between releases. It will be set to zero when not used.
This value is intended to track the values returned by bladerf_version(). Fields are updated per the scheme defined here:
https://github.com/Nuand/bladeRF/blob/master/doc/development/versioning.md
Definition at line 53 of file libbladeRF.h.
enum bladerf_log_level |
Severity levels for logging functions
Definition at line 2663 of file libbladeRF.h.
API_EXPORT const char* CALL_CONV bladerf_backend_str | ( | bladerf_backend | backend | ) |
Retrieve the backend string associated with the specified backend enumeration value.
backend
portion of a device identifier string. (See bladerf_open().) API_EXPORT int CALL_CONV bladerf_get_fw_log | ( | struct bladerf * | dev, |
const char * | filename | ||
) |
Read firmware log data and write it to the specified file
dev | Device to read firmware log from |
filename | Filename to write log information to. If set to NULL, log data will be printed to stdout. |
API_EXPORT void CALL_CONV bladerf_log_set_verbosity | ( | bladerf_log_level | level | ) |
Sets the filter level for displayed log messages. Messages that are at or above the specified log level will be printed, while messages with a lower log level will be suppressed.
level | The new log level filter value |
API_EXPORT void CALL_CONV bladerf_version | ( | struct bladerf_version * | version | ) |
Get libbladeRF version information
[out] | version | libbladeRF version information |