fun_ofdm  1.0
802.11a Physical Layer for USRP
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
fun::usrp_params Struct Reference

The usrp_params struct which holds parameters for the USRP object such as center frequency, sample rate, tx/rx gain, etc.. More...

#include <usrp.h>

Public Member Functions

 usrp_params (double freq=5.72e9, double rate=5e6, double tx_gain=20, double rx_gain=20, double tx_amp=1.0, std::string device_addr="")
 Constructor for usrp_params. Simply initializes member fields to be looked up later. More...
 

Public Attributes

double freq
 Center Frequency. More...
 
double rate
 Sample Rate. More...
 
double tx_gain
 Transmit Gain (0-35 for USRP N210) More...
 
double rx_gain
 Receive Gain (0-35 for USRP N210) More...
 
double tx_amp
 Transmit Amplitude - scales all tx samples before sending to USRP. More...
 
std::string device_addr
 IP Address of USRP as a string - i.e. "192.168.10.2" or "" to find automatically. More...
 

Detailed Description

The usrp_params struct which holds parameters for the USRP object such as center frequency, sample rate, tx/rx gain, etc..

Definition at line 25 of file usrp.h.

Constructor & Destructor Documentation

fun::usrp_params::usrp_params ( double  freq = 5.72e9,
double  rate = 5e6,
double  tx_gain = 20,
double  rx_gain = 20,
double  tx_amp = 1.0,
std::string  device_addr = "" 
)
inline

Constructor for usrp_params. Simply initializes member fields to be looked up later.

Parameters
freq-> freq
rate-> rate
tx_gain-> tx_gain
rx_gain-> rx_gain
tx_amp-> tx_amp
device_addr-> device_addr

Definition at line 43 of file usrp.h.

43  :
44  freq(freq),
45  rate(rate),
48  tx_amp(tx_amp),
50  {
51  }

Member Data Documentation

std::string fun::usrp_params::device_addr

IP Address of USRP as a string - i.e. "192.168.10.2" or "" to find automatically.

Definition at line 32 of file usrp.h.

Referenced by fun::usrp::usrp().

double fun::usrp_params::freq

Center Frequency.

Definition at line 27 of file usrp.h.

Referenced by fun::usrp::usrp().

double fun::usrp_params::rate

Sample Rate.

Definition at line 28 of file usrp.h.

Referenced by fun::usrp::usrp().

double fun::usrp_params::rx_gain

Receive Gain (0-35 for USRP N210)

Definition at line 30 of file usrp.h.

Referenced by fun::usrp::usrp().

double fun::usrp_params::tx_amp

Transmit Amplitude - scales all tx samples before sending to USRP.

Definition at line 31 of file usrp.h.

Referenced by fun::usrp::send_burst_sync().

double fun::usrp_params::tx_gain

Transmit Gain (0-35 for USRP N210)

Definition at line 29 of file usrp.h.

Referenced by fun::usrp::usrp().


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