GNU Radio 3.3.0 C++ API
|
#include <usrp2_source_base.h>
Public Member Functions | |
~usrp2_source_base () | |
bool | set_antenna (int ant) |
Set antenna. | |
bool | set_gain (double gain) |
Set receiver gain. | |
bool | set_lo_offset (double frequency) |
Set receive LO offset frequency. | |
bool | set_center_freq (double frequency, usrp2::tune_result *tr) |
Set receiver center frequency. | |
bool | set_decim (int decimation_factor) |
Set receive decimation rate. | |
bool | set_scale_iq (int scale_i, int scale_q) |
Set receive IQ scale factors. | |
int | decim () |
Get receive decimation rate. | |
bool | adc_rate (long *rate) |
Get the ADC sample rate. | |
double | gain_min () |
Returns minimum Rx gain. | |
double | gain_max () |
Returns maximum Rx gain. | |
double | gain_db_per_step () |
Returns Rx gain db_per_step. | |
double | freq_min () |
Returns minimum Rx center frequency. | |
double | freq_max () |
Returns maximum Rx center frequency. | |
bool | daughterboard_id (int *dbid) |
Get Rx daughterboard ID. | |
unsigned int | overruns () |
Returns number of receiver overruns. | |
unsigned int | missing () |
Returns number of missing sequence numbers. | |
virtual bool | start () |
Called by scheduler when starting flowgraph. | |
virtual bool | stop () |
Called by scheduler when stopping flowgraph. | |
bool | set_gpio_ddr (uint16_t value, uint16_t mask) |
Set daughterboard GPIO data direction register. | |
bool | set_gpio_sels (std::string sels) |
Set daughterboard GPIO output selection register. | |
bool | write_gpio (uint16_t value, uint16_t mask) |
Set daughterboard GPIO pin values. | |
bool | read_gpio (uint16_t *value) |
Read daughterboard GPIO pin values. | |
bool | enable_gpio_streaming (int enable) |
Enable streaming GPIO in sample LSBs. | |
Protected Member Functions | |
usrp2_source_base (const char *name, gr_io_signature_sptr output_signature, const std::string &ifc, const std::string &mac) throw (std::runtime_error) |
Base class for all USRP2 source blocks
usrp2_source_base::usrp2_source_base | ( | const char * | name, |
gr_io_signature_sptr | output_signature, | ||
const std::string & | ifc, | ||
const std::string & | mac | ||
) | throw (std::runtime_error) [protected] |
usrp2_source_base::~usrp2_source_base | ( | ) |
bool usrp2_source_base::adc_rate | ( | long * | rate | ) |
Get the ADC sample rate.
bool usrp2_source_base::daughterboard_id | ( | int * | dbid | ) |
Get Rx daughterboard ID.
[out] | dbid | returns the daughterboard id. |
daughterboard id >= 0 if successful, -1 if no daugherboard installed, -2 if invalid EEPROM on daughterboard.
int usrp2_source_base::decim | ( | ) |
Get receive decimation rate.
bool usrp2_source_base::enable_gpio_streaming | ( | int | enable | ) |
Enable streaming GPIO in sample LSBs.
double usrp2_source_base::freq_max | ( | ) |
Returns maximum Rx center frequency.
double usrp2_source_base::freq_min | ( | ) |
Returns minimum Rx center frequency.
double usrp2_source_base::gain_db_per_step | ( | ) |
Returns Rx gain db_per_step.
double usrp2_source_base::gain_max | ( | ) |
Returns maximum Rx gain.
double usrp2_source_base::gain_min | ( | ) |
Returns minimum Rx gain.
unsigned int usrp2_source_base::missing | ( | ) |
Returns number of missing sequence numbers.
unsigned int usrp2_source_base::overruns | ( | ) |
Returns number of receiver overruns.
bool usrp2_source_base::set_antenna | ( | int | ant | ) |
Set antenna.
bool usrp2_source_base::set_center_freq | ( | double | frequency, |
usrp2::tune_result * | tr | ||
) |
Set receiver center frequency.
bool usrp2_source_base::set_decim | ( | int | decimation_factor | ) |
Set receive decimation rate.
bool usrp2_source_base::set_gain | ( | double | gain | ) |
Set receiver gain.
Set daughterboard GPIO data direction register.
bool usrp2_source_base::set_gpio_sels | ( | std::string | sels | ) |
Set daughterboard GPIO output selection register.
bool usrp2_source_base::set_lo_offset | ( | double | frequency | ) |
Set receive LO offset frequency.
bool usrp2_source_base::set_scale_iq | ( | int | scale_i, |
int | scale_q | ||
) |
Set receive IQ scale factors.
virtual bool usrp2_source_base::start | ( | ) | [virtual] |
Called by scheduler when starting flowgraph.
Reimplemented from usrp2_base.
virtual bool usrp2_source_base::stop | ( | ) | [virtual] |
Called by scheduler when stopping flowgraph.
Reimplemented from usrp2_base.
Set daughterboard GPIO pin values.