GNU Radio 3.3.0 C++ API
db_base Struct Reference

Abstract base class for all USRP daughterboards. More...

#include <db_base.h>

Inheritance diagram for db_base:

List of all members.

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)

Public Attributes

uint16_t dbid
uint16_t is_tx: 1
uint16_t is_quadrature: 1
uint16_t i_and_q_swapped: 1
uint16_t spectrum_inverted: 1
uint16_t output_enables
uint16_t used_pins
u2_fxpt_freq_t freq_min
u2_fxpt_freq_t freq_max
u2_fxpt_gain_t gain_min
u2_fxpt_gain_t gain_max
u2_fxpt_gain_t gain_step_size
u2_fxpt_freq_t default_lo_offset
u2_fxpt_freq_t current_lo_offset
uint32_t atr_mask
uint32_t atr_txval
uint32_t atr_rxval
bool(* init )(struct db_base *)
 delay in clk ticks from when Tx fifo gets data to when T/R switches
bool(* set_freq )(struct db_base *, u2_fxpt_freq_t freq, u2_fxpt_freq_t *dc)
bool(* set_gain )(struct db_base *, u2_fxpt_gain_t gain)
bool(* set_tx_enable )(struct db_base *, bool on)
bool(* set_antenna )(struct db_base *, int ant)

Protected Member Functions

void _enable_refclk (bool enable)
virtual double _refclk_freq ()
virtual int _refclk_divisor ()
usrp_basicusrp ()
virtual void shutdown ()

Protected Attributes

bool d_is_shutdown
usrp_basicd_raw_usrp
int d_which
double d_lo_offset

Friends

class usrp_basic

Detailed Description

Abstract base class for all USRP daughterboards.

"base class" for firmware version of daughterboard code


Constructor & Destructor Documentation

db_base::db_base ( boost::shared_ptr< usrp_basic usrp,
int  which 
)
virtual db_base::~db_base ( ) [virtual]

Member Function Documentation

void db_base::_enable_refclk ( bool  enable) [protected]
virtual double db_base::_refclk_freq ( ) [protected, virtual]

Reimplemented in wbx_base, db_wbx_lo_tx, and db_wbx_lo_rx.

bool db_base::bypass_adc_buffers ( bool  bypass)
int db_base::dbid ( )
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, wbxng_base_rx, and wbx_base_rx.

virtual bool db_base::select_rx_antenna ( const std::string &  which_antenna) [virtual]

Reimplemented in flexrf_base_rx, wbxng_base_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)
virtual bool db_base::set_auto_tr ( bool  on) [virtual]
virtual bool db_base::set_bw ( float  bw) [virtual]

Reimplemented in db_bitshark_rx, db_dbs_rx, db_dtt754, and db_dtt768.

virtual bool db_base::set_enable ( bool  on) [virtual]

Reimplemented in flexrf_base_tx, wbxng_base_tx, and wbx_base_tx.

virtual struct freq_result_t db_base::set_freq ( double  target_freq) [read, pure virtual]
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, wbxng_base_tx, wbxng_base_rx, db_xcvr2450_tx, db_xcvr2450_rx, and wbx_base.

std::string db_base::side_and_name ( )
virtual bool db_base::spectrum_inverted ( ) [virtual]

Reimplemented in db_dtt754, db_dtt768, and db_tv_rx.

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.


Friends And Related Function Documentation

friend class usrp_basic [friend]

Member Data Documentation

double db_base::d_lo_offset [protected]

Reimplemented in wbx_base.

Referenced by lo_offset().

Referenced by usrp().

int db_base::d_which [protected]

Referenced by which().

bool(* db_base::init)(struct db_base *)

delay in clk ticks from when Tx fifo gets data to when T/R switches

delay in clk ticks from when Tx fifo goes empty to when T/R switches

bool(* db_base::set_antenna)(struct db_base *, int ant)

The documentation for this struct was generated from the following files: