GNU Radio 3.3.0 C++ API
usrp2_sink_base Class Reference

#include <usrp2_sink_base.h>

Inheritance diagram for usrp2_sink_base:

List of all members.

Public Member Functions

 ~usrp2_sink_base ()
bool set_antenna (int ant)
 Set antenna.
bool set_gain (double gain)
 Set transmitter gain.
bool set_lo_offset (double frequency)
 Set transmitter LO offset frequency.
bool set_center_freq (double frequency, usrp2::tune_result *tr)
 Set transmitter center frequency.
bool set_interp (int interp_factor)
 Set transmit interpolation rate.
void default_scale_iq (int interpolation_factor, int *scale_i, int *scale_q)
 Calculate default scale_iq for given interpolation factor.
bool set_scale_iq (int scale_i, int scale_q)
 Set transmit IQ scale factors.
int interp ()
 Get transmit interpolation rate.
bool dac_rate (long *rate)
 Get DAC sample rate in Hz.
double gain_min ()
 Returns minimum Tx gain.
double gain_max ()
 Returns maximum Tx gain.
double gain_db_per_step ()
 Returns Tx gain db_per_step.
double freq_min ()
 Returns minimum Tx center frequency.
double freq_max ()
 Returns maximum Tx center frequency.
bool daughterboard_id (int *dbid)
 Get Tx daughterboard ID.
bool set_gpio_ddr (uint16_t value, uint16_t mask)
 Set daughterboard GPIO data direction register.
bool set_gpio_sels (std::string sels)
 Set daughterboard GPIO output selection register.
bool write_gpio (uint16_t value, uint16_t mask)
 Set daughterboard GPIO pin values.
bool read_gpio (uint16_t *value)
 Read daughterboard GPIO pin values.

Protected Member Functions

 usrp2_sink_base (const char *name, gr_io_signature_sptr input_signature, const std::string &ifc, const std::string &mac) throw (std::runtime_error)

Detailed Description

Base class for all USRP2 transmit blocks


Constructor & Destructor Documentation

usrp2_sink_base::usrp2_sink_base ( const char *  name,
gr_io_signature_sptr  input_signature,
const std::string &  ifc,
const std::string &  mac 
) throw (std::runtime_error) [protected]
usrp2_sink_base::~usrp2_sink_base ( )

Member Function Documentation

bool usrp2_sink_base::dac_rate ( long *  rate)

Get DAC sample rate in Hz.

bool usrp2_sink_base::daughterboard_id ( int *  dbid)

Get Tx daughterboard ID.

Parameters:
[out]dbidreturns the daughterboard id.

daughterboard id >= 0 if successful, -1 if no daugherboard installed, -2 if invalid EEPROM on daughterboard.

void usrp2_sink_base::default_scale_iq ( int  interpolation_factor,
int *  scale_i,
int *  scale_q 
)

Calculate default scale_iq for given interpolation factor.

double usrp2_sink_base::freq_max ( )

Returns maximum Tx center frequency.

double usrp2_sink_base::freq_min ( )

Returns minimum Tx center frequency.

double usrp2_sink_base::gain_db_per_step ( )

Returns Tx gain db_per_step.

double usrp2_sink_base::gain_max ( )

Returns maximum Tx gain.

double usrp2_sink_base::gain_min ( )

Returns minimum Tx gain.

int usrp2_sink_base::interp ( )

Get transmit interpolation rate.

bool usrp2_sink_base::read_gpio ( uint16_t value)

Read daughterboard GPIO pin values.

bool usrp2_sink_base::set_antenna ( int  ant)

Set antenna.

bool usrp2_sink_base::set_center_freq ( double  frequency,
usrp2::tune_result tr 
)

Set transmitter center frequency.

bool usrp2_sink_base::set_gain ( double  gain)

Set transmitter gain.

bool usrp2_sink_base::set_gpio_ddr ( uint16_t  value,
uint16_t  mask 
)

Set daughterboard GPIO data direction register.

bool usrp2_sink_base::set_gpio_sels ( std::string  sels)

Set daughterboard GPIO output selection register.

bool usrp2_sink_base::set_interp ( int  interp_factor)

Set transmit interpolation rate.

bool usrp2_sink_base::set_lo_offset ( double  frequency)

Set transmitter LO offset frequency.

bool usrp2_sink_base::set_scale_iq ( int  scale_i,
int  scale_q 
)

Set transmit IQ scale factors.

bool usrp2_sink_base::write_gpio ( uint16_t  value,
uint16_t  mask 
)

Set daughterboard GPIO pin values.


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