bladerf_sink_c
gr::sync_block
sink_iface
bladerf_common
bladerf_sink_c.h
int16_t * int16_t* bladerf_sink_c::_16icbuf _16icbuf bladerf_sink_c::_16icbuf

raw samples to bladeRF

gr_complex * gr_complex* bladerf_sink_c::_32fcbuf _32fcbuf bladerf_sink_c::_32fcbuf

intermediate buffer for conversions

bool bool bladerf_sink_c::_in_burst _in_burst bladerf_sink_c::_in_burst

are we currently in a burst?

bool bool bladerf_sink_c::_running _running bladerf_sink_c::_running

is the sink running?

bladerf_channel_layout bladerf_channel_layout bladerf_sink_c::_layout _layout bladerf_sink_c::_layout

channel layout

gr::thread::mutex gr::thread::mutex bladerf_sink_c::d_mutex d_mutex bladerf_sink_c::d_mutex

mutex to protect set/work access

const float const float bladerf_sink_c::SCALING_FACTOR SCALING_FACTOR bladerf_sink_c::SCALING_FACTOR = 2048.0f
bladerf_sink_c_sptr bladerf_sink_c_sptr make_bladerf_sink_c (const std::string &args) make_bladerf_sink_c bladerf_sink_c::make_bladerf_sink_c const std::string & args

Return a shared_ptr to a new instance of bladerf_sink_c.

To avoid accidental use of raw pointers, bladerf_sink_c's constructor is private. make_bladerf_sink_c is the public interface for creating new instances.

bladerf_sink_c::bladerf_sink_c
(const std::string &args)
bladerf_sink_c
bladerf_sink_c::bladerf_sink_c
const std::string & args
bool bool bladerf_sink_c::is_antenna_valid (const std::string &antenna) is_antenna_valid bladerf_sink_c::is_antenna_valid const std::string & antenna
int int bladerf_sink_c::transmit_with_tags (int16_t const *samples, int noutput_items) transmit_with_tags bladerf_sink_c::transmit_with_tags int16_t const * samples int noutput_items
std::string std::string bladerf_sink_c::name () name bladerf_sink_c::name
size_t size_t bladerf_sink_c::get_max_channels (void) get_max_channels bladerf_sink_c::get_max_channels void
size_t size_t bladerf_sink_c::get_num_channels (void) get_num_channels bladerf_sink_c::get_num_channels get_num_channels void

Get the number of channels the underlying radio hardware offers.

the number of available channels

bool bool bladerf_sink_c::start () start bladerf_sink_c::start
bool bool bladerf_sink_c::stop () stop bladerf_sink_c::stop
int int bladerf_sink_c::work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) work bladerf_sink_c::work int noutput_items gr_vector_const_void_star & input_items gr_vector_void_star & output_items
osmosdr::meta_range_t osmosdr::meta_range_t bladerf_sink_c::get_sample_rates (void) get_sample_rates bladerf_sink_c::get_sample_rates get_sample_rates void

Get the possible sample rates for the underlying radio hardware.

a range of rates in Sps

double double bladerf_sink_c::set_sample_rate (double rate) set_sample_rate bladerf_sink_c::set_sample_rate set_sample_rate double rate

Set the sample rate for the underlying radio hardware. This also will select the appropriate IF bandpass, if applicable. rate

a new rate in Sps

double double bladerf_sink_c::get_sample_rate (void) get_sample_rate bladerf_sink_c::get_sample_rate get_sample_rate void

Get the sample rate for the underlying radio hardware. This is the actual sample rate and may differ from the rate set.

the actual rate in Sps

osmosdr::freq_range_t osmosdr::freq_range_t bladerf_sink_c::get_freq_range (size_t chan=0) get_freq_range bladerf_sink_c::get_freq_range get_freq_range size_t chan 0

Get the tunable frequency range for the underlying radio hardware. chan

the channel index 0 to N-1

the frequency range in Hz

double double bladerf_sink_c::set_center_freq (double freq, size_t chan=0) set_center_freq bladerf_sink_c::set_center_freq set_center_freq double freq size_t chan 0

Tune the underlying radio hardware to the desired center frequency. This also will select the appropriate RF bandpass. freq

the desired frequency in Hz

chan

the channel index 0 to N-1

the actual frequency in Hz

double double bladerf_sink_c::get_center_freq (size_t chan=0) get_center_freq bladerf_sink_c::get_center_freq get_center_freq size_t chan 0

Get the center frequency the underlying radio hardware is tuned to. This is the actual frequency and may differ from the frequency set. chan

the channel index 0 to N-1

the frequency in Hz

double double bladerf_sink_c::set_freq_corr (double ppm, size_t chan=0) set_freq_corr bladerf_sink_c::set_freq_corr set_freq_corr double ppm size_t chan 0

Set the frequency correction value in parts per million. ppm

the desired correction value in parts per million

chan

the channel index 0 to N-1

correction value in parts per million

double double bladerf_sink_c::get_freq_corr (size_t chan=0) get_freq_corr bladerf_sink_c::get_freq_corr get_freq_corr size_t chan 0

Get the frequency correction value. chan

the channel index 0 to N-1

correction value in parts per million

std::vector< std::string > std::vector< std::string > bladerf_sink_c::get_gain_names (size_t chan=0) get_gain_names bladerf_sink_c::get_gain_names get_gain_names size_t chan 0

Get the gain stage names of the underlying radio hardware. chan

the channel index 0 to N-1

a vector of strings containing the names of gain stages

osmosdr::gain_range_t osmosdr::gain_range_t bladerf_sink_c::get_gain_range (size_t chan=0) get_gain_range bladerf_sink_c::get_gain_range get_gain_range size_t chan 0

Get the settable overall gain range for the underlying radio hardware. chan

the channel index 0 to N-1

the gain range in dB

osmosdr::gain_range_t osmosdr::gain_range_t bladerf_sink_c::get_gain_range (const std::string &name, size_t chan=0) get_gain_range bladerf_sink_c::get_gain_range get_gain_range const std::string & name size_t chan 0

Get the settable gain range for a specific gain stage. name

the name of the gain stage

chan

the channel index 0 to N-1

the gain range in dB

bool bool bladerf_sink_c::set_gain_mode (bool automatic, size_t chan=0) set_gain_mode bladerf_sink_c::set_gain_mode set_gain_mode bool automatic size_t chan 0

Set the gain mode for the underlying radio hardware. This might be supported only for certain hardware types. automatic

the gain mode (true means automatic gain mode)

chan

the channel index 0 to N-1

the actual gain mode

bool bool bladerf_sink_c::get_gain_mode (size_t chan=0) get_gain_mode bladerf_sink_c::get_gain_mode get_gain_mode size_t chan 0

Get the gain mode selected for the underlying radio hardware. chan

the channel index 0 to N-1

the actual gain mode (true means automatic gain mode)

double double bladerf_sink_c::set_gain (double gain, size_t chan=0) set_gain bladerf_sink_c::set_gain set_gain double gain size_t chan 0

Set the gain for the underlying radio hardware. This function will automatically distribute the desired gain value over available gain stages in an appropriate way and return the actual value. gain

the gain in dB

chan

the channel index 0 to N-1

the actual gain in dB

double double bladerf_sink_c::set_gain (double gain, const std::string &name, size_t chan=0) set_gain bladerf_sink_c::set_gain set_gain double gain const std::string & name size_t chan 0

Set the named gain on the underlying radio hardware. gain

the gain in dB

name

the name of the gain stage

chan

the channel index 0 to N-1

the actual gain in dB

double double bladerf_sink_c::get_gain (size_t chan=0) get_gain bladerf_sink_c::get_gain get_gain size_t chan 0

Get the actual gain setting of the underlying radio hardware. chan

the channel index 0 to N-1

the actual gain in dB

double double bladerf_sink_c::get_gain (const std::string &name, size_t chan=0) get_gain bladerf_sink_c::get_gain get_gain const std::string & name size_t chan 0

Get the actual gain setting of a named stage. name

the name of the gain stage

chan

the channel index 0 to N-1

the actual gain in dB

std::vector< std::string > std::vector< std::string > bladerf_sink_c::get_antennas (size_t chan=0) get_antennas bladerf_sink_c::get_antennas get_antennas size_t chan 0

Get the available antennas of the underlying radio hardware. chan

the channel index 0 to N-1

a vector of strings containing the names of available antennas

std::string std::string bladerf_sink_c::set_antenna (const std::string &antenna, size_t chan=0) set_antenna bladerf_sink_c::set_antenna set_antenna const std::string & antenna size_t chan 0

Select the active antenna of the underlying radio hardware. chan

the channel index 0 to N-1

the actual antenna's name

std::string std::string bladerf_sink_c::get_antenna (size_t chan=0) get_antenna bladerf_sink_c::get_antenna get_antenna size_t chan 0

Get the actual underlying radio hardware antenna setting. chan

the channel index 0 to N-1

the actual antenna's name

void void bladerf_sink_c::set_dc_offset (const std::complex< double > &offset, size_t chan) set_dc_offset bladerf_sink_c::set_dc_offset set_dc_offset const std::complex< double > & offset size_t chan

Set the TX frontend DC offset value. The value is complex to control both I and Q.

offset

the dc offset (1.0 is full-scale)

chan

the channel index 0 to N-1

void void bladerf_sink_c::set_iq_balance (const std::complex< double > &balance, size_t chan) set_iq_balance bladerf_sink_c::set_iq_balance set_iq_balance const std::complex< double > & balance size_t chan

Set the TX frontend IQ balance correction. Use this to adjust the magnitude and phase of I and Q.

balance

the complex correction value

chan

the channel index 0 to N-1

osmosdr::freq_range_t osmosdr::freq_range_t bladerf_sink_c::get_bandwidth_range (size_t chan=0) get_bandwidth_range bladerf_sink_c::get_bandwidth_range get_bandwidth_range size_t chan 0

Get the possible bandpass filter settings on the radio frontend. chan

the channel index 0 to N-1

a range of bandwidths in Hz

double double bladerf_sink_c::set_bandwidth (double bandwidth, size_t chan=0) set_bandwidth bladerf_sink_c::set_bandwidth set_bandwidth double bandwidth size_t chan 0

Set the bandpass filter on the radio frontend. bandwidth

the filter bandwidth in Hz, set to 0 for automatic selection

chan

the channel index 0 to N-1

the actual filter bandwidth in Hz

double double bladerf_sink_c::get_bandwidth (size_t chan=0) get_bandwidth bladerf_sink_c::get_bandwidth get_bandwidth size_t chan 0

Get the actual bandpass filter setting on the radio frontend. chan

the channel index 0 to N-1

the actual filter bandwidth in Hz

std::vector< std::string > std::vector< std::string > bladerf_sink_c::get_clock_sources (size_t mboard) get_clock_sources bladerf_sink_c::get_clock_sources get_clock_sources size_t mboard

Get a list of possible clock sources. mboard

which motherboard to get the list

a vector of strings for possible settings

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

Set the clock source for the device. This sets the source for a 10 Mhz reference clock. Typical options for source: internal, external, MIMO. source

a string representing the clock source

mboard

which motherboard to set the config

std::string std::string bladerf_sink_c::get_clock_source (size_t mboard) get_clock_source bladerf_sink_c::get_clock_source get_clock_source size_t mboard

Get the currently set clock source. mboard

which motherboard to get the config

the string representing the clock source

void void bladerf_sink_c::set_biastee_mode (const std::string &mode) set_biastee_mode bladerf_sink_c::set_biastee_mode const std::string & mode
std::vector< std::string > static std::vector< std::string > bladerf_sink_c::get_devices () get_devices bladerf_sink_c::get_devices
bladerf_common
bladerf_sink_c
gr::sync_block
sink_iface
bladerf_common
_dev
_pfx
_chanmap
_enables
bladerf_sink_c
gr::sync_block
std::map< bladerf_channel, bool >
std::map< bladerf_channel, int >
std::shared_ptr< struct bladerf >
sink_iface
std::basic_string< Char >
std::string
- bladerf_sink_c
  _16icbuf
- bladerf_sink_c
  _32fcbuf
- bladerf_sink_c
  _chanmap
- bladerf_sink_c
  _dev
- bladerf_sink_c
  _enables
- bladerf_sink_c
  _failures
- bladerf_sink_c
  _format
- bladerf_sink_c
  _in_burst
- bladerf_sink_c
  _layout
- bladerf_sink_c
  _num_buffers
- bladerf_sink_c
  _num_transfers
- bladerf_sink_c
  _pfx
- bladerf_sink_c
  _running
- bladerf_sink_c
  _samples_per_buffer
- bladerf_sink_c
  _stream_timeout
- bladerf_sink_c
  bladerf_common
- bladerf_sink_c
  bladerf_sink_c
- bladerf_sink_c
  chan2channel
- bladerf_sink_c
  channel2rfport
- bladerf_sink_c
  channel2str
- bladerf_sink_c
  d_mutex
- bladerf_sink_c
  DCOFF_SCALE
- bladerf_sink_c
  devices
- bladerf_sink_c
  filter_bandwidths
- bladerf_sink_c
  freq_range
- bladerf_sink_c
  GAIN_SCALE
- bladerf_sink_c
  get_antenna
- bladerf_sink_c
  get_antennas
- bladerf_sink_c
  get_antennas
- bladerf_sink_c
  get_bandwidth
- bladerf_sink_c
  get_bandwidth
- bladerf_sink_c
  get_bandwidth_range
- bladerf_sink_c
  get_board_type
- bladerf_sink_c
  get_center_freq
- bladerf_sink_c
  get_center_freq
- bladerf_sink_c
  get_channel_enable
- bladerf_sink_c
  get_clock_rate
- bladerf_sink_c
  get_clock_source
- bladerf_sink_c
  get_clock_sources
- bladerf_sink_c
  get_devices
- bladerf_sink_c
  get_freq_corr
- bladerf_sink_c
  get_freq_range
- bladerf_sink_c
  get_gain
- bladerf_sink_c
  get_gain
- bladerf_sink_c
  get_gain
- bladerf_sink_c
  get_gain
- bladerf_sink_c
  get_gain_mode
- bladerf_sink_c
  get_gain_mode
- bladerf_sink_c
  get_gain_names
- bladerf_sink_c
  get_gain_names
- bladerf_sink_c
  get_gain_range
- bladerf_sink_c
  get_gain_range
- bladerf_sink_c
  get_gain_range
- bladerf_sink_c
  get_gain_range
- bladerf_sink_c
  get_max_channels
- bladerf_sink_c
  get_max_channels
- bladerf_sink_c
  get_num_channels
- bladerf_sink_c
  get_sample_rate
- bladerf_sink_c
  get_sample_rate
- bladerf_sink_c
  get_sample_rates
- bladerf_sink_c
  get_smb_frequency
- bladerf_sink_c
  get_time_last_pps
- bladerf_sink_c
  get_time_now
- bladerf_sink_c
  get_time_source
- bladerf_sink_c
  get_time_sources
- bladerf_sink_c
  init
- bladerf_sink_c
  is_antenna_valid
- bladerf_sink_c
  make_bladerf_sink_c
- bladerf_sink_c
  MAX_CONSECUTIVE_FAILURES
- bladerf_sink_c
  name
- bladerf_sink_c
  PHASE_SCALE
- bladerf_sink_c
  sample_rates
- bladerf_sink_c
  SCALING_FACTOR
- bladerf_sink_c
  set_antenna
- bladerf_sink_c
  set_antenna
- bladerf_sink_c
  set_bandwidth
- bladerf_sink_c
  set_bandwidth
- bladerf_sink_c
  set_bb_gain
- bladerf_sink_c
  set_biastee_mode
- bladerf_sink_c
  set_center_freq
- bladerf_sink_c
  set_center_freq
- bladerf_sink_c
  set_channel_enable
- bladerf_sink_c
  set_clock_rate
- bladerf_sink_c
  set_clock_source
- bladerf_sink_c
  set_dc_offset
- bladerf_sink_c
  set_dc_offset
- bladerf_sink_c
  set_freq_corr
- bladerf_sink_c
  set_gain
- bladerf_sink_c
  set_gain
- bladerf_sink_c
  set_gain
- bladerf_sink_c
  set_gain
- bladerf_sink_c
  set_gain_mode
- bladerf_sink_c
  set_gain_mode
- bladerf_sink_c
  set_if_gain
- bladerf_sink_c
  set_iq_balance
- bladerf_sink_c
  set_iq_balance
- bladerf_sink_c
  set_sample_rate
- bladerf_sink_c
  set_sample_rate
- bladerf_sink_c
  set_smb_frequency
- bladerf_sink_c
  set_time_next_pps
- bladerf_sink_c
  set_time_now
- bladerf_sink_c
  set_time_source
- bladerf_sink_c
  set_time_unknown_pps
- bladerf_sink_c
  set_verbosity
- bladerf_sink_c
  start
- bladerf_sink_c
  stop
- bladerf_sink_c
  str2channel
- bladerf_sink_c
  transmit_with_tags
- bladerf_sink_c
  work