GNU Radio 3.4.0 C++ API
|
Abstract base class for all USRP daughterboards. More...
#include <db_base.h>
Public Member Functions | |
db_base (boost::shared_ptr< usrp_basic > usrp, int which) | |
virtual | ~db_base () |
int | dbid () |
std::string | name () |
std::string | side_and_name () |
int | which () |
bool | bypass_adc_buffers (bool bypass) |
bool | set_atr_mask (int v) |
bool | set_atr_txval (int v) |
bool | set_atr_rxval (int v) |
bool | set_atr_tx_delay (int v) |
bool | set_atr_rx_delay (int v) |
bool | set_lo_offset (double offset) |
double | lo_offset () |
virtual float | gain_min ()=0 |
virtual float | gain_max ()=0 |
virtual float | gain_db_per_step ()=0 |
virtual double | freq_min ()=0 |
virtual double | freq_max ()=0 |
virtual struct freq_result_t | set_freq (double target_freq)=0 |
virtual bool | set_gain (float gain)=0 |
virtual bool | is_quadrature ()=0 |
virtual bool | i_and_q_swapped () |
virtual bool | spectrum_inverted () |
virtual bool | set_enable (bool on) |
virtual bool | set_auto_tr (bool on) |
virtual bool | select_rx_antenna (int which_antenna) |
virtual bool | select_rx_antenna (const std::string &which_antenna) |
virtual bool | set_bw (float bw) |
Protected Member Functions | |
void | _enable_refclk (bool enable) |
virtual double | _refclk_freq () |
virtual int | _refclk_divisor () |
usrp_basic * | usrp () |
virtual void | shutdown () |
Protected Attributes | |
bool | d_is_shutdown |
usrp_basic * | d_raw_usrp |
int | d_which |
double | d_lo_offset |
Friends | |
class | usrp_basic |
Abstract base class for all USRP daughterboards.
db_base::db_base | ( | boost::shared_ptr< usrp_basic > | usrp, |
int | which | ||
) |
virtual db_base::~db_base | ( | ) | [virtual] |
void db_base::_enable_refclk | ( | bool | enable | ) | [protected] |
virtual int db_base::_refclk_divisor | ( | ) | [protected, virtual] |
Reimplemented in flexrf_base, db_flexrf_2400_tx_mimo_a, db_flexrf_2400_rx_mimo_a, db_flexrf_2400_tx_mimo_b, db_flexrf_2400_rx_mimo_b, db_flexrf_1800_tx_mimo_a, db_flexrf_1800_rx_mimo_a, db_flexrf_1800_tx_mimo_b, db_flexrf_1800_rx_mimo_b, db_flexrf_1200_tx_mimo_a, db_flexrf_1200_rx_mimo_a, db_flexrf_1200_tx_mimo_b, db_flexrf_1200_rx_mimo_b, db_flexrf_900_tx_mimo_a, db_flexrf_900_rx_mimo_a, db_flexrf_900_tx_mimo_b, db_flexrf_900_rx_mimo_b, db_flexrf_400_tx_mimo_a, db_flexrf_400_rx_mimo_a, db_flexrf_400_tx_mimo_b, db_flexrf_400_rx_mimo_b, db_tv_rx_mimo, wbxng_base, and wbx_base.
virtual double db_base::_refclk_freq | ( | ) | [protected, virtual] |
Reimplemented in wbx_base, db_wbx_lo_tx, and db_wbx_lo_rx.
int db_base::dbid | ( | ) |
virtual double db_base::freq_max | ( | ) | [pure virtual] |
Implemented in db_basic_tx, db_basic_rx, db_lf_rx, db_lf_tx, db_bitshark_rx, db_dbs_rx, db_dtt754, db_dtt768, flexrf_base, db_tv_rx, wbxng_base, and db_xcvr2450_base.
virtual double db_base::freq_min | ( | ) | [pure virtual] |
Implemented in db_basic_tx, db_basic_rx, db_lf_rx, db_lf_tx, db_bitshark_rx, db_dbs_rx, db_dtt754, db_dtt768, flexrf_base, db_tv_rx, wbxng_base, and db_xcvr2450_base.
virtual float db_base::gain_db_per_step | ( | ) | [pure virtual] |
Implemented in db_basic_tx, db_basic_rx, db_bitshark_rx, db_dbs_rx, db_dtt754, db_dtt768, flexrf_base_tx, db_flexrf_2200_rx, db_flexrf_2400_rx, db_flexrf_1200_rx, db_flexrf_1800_rx, db_flexrf_900_rx, db_flexrf_400_rx, db_tv_rx, db_wbxng_tx, db_wbxng_rx, db_xcvr2450_tx, db_xcvr2450_rx, wbx_base, db_wbx_lo_tx, and db_wbx_lo_rx.
virtual float db_base::gain_max | ( | ) | [pure virtual] |
Implemented in db_basic_tx, db_basic_rx, db_bitshark_rx, db_dbs_rx, db_dtt754, db_dtt768, flexrf_base_tx, db_flexrf_2200_rx, db_flexrf_2400_rx, db_flexrf_1200_rx, db_flexrf_1800_rx, db_flexrf_900_rx, db_flexrf_400_rx, db_tv_rx, db_wbxng_tx, db_wbxng_rx, db_xcvr2450_tx, db_xcvr2450_rx, wbx_base, db_wbx_lo_tx, and db_wbx_lo_rx.
virtual float db_base::gain_min | ( | ) | [pure virtual] |
Implemented in db_basic_tx, db_basic_rx, db_bitshark_rx, db_dbs_rx, db_dtt754, db_dtt768, flexrf_base_tx, db_flexrf_2200_rx, db_flexrf_2400_rx, db_flexrf_1200_rx, db_flexrf_1800_rx, db_flexrf_900_rx, db_flexrf_400_rx, db_tv_rx, db_wbxng_tx, db_wbxng_rx, db_xcvr2450_tx, db_xcvr2450_rx, wbx_base, db_wbx_lo_tx, and db_wbx_lo_rx.
virtual bool db_base::i_and_q_swapped | ( | ) | [virtual] |
Reimplemented in db_bitshark_rx, db_flexrf_2200_rx, db_flexrf_2400_rx, db_flexrf_1200_rx, db_flexrf_1800_rx, db_flexrf_900_rx, db_flexrf_400_rx, db_wbxng_rx, db_xcvr2450_tx, and wbx_base_rx.
virtual bool db_base::is_quadrature | ( | ) | [pure virtual] |
Implemented in db_basic_tx, db_basic_rx, db_bitshark_rx, db_dbs_rx, db_dtt754, db_dtt768, flexrf_base, db_tv_rx, wbxng_base, db_xcvr2450_base, and wbx_base.
double db_base::lo_offset | ( | ) | [inline] |
References d_lo_offset.
std::string db_base::name | ( | ) |
virtual bool db_base::select_rx_antenna | ( | int | which_antenna | ) | [virtual] |
Reimplemented in flexrf_base_rx, db_wbxng_rx, and wbx_base_rx.
virtual bool db_base::select_rx_antenna | ( | const std::string & | which_antenna | ) | [virtual] |
Reimplemented in flexrf_base_rx, db_wbxng_rx, and wbx_base_rx.
bool db_base::set_atr_mask | ( | int | v | ) |
bool db_base::set_atr_rx_delay | ( | int | v | ) |
bool db_base::set_atr_rxval | ( | int | v | ) |
bool db_base::set_atr_tx_delay | ( | int | v | ) |
bool db_base::set_atr_txval | ( | int | v | ) |
Reimplemented in flexrf_base_tx, flexrf_base_rx, db_wbxng_tx, db_wbxng_rx, wbx_base_tx, and wbx_base_rx.
virtual bool db_base::set_bw | ( | float | bw | ) | [virtual] |
Reimplemented in db_bitshark_rx, db_dbs_rx, db_dtt754, and db_dtt768.
Reimplemented in flexrf_base_tx, db_wbxng_tx, and wbx_base_tx.
virtual struct freq_result_t db_base::set_freq | ( | double | target_freq | ) | [read, pure virtual] |
Implemented in db_basic_tx, db_basic_rx, db_bitshark_rx, db_dbs_rx, db_dtt754, db_dtt768, flexrf_base, db_tv_rx, wbxng_base, db_xcvr2450_base, and wbx_base.
virtual bool db_base::set_gain | ( | float | gain | ) | [pure virtual] |
Implemented in db_basic_tx, db_basic_rx, db_bitshark_rx, db_dbs_rx, db_dtt754, db_dtt768, flexrf_base_tx, flexrf_base_rx, db_tv_rx, db_wbxng_tx, db_wbxng_rx, db_xcvr2450_tx, db_xcvr2450_rx, wbx_base, wbx_base_rx, and db_wbx_lo_tx.
bool db_base::set_lo_offset | ( | double | offset | ) |
virtual void db_base::shutdown | ( | ) | [protected, virtual] |
Called to shutdown daughterboard. Called from dtor and usrp_basic dtor.
N.B., any class that overrides shutdown MUST call shutdown in its destructor.
Reimplemented in db_bitshark_rx, db_dbs_rx, flexrf_base_tx, flexrf_base_rx, db_wbxng_tx, db_wbxng_rx, db_xcvr2450_tx, db_xcvr2450_rx, and wbx_base.
std::string db_base::side_and_name | ( | ) |
virtual bool db_base::spectrum_inverted | ( | ) | [virtual] |
usrp_basic* db_base::usrp | ( | ) | [inline, protected] |
Reimplemented in db_wbx_lo_tx, and db_wbx_lo_rx.
References d_raw_usrp.
int db_base::which | ( | ) | [inline] |
References d_which.
friend class usrp_basic [friend] |
bool db_base::d_is_shutdown [protected] |
double db_base::d_lo_offset [protected] |
Reimplemented in wbx_base.
Referenced by lo_offset().
usrp_basic* db_base::d_raw_usrp [protected] |
Referenced by usrp().
int db_base::d_which [protected] |
Referenced by which().