Universal Software Radio Peripheral
|
#include <db_wbx.h>
Public Member Functions | |
wbx_base (usrp_basic_sptr usrp, int which) | |
~wbx_base () | |
struct freq_result_t | set_freq (double freq) |
float | gain_min () |
float | gain_max () |
float | gain_db_per_step () |
bool | set_gain (float gain) |
bool | is_quadrature () |
Protected Member Functions | |
void | shutdown () |
virtual bool | _lock_detect () |
bool | _tx_write_oe (int value, int mask) |
bool | _rx_write_oe (int value, int mask) |
bool | _tx_write_io (int value, int mask) |
bool | _rx_write_io (int value, int mask) |
virtual bool | _rx_read_io () |
bool | _tx_read_io () |
bool | _compute_regs (double freq) |
virtual double | _refclk_freq () |
int | _refclk_divisor () |
bool | _set_pga (float pga_gain) |
Protected Attributes | |
bool | d_first |
int | d_spi_format |
int | d_spi_enable |
double | d_lo_offset |
wbx_base::wbx_base | ( | usrp_basic_sptr | usrp, |
int | which | ||
) |
References _rx_write_io(), _rx_write_oe(), _tx_write_io(), _tx_write_oe(), d_first, d_spi_enable, d_spi_format, db_base::d_which, MReset, PLL_ENABLE, RX2_RX1N, RX_TXN, RXENABLE, SELA0, SELA1, SELB0, SELB1, db_base::set_auto_tr(), TX_ENB_MIX, TX_ENB_VGA, and TX_POWER.
wbx_base::~wbx_base | ( | ) |
References shutdown().
bool wbx_base::_compute_regs | ( | double | freq | ) | [protected] |
bool wbx_base::_lock_detect | ( | ) | [protected, virtual] |
Reimplemented in db_wbx_lo_tx, and db_wbx_lo_rx.
References _rx_read_io(), and PLL_LOCK_DETECT.
int wbx_base::_refclk_divisor | ( | ) | [protected, virtual] |
Reimplemented from db_base.
Referenced by _refclk_freq().
double wbx_base::_refclk_freq | ( | ) | [protected, virtual] |
Reimplemented from db_base.
Reimplemented in db_wbx_lo_tx, and db_wbx_lo_rx.
References _refclk_divisor().
bool wbx_base::_rx_read_io | ( | ) | [protected, virtual] |
References db_base::d_which.
Referenced by _lock_detect().
bool wbx_base::_rx_write_io | ( | int | value, |
int | mask | ||
) | [protected] |
Reimplemented in db_wbx_lo_tx, and db_wbx_lo_rx.
References db_base::d_which.
Referenced by wbx_base().
bool wbx_base::_rx_write_oe | ( | int | value, |
int | mask | ||
) | [protected] |
References db_base::d_which.
Referenced by wbx_base().
bool wbx_base::_set_pga | ( | float | pga_gain | ) | [protected] |
References db_base::d_which.
Referenced by wbx_base_rx::set_gain(), and wbx_base_tx::wbx_base_tx().
bool wbx_base::_tx_read_io | ( | ) | [protected] |
References db_base::d_which.
bool wbx_base::_tx_write_io | ( | int | value, |
int | mask | ||
) | [protected] |
References db_base::d_which.
Referenced by wbx_base().
bool wbx_base::_tx_write_oe | ( | int | value, |
int | mask | ||
) | [protected] |
References db_base::d_which.
Referenced by wbx_base().
float wbx_base::gain_db_per_step | ( | ) | [virtual] |
Implements db_base.
Reimplemented in db_wbx_lo_tx, and db_wbx_lo_rx.
float wbx_base::gain_max | ( | ) | [virtual] |
Implements db_base.
Reimplemented in db_wbx_lo_tx, and db_wbx_lo_rx.
Referenced by wbx_base_rx::set_gain().
float wbx_base::gain_min | ( | ) | [virtual] |
Implements db_base.
Reimplemented in db_wbx_lo_tx, and db_wbx_lo_rx.
Referenced by wbx_base_rx::set_gain().
bool wbx_base::is_quadrature | ( | ) | [virtual] |
Implements db_base.
struct freq_result_t wbx_base::set_freq | ( | double | freq | ) | [read, virtual] |
Implements db_base.
bool wbx_base::set_gain | ( | float | gain | ) | [virtual] |
Implements db_base.
Reimplemented in wbx_base_rx, and db_wbx_lo_tx.
void wbx_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 from db_base.
References db_base::d_is_shutdown, db_base::d_which, POWER_UP, and db_base::set_auto_tr().
Referenced by ~wbx_base().
bool wbx_base::d_first [protected] |
Referenced by wbx_base().
double wbx_base::d_lo_offset [protected] |
Reimplemented from db_base.
Referenced by wbx_base_rx::wbx_base_rx(), and wbx_base_tx::wbx_base_tx().
int wbx_base::d_spi_enable [protected] |
Referenced by wbx_base().
int wbx_base::d_spi_format [protected] |
Referenced by wbx_base().