GNU Radio's OsmoSDR Package
bladerf_common Class Reference

#include <bladerf_common.h>

Inheritance diagram for bladerf_common:

Public Member Functions

 bladerf_common ()
 
virtual ~bladerf_common ()
 

Protected Member Functions

void init (dict_t &dict, bladerf_module module)
 
bool start (bladerf_module module)
 
bool stop (bladerf_module module)
 
double set_sample_rate (bladerf_module module, double rate)
 
double get_sample_rate (bladerf_module module)
 
int set_dc_offset (bladerf_module module, const std::complex< double > &offset, size_t chan)
 
int set_iq_balance (bladerf_module module, const std::complex< double > &balance, size_t chan)
 
osmosdr::freq_range_t freq_range ()
 
osmosdr::meta_range_t sample_rates ()
 
osmosdr::freq_range_t filter_bandwidths ()
 

Static Protected Member Functions

static std::vector< std::string > devices ()
 

Protected Attributes

bladerf_sptr _dev
 
size_t _num_buffers
 
size_t _samples_per_buffer
 
size_t _num_transfers
 
unsigned int _stream_timeout_ms
 
int16_t * _conv_buf
 
int _conv_buf_size
 
osmosdr::gain_range_t _vga1_range
 
osmosdr::gain_range_t _vga2_range
 
std::string _pfx
 
bool _xb_200_attached
 

Static Protected Attributes

static const int16_t DCOFF_SCALE = 2048
 
static const int16_t GAIN_SCALE = 4096
 
static const int16_t PHASE_SCALE = 4096
 

Constructor & Destructor Documentation

bladerf_common::bladerf_common ( )
virtual bladerf_common::~bladerf_common ( )
virtual

Member Function Documentation

static std::vector< std::string > bladerf_common::devices ( )
staticprotected
osmosdr::freq_range_t bladerf_common::filter_bandwidths ( )
protected
osmosdr::freq_range_t bladerf_common::freq_range ( )
protected
double bladerf_common::get_sample_rate ( bladerf_module  module)
protected
void bladerf_common::init ( dict_t dict,
bladerf_module  module 
)
protected
osmosdr::meta_range_t bladerf_common::sample_rates ( )
protected
int bladerf_common::set_dc_offset ( bladerf_module  module,
const std::complex< double > &  offset,
size_t  chan 
)
protected
int bladerf_common::set_iq_balance ( bladerf_module  module,
const std::complex< double > &  balance,
size_t  chan 
)
protected
double bladerf_common::set_sample_rate ( bladerf_module  module,
double  rate 
)
protected
bool bladerf_common::start ( bladerf_module  module)
protected
bool bladerf_common::stop ( bladerf_module  module)
protected

Member Data Documentation

int16_t* bladerf_common::_conv_buf
protected
int bladerf_common::_conv_buf_size
protected
bladerf_sptr bladerf_common::_dev
protected
size_t bladerf_common::_num_buffers
protected
size_t bladerf_common::_num_transfers
protected
std::string bladerf_common::_pfx
protected
size_t bladerf_common::_samples_per_buffer
protected
unsigned int bladerf_common::_stream_timeout_ms
protected
osmosdr::gain_range_t bladerf_common::_vga1_range
protected
osmosdr::gain_range_t bladerf_common::_vga2_range
protected
bool bladerf_common::_xb_200_attached
protected
const int16_t bladerf_common::DCOFF_SCALE = 2048
staticprotected
const int16_t bladerf_common::GAIN_SCALE = 4096
staticprotected
const int16_t bladerf_common::PHASE_SCALE = 4096
staticprotected

The documentation for this class was generated from the following file: