GNU Radio's TEST Package
|
#include <bladerf_common.h>
Public Member Functions | |
bladerf_common () | |
Static Protected Member Functions | |
static std::vector< std::string > | devices () |
Protected Attributes | |
bladerf_sptr | _dev |
std::string | _pfx |
unsigned int | _failures |
size_t | _num_buffers |
size_t | _samples_per_buffer |
size_t | _num_transfers |
unsigned int | _stream_timeout |
bladerf_format | _format |
bladerf_channel_map | _chanmap |
bladerf_channel_enable_map | _enables |
Static Protected Attributes | |
static const unsigned int | MAX_CONSECUTIVE_FAILURES = 3 |
static const int16_t | DCOFF_SCALE = 2048 |
static const int16_t | GAIN_SCALE = 4096 |
static const int16_t | PHASE_SCALE = 4096 |
Common class for bladeRF interaction
bladerf_common::bladerf_common | ( | ) |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Handle initialization and parameters common to both source & sink
Specify arguments in key=value,key=value format, e.g. bladerf=0,buffers=512
Recognized arguments:
REQUIRED: bladerf a valid instance or serial number USB INTERFACE CONTROL: buffers (default: NUM_BUFFERS) buflen (default: NUM_SAMPLES_PER_BUFFER) stream_timeout valid time in milliseconds (default: 3000) transfers (default: NUM_TRANSFERS) FPGA CONTROL: enable_metadata 1 to enable metadata fpga a path to a valid .rbf file fpga-reload 1 to force reloading the FPGA unconditionally RF CONTROL: agc 1 to enable, 0 to disable (default: hardware-dependent) agc_mode default, manual, fast, slow, hybrid (default: default) loopback bb_txlpf_rxvga2, bb_txlpf_rxlpf, bb_txvga1_rxvga2, bb_txvga1_rxlpf, rf_lna1, rf_lna2, rf_lna3, firmware, ad9361_bist, none (default: none) ** Note: valid on receive channels only rxmux baseband, 12bit, 32bit, digital (default: baseband) ** Note: valid on receive channels only smb a valid frequency tamer internal, external_1pps, external (default: internal) xb200 auto, auto3db, 50M, 144M, 222M, custom (default: auto) MISC: verbosity verbose, debug, info, warning, error, critical, silent (default: info) ** Note: applies only to libbladeRF logging
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
map of antennas to channels
|
protected |
shared pointer for the active device
|
protected |
enabled channels
|
protected |
sample format to use
|
protected |
number of buffers to allocate
|
protected |
number of active backend transfers
|
protected |
prefix for console messages
|
protected |
how many samples per buffer