db_base Class Reference

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

#include <db_base.h>

Inheritance diagram for db_base:

Inheritance graph
[legend]
Collaboration diagram for db_base:

Collaboration graph
[legend]

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)

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.

Constructor & Destructor Documentation

db_base::db_base ( boost::shared_ptr< usrp_basic usrp,
int  which 
)

db_base::~db_base (  )  [virtual]

References shutdown().


Member Function Documentation

void db_base::_enable_refclk ( bool  enable  )  [protected]

int db_base::_refclk_divisor (  )  [protected, virtual]

double db_base::_refclk_freq (  )  [protected, virtual]

bool db_base::bypass_adc_buffers ( bool  bypass  ) 

int db_base::dbid (  ) 

References d_which, usrp_basic::daughterboard_id(), and usrp().

Referenced by name().

virtual double db_base::freq_max (  )  [pure virtual]

virtual double db_base::freq_min (  )  [pure virtual]

virtual float db_base::gain_db_per_step (  )  [pure virtual]

virtual float db_base::gain_max (  )  [pure virtual]

virtual float db_base::gain_min (  )  [pure virtual]

bool db_base::i_and_q_swapped (  )  [virtual]

virtual bool db_base::is_quadrature (  )  [pure virtual]

double db_base::lo_offset (  )  [inline]

References d_lo_offset.

std::string db_base::name (  ) 

References dbid(), and usrp_dbid_to_string().

Referenced by side_and_name().

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

Reimplemented in flexrf_base_rx, and wbx_base_rx.

bool db_base::select_rx_antenna ( int  which_antenna  )  [virtual]

Reimplemented in flexrf_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  ) 

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

bool db_base::set_bw ( float  bw  )  [virtual]

Reimplemented in db_dbs_rx, db_dtt754, and db_dtt768.

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

Reimplemented in flexrf_base_tx, and wbx_base_tx.

virtual struct freq_result_t db_base::set_freq ( double  target_freq  )  [read, pure virtual]

virtual bool db_base::set_gain ( float  gain  )  [pure virtual]

bool db_base::set_lo_offset ( double  offset  ) 

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_dbs_rx, flexrf_base_tx, flexrf_base_rx, wbx_base, db_xcvr2450_tx, and db_xcvr2450_rx.

References d_is_shutdown.

Referenced by ~db_base().

std::string db_base::side_and_name (  ) 

References d_which, and name().

Referenced by operator<<().

bool db_base::spectrum_inverted (  )  [virtual]

Reimplemented in db_dtt754, db_dtt768, and db_tv_rx.

usrp_basic* db_base::usrp (  )  [inline, protected]

int db_base::which (  )  [inline]

References d_which.


Friends And Related Function Documentation

friend class usrp_basic [friend]


Member Data Documentation

bool db_base::d_is_shutdown [protected]

double db_base::d_lo_offset [protected]

Reimplemented in wbx_base.

Referenced by lo_offset(), and set_lo_offset().

Referenced by usrp().

int db_base::d_which [protected]


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

Generated on Wed Jul 29 06:21:32 2009 for Universal Software Radio Peripheral by  doxygen 1.5.9