Loading...
Searching...
No Matches
libbladeRF.h
Go to the documentation of this file.
#ifndef LIBBLADERF_H_
#define LIBBLADERF_H_
#include <inttypes.h>
#include <stdint.h>
#include <stdlib.h>
#define LIBBLADERF_API_VERSION (0x02050000)
#ifdef __cplusplus
extern "C" {
#else
#include <stdbool.h>
#endif
// clang-format off
#if defined _WIN32 || defined __CYGWIN__
# include <windows.h>
# define CALL_CONV __cdecl
# ifdef __GNUC__
# define API_EXPORT __attribute__ ((dllexport))
# else
# define API_EXPORT __declspec(dllexport)
# endif
#elif defined _DOXYGEN_ONLY_ || defined MATLAB_LINUX_THUNK_BUILD_
# define API_EXPORT
# define CALL_CONV
#else
# define API_EXPORT __attribute__ ((visibility ("default")))
# define CALL_CONV
#endif
// clang-format on
struct bladerf;
typedef enum {
BLADERF_BACKEND_ANY,
BLADERF_BACKEND_LINUX,
BLADERF_BACKEND_LIBUSB,
BLADERF_BACKEND_CYPRESS,
BLADERF_BACKEND_DUMMY = 100,
} bladerf_backend;
#define BLADERF_DESCRIPTION_LENGTH 33
#define BLADERF_SERIAL_LENGTH 33
struct bladerf_devinfo {
bladerf_backend backend;
char serial[BLADERF_SERIAL_LENGTH];
uint8_t usb_bus;
uint8_t usb_addr;
unsigned int instance;
char manufacturer[BLADERF_DESCRIPTION_LENGTH];
char product[BLADERF_DESCRIPTION_LENGTH];
};
struct bladerf_backendinfo {
int handle_count;
void *handle;
int lock_count;
void *lock;
};
API_EXPORT
int CALL_CONV bladerf_open(struct bladerf **device,
const char *device_identifier);
API_EXPORT
void CALL_CONV bladerf_close(struct bladerf *device);
API_EXPORT
int CALL_CONV bladerf_open_with_devinfo(struct bladerf **device,
struct bladerf_devinfo *devinfo);
API_EXPORT
int CALL_CONV bladerf_get_device_list(struct bladerf_devinfo **devices);
API_EXPORT
void CALL_CONV bladerf_free_device_list(struct bladerf_devinfo *devices);
API_EXPORT
void CALL_CONV bladerf_init_devinfo(struct bladerf_devinfo *info);
API_EXPORT
int CALL_CONV bladerf_get_devinfo(struct bladerf *dev,
struct bladerf_devinfo *info);
API_EXPORT
int CALL_CONV bladerf_get_backendinfo(struct bladerf *dev,
struct bladerf_backendinfo *info);
API_EXPORT
int CALL_CONV bladerf_get_devinfo_from_str(const char *devstr,
struct bladerf_devinfo *info);
API_EXPORT
bool CALL_CONV bladerf_devinfo_matches(const struct bladerf_devinfo *a,
const struct bladerf_devinfo *b);
API_EXPORT
bool CALL_CONV bladerf_devstr_matches(const char *dev_str,
struct bladerf_devinfo *info);
API_EXPORT
const char *CALL_CONV bladerf_backend_str(bladerf_backend backend);
API_EXPORT
void CALL_CONV bladerf_set_usb_reset_on_open(bool enabled);
struct bladerf_range {
int64_t min;
int64_t max;
int64_t step;
float scale;
};
struct bladerf_serial {
char serial[BLADERF_SERIAL_LENGTH];
};
struct bladerf_version {
uint16_t major;
uint16_t minor;
uint16_t patch;
const char *describe;
};
typedef enum {
BLADERF_FPGA_UNKNOWN = 0,
BLADERF_FPGA_40KLE = 40,
BLADERF_FPGA_115KLE = 115,
BLADERF_FPGA_A4 = 49,
BLADERF_FPGA_A5 = 77,
BLADERF_FPGA_A9 = 301
} bladerf_fpga_size;
typedef enum {
BLADERF_DEVICE_SPEED_UNKNOWN,
BLADERF_DEVICE_SPEED_HIGH,
BLADERF_DEVICE_SPEED_SUPER
} bladerf_dev_speed;
typedef enum {
BLADERF_FPGA_SOURCE_UNKNOWN = 0,
BLADERF_FPGA_SOURCE_FLASH = 1,
BLADERF_FPGA_SOURCE_HOST = 2
} bladerf_fpga_source;
API_EXPORT
int CALL_CONV bladerf_get_serial(struct bladerf *dev, char *serial);
API_EXPORT
int CALL_CONV bladerf_get_serial_struct(struct bladerf *dev,
struct bladerf_serial *serial);
API_EXPORT
int CALL_CONV bladerf_get_fpga_size(struct bladerf *dev,
bladerf_fpga_size *size);
API_EXPORT
int CALL_CONV bladerf_get_fpga_bytes(struct bladerf *dev, size_t *size);
API_EXPORT
int CALL_CONV bladerf_get_flash_size(struct bladerf *dev,
uint32_t *size,
bool *is_guess);
API_EXPORT
int CALL_CONV bladerf_fw_version(struct bladerf *dev,
struct bladerf_version *version);
API_EXPORT
int CALL_CONV bladerf_is_fpga_configured(struct bladerf *dev);
API_EXPORT
int CALL_CONV bladerf_fpga_version(struct bladerf *dev,
struct bladerf_version *version);
API_EXPORT
int CALL_CONV bladerf_get_fpga_source(struct bladerf *dev,
bladerf_fpga_source *source);
API_EXPORT
bladerf_dev_speed CALL_CONV bladerf_device_speed(struct bladerf *dev);
API_EXPORT
const char *CALL_CONV bladerf_get_board_name(struct bladerf *dev);
typedef int bladerf_channel;
#define BLADERF_CHANNEL_RX(ch) (bladerf_channel)(((ch) << 1) | 0x0)
#define BLADERF_CHANNEL_TX(ch) (bladerf_channel)(((ch) << 1) | 0x1)
#define BLADERF_CHANNEL_INVALID (bladerf_channel)(-1)
#define BLADERF_DIRECTION_MASK (0x1)
/* Backwards compatible mapping to `bladerf_module`. */
typedef bladerf_channel bladerf_module;
#define BLADERF_MODULE_INVALID BLADERF_CHANNEL_INVALID
#define BLADERF_MODULE_RX BLADERF_CHANNEL_RX(0)
#define BLADERF_MODULE_TX BLADERF_CHANNEL_TX(0)
#define BLADERF_CHANNEL_IS_TX(ch) (ch & BLADERF_TX)
typedef enum {
BLADERF_RX = 0,
BLADERF_TX = 1,
} bladerf_direction;
typedef enum {
BLADERF_RX_X1 = 0,
BLADERF_TX_X1 = 1,
BLADERF_RX_X2 = 2,
BLADERF_TX_X2 = 3,
} bladerf_channel_layout;
API_EXPORT
size_t CALL_CONV bladerf_get_channel_count(struct bladerf *dev,
bladerf_direction dir);
typedef int bladerf_gain;
typedef enum {
BLADERF_GAIN_DEFAULT,
BLADERF_GAIN_MGC,
BLADERF_GAIN_FASTATTACK_AGC,
BLADERF_GAIN_SLOWATTACK_AGC,
BLADERF_GAIN_HYBRID_AGC,
} bladerf_gain_mode;
#define BLADERF_GAIN_AUTOMATIC BLADERF_GAIN_DEFAULT
#define BLADERF_GAIN_MANUAL BLADERF_GAIN_MGC
struct bladerf_gain_modes {
const char *name;
bladerf_gain_mode mode;
};
API_EXPORT
int CALL_CONV bladerf_set_gain(struct bladerf *dev,
bladerf_channel ch,
bladerf_gain gain);
API_EXPORT
int CALL_CONV bladerf_get_gain(struct bladerf *dev,
bladerf_channel ch,
bladerf_gain *gain);
API_EXPORT
int CALL_CONV bladerf_set_gain_mode(struct bladerf *dev,
bladerf_channel ch,
bladerf_gain_mode mode);
API_EXPORT
int CALL_CONV bladerf_get_gain_mode(struct bladerf *dev,
bladerf_channel ch,
bladerf_gain_mode *mode);
API_EXPORT
int CALL_CONV bladerf_get_gain_modes(struct bladerf *dev,
bladerf_channel ch,
const struct bladerf_gain_modes **modes);
API_EXPORT
int CALL_CONV bladerf_get_gain_range(struct bladerf *dev,
bladerf_channel ch,
const struct bladerf_range **range);
API_EXPORT
int CALL_CONV bladerf_set_gain_stage(struct bladerf *dev,
bladerf_channel ch,
const char *stage,
bladerf_gain gain);
API_EXPORT
int CALL_CONV bladerf_get_gain_stage(struct bladerf *dev,
bladerf_channel ch,
const char *stage,
bladerf_gain *gain);
API_EXPORT
int CALL_CONV bladerf_get_gain_stage_range(struct bladerf *dev,
bladerf_channel ch,
const char *stage,
const struct bladerf_range **range);
API_EXPORT
int CALL_CONV bladerf_get_gain_stages(struct bladerf *dev,
bladerf_channel ch,
const char **stages,
size_t count);
typedef unsigned int bladerf_sample_rate;
struct bladerf_rational_rate {
uint64_t integer;
uint64_t num;
uint64_t den;
};
API_EXPORT
int CALL_CONV bladerf_set_sample_rate(struct bladerf *dev,
bladerf_channel ch,
bladerf_sample_rate rate,
bladerf_sample_rate *actual);
API_EXPORT
int CALL_CONV
bladerf_set_rational_sample_rate(struct bladerf *dev,
bladerf_channel ch,
struct bladerf_rational_rate *rate,
struct bladerf_rational_rate *actual);
API_EXPORT
int CALL_CONV bladerf_get_sample_rate(struct bladerf *dev,
bladerf_channel ch,
bladerf_sample_rate *rate);
API_EXPORT
int CALL_CONV bladerf_get_sample_rate_range(struct bladerf *dev,
bladerf_channel ch,
const struct bladerf_range **range);
API_EXPORT
int CALL_CONV
bladerf_get_rational_sample_rate(struct bladerf *dev,
bladerf_channel ch,
struct bladerf_rational_rate *rate);
typedef unsigned int bladerf_bandwidth;
API_EXPORT
int CALL_CONV bladerf_set_bandwidth(struct bladerf *dev,
bladerf_channel ch,
bladerf_bandwidth bandwidth,
bladerf_bandwidth *actual);
API_EXPORT
int CALL_CONV bladerf_get_bandwidth(struct bladerf *dev,
bladerf_channel ch,
bladerf_bandwidth *bandwidth);
API_EXPORT
int CALL_CONV bladerf_get_bandwidth_range(struct bladerf *dev,
bladerf_channel ch,
const struct bladerf_range **range);
typedef uint64_t bladerf_frequency;
#define BLADERF_PRIuFREQ PRIu64
#define BLADERF_PRIxFREQ PRIx64
#define BLADERF_SCNuFREQ SCNu64
#define BLADERF_SCNxFREQ SCNx64
API_EXPORT
int CALL_CONV bladerf_select_band(struct bladerf *dev,
bladerf_channel ch,
bladerf_frequency frequency);
API_EXPORT
int CALL_CONV bladerf_set_frequency(struct bladerf *dev,
bladerf_channel ch,
bladerf_frequency frequency);
API_EXPORT
int CALL_CONV bladerf_get_frequency(struct bladerf *dev,
bladerf_channel ch,
bladerf_frequency *frequency);
API_EXPORT
int CALL_CONV bladerf_get_frequency_range(struct bladerf *dev,
bladerf_channel ch,
const struct bladerf_range **range);
typedef enum {
BLADERF_LB_NONE = 0,
BLADERF_LB_FIRMWARE,
BLADERF_LB_BB_TXLPF_RXVGA2,
BLADERF_LB_BB_TXVGA1_RXVGA2,
BLADERF_LB_BB_TXLPF_RXLPF,
BLADERF_LB_BB_TXVGA1_RXLPF,
BLADERF_LB_RF_LNA1,
BLADERF_LB_RF_LNA2,
BLADERF_LB_RF_LNA3,
BLADERF_LB_RFIC_BIST,
} bladerf_loopback;
struct bladerf_loopback_modes {
const char *name;
bladerf_loopback mode;
};
API_EXPORT
int CALL_CONV bladerf_get_loopback_modes(
struct bladerf *dev, const struct bladerf_loopback_modes **modes);
API_EXPORT bool CALL_CONV bladerf_is_loopback_mode_supported(
struct bladerf *dev, bladerf_loopback mode);
API_EXPORT
int CALL_CONV bladerf_set_loopback(struct bladerf *dev, bladerf_loopback lb);
API_EXPORT
int CALL_CONV bladerf_get_loopback(struct bladerf *dev, bladerf_loopback *lb);
typedef enum {
BLADERF_TRIGGER_ROLE_INVALID = -1,
BLADERF_TRIGGER_ROLE_DISABLED,
BLADERF_TRIGGER_ROLE_MASTER,
BLADERF_TRIGGER_ROLE_SLAVE,
} bladerf_trigger_role;
typedef enum {
BLADERF_TRIGGER_INVALID = -1,
BLADERF_TRIGGER_J71_4,
BLADERF_TRIGGER_J51_1,
BLADERF_TRIGGER_MINI_EXP_1,
BLADERF_TRIGGER_USER_0 = 128,
BLADERF_TRIGGER_USER_1,
BLADERF_TRIGGER_USER_2,
BLADERF_TRIGGER_USER_3,
BLADERF_TRIGGER_USER_4,
BLADERF_TRIGGER_USER_5,
BLADERF_TRIGGER_USER_6,
BLADERF_TRIGGER_USER_7,
} bladerf_trigger_signal;
struct bladerf_trigger {
bladerf_channel channel;
bladerf_trigger_role role;
bladerf_trigger_signal signal;
uint64_t options;
};
API_EXPORT
int CALL_CONV bladerf_trigger_init(struct bladerf *dev,
bladerf_channel ch,
bladerf_trigger_signal signal,
struct bladerf_trigger *trigger);
API_EXPORT
int CALL_CONV bladerf_trigger_arm(struct bladerf *dev,
const struct bladerf_trigger *trigger,
bool arm,
uint64_t resv1,
uint64_t resv2);
API_EXPORT
int CALL_CONV bladerf_trigger_fire(struct bladerf *dev,
const struct bladerf_trigger *trigger);
API_EXPORT
int CALL_CONV bladerf_trigger_state(struct bladerf *dev,
const struct bladerf_trigger *trigger,
bool *is_armed,
bool *has_fired,
bool *fire_requested,
uint64_t *resv1,
uint64_t *resv2);
typedef enum {
BLADERF_RX_MUX_INVALID = -1,
BLADERF_RX_MUX_BASEBAND = 0x0,
BLADERF_RX_MUX_12BIT_COUNTER = 0x1,
BLADERF_RX_MUX_32BIT_COUNTER = 0x2,
/* RX_MUX setting 0x3 is reserved for future use */
BLADERF_RX_MUX_DIGITAL_LOOPBACK = 0x4,
} bladerf_rx_mux;
/* Backwards compatible mapping for `bladerf_rx_mux`. */
#define BLADERF_RX_MUX_BASEBAND_LMS BLADERF_RX_MUX_BASEBAND
API_EXPORT
int CALL_CONV bladerf_set_rx_mux(struct bladerf *dev, bladerf_rx_mux mux);
API_EXPORT
int CALL_CONV bladerf_get_rx_mux(struct bladerf *dev, bladerf_rx_mux *mode);
typedef uint64_t bladerf_timestamp;
#define BLADERF_RETUNE_NOW (bladerf_timestamp)0
struct bladerf_quick_tune {
union {
/* bladeRF1 quick tune parameters */
struct {
uint8_t freqsel;
uint8_t vcocap;
uint16_t nint;
uint32_t nfrac;
uint8_t flags;
uint8_t xb_gpio;
};
/* bladeRF2 quick tune parameters */
struct {
uint16_t nios_profile;
uint8_t rffe_profile;
uint8_t port;
uint8_t spdt;
};
};
};
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);
typedef int16_t bladerf_correction_value;
typedef enum {
BLADERF_CORR_DCOFF_I,
BLADERF_CORR_DCOFF_Q,
BLADERF_CORR_PHASE,
BLADERF_CORR_GAIN
} bladerf_correction;
/* Backwards compatible mapping to `bladerf_correction`. */
#define BLADERF_CORR_LMS_DCOFF_I BLADERF_CORR_DCOFF_I
#define BLADERF_CORR_LMS_DCOFF_Q BLADERF_CORR_DCOFF_Q
#define BLADERF_CORR_FPGA_PHASE BLADERF_CORR_PHASE
#define BLADERF_CORR_FPGA_GAIN BLADERF_CORR_GAIN
API_EXPORT
int CALL_CONV bladerf_set_correction(struct bladerf *dev,
bladerf_channel ch,
bladerf_correction corr,
bladerf_correction_value value);
API_EXPORT
int CALL_CONV bladerf_get_correction(struct bladerf *dev,
bladerf_channel ch,
bladerf_correction corr,
bladerf_correction_value *value);
#define BLADERF_PRIuTS PRIu64
#define BLADERF_PRIxTS PRIx64
#define BLADERF_SCNuTS SCNu64
#define BLADERF_SCNxTS SCNx64
typedef enum {
BLADERF_FORMAT_SC16_Q11,
BLADERF_FORMAT_SC16_Q11_META,
BLADERF_FORMAT_PACKET_META,
BLADERF_FORMAT_SC8_Q7,
BLADERF_FORMAT_SC8_Q7_META,
} bladerf_format;
/*
* Metadata status bits
*
* These are used in conjunction with the bladerf_metadata structure's `status`
* field.
*/
#define BLADERF_META_STATUS_OVERRUN (1 << 0)
#define BLADERF_META_STATUS_UNDERRUN (1 << 1)
/*
* Metadata flags
*
* These are used in conjunction with the bladerf_metadata structure's `flags`
* field.
*/
#define BLADERF_META_FLAG_TX_BURST_START (1 << 0)
#define BLADERF_META_FLAG_TX_BURST_END (1 << 1)
#define BLADERF_META_FLAG_TX_NOW (1 << 2)
#define BLADERF_META_FLAG_TX_UPDATE_TIMESTAMP (1 << 3)
#define BLADERF_META_FLAG_RX_NOW (1 << 31)
#define BLADERF_META_FLAG_RX_HW_UNDERFLOW (1 << 0)
#define BLADERF_META_FLAG_RX_HW_MINIEXP1 (1 << 16)
#define BLADERF_META_FLAG_RX_HW_MINIEXP2 (1 << 17)
struct bladerf_metadata {
bladerf_timestamp timestamp;
uint32_t flags;
uint32_t status;
unsigned int actual_count;
uint8_t reserved[32];
};
API_EXPORT
int CALL_CONV bladerf_interleave_stream_buffer(bladerf_channel_layout layout,
bladerf_format format,
unsigned int buffer_size,
void *samples);
API_EXPORT
int CALL_CONV bladerf_deinterleave_stream_buffer(bladerf_channel_layout layout,
bladerf_format format,
unsigned int buffer_size,
void *samples);
API_EXPORT
int CALL_CONV bladerf_enable_module(struct bladerf *dev,
bladerf_channel ch,
bool enable);
API_EXPORT
int CALL_CONV bladerf_get_timestamp(struct bladerf *dev,
bladerf_direction dir,
bladerf_timestamp *timestamp);
API_EXPORT
int CALL_CONV bladerf_sync_config(struct bladerf *dev,
bladerf_channel_layout layout,
bladerf_format format,
unsigned int num_buffers,
unsigned int buffer_size,
unsigned int num_transfers,
unsigned int stream_timeout);
API_EXPORT
int CALL_CONV bladerf_sync_tx(struct bladerf *dev,
const void *samples,
unsigned int num_samples,
struct bladerf_metadata *metadata,
unsigned int timeout_ms);
API_EXPORT
int CALL_CONV bladerf_sync_rx(struct bladerf *dev,
void *samples,
unsigned int num_samples,
struct bladerf_metadata *metadata,
unsigned int timeout_ms);
#define BLADERF_STREAM_SHUTDOWN (NULL)
#define BLADERF_STREAM_NO_DATA ((void *)(-1))
struct bladerf_stream;
typedef void *(*bladerf_stream_cb)(struct bladerf *dev,
struct bladerf_stream *stream,
struct bladerf_metadata *meta,
void *samples,
size_t num_samples,
void *user_data);
API_EXPORT
int CALL_CONV bladerf_init_stream(struct bladerf_stream **stream,
struct bladerf *dev,
bladerf_stream_cb callback,
void ***buffers,
size_t num_buffers,
bladerf_format format,
size_t samples_per_buffer,
size_t num_transfers,
void *user_data);
API_EXPORT
int CALL_CONV bladerf_stream(struct bladerf_stream *stream,
bladerf_channel_layout layout);
API_EXPORT
int CALL_CONV bladerf_submit_stream_buffer(struct bladerf_stream *stream,
void *buffer,
unsigned int timeout_ms);
API_EXPORT
int CALL_CONV bladerf_submit_stream_buffer_nb(struct bladerf_stream *stream,
void *buffer);
API_EXPORT
void CALL_CONV bladerf_deinit_stream(struct bladerf_stream *stream);
API_EXPORT
int CALL_CONV bladerf_set_stream_timeout(struct bladerf *dev,
bladerf_direction dir,
unsigned int timeout);
API_EXPORT
int CALL_CONV bladerf_get_stream_timeout(struct bladerf *dev,
bladerf_direction dir,
unsigned int *timeout);
API_EXPORT
int CALL_CONV bladerf_flash_firmware(struct bladerf *dev, const char *firmware);
API_EXPORT
int CALL_CONV bladerf_load_fpga(struct bladerf *dev, const char *fpga);
API_EXPORT
int CALL_CONV bladerf_flash_fpga(struct bladerf *dev, const char *fpga_image);
API_EXPORT
int CALL_CONV bladerf_erase_stored_fpga(struct bladerf *dev);
API_EXPORT
int CALL_CONV bladerf_device_reset(struct bladerf *dev);
API_EXPORT
int CALL_CONV bladerf_get_fw_log(struct bladerf *dev, const char *filename);
API_EXPORT
int CALL_CONV bladerf_jump_to_bootloader(struct bladerf *dev);
API_EXPORT
int CALL_CONV bladerf_get_bootloader_list(struct bladerf_devinfo **list);
API_EXPORT
int CALL_CONV bladerf_load_fw_from_bootloader(const char *device_identifier,
bladerf_backend backend,
uint8_t bus,
uint8_t addr,
const char *file);
typedef enum {
BLADERF_IMAGE_TYPE_INVALID = -1,
BLADERF_IMAGE_TYPE_RAW,
BLADERF_IMAGE_TYPE_FIRMWARE,
BLADERF_IMAGE_TYPE_FPGA_40KLE,
BLADERF_IMAGE_TYPE_FPGA_115KLE,
BLADERF_IMAGE_TYPE_FPGA_A4,
BLADERF_IMAGE_TYPE_FPGA_A9,
BLADERF_IMAGE_TYPE_CALIBRATION,
BLADERF_IMAGE_TYPE_RX_DC_CAL,
BLADERF_IMAGE_TYPE_TX_DC_CAL,
BLADERF_IMAGE_TYPE_RX_IQ_CAL,
BLADERF_IMAGE_TYPE_TX_IQ_CAL,
BLADERF_IMAGE_TYPE_FPGA_A5,
} bladerf_image_type;
#define BLADERF_IMAGE_MAGIC_LEN 7
#define BLADERF_IMAGE_CHECKSUM_LEN 32
#define BLADERF_IMAGE_RESERVED_LEN 128
struct bladerf_image {
char magic[BLADERF_IMAGE_MAGIC_LEN + 1];
uint8_t checksum[BLADERF_IMAGE_CHECKSUM_LEN];
struct bladerf_version version;
uint64_t timestamp;
char serial[BLADERF_SERIAL_LENGTH + 1];
char reserved[BLADERF_IMAGE_RESERVED_LEN];
bladerf_image_type type;
uint32_t address;
uint32_t length;
uint8_t *data;
};
API_EXPORT
struct bladerf_image *CALL_CONV bladerf_alloc_image(struct bladerf *dev,
bladerf_image_type type,
uint32_t address,
uint32_t length);
API_EXPORT
struct bladerf_image *CALL_CONV bladerf_alloc_cal_image(
struct bladerf *dev, bladerf_fpga_size fpga_size, uint16_t vctcxo_trim);
API_EXPORT
void CALL_CONV bladerf_free_image(struct bladerf_image *image);
API_EXPORT
int CALL_CONV bladerf_image_write(struct bladerf *dev,
struct bladerf_image *image,
const char *file);
API_EXPORT
int CALL_CONV bladerf_image_read(struct bladerf_image *image, const char *file);
typedef enum {
BLADERF_VCTCXO_TAMER_INVALID = -1,
BLADERF_VCTCXO_TAMER_DISABLED = 0,
BLADERF_VCTCXO_TAMER_1_PPS = 1,
BLADERF_VCTCXO_TAMER_10_MHZ = 2
} bladerf_vctcxo_tamer_mode;
API_EXPORT
int CALL_CONV bladerf_set_vctcxo_tamer_mode(struct bladerf *dev,
bladerf_vctcxo_tamer_mode mode);
API_EXPORT
int CALL_CONV bladerf_get_vctcxo_tamer_mode(struct bladerf *dev,
bladerf_vctcxo_tamer_mode *mode);
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);
typedef enum {
BLADERF_TUNING_MODE_INVALID = -1,
BLADERF_TUNING_MODE_HOST,
BLADERF_TUNING_MODE_FPGA,
} bladerf_tuning_mode;
API_EXPORT
int CALL_CONV bladerf_set_tuning_mode(struct bladerf *dev,
bladerf_tuning_mode mode);
API_EXPORT
int CALL_CONV bladerf_get_tuning_mode(struct bladerf *dev,
bladerf_tuning_mode *mode);
#define BLADERF_TRIGGER_REG_ARM ((uint8_t)(1 << 0))
#define BLADERF_TRIGGER_REG_FIRE ((uint8_t)(1 << 1))
#define BLADERF_TRIGGER_REG_MASTER ((uint8_t)(1 << 2))
#define BLADERF_TRIGGER_REG_LINE ((uint8_t)(1 << 3))
API_EXPORT
int CALL_CONV bladerf_read_trigger(struct bladerf *dev,
bladerf_channel ch,
bladerf_trigger_signal signal,
uint8_t *val);
API_EXPORT
int CALL_CONV bladerf_write_trigger(struct bladerf *dev,
bladerf_channel ch,
bladerf_trigger_signal signal,
uint8_t val);
API_EXPORT
int CALL_CONV bladerf_wishbone_master_read(struct bladerf *dev, uint32_t addr, uint32_t *data);
API_EXPORT
int CALL_CONV bladerf_wishbone_master_write(struct bladerf *dev, uint32_t addr, uint32_t val);
API_EXPORT
int CALL_CONV bladerf_config_gpio_read(struct bladerf *dev, uint32_t *val);
API_EXPORT
int CALL_CONV bladerf_config_gpio_write(struct bladerf *dev, uint32_t val);
API_EXPORT
int CALL_CONV bladerf_erase_flash(struct bladerf *dev,
uint32_t erase_block,
uint32_t count);
API_EXPORT
int CALL_CONV bladerf_erase_flash_bytes(struct bladerf *dev,
uint32_t address,
uint32_t length);
API_EXPORT
int CALL_CONV bladerf_read_flash(struct bladerf *dev,
uint8_t *buf,
uint32_t page,
uint32_t count);
API_EXPORT
int CALL_CONV bladerf_read_flash_bytes(struct bladerf *dev,
uint8_t *buf,
uint32_t address,
uint32_t bytes);
API_EXPORT
int CALL_CONV bladerf_write_flash(struct bladerf *dev,
const uint8_t *buf,
uint32_t page,
uint32_t count);
API_EXPORT
int CALL_CONV bladerf_write_flash_bytes(struct bladerf *dev,
const uint8_t *buf,
uint32_t address,
uint32_t length);
API_EXPORT
int CALL_CONV bladerf_lock_otp(struct bladerf *dev);
API_EXPORT
int CALL_CONV bladerf_read_otp(struct bladerf *dev,
uint8_t *buf);
API_EXPORT
int CALL_CONV bladerf_write_otp(struct bladerf *dev,
uint8_t *buf);
API_EXPORT
int CALL_CONV bladerf_set_rf_port(struct bladerf *dev,
bladerf_channel ch,
const char *port);
API_EXPORT
int CALL_CONV bladerf_get_rf_port(struct bladerf *dev,
bladerf_channel ch,
const char **port);
API_EXPORT
int CALL_CONV bladerf_get_rf_ports(struct bladerf *dev,
bladerf_channel ch,
const char **ports,
unsigned int count);
typedef enum {
BLADERF_FEATURE_DEFAULT = 0,
BLADERF_FEATURE_OVERSAMPLE
} bladerf_feature;
API_EXPORT
int CALL_CONV bladerf_enable_feature(struct bladerf *dev,
bladerf_feature feature,
bool enable);
API_EXPORT
int CALL_CONV bladerf_get_feature(struct bladerf *dev,
bladerf_feature* feature);
typedef enum {
BLADERF_XB_NONE = 0,
BLADERF_XB_100,
BLADERF_XB_200,
BLADERF_XB_300
} bladerf_xb;
API_EXPORT
int CALL_CONV bladerf_expansion_attach(struct bladerf *dev, bladerf_xb xb);
API_EXPORT
int CALL_CONV bladerf_expansion_get_attached(struct bladerf *dev,
bladerf_xb *xb);
typedef enum {
BLADERF_LOG_LEVEL_VERBOSE,
BLADERF_LOG_LEVEL_DEBUG,
BLADERF_LOG_LEVEL_INFO,
BLADERF_LOG_LEVEL_WARNING,
BLADERF_LOG_LEVEL_ERROR,
BLADERF_LOG_LEVEL_CRITICAL,
BLADERF_LOG_LEVEL_SILENT
} bladerf_log_level;
API_EXPORT
void CALL_CONV bladerf_log_set_verbosity(bladerf_log_level level);
API_EXPORT
void CALL_CONV bladerf_version(struct bladerf_version *version);
// clang-format off
#define BLADERF_ERR_UNEXPECTED (-1)
#define BLADERF_ERR_RANGE (-2)
#define BLADERF_ERR_INVAL (-3)
#define BLADERF_ERR_MEM (-4)
#define BLADERF_ERR_IO (-5)
#define BLADERF_ERR_TIMEOUT (-6)
#define BLADERF_ERR_NODEV (-7)
#define BLADERF_ERR_UNSUPPORTED (-8)
#define BLADERF_ERR_MISALIGNED (-9)
#define BLADERF_ERR_CHECKSUM (-10)
#define BLADERF_ERR_NO_FILE (-11)
#define BLADERF_ERR_UPDATE_FPGA (-12)
#define BLADERF_ERR_UPDATE_FW (-13)
#define BLADERF_ERR_TIME_PAST (-14)
#define BLADERF_ERR_QUEUE_FULL (-15)
#define BLADERF_ERR_FPGA_OP (-16)
#define BLADERF_ERR_PERMISSION (-17)
#define BLADERF_ERR_WOULD_BLOCK (-18)
#define BLADERF_ERR_NOT_INIT (-19)
// clang-format on
API_EXPORT
const char *CALL_CONV bladerf_strerror(int error);
#include <bladeRF1.h>
#include <bladeRF2.h>
#ifdef __cplusplus
}
#endif
#endif /* LIBBLADERF_H_ */
bladeRF1.h
bladeRF1-specific API
bladeRF2.h
bladeRF2-specific API
bladerf_set_bandwidth
API_EXPORT int CALL_CONV bladerf_set_bandwidth(struct bladerf *dev, bladerf_channel ch, bladerf_bandwidth bandwidth, bladerf_bandwidth *actual)
bladerf_get_bandwidth
API_EXPORT int CALL_CONV bladerf_get_bandwidth(struct bladerf *dev, bladerf_channel ch, bladerf_bandwidth *bandwidth)
bladerf_get_bandwidth_range
API_EXPORT int CALL_CONV bladerf_get_bandwidth_range(struct bladerf *dev, bladerf_channel ch, const struct bladerf_range **range)
bladerf_bandwidth
unsigned int bladerf_bandwidth
Definition libbladeRF.h:1151
bladerf_channel_layout
bladerf_channel_layout
Definition libbladeRF.h:714
bladerf_get_channel_count
API_EXPORT size_t CALL_CONV bladerf_get_channel_count(struct bladerf *dev, bladerf_direction dir)
bladerf_channel
int bladerf_channel
Definition libbladeRF.h:649
bladerf_direction
bladerf_direction
Definition libbladeRF.h:706
BLADERF_RX_X1
@ BLADERF_RX_X1
Definition libbladeRF.h:715
BLADERF_RX_X2
@ BLADERF_RX_X2
Definition libbladeRF.h:717
BLADERF_TX_X2
@ BLADERF_TX_X2
Definition libbladeRF.h:718
BLADERF_TX_X1
@ BLADERF_TX_X1
Definition libbladeRF.h:716
BLADERF_TX
@ BLADERF_TX
Definition libbladeRF.h:708
BLADERF_RX
@ BLADERF_RX
Definition libbladeRF.h:707
bladerf_config_gpio_read
API_EXPORT int CALL_CONV bladerf_config_gpio_read(struct bladerf *dev, uint32_t *val)
bladerf_config_gpio_write
API_EXPORT int CALL_CONV bladerf_config_gpio_write(struct bladerf *dev, uint32_t val)
bladerf_set_correction
API_EXPORT int CALL_CONV bladerf_set_correction(struct bladerf *dev, bladerf_channel ch, bladerf_correction corr, bladerf_correction_value value)
bladerf_correction
bladerf_correction
Definition libbladeRF.h:1965
bladerf_get_correction
API_EXPORT int CALL_CONV bladerf_get_correction(struct bladerf *dev, bladerf_channel ch, bladerf_correction corr, bladerf_correction_value *value)
bladerf_correction_value
int16_t bladerf_correction_value
Definition libbladeRF.h:1954
BLADERF_CORR_DCOFF_Q
@ BLADERF_CORR_DCOFF_Q
Definition libbladeRF.h:1976
BLADERF_CORR_PHASE
@ BLADERF_CORR_PHASE
Definition libbladeRF.h:1982
BLADERF_CORR_GAIN
@ BLADERF_CORR_GAIN
Definition libbladeRF.h:1988
BLADERF_CORR_DCOFF_I
@ BLADERF_CORR_DCOFF_I
Definition libbladeRF.h:1970
bladerf_get_gain_mode
API_EXPORT int CALL_CONV bladerf_get_gain_mode(struct bladerf *dev, bladerf_channel ch, bladerf_gain_mode *mode)
bladerf_set_gain_mode
API_EXPORT int CALL_CONV bladerf_set_gain_mode(struct bladerf *dev, bladerf_channel ch, bladerf_gain_mode mode)
bladerf_get_gain_modes
API_EXPORT int CALL_CONV bladerf_get_gain_modes(struct bladerf *dev, bladerf_channel ch, const struct bladerf_gain_modes **modes)
bladerf_set_gain_stage
API_EXPORT int CALL_CONV bladerf_set_gain_stage(struct bladerf *dev, bladerf_channel ch, const char *stage, bladerf_gain gain)
bladerf_get_gain_stage
API_EXPORT int CALL_CONV bladerf_get_gain_stage(struct bladerf *dev, bladerf_channel ch, const char *stage, bladerf_gain *gain)
bladerf_get_gain_stages
API_EXPORT int CALL_CONV bladerf_get_gain_stages(struct bladerf *dev, bladerf_channel ch, const char **stages, size_t count)
bladerf_get_gain_range
API_EXPORT int CALL_CONV bladerf_get_gain_range(struct bladerf *dev, bladerf_channel ch, const struct bladerf_range **range)
bladerf_gain
int bladerf_gain
Definition libbladeRF.h:748
bladerf_get_gain_stage_range
API_EXPORT int CALL_CONV bladerf_get_gain_stage_range(struct bladerf *dev, bladerf_channel ch, const char *stage, const struct bladerf_range **range)
bladerf_set_gain
API_EXPORT int CALL_CONV bladerf_set_gain(struct bladerf *dev, bladerf_channel ch, bladerf_gain gain)
bladerf_gain_mode
bladerf_gain_mode
Definition libbladeRF.h:760
bladerf_get_gain
API_EXPORT int CALL_CONV bladerf_get_gain(struct bladerf *dev, bladerf_channel ch, bladerf_gain *gain)
BLADERF_GAIN_SLOWATTACK_AGC
@ BLADERF_GAIN_SLOWATTACK_AGC
Definition libbladeRF.h:789
BLADERF_GAIN_DEFAULT
@ BLADERF_GAIN_DEFAULT
Definition libbladeRF.h:769
BLADERF_GAIN_MGC
@ BLADERF_GAIN_MGC
Definition libbladeRF.h:775
BLADERF_GAIN_FASTATTACK_AGC
@ BLADERF_GAIN_FASTATTACK_AGC
Definition libbladeRF.h:782
BLADERF_GAIN_HYBRID_AGC
@ BLADERF_GAIN_HYBRID_AGC
Definition libbladeRF.h:796
bladerf_alloc_image
API_EXPORT struct bladerf_image *CALL_CONV bladerf_alloc_image(struct bladerf *dev, bladerf_image_type type, uint32_t address, uint32_t length)
bladerf_image_read
API_EXPORT int CALL_CONV bladerf_image_read(struct bladerf_image *image, const char *file)
bladerf_image_type
bladerf_image_type
Definition libbladeRF.h:3259
bladerf_image_write
API_EXPORT int CALL_CONV bladerf_image_write(struct bladerf *dev, struct bladerf_image *image, const char *file)
BLADERF_IMAGE_RESERVED_LEN
#define BLADERF_IMAGE_RESERVED_LEN
Definition libbladeRF.h:3282
bladerf_free_image
API_EXPORT void CALL_CONV bladerf_free_image(struct bladerf_image *image)
BLADERF_IMAGE_MAGIC_LEN
#define BLADERF_IMAGE_MAGIC_LEN
Definition libbladeRF.h:3276
bladerf_alloc_cal_image
API_EXPORT struct bladerf_image *CALL_CONV bladerf_alloc_cal_image(struct bladerf *dev, bladerf_fpga_size fpga_size, uint16_t vctcxo_trim)
BLADERF_IMAGE_CHECKSUM_LEN
#define BLADERF_IMAGE_CHECKSUM_LEN
Definition libbladeRF.h:3279
BLADERF_IMAGE_TYPE_FIRMWARE
@ BLADERF_IMAGE_TYPE_FIRMWARE
Definition libbladeRF.h:3262
BLADERF_IMAGE_TYPE_CALIBRATION
@ BLADERF_IMAGE_TYPE_CALIBRATION
Definition libbladeRF.h:3267
BLADERF_IMAGE_TYPE_RX_IQ_CAL
@ BLADERF_IMAGE_TYPE_RX_IQ_CAL
Definition libbladeRF.h:3270
BLADERF_IMAGE_TYPE_INVALID
@ BLADERF_IMAGE_TYPE_INVALID
Definition libbladeRF.h:3260
BLADERF_IMAGE_TYPE_FPGA_40KLE
@ BLADERF_IMAGE_TYPE_FPGA_40KLE
Definition libbladeRF.h:3263
BLADERF_IMAGE_TYPE_RX_DC_CAL
@ BLADERF_IMAGE_TYPE_RX_DC_CAL
Definition libbladeRF.h:3268
BLADERF_IMAGE_TYPE_TX_IQ_CAL
@ BLADERF_IMAGE_TYPE_TX_IQ_CAL
Definition libbladeRF.h:3271
BLADERF_IMAGE_TYPE_TX_DC_CAL
@ BLADERF_IMAGE_TYPE_TX_DC_CAL
Definition libbladeRF.h:3269
BLADERF_IMAGE_TYPE_FPGA_A9
@ BLADERF_IMAGE_TYPE_FPGA_A9
Definition libbladeRF.h:3266
BLADERF_IMAGE_TYPE_FPGA_A5
@ BLADERF_IMAGE_TYPE_FPGA_A5
Definition libbladeRF.h:3272
BLADERF_IMAGE_TYPE_RAW
@ BLADERF_IMAGE_TYPE_RAW
Definition libbladeRF.h:3261
BLADERF_IMAGE_TYPE_FPGA_A4
@ BLADERF_IMAGE_TYPE_FPGA_A4
Definition libbladeRF.h:3265
BLADERF_IMAGE_TYPE_FPGA_115KLE
@ BLADERF_IMAGE_TYPE_FPGA_115KLE
Definition libbladeRF.h:3264
bladerf_get_fpga_source
API_EXPORT int CALL_CONV bladerf_get_fpga_source(struct bladerf *dev, bladerf_fpga_source *source)
bladerf_get_serial_struct
API_EXPORT int CALL_CONV bladerf_get_serial_struct(struct bladerf *dev, struct bladerf_serial *serial)
bladerf_fpga_size
bladerf_fpga_size
Definition libbladeRF.h:424
bladerf_get_serial
API_EXPORT int CALL_CONV bladerf_get_serial(struct bladerf *dev, char *serial)
bladerf_get_board_name
API_EXPORT const char *CALL_CONV bladerf_get_board_name(struct bladerf *dev)
bladerf_is_fpga_configured
API_EXPORT int CALL_CONV bladerf_is_fpga_configured(struct bladerf *dev)
bladerf_dev_speed
bladerf_dev_speed
Definition libbladeRF.h:437
bladerf_get_fpga_bytes
API_EXPORT int CALL_CONV bladerf_get_fpga_bytes(struct bladerf *dev, size_t *size)
bladerf_fw_version
API_EXPORT int CALL_CONV bladerf_fw_version(struct bladerf *dev, struct bladerf_version *version)
bladerf_get_fpga_size
API_EXPORT int CALL_CONV bladerf_get_fpga_size(struct bladerf *dev, bladerf_fpga_size *size)
bladerf_get_flash_size
API_EXPORT int CALL_CONV bladerf_get_flash_size(struct bladerf *dev, uint32_t *size, bool *is_guess)
bladerf_fpga_version
API_EXPORT int CALL_CONV bladerf_fpga_version(struct bladerf *dev, struct bladerf_version *version)
bladerf_fpga_source
bladerf_fpga_source
Definition libbladeRF.h:449
bladerf_device_speed
API_EXPORT bladerf_dev_speed CALL_CONV bladerf_device_speed(struct bladerf *dev)
BLADERF_FPGA_UNKNOWN
@ BLADERF_FPGA_UNKNOWN
Definition libbladeRF.h:425
BLADERF_FPGA_A5
@ BLADERF_FPGA_A5
Definition libbladeRF.h:429
BLADERF_FPGA_A4
@ BLADERF_FPGA_A4
Definition libbladeRF.h:428
BLADERF_FPGA_40KLE
@ BLADERF_FPGA_40KLE
Definition libbladeRF.h:426
BLADERF_FPGA_115KLE
@ BLADERF_FPGA_115KLE
Definition libbladeRF.h:427
BLADERF_FPGA_A9
@ BLADERF_FPGA_A9
Definition libbladeRF.h:430
BLADERF_FPGA_SOURCE_HOST
@ BLADERF_FPGA_SOURCE_HOST
Definition libbladeRF.h:452
BLADERF_FPGA_SOURCE_UNKNOWN
@ BLADERF_FPGA_SOURCE_UNKNOWN
Definition libbladeRF.h:450
BLADERF_FPGA_SOURCE_FLASH
@ BLADERF_FPGA_SOURCE_FLASH
Definition libbladeRF.h:451
bladerf_set_usb_reset_on_open
API_EXPORT void CALL_CONV bladerf_set_usb_reset_on_open(bool enabled)
bladerf_free_device_list
API_EXPORT void CALL_CONV bladerf_free_device_list(struct bladerf_devinfo *devices)
bladerf_get_devinfo
API_EXPORT int CALL_CONV bladerf_get_devinfo(struct bladerf *dev, struct bladerf_devinfo *info)
bladerf_get_device_list
API_EXPORT int CALL_CONV bladerf_get_device_list(struct bladerf_devinfo **devices)
bladerf_backend
bladerf_backend
Definition libbladeRF.h:112
bladerf_init_devinfo
API_EXPORT void CALL_CONV bladerf_init_devinfo(struct bladerf_devinfo *info)
BLADERF_DESCRIPTION_LENGTH
#define BLADERF_DESCRIPTION_LENGTH
Definition libbladeRF.h:122
bladerf_get_backendinfo
API_EXPORT int CALL_CONV bladerf_get_backendinfo(struct bladerf *dev, struct bladerf_backendinfo *info)
bladerf_get_devinfo_from_str
API_EXPORT int CALL_CONV bladerf_get_devinfo_from_str(const char *devstr, struct bladerf_devinfo *info)
BLADERF_SERIAL_LENGTH
#define BLADERF_SERIAL_LENGTH
Definition libbladeRF.h:125
bladerf_close
API_EXPORT void CALL_CONV bladerf_close(struct bladerf *device)
bladerf_devstr_matches
API_EXPORT bool CALL_CONV bladerf_devstr_matches(const char *dev_str, struct bladerf_devinfo *info)
bladerf_open
API_EXPORT int CALL_CONV bladerf_open(struct bladerf **device, const char *device_identifier)
bladerf_open_with_devinfo
API_EXPORT int CALL_CONV bladerf_open_with_devinfo(struct bladerf **device, struct bladerf_devinfo *devinfo)
bladerf_backend_str
API_EXPORT const char *CALL_CONV bladerf_backend_str(bladerf_backend backend)
bladerf_devinfo_matches
API_EXPORT bool CALL_CONV bladerf_devinfo_matches(const struct bladerf_devinfo *a, const struct bladerf_devinfo *b)
BLADERF_BACKEND_ANY
@ BLADERF_BACKEND_ANY
Definition libbladeRF.h:113
BLADERF_BACKEND_LIBUSB
@ BLADERF_BACKEND_LIBUSB
Definition libbladeRF.h:116
BLADERF_BACKEND_LINUX
@ BLADERF_BACKEND_LINUX
Definition libbladeRF.h:115
BLADERF_BACKEND_CYPRESS
@ BLADERF_BACKEND_CYPRESS
Definition libbladeRF.h:117
BLADERF_BACKEND_DUMMY
@ BLADERF_BACKEND_DUMMY
Definition libbladeRF.h:118
bladerf_version
API_EXPORT void CALL_CONV bladerf_version(struct bladerf_version *version)
bladerf_log_set_verbosity
API_EXPORT void CALL_CONV bladerf_log_set_verbosity(bladerf_log_level level)
bladerf_log_level
bladerf_log_level
Definition libbladeRF.h:4183
BLADERF_LOG_LEVEL_ERROR
@ BLADERF_LOG_LEVEL_ERROR
Definition libbladeRF.h:4188
BLADERF_LOG_LEVEL_SILENT
@ BLADERF_LOG_LEVEL_SILENT
Definition libbladeRF.h:4190
BLADERF_LOG_LEVEL_INFO
@ BLADERF_LOG_LEVEL_INFO
Definition libbladeRF.h:4186
BLADERF_LOG_LEVEL_WARNING
@ BLADERF_LOG_LEVEL_WARNING
Definition libbladeRF.h:4187
BLADERF_LOG_LEVEL_VERBOSE
@ BLADERF_LOG_LEVEL_VERBOSE
Definition libbladeRF.h:4184
BLADERF_LOG_LEVEL_DEBUG
@ BLADERF_LOG_LEVEL_DEBUG
Definition libbladeRF.h:4185
BLADERF_LOG_LEVEL_CRITICAL
@ BLADERF_LOG_LEVEL_CRITICAL
Definition libbladeRF.h:4189
bladerf_loopback
bladerf_loopback
Definition libbladeRF.h:1338
bladerf_is_loopback_mode_supported
API_EXPORT bool CALL_CONV bladerf_is_loopback_mode_supported(struct bladerf *dev, bladerf_loopback mode)
bladerf_set_loopback
API_EXPORT int CALL_CONV bladerf_set_loopback(struct bladerf *dev, bladerf_loopback lb)
bladerf_get_loopback_modes
API_EXPORT int CALL_CONV bladerf_get_loopback_modes(struct bladerf *dev, const struct bladerf_loopback_modes **modes)
bladerf_get_loopback
API_EXPORT int CALL_CONV bladerf_get_loopback(struct bladerf *dev, bladerf_loopback *lb)
BLADERF_LB_RFIC_BIST
@ BLADERF_LB_RFIC_BIST
Definition libbladeRF.h:1376
BLADERF_LB_BB_TXVGA1_RXVGA2
@ BLADERF_LB_BB_TXVGA1_RXVGA2
Definition libbladeRF.h:1349
BLADERF_LB_BB_TXLPF_RXVGA2
@ BLADERF_LB_BB_TXLPF_RXVGA2
Definition libbladeRF.h:1346
BLADERF_LB_BB_TXLPF_RXLPF
@ BLADERF_LB_BB_TXLPF_RXLPF
Definition libbladeRF.h:1352
BLADERF_LB_RF_LNA2
@ BLADERF_LB_RF_LNA2
Definition libbladeRF.h:1367
BLADERF_LB_RF_LNA3
@ BLADERF_LB_RF_LNA3
Definition libbladeRF.h:1373
BLADERF_LB_BB_TXVGA1_RXLPF
@ BLADERF_LB_BB_TXVGA1_RXLPF
Definition libbladeRF.h:1355
BLADERF_LB_NONE
@ BLADERF_LB_NONE
Definition libbladeRF.h:1340
BLADERF_LB_FIRMWARE
@ BLADERF_LB_FIRMWARE
Definition libbladeRF.h:1343
BLADERF_LB_RF_LNA1
@ BLADERF_LB_RF_LNA1
Definition libbladeRF.h:1361
bladerf_get_fw_log
API_EXPORT int CALL_CONV bladerf_get_fw_log(struct bladerf *dev, const char *filename)
bladerf_load_fpga
API_EXPORT int CALL_CONV bladerf_load_fpga(struct bladerf *dev, const char *fpga)
bladerf_flash_firmware
API_EXPORT int CALL_CONV bladerf_flash_firmware(struct bladerf *dev, const char *firmware)
bladerf_jump_to_bootloader
API_EXPORT int CALL_CONV bladerf_jump_to_bootloader(struct bladerf *dev)
bladerf_get_bootloader_list
API_EXPORT int CALL_CONV bladerf_get_bootloader_list(struct bladerf_devinfo **list)
bladerf_load_fw_from_bootloader
API_EXPORT int CALL_CONV bladerf_load_fw_from_bootloader(const char *device_identifier, bladerf_backend backend, uint8_t bus, uint8_t addr, const char *file)
bladerf_device_reset
API_EXPORT int CALL_CONV bladerf_device_reset(struct bladerf *dev)
bladerf_erase_stored_fpga
API_EXPORT int CALL_CONV bladerf_erase_stored_fpga(struct bladerf *dev)
bladerf_flash_fpga
API_EXPORT int CALL_CONV bladerf_flash_fpga(struct bladerf *dev, const char *fpga_image)
bladerf_get_rx_mux
API_EXPORT int CALL_CONV bladerf_get_rx_mux(struct bladerf *dev, bladerf_rx_mux *mode)
bladerf_set_rx_mux
API_EXPORT int CALL_CONV bladerf_set_rx_mux(struct bladerf *dev, bladerf_rx_mux mux)
bladerf_rx_mux
bladerf_rx_mux
Definition libbladeRF.h:1744
BLADERF_RX_MUX_DIGITAL_LOOPBACK
@ BLADERF_RX_MUX_DIGITAL_LOOPBACK
Definition libbladeRF.h:1768
BLADERF_RX_MUX_12BIT_COUNTER
@ BLADERF_RX_MUX_12BIT_COUNTER
Definition libbladeRF.h:1756
BLADERF_RX_MUX_32BIT_COUNTER
@ BLADERF_RX_MUX_32BIT_COUNTER
Definition libbladeRF.h:1763
BLADERF_RX_MUX_INVALID
@ BLADERF_RX_MUX_INVALID
Definition libbladeRF.h:1746
BLADERF_RX_MUX_BASEBAND
@ BLADERF_RX_MUX_BASEBAND
Definition libbladeRF.h:1749
bladerf_get_rf_ports
API_EXPORT int CALL_CONV bladerf_get_rf_ports(struct bladerf *dev, bladerf_channel ch, const char **ports, unsigned int count)
bladerf_get_rf_port
API_EXPORT int CALL_CONV bladerf_get_rf_port(struct bladerf *dev, bladerf_channel ch, const char **port)
bladerf_set_rf_port
API_EXPORT int CALL_CONV bladerf_set_rf_port(struct bladerf *dev, bladerf_channel ch, const char *port)
bladerf_get_sample_rate_range
API_EXPORT int CALL_CONV bladerf_get_sample_rate_range(struct bladerf *dev, bladerf_channel ch, const struct bladerf_range **range)
bladerf_get_sample_rate
API_EXPORT int CALL_CONV bladerf_get_sample_rate(struct bladerf *dev, bladerf_channel ch, bladerf_sample_rate *rate)
bladerf_sample_rate
unsigned int bladerf_sample_rate
Definition libbladeRF.h:1031
bladerf_get_rational_sample_rate
API_EXPORT int CALL_CONV bladerf_get_rational_sample_rate(struct bladerf *dev, bladerf_channel ch, struct bladerf_rational_rate *rate)
bladerf_set_rational_sample_rate
API_EXPORT int CALL_CONV bladerf_set_rational_sample_rate(struct bladerf *dev, bladerf_channel ch, struct bladerf_rational_rate *rate, struct bladerf_rational_rate *actual)
bladerf_set_sample_rate
API_EXPORT int CALL_CONV bladerf_set_sample_rate(struct bladerf *dev, bladerf_channel ch, bladerf_sample_rate rate, bladerf_sample_rate *actual)
bladerf_get_quick_tune
API_EXPORT int CALL_CONV bladerf_get_quick_tune(struct bladerf *dev, bladerf_channel ch, struct bladerf_quick_tune *quick_tune)
bladerf_schedule_retune
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)
bladerf_cancel_scheduled_retunes
API_EXPORT int CALL_CONV bladerf_cancel_scheduled_retunes(struct bladerf *dev, bladerf_channel ch)
bladerf_get_feature
API_EXPORT int CALL_CONV bladerf_get_feature(struct bladerf *dev, bladerf_feature *feature)
bladerf_enable_feature
API_EXPORT int CALL_CONV bladerf_enable_feature(struct bladerf *dev, bladerf_feature feature, bool enable)
bladerf_feature
bladerf_feature
Definition libbladeRF.h:4080
BLADERF_FEATURE_OVERSAMPLE
@ BLADERF_FEATURE_OVERSAMPLE
Definition libbladeRF.h:4082
BLADERF_FEATURE_DEFAULT
@ BLADERF_FEATURE_DEFAULT
Definition libbladeRF.h:4081
bladerf_erase_flash_bytes
API_EXPORT int CALL_CONV bladerf_erase_flash_bytes(struct bladerf *dev, uint32_t address, uint32_t length)
bladerf_write_flash
API_EXPORT int CALL_CONV bladerf_write_flash(struct bladerf *dev, const uint8_t *buf, uint32_t page, uint32_t count)
bladerf_read_otp
API_EXPORT int CALL_CONV bladerf_read_otp(struct bladerf *dev, uint8_t *buf)
bladerf_read_flash
API_EXPORT int CALL_CONV bladerf_read_flash(struct bladerf *dev, uint8_t *buf, uint32_t page, uint32_t count)
bladerf_read_flash_bytes
API_EXPORT int CALL_CONV bladerf_read_flash_bytes(struct bladerf *dev, uint8_t *buf, uint32_t address, uint32_t bytes)
bladerf_erase_flash
API_EXPORT int CALL_CONV bladerf_erase_flash(struct bladerf *dev, uint32_t erase_block, uint32_t count)
bladerf_write_otp
API_EXPORT int CALL_CONV bladerf_write_otp(struct bladerf *dev, uint8_t *buf)
bladerf_write_flash_bytes
API_EXPORT int CALL_CONV bladerf_write_flash_bytes(struct bladerf *dev, const uint8_t *buf, uint32_t address, uint32_t length)
bladerf_lock_otp
API_EXPORT int CALL_CONV bladerf_lock_otp(struct bladerf *dev)
bladerf_submit_stream_buffer_nb
API_EXPORT int CALL_CONV bladerf_submit_stream_buffer_nb(struct bladerf_stream *stream, void *buffer)
bladerf_deinit_stream
API_EXPORT void CALL_CONV bladerf_deinit_stream(struct bladerf_stream *stream)
bladerf_init_stream
API_EXPORT int CALL_CONV bladerf_init_stream(struct bladerf_stream **stream, struct bladerf *dev, bladerf_stream_cb callback, void ***buffers, size_t num_buffers, bladerf_format format, size_t samples_per_buffer, size_t num_transfers, void *user_data)
bladerf_get_stream_timeout
API_EXPORT int CALL_CONV bladerf_get_stream_timeout(struct bladerf *dev, bladerf_direction dir, unsigned int *timeout)
bladerf_stream_cb
void *(* bladerf_stream_cb)(struct bladerf *dev, struct bladerf_stream *stream, struct bladerf_metadata *meta, void *samples, size_t num_samples, void *user_data)
Definition libbladeRF.h:2893
bladerf_stream
API_EXPORT int CALL_CONV bladerf_stream(struct bladerf_stream *stream, bladerf_channel_layout layout)
bladerf_set_stream_timeout
API_EXPORT int CALL_CONV bladerf_set_stream_timeout(struct bladerf *dev, bladerf_direction dir, unsigned int timeout)
bladerf_submit_stream_buffer
API_EXPORT int CALL_CONV bladerf_submit_stream_buffer(struct bladerf_stream *stream, void *buffer, unsigned int timeout_ms)
bladerf_sync_config
API_EXPORT int CALL_CONV bladerf_sync_config(struct bladerf *dev, bladerf_channel_layout layout, bladerf_format format, unsigned int num_buffers, unsigned int buffer_size, unsigned int num_transfers, unsigned int stream_timeout)
bladerf_sync_tx
API_EXPORT int CALL_CONV bladerf_sync_tx(struct bladerf *dev, const void *samples, unsigned int num_samples, struct bladerf_metadata *metadata, unsigned int timeout_ms)
bladerf_sync_rx
API_EXPORT int CALL_CONV bladerf_sync_rx(struct bladerf *dev, void *samples, unsigned int num_samples, struct bladerf_metadata *metadata, unsigned int timeout_ms)
bladerf_write_trigger
API_EXPORT int CALL_CONV bladerf_write_trigger(struct bladerf *dev, bladerf_channel ch, bladerf_trigger_signal signal, uint8_t val)
bladerf_read_trigger
API_EXPORT int CALL_CONV bladerf_read_trigger(struct bladerf *dev, bladerf_channel ch, bladerf_trigger_signal signal, uint8_t *val)
bladerf_trigger_arm
API_EXPORT int CALL_CONV bladerf_trigger_arm(struct bladerf *dev, const struct bladerf_trigger *trigger, bool arm, uint64_t resv1, uint64_t resv2)
bladerf_trigger_init
API_EXPORT int CALL_CONV bladerf_trigger_init(struct bladerf *dev, bladerf_channel ch, bladerf_trigger_signal signal, struct bladerf_trigger *trigger)
bladerf_trigger_state
API_EXPORT int CALL_CONV bladerf_trigger_state(struct bladerf *dev, const struct bladerf_trigger *trigger, bool *is_armed, bool *has_fired, bool *fire_requested, uint64_t *resv1, uint64_t *resv2)
bladerf_trigger_fire
API_EXPORT int CALL_CONV bladerf_trigger_fire(struct bladerf *dev, const struct bladerf_trigger *trigger)
bladerf_trigger_role
bladerf_trigger_role
Definition libbladeRF.h:1567
bladerf_trigger_signal
bladerf_trigger_signal
Definition libbladeRF.h:1606
BLADERF_TRIGGER_ROLE_INVALID
@ BLADERF_TRIGGER_ROLE_INVALID
Definition libbladeRF.h:1569
BLADERF_TRIGGER_ROLE_MASTER
@ BLADERF_TRIGGER_ROLE_MASTER
Definition libbladeRF.h:1581
BLADERF_TRIGGER_ROLE_DISABLED
@ BLADERF_TRIGGER_ROLE_DISABLED
Definition libbladeRF.h:1575
BLADERF_TRIGGER_ROLE_SLAVE
@ BLADERF_TRIGGER_ROLE_SLAVE
Definition libbladeRF.h:1588
BLADERF_TRIGGER_USER_4
@ BLADERF_TRIGGER_USER_4
Definition libbladeRF.h:1616
BLADERF_TRIGGER_USER_1
@ BLADERF_TRIGGER_USER_1
Definition libbladeRF.h:1613
BLADERF_TRIGGER_USER_5
@ BLADERF_TRIGGER_USER_5
Definition libbladeRF.h:1617
BLADERF_TRIGGER_USER_2
@ BLADERF_TRIGGER_USER_2
Definition libbladeRF.h:1614
BLADERF_TRIGGER_USER_7
@ BLADERF_TRIGGER_USER_7
Definition libbladeRF.h:1619
BLADERF_TRIGGER_MINI_EXP_1
@ BLADERF_TRIGGER_MINI_EXP_1
Definition libbladeRF.h:1610
BLADERF_TRIGGER_USER_0
@ BLADERF_TRIGGER_USER_0
Definition libbladeRF.h:1612
BLADERF_TRIGGER_USER_3
@ BLADERF_TRIGGER_USER_3
Definition libbladeRF.h:1615
BLADERF_TRIGGER_J51_1
@ BLADERF_TRIGGER_J51_1
Definition libbladeRF.h:1609
BLADERF_TRIGGER_USER_6
@ BLADERF_TRIGGER_USER_6
Definition libbladeRF.h:1618
BLADERF_TRIGGER_J71_4
@ BLADERF_TRIGGER_J71_4
Definition libbladeRF.h:1608
BLADERF_TRIGGER_INVALID
@ BLADERF_TRIGGER_INVALID
Definition libbladeRF.h:1607
bladerf_set_tuning_mode
API_EXPORT int CALL_CONV bladerf_set_tuning_mode(struct bladerf *dev, bladerf_tuning_mode mode)
bladerf_tuning_mode
bladerf_tuning_mode
Definition libbladeRF.h:3605
bladerf_get_tuning_mode
API_EXPORT int CALL_CONV bladerf_get_tuning_mode(struct bladerf *dev, bladerf_tuning_mode *mode)
BLADERF_TUNING_MODE_FPGA
@ BLADERF_TUNING_MODE_FPGA
Definition libbladeRF.h:3616
BLADERF_TUNING_MODE_INVALID
@ BLADERF_TUNING_MODE_INVALID
Definition libbladeRF.h:3607
BLADERF_TUNING_MODE_HOST
@ BLADERF_TUNING_MODE_HOST
Definition libbladeRF.h:3613
bladerf_get_frequency
API_EXPORT int CALL_CONV bladerf_get_frequency(struct bladerf *dev, bladerf_channel ch, bladerf_frequency *frequency)
bladerf_set_frequency
API_EXPORT int CALL_CONV bladerf_set_frequency(struct bladerf *dev, bladerf_channel ch, bladerf_frequency frequency)
bladerf_frequency
uint64_t bladerf_frequency
Definition libbladeRF.h:1229
bladerf_select_band
API_EXPORT int CALL_CONV bladerf_select_band(struct bladerf *dev, bladerf_channel ch, bladerf_frequency frequency)
bladerf_get_frequency_range
API_EXPORT int CALL_CONV bladerf_get_frequency_range(struct bladerf *dev, bladerf_channel ch, const struct bladerf_range **range)
bladerf_set_vctcxo_tamer_mode
API_EXPORT int CALL_CONV bladerf_set_vctcxo_tamer_mode(struct bladerf *dev, bladerf_vctcxo_tamer_mode mode)
bladerf_get_vctcxo_tamer_mode
API_EXPORT int CALL_CONV bladerf_get_vctcxo_tamer_mode(struct bladerf *dev, bladerf_vctcxo_tamer_mode *mode)
bladerf_vctcxo_tamer_mode
bladerf_vctcxo_tamer_mode
Definition libbladeRF.h:3485
BLADERF_VCTCXO_TAMER_DISABLED
@ BLADERF_VCTCXO_TAMER_DISABLED
Definition libbladeRF.h:3490
BLADERF_VCTCXO_TAMER_INVALID
@ BLADERF_VCTCXO_TAMER_INVALID
Definition libbladeRF.h:3487
BLADERF_VCTCXO_TAMER_1_PPS
@ BLADERF_VCTCXO_TAMER_1_PPS
Definition libbladeRF.h:3493
BLADERF_VCTCXO_TAMER_10_MHZ
@ BLADERF_VCTCXO_TAMER_10_MHZ
Definition libbladeRF.h:3496
bladerf_trim_dac_read
API_EXPORT int CALL_CONV bladerf_trim_dac_read(struct bladerf *dev, uint16_t *val)
bladerf_trim_dac_write
API_EXPORT int CALL_CONV bladerf_trim_dac_write(struct bladerf *dev, uint16_t val)
bladerf_get_vctcxo_trim
API_EXPORT int CALL_CONV bladerf_get_vctcxo_trim(struct bladerf *dev, uint16_t *trim)
bladerf_wishbone_master_read
API_EXPORT int CALL_CONV bladerf_wishbone_master_read(struct bladerf *dev, uint32_t addr, uint32_t *data)
bladerf_wishbone_master_write
API_EXPORT int CALL_CONV bladerf_wishbone_master_write(struct bladerf *dev, uint32_t addr, uint32_t val)
bladerf_expansion_attach
API_EXPORT int CALL_CONV bladerf_expansion_attach(struct bladerf *dev, bladerf_xb xb)
bladerf_expansion_get_attached
API_EXPORT int CALL_CONV bladerf_expansion_get_attached(struct bladerf *dev, bladerf_xb *xb)
bladerf_xb
bladerf_xb
Definition libbladeRF.h:4134
BLADERF_XB_200
@ BLADERF_XB_200
Definition libbladeRF.h:4140
BLADERF_XB_NONE
@ BLADERF_XB_NONE
Definition libbladeRF.h:4135
BLADERF_XB_300
@ BLADERF_XB_300
Definition libbladeRF.h:4141
BLADERF_XB_100
@ BLADERF_XB_100
Definition libbladeRF.h:4136
bladerf_strerror
API_EXPORT const char *CALL_CONV bladerf_strerror(int error)
bladerf_interleave_stream_buffer
API_EXPORT int CALL_CONV bladerf_interleave_stream_buffer(bladerf_channel_layout layout, bladerf_format format, unsigned int buffer_size, void *samples)
bladerf_format
bladerf_format
Definition libbladeRF.h:2066
bladerf_deinterleave_stream_buffer
API_EXPORT int CALL_CONV bladerf_deinterleave_stream_buffer(bladerf_channel_layout layout, bladerf_format format, unsigned int buffer_size, void *samples)
BLADERF_FORMAT_SC8_Q7
@ BLADERF_FORMAT_SC8_Q7
Definition libbladeRF.h:2260
BLADERF_FORMAT_SC16_Q11_META
@ BLADERF_FORMAT_SC16_Q11_META
Definition libbladeRF.h:2163
BLADERF_FORMAT_PACKET_META
@ BLADERF_FORMAT_PACKET_META
Definition libbladeRF.h:2204
BLADERF_FORMAT_SC16_Q11
@ BLADERF_FORMAT_SC16_Q11
Definition libbladeRF.h:2122
BLADERF_FORMAT_SC8_Q7_META
@ BLADERF_FORMAT_SC8_Q7_META
Definition libbladeRF.h:2301
bladerf_timestamp
uint64_t bladerf_timestamp
Definition libbladeRF.h:1818
bladerf_enable_module
API_EXPORT int CALL_CONV bladerf_enable_module(struct bladerf *dev, bladerf_channel ch, bool enable)
bladerf_get_timestamp
API_EXPORT int CALL_CONV bladerf_get_timestamp(struct bladerf *dev, bladerf_direction dir, bladerf_timestamp *timestamp)
API_EXPORT
#define API_EXPORT
Definition libbladeRF.h:82
CALL_CONV
#define CALL_CONV
Definition libbladeRF.h:85
bladerf_backendinfo
Definition libbladeRF.h:146
bladerf_backendinfo::lock
void * lock
Definition libbladeRF.h:150
bladerf_backendinfo::handle
void * handle
Definition libbladeRF.h:148
bladerf_backendinfo::lock_count
int lock_count
Definition libbladeRF.h:149
bladerf_backendinfo::handle_count
int handle_count
Definition libbladeRF.h:147
bladerf_devinfo
Definition libbladeRF.h:130
bladerf_devinfo::instance
unsigned int instance
Definition libbladeRF.h:136
bladerf_devinfo::usb_addr
uint8_t usb_addr
Definition libbladeRF.h:135
bladerf_devinfo::product
char product[BLADERF_DESCRIPTION_LENGTH]
Definition libbladeRF.h:140
bladerf_devinfo::backend
bladerf_backend backend
Definition libbladeRF.h:131
bladerf_devinfo::serial
char serial[BLADERF_SERIAL_LENGTH]
Definition libbladeRF.h:133
bladerf_devinfo::manufacturer
char manufacturer[BLADERF_DESCRIPTION_LENGTH]
Definition libbladeRF.h:139
bladerf_devinfo::usb_bus
uint8_t usb_bus
Definition libbladeRF.h:134
bladerf_gain_modes
Definition libbladeRF.h:807
bladerf_gain_modes::name
const char * name
Definition libbladeRF.h:808
bladerf_gain_modes::mode
bladerf_gain_mode mode
Definition libbladeRF.h:809
bladerf_image
Definition libbladeRF.h:3295
bladerf_image::reserved
char reserved[BLADERF_IMAGE_RESERVED_LEN]
Definition libbladeRF.h:3334
bladerf_image::version
struct bladerf_version version
Definition libbladeRF.h:3316
bladerf_image::timestamp
uint64_t timestamp
Definition libbladeRF.h:3319
bladerf_image::checksum
uint8_t checksum[BLADERF_IMAGE_CHECKSUM_LEN]
Definition libbladeRF.h:3309
bladerf_image::magic
char magic[BLADERF_IMAGE_MAGIC_LEN+1]
Definition libbladeRF.h:3303
bladerf_image::serial
char serial[BLADERF_SERIAL_LENGTH+1]
Definition libbladeRF.h:3329
bladerf_image::data
uint8_t * data
Definition libbladeRF.h:3351
bladerf_image::address
uint32_t address
Definition libbladeRF.h:3345
bladerf_image::length
uint32_t length
Definition libbladeRF.h:3348
bladerf_image::type
bladerf_image_type type
Definition libbladeRF.h:3339
bladerf_loopback_modes
Definition libbladeRF.h:1382
bladerf_loopback_modes::mode
bladerf_loopback mode
Definition libbladeRF.h:1384
bladerf_loopback_modes::name
const char * name
Definition libbladeRF.h:1383
bladerf_metadata
Definition libbladeRF.h:2448
bladerf_metadata::actual_count
unsigned int actual_count
Definition libbladeRF.h:2491
bladerf_metadata::reserved
uint8_t reserved[32]
Definition libbladeRF.h:2497
bladerf_metadata::flags
uint32_t flags
Definition libbladeRF.h:2467
bladerf_metadata::status
uint32_t status
Definition libbladeRF.h:2476
bladerf_metadata::timestamp
bladerf_timestamp timestamp
Definition libbladeRF.h:2453
bladerf_quick_tune
Definition libbladeRF.h:1835
bladerf_quick_tune::port
uint8_t port
Definition libbladeRF.h:1850
bladerf_quick_tune::rffe_profile
uint8_t rffe_profile
Definition libbladeRF.h:1849
bladerf_quick_tune::nfrac
uint32_t nfrac
Definition libbladeRF.h:1842
bladerf_quick_tune::vcocap
uint8_t vcocap
Definition libbladeRF.h:1840
bladerf_quick_tune::spdt
uint8_t spdt
Definition libbladeRF.h:1851
bladerf_quick_tune::flags
uint8_t flags
Definition libbladeRF.h:1843
bladerf_quick_tune::xb_gpio
uint8_t xb_gpio
Definition libbladeRF.h:1844
bladerf_quick_tune::nios_profile
uint16_t nios_profile
Definition libbladeRF.h:1848
bladerf_quick_tune::nint
uint16_t nint
Definition libbladeRF.h:1841
bladerf_quick_tune::freqsel
uint8_t freqsel
Definition libbladeRF.h:1839
bladerf_range
Definition libbladeRF.h:393
bladerf_range::scale
float scale
Definition libbladeRF.h:397
bladerf_range::max
int64_t max
Definition libbladeRF.h:395
bladerf_range::step
int64_t step
Definition libbladeRF.h:396
bladerf_range::min
int64_t min
Definition libbladeRF.h:394
bladerf_rational_rate
Definition libbladeRF.h:1041
bladerf_rational_rate::num
uint64_t num
Definition libbladeRF.h:1043
bladerf_rational_rate::den
uint64_t den
Definition libbladeRF.h:1044
bladerf_rational_rate::integer
uint64_t integer
Definition libbladeRF.h:1042
bladerf_serial
Definition libbladeRF.h:403
bladerf_serial::serial
char serial[BLADERF_SERIAL_LENGTH]
Definition libbladeRF.h:404
bladerf_trigger
Definition libbladeRF.h:1629
bladerf_trigger::signal
bladerf_trigger_signal signal
Definition libbladeRF.h:1632
bladerf_trigger::role
bladerf_trigger_role role
Definition libbladeRF.h:1631
bladerf_trigger::channel
bladerf_channel channel
Definition libbladeRF.h:1630
bladerf_trigger::options
uint64_t options
Definition libbladeRF.h:1633
bladerf_version
Definition libbladeRF.h:410
bladerf_version::major
uint16_t major
Definition libbladeRF.h:411
bladerf_version::describe
const char * describe
Definition libbladeRF.h:414
bladerf_version::minor
uint16_t minor
Definition libbladeRF.h:412
bladerf_version::patch
uint16_t patch
Definition libbladeRF.h:413