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)
 
void set_clock_source (const std::string &source, const size_t mboard=0)
 
std::string get_clock_source (const size_t mboard=0)
 
std::vector< std::string > get_clock_sources (const size_t mboard=0)
 
void set_smb_frequency (double frequency)
 
double get_smb_frequency ()
 
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
 
bool _use_metadata
 
osmosdr::gain_range_t _vga1_range
 
osmosdr::gain_range_t _vga2_range
 
std::string _pfx
 
bool _xb_200_attached
 
unsigned int _consecutive_failures
 

Static Protected Attributes

static const int16_t DCOFF_SCALE = 2048
 
static const int16_t GAIN_SCALE = 4096
 
static const int16_t PHASE_SCALE = 4096
 
static const unsigned int MAX_CONSECUTIVE_FAILURES = 3
 

Constructor & Destructor Documentation

§ bladerf_common()

bladerf_common::bladerf_common ( )

§ ~bladerf_common()

virtual bladerf_common::~bladerf_common ( )
virtual

Member Function Documentation

§ devices()

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

§ filter_bandwidths()

osmosdr::freq_range_t bladerf_common::filter_bandwidths ( )
protected

§ freq_range()

osmosdr::freq_range_t bladerf_common::freq_range ( )
protected

§ get_clock_source()

std::string bladerf_common::get_clock_source ( const size_t  mboard = 0)
protected

§ get_clock_sources()

std::vector<std::string> bladerf_common::get_clock_sources ( const size_t  mboard = 0)
protected

§ get_sample_rate()

double bladerf_common::get_sample_rate ( bladerf_module  module)
protected

§ get_smb_frequency()

double bladerf_common::get_smb_frequency ( )
protected

§ init()

void bladerf_common::init ( dict_t dict,
bladerf_module  module 
)
protected

§ sample_rates()

osmosdr::meta_range_t bladerf_common::sample_rates ( )
protected

§ set_clock_source()

void bladerf_common::set_clock_source ( const std::string &  source,
const size_t  mboard = 0 
)
protected

§ set_dc_offset()

int bladerf_common::set_dc_offset ( bladerf_module  module,
const std::complex< double > &  offset,
size_t  chan 
)
protected

§ set_iq_balance()

int bladerf_common::set_iq_balance ( bladerf_module  module,
const std::complex< double > &  balance,
size_t  chan 
)
protected

§ set_sample_rate()

double bladerf_common::set_sample_rate ( bladerf_module  module,
double  rate 
)
protected

§ set_smb_frequency()

void bladerf_common::set_smb_frequency ( double  frequency)
protected

§ start()

bool bladerf_common::start ( bladerf_module  module)
protected

§ stop()

bool bladerf_common::stop ( bladerf_module  module)
protected

Member Data Documentation

§ _consecutive_failures

unsigned int bladerf_common::_consecutive_failures
protected

§ _conv_buf

int16_t* bladerf_common::_conv_buf
protected

§ _conv_buf_size

int bladerf_common::_conv_buf_size
protected

§ _dev

bladerf_sptr bladerf_common::_dev
protected

§ _num_buffers

size_t bladerf_common::_num_buffers
protected

§ _num_transfers

size_t bladerf_common::_num_transfers
protected

§ _pfx

std::string bladerf_common::_pfx
protected

§ _samples_per_buffer

size_t bladerf_common::_samples_per_buffer
protected

§ _stream_timeout_ms

unsigned int bladerf_common::_stream_timeout_ms
protected

§ _use_metadata

bool bladerf_common::_use_metadata
protected

§ _vga1_range

osmosdr::gain_range_t bladerf_common::_vga1_range
protected

§ _vga2_range

osmosdr::gain_range_t bladerf_common::_vga2_range
protected

§ _xb_200_attached

bool bladerf_common::_xb_200_attached
protected

§ DCOFF_SCALE

const int16_t bladerf_common::DCOFF_SCALE = 2048
staticprotected

§ GAIN_SCALE

const int16_t bladerf_common::GAIN_SCALE = 4096
staticprotected

§ MAX_CONSECUTIVE_FAILURES

const unsigned int bladerf_common::MAX_CONSECUTIVE_FAILURES = 3
staticprotected

§ PHASE_SCALE

const int16_t bladerf_common::PHASE_SCALE = 4096
staticprotected

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