Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

GrUsrpSource Class Reference

#include <GrUsrpSource.h>

Inheritance diagram for GrUsrpSource:

GrSource VrSigProc List of all members.

Public Member Functions

 GrUsrpSource (int which_board, unsigned int usrp_rx_config, unsigned int adc_clk_div, unsigned int decim_rate)
 ~GrUsrpSource ()
GrUsrpSourcemake (int which_board, unsigned int usrp_rx_config, unsigned int adc_clk_div, unsigned int decim_rate)
virtual const char * name ()
 default name for a module (override with actual name)
virtual int work2 (VrSampleRange output, void *o[])
bool set_adc_clk_div (unsigned int div)
bool set_decim_rate (unsigned int rate)
bool set_rx_freq (int channel, double freq)
bool set_ext_clk_div (unsigned int div)
bool _set_decim_reg (unsigned int regval)
double get_oscillator_freq () const
unsigned int get_adc_clk_div () const
unsigned int get_decim_rate () const
double get_rx_freq (int channel) const
unsigned int get_ext_clk_div () const

Private Attributes

int d_noutputs
usrp_rx * d_usrp

Constructor & Destructor Documentation

GrUsrpSource::GrUsrpSource int  which_board,
unsigned int  usrp_rx_config,
unsigned int  adc_clk_div,
unsigned int  decim_rate
 

usrp_rx_config specifies which and how many of the four possible A/D streams will be read. adc_clk_div specifies the divisor used to divide down the on-board master clock (currently 125MHz, but will be 120MHz). Legal values are in the range 2 through 6, inclusive. The resulting clock drives the A/D converters. decim_rate specifies the decimation rate through the CIC filter associated with each rx channel in the FPGA.

The output is N streams of VrComplex, where N is determined by the usrp_rx_config value. See usrp_config.h.

GrUsrpSource::~GrUsrpSource  ) 
 


Member Function Documentation

bool GrUsrpSource::_set_decim_reg unsigned int  regval  ) 
 

unsigned int GrUsrpSource::get_adc_clk_div  )  const
 

unsigned int GrUsrpSource::get_decim_rate  )  const
 

unsigned int GrUsrpSource::get_ext_clk_div  )  const
 

double GrUsrpSource::get_oscillator_freq  )  const
 

double GrUsrpSource::get_rx_freq int  channel  )  const
 

GrUsrpSource* GrUsrpSource::make int  which_board,
unsigned int  usrp_rx_config,
unsigned int  adc_clk_div,
unsigned int  decim_rate
 

invoke constructor and return instance, or 0 if trouble

virtual const char* GrUsrpSource::name  )  [inline, virtual]
 

default name for a module (override with actual name)

Reimplemented from GrSource.

bool GrUsrpSource::set_adc_clk_div unsigned int  div  ) 
 

bool GrUsrpSource::set_decim_rate unsigned int  rate  ) 
 

bool GrUsrpSource::set_ext_clk_div unsigned int  div  ) 
 

bool GrUsrpSource::set_rx_freq int  channel,
double  freq
 

int GrUsrpSource::work2 VrSampleRange  output,
void *  o[]
[virtual]
 

Implements GrSource.


Member Data Documentation

int GrUsrpSource::d_noutputs [private]
 

usrp_rx* GrUsrpSource::d_usrp [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Aug 4 02:22:14 2004 for GNU Radio by doxygen 1.3.8