Universal Software Radio Peripheral
|
#include <db_wbxng.h>
Public Member Functions | |
wbxng_base (usrp_basic_sptr usrp, int which) | |
~wbxng_base () | |
struct freq_result_t | set_freq (double freq) |
bool | is_quadrature () |
double | freq_min () |
double | freq_max () |
Protected Member Functions | |
void | _write_spi (std::string data) |
int | _refclk_divisor () |
bool | _get_locked () |
bool | _set_pga (float pga_gain) |
Protected Attributes | |
bool | d_first |
int | d_spi_format |
int | d_spi_enable |
int | d_power_on |
int | d_PD |
boost::shared_ptr< adf4350 > | d_common |
wbxng_base::wbxng_base | ( | usrp_basic_sptr | usrp, |
int | which | ||
) |
wbxng_base::~wbxng_base | ( | ) |
bool wbxng_base::_get_locked | ( | void | ) | [protected] |
References db_base::d_which, PLL_LOCK_DETECT, usrp_basic::read_io(), and db_base::usrp().
int wbxng_base::_refclk_divisor | ( | ) | [protected, virtual] |
Reimplemented from db_base.
bool wbxng_base::_set_pga | ( | float | pga_gain | ) | [protected] |
References db_base::d_which, usrp_basic::set_pga(), and db_base::usrp().
Referenced by db_wbxng_rx::set_gain(), and db_wbxng_tx::set_gain().
void wbxng_base::_write_spi | ( | std::string | data | ) | [protected] |
References usrp_basic::_write_spi(), d_spi_enable, d_spi_format, and db_base::usrp().
Referenced by db_wbxng_rx::db_wbxng_rx(), and db_wbxng_tx::db_wbxng_tx().
bool wbxng_base::is_quadrature | ( | ) | [virtual] |
Implements db_base.
struct freq_result_t wbxng_base::set_freq | ( | double | freq | ) | [read, virtual] |
Implements db_base.
References freq_result_t::ok.
boost::shared_ptr<adf4350> wbxng_base::d_common [protected] |
Referenced by db_wbxng_rx::db_wbxng_rx(), db_wbxng_tx::db_wbxng_tx(), freq_max(), and freq_min().
bool wbxng_base::d_first [protected] |
Referenced by wbxng_base().
int wbxng_base::d_PD [protected] |
int wbxng_base::d_power_on [protected] |
int wbxng_base::d_spi_enable [protected] |
Referenced by _write_spi(), db_wbxng_rx::db_wbxng_rx(), and db_wbxng_tx::db_wbxng_tx().
int wbxng_base::d_spi_format [protected] |
Referenced by _write_spi(), and wbxng_base().