GNU Radio's CYBERRADIO Package
gr::CyberRadio::NDR651_duc_sink_mk2_impl Class Reference

#include <NDR651_duc_sink_mk2_impl.h>

Inheritance diagram for gr::CyberRadio::NDR651_duc_sink_mk2_impl:
gr::CyberRadio::NDR651_duc_sink_mk2

Public Member Functions

 NDR651_duc_sink_mk2_impl (const std::string &radio_host_name="", unsigned int radio_tcp_port=8617, unsigned int tengig_iface_index=1, float iq_scale_factor=1.0, unsigned int duc_channel=1, const std::string &duc_iface_string="eth0", unsigned int duc_rate_index=0, long duc_frequency=0, float duc_attenuation=0, unsigned int duc_tx_channels=0, double duc_tx_frequency=900, unsigned int duc_tx_attenuation=0, unsigned int duc_stream_id=40001, bool config_tx=false, bool debug=false, unsigned int fc_update_rate=20, bool use_udp=false, bool use_ring_buffer=false, unsigned int duchsPfThresh=25, unsigned int duchsPeThresh=24, unsigned int duchsPeriod=10, bool updatePE=false, int txinv_mode=0)
 
 ~NDR651_duc_sink_mk2_impl ()
 
std::string get_radio_host_name () const
 Gets the radio host name. More...
 
int get_radio_tcp_port () const
 Gets the radio TCP port. More...
 
std::vector< std::string > get_tengig_iface_list () const
 Gets the 10GigE interface list for the radio. More...
 
void set_radio_params (const std::string &radio_host_name, int radio_tcp_port, const std::vector< std::string > &tengig_iface_list)
 Sets the radio parameters. More...
 
float get_iq_scale_factor () const
 Gets the I/Q scale factor used for the radio. More...
 
void set_iq_scale_factor (float iq_scale_factor)
 Sets the I/Q scale factor used for the radio. More...
 
int get_duc_channel () const
 Gets the channel number for the DUC in use. More...
 
void set_duc_channel (int duc_channel)
 Sets the channel number for the DUC in use. More...
 
std::string get_duc_iface_string () const
 Gets the interface name for the DUC in use. More...
 
int get_duc_iface_index () const
 Gets the interface index (one-based) for the DUC in use. More...
 
void set_duc_iface_string (const std::string &duc_iface_string)
 Sets the interface name for the DUC in use. More...
 
int get_duc_rate_index () const
 Gets the rate index (zero-based) for the DUC in use. More...
 
void set_duc_rate_index (int duc_rate_index)
 Sets the rate index (zero-based) for the DUC in use. More...
 
long get_duc_frequency () const
 Gets the frequency offset for the DUC in use. More...
 
void set_duc_frequency (long duc_frequency)
 Sets the frequency offset for the DUC in use. More...
 
void set_duc_txinv_mode (int txinv_mode)
 Sets the TX inversion mode for the DUC in use. More...
 
float get_duc_attenuation () const
 Gets the attenuation for the DUC in use. More...
 
void set_duc_attenuation (float duc_attenuation)
 Sets the attenuation for the DUC in use. More...
 
unsigned int get_duc_tx_channels () const
 Gets the transmit channel mask for the DUC in use. More...
 
void set_duc_tx_channels (unsigned int duc_tx_channels)
 Sets the transmit channel mask for the DUC in use. More...
 
double get_duc_tx_frequency () const
 Gets the transmit center frequency (in MHz) for the DUC in use. More...
 
void set_duc_tx_frequency (double duc_tx_frequency)
 Sets the transmit center frequency (in MHz) for the DUC in use. More...
 
unsigned int get_duc_tx_attenuation () const
 Gets the transmit attenuation (in dB) for the DUC in use. More...
 
void set_duc_tx_attenuation (unsigned int duc_tx_attenuation)
 Sets the transmit attenuation (in dB) for the DUC in use. More...
 
unsigned int get_duc_stream_id () const
 Gets the VITA stream ID for the DUC. More...
 
void set_duc_stream_id (unsigned int duc_stream_id)
 Sets the VITA stream ID for the DUC. More...
 
long get_duc_sample_rate () const
 Gets the sample rate (in Hz) for the DUC in use, based on the rate index. More...
 
void set_duchs_pf_threshold (int duchsPfThresh)
 
void set_duchs_pe_threshold (int duchsPeThresh)
 
void set_duchs_period (int duchsPeriod)
 
void set_duchs_update_pe (bool updatePE)
 
bool start ()
 
bool stop ()
 
int work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
 

Additional Inherited Members

- Public Types inherited from gr::CyberRadio::NDR651_duc_sink_mk2
typedef boost::shared_ptr< NDR651_duc_sink_mk2sptr
 
- Static Public Member Functions inherited from gr::CyberRadio::NDR651_duc_sink_mk2
static sptr make (const std::string &radio_host_name="", unsigned int radio_tcp_port=8617, unsigned int tengig_iface_index=1, float iq_scale_factor=1.0, unsigned int duc_channel=0, const std::string &duc_iface_string="eth0", unsigned int duc_rate_index=0, long duc_frequency=0, float duc_attenuation=0, unsigned int duc_tx_channels=0, double duc_tx_frequency=900, unsigned int duc_tx_attenuation=0, unsigned int duc_stream_id=40001, bool config_tx=false, bool debug=false, unsigned int duchsPfThresh=25, unsigned int duchsPeThresh=24, unsigned int duchsPeriod=10, bool updatePE=false, int txinv_mode=0)
 Creates an NDR651_duc_sink_mk2 block. More...
 

Constructor & Destructor Documentation

◆ NDR651_duc_sink_mk2_impl()

gr::CyberRadio::NDR651_duc_sink_mk2_impl::NDR651_duc_sink_mk2_impl ( const std::string &  radio_host_name = "",
unsigned int  radio_tcp_port = 8617,
unsigned int  tengig_iface_index = 1,
float  iq_scale_factor = 1.0,
unsigned int  duc_channel = 1,
const std::string &  duc_iface_string = "eth0",
unsigned int  duc_rate_index = 0,
long  duc_frequency = 0,
float  duc_attenuation = 0,
unsigned int  duc_tx_channels = 0,
double  duc_tx_frequency = 900,
unsigned int  duc_tx_attenuation = 0,
unsigned int  duc_stream_id = 40001,
bool  config_tx = false,
bool  debug = false,
unsigned int  fc_update_rate = 20,
bool  use_udp = false,
bool  use_ring_buffer = false,
unsigned int  duchsPfThresh = 25,
unsigned int  duchsPeThresh = 24,
unsigned int  duchsPeriod = 10,
bool  updatePE = false,
int  txinv_mode = 0 
)

◆ ~NDR651_duc_sink_mk2_impl()

gr::CyberRadio::NDR651_duc_sink_mk2_impl::~NDR651_duc_sink_mk2_impl ( )

Member Function Documentation

◆ get_duc_attenuation()

float gr::CyberRadio::NDR651_duc_sink_mk2_impl::get_duc_attenuation ( ) const
virtual

Gets the attenuation for the DUC in use.

Returns
The attenuation.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ get_duc_channel()

int gr::CyberRadio::NDR651_duc_sink_mk2_impl::get_duc_channel ( ) const
virtual

Gets the channel number for the DUC in use.

Returns
The channel number.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ get_duc_frequency()

long gr::CyberRadio::NDR651_duc_sink_mk2_impl::get_duc_frequency ( ) const
virtual

Gets the frequency offset for the DUC in use.

Returns
The frequency offset.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ get_duc_iface_index()

int gr::CyberRadio::NDR651_duc_sink_mk2_impl::get_duc_iface_index ( ) const
virtual

Gets the interface index (one-based) for the DUC in use.

Returns
The interface index.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ get_duc_iface_string()

std::string gr::CyberRadio::NDR651_duc_sink_mk2_impl::get_duc_iface_string ( ) const
virtual

Gets the interface name for the DUC in use.

Returns
The interface name.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ get_duc_rate_index()

int gr::CyberRadio::NDR651_duc_sink_mk2_impl::get_duc_rate_index ( ) const
virtual

Gets the rate index (zero-based) for the DUC in use.

Returns
The rate index.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ get_duc_sample_rate()

long gr::CyberRadio::NDR651_duc_sink_mk2_impl::get_duc_sample_rate ( ) const
virtual

Gets the sample rate (in Hz) for the DUC in use, based on the rate index.

Returns
The sample rate.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ get_duc_stream_id()

unsigned int gr::CyberRadio::NDR651_duc_sink_mk2_impl::get_duc_stream_id ( ) const
virtual

Gets the VITA stream ID for the DUC.

Returns
The stream ID.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ get_duc_tx_attenuation()

unsigned int gr::CyberRadio::NDR651_duc_sink_mk2_impl::get_duc_tx_attenuation ( ) const
virtual

Gets the transmit attenuation (in dB) for the DUC in use.

Returns
The transmit attenuation.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ get_duc_tx_channels()

unsigned int gr::CyberRadio::NDR651_duc_sink_mk2_impl::get_duc_tx_channels ( ) const
virtual

Gets the transmit channel mask for the DUC in use.

Returns
The transmit channel mask.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ get_duc_tx_frequency()

double gr::CyberRadio::NDR651_duc_sink_mk2_impl::get_duc_tx_frequency ( ) const
virtual

Gets the transmit center frequency (in MHz) for the DUC in use.

Returns
The transmit center frequency.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ get_iq_scale_factor()

float gr::CyberRadio::NDR651_duc_sink_mk2_impl::get_iq_scale_factor ( ) const
virtual

Gets the I/Q scale factor used for the radio.

Returns
The scale factor.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ get_radio_host_name()

std::string gr::CyberRadio::NDR651_duc_sink_mk2_impl::get_radio_host_name ( ) const
virtual

Gets the radio host name.

Returns
The radio host name.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ get_radio_tcp_port()

int gr::CyberRadio::NDR651_duc_sink_mk2_impl::get_radio_tcp_port ( ) const
virtual

Gets the radio TCP port.

Returns
The port number.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ get_tengig_iface_list()

std::vector<std::string> gr::CyberRadio::NDR651_duc_sink_mk2_impl::get_tengig_iface_list ( ) const
virtual

Gets the 10GigE interface list for the radio.

Returns
The interface list.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ set_duc_attenuation()

void gr::CyberRadio::NDR651_duc_sink_mk2_impl::set_duc_attenuation ( float  duc_attenuation)
virtual

Sets the attenuation for the DUC in use.

Parameters
duc_attenuationThe attenuation for the DUC in use.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ set_duc_channel()

void gr::CyberRadio::NDR651_duc_sink_mk2_impl::set_duc_channel ( int  duc_channel)
virtual

Sets the channel number for the DUC in use.

Parameters
duc_channelThe channel number for the DUC in use.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ set_duc_frequency()

void gr::CyberRadio::NDR651_duc_sink_mk2_impl::set_duc_frequency ( long  duc_frequency)
virtual

Sets the frequency offset for the DUC in use.

Parameters
duc_frequencyThe frequency offset for the DUC in use.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ set_duc_iface_string()

void gr::CyberRadio::NDR651_duc_sink_mk2_impl::set_duc_iface_string ( const std::string &  duc_iface_string)
virtual

Sets the interface name for the DUC in use.

Parameters
duc_iface_stringThe interface string for the DUC in use.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ set_duc_rate_index()

void gr::CyberRadio::NDR651_duc_sink_mk2_impl::set_duc_rate_index ( int  duc_rate_index)
virtual

Sets the rate index (zero-based) for the DUC in use.

Parameters
duc_rate_indexThe rate index for the DUC in use.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ set_duc_stream_id()

void gr::CyberRadio::NDR651_duc_sink_mk2_impl::set_duc_stream_id ( unsigned int  duc_stream_id)
virtual

Sets the VITA stream ID for the DUC.

Parameters
duc_stream_idThe stream ID.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ set_duc_tx_attenuation()

void gr::CyberRadio::NDR651_duc_sink_mk2_impl::set_duc_tx_attenuation ( unsigned int  duc_tx_attenuation)
virtual

Sets the transmit attenuation (in dB) for the DUC in use.

Parameters
duc_tx_attenuationThe transmit attenuation for the DUC in use.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ set_duc_tx_channels()

void gr::CyberRadio::NDR651_duc_sink_mk2_impl::set_duc_tx_channels ( unsigned int  duc_tx_channels)
virtual

Sets the transmit channel mask for the DUC in use.

Parameters
duc_tx_channelsThe transmit channel mask for the DUC in use.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ set_duc_tx_frequency()

void gr::CyberRadio::NDR651_duc_sink_mk2_impl::set_duc_tx_frequency ( double  duc_tx_frequency)
virtual

Sets the transmit center frequency (in MHz) for the DUC in use.

Parameters
duc_tx_frequencyThe transmit center frequency for the DUC in use.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ set_duc_txinv_mode()

void gr::CyberRadio::NDR651_duc_sink_mk2_impl::set_duc_txinv_mode ( int  txinv_mode)
virtual

Sets the TX inversion mode for the DUC in use.

Parameters
txinv_mode1 to enable tx inversion, 0 to disable.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ set_duchs_pe_threshold()

void gr::CyberRadio::NDR651_duc_sink_mk2_impl::set_duchs_pe_threshold ( int  duchsPeThresh)
virtual

◆ set_duchs_period()

void gr::CyberRadio::NDR651_duc_sink_mk2_impl::set_duchs_period ( int  duchsPeriod)
virtual

◆ set_duchs_pf_threshold()

void gr::CyberRadio::NDR651_duc_sink_mk2_impl::set_duchs_pf_threshold ( int  duchsPfThresh)
virtual

◆ set_duchs_update_pe()

void gr::CyberRadio::NDR651_duc_sink_mk2_impl::set_duchs_update_pe ( bool  updatePE)
virtual

◆ set_iq_scale_factor()

void gr::CyberRadio::NDR651_duc_sink_mk2_impl::set_iq_scale_factor ( float  iq_scale_factor)
virtual

Sets the I/Q scale factor used for the radio.

Parameters
iq_scale_factorThe scale factor.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ set_radio_params()

void gr::CyberRadio::NDR651_duc_sink_mk2_impl::set_radio_params ( const std::string &  radio_host_name,
int  radio_tcp_port,
const std::vector< std::string > &  tengig_iface_list 
)
virtual

Sets the radio parameters.

Parameters
radio_host_nameThe radio host name. If this is an empty string, then the block will disconnect any existing connection and not attempt to connect to a radio.
radio_tcp_portThe radio TCP port.
tengig_iface_listThe list of 10GigE interface names.

Implements gr::CyberRadio::NDR651_duc_sink_mk2.

◆ start()

bool gr::CyberRadio::NDR651_duc_sink_mk2_impl::start ( )

◆ stop()

bool gr::CyberRadio::NDR651_duc_sink_mk2_impl::stop ( )

◆ work()

int gr::CyberRadio::NDR651_duc_sink_mk2_impl::work ( int  noutput_items,
gr_vector_const_void_star &  input_items,
gr_vector_void_star &  output_items 
)

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