GNU Radio's CYBERRADIO Package
gr::CyberRadio::NDR651_duc_sink_mk2 Class Referenceabstract

Digital upconverter (DUC) transmission sink block for the NDR651 (Mk2). More...

#include <NDR651_duc_sink_mk2.h>

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

Public Types

typedef boost::shared_ptr< NDR651_duc_sink_mk2sptr
 

Public Member Functions

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

Static Public Member Functions

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...
 

Detailed Description

Digital upconverter (DUC) transmission sink block for the NDR651 (Mk2).

The NDR651_duc_sink_mk2 block represents a single digital upconverter (DUC) on an NDR651 radio, and transmits the signal sent to its input.

To use more than one DUC on the NDR651, use multiple sinks, one for each DUC.

Member Typedef Documentation

◆ sptr

Member Function Documentation

◆ get_duc_attenuation()

virtual float gr::CyberRadio::NDR651_duc_sink_mk2::get_duc_attenuation ( ) const
pure virtual

Gets the attenuation for the DUC in use.

Returns
The attenuation.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ get_duc_channel()

virtual int gr::CyberRadio::NDR651_duc_sink_mk2::get_duc_channel ( ) const
pure virtual

Gets the channel number for the DUC in use.

Returns
The channel number.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ get_duc_frequency()

virtual long gr::CyberRadio::NDR651_duc_sink_mk2::get_duc_frequency ( ) const
pure virtual

Gets the frequency offset for the DUC in use.

Returns
The frequency offset.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ get_duc_iface_index()

virtual int gr::CyberRadio::NDR651_duc_sink_mk2::get_duc_iface_index ( ) const
pure virtual

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

Returns
The interface index.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ get_duc_iface_string()

virtual std::string gr::CyberRadio::NDR651_duc_sink_mk2::get_duc_iface_string ( ) const
pure virtual

Gets the interface name for the DUC in use.

Returns
The interface name.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ get_duc_rate_index()

virtual int gr::CyberRadio::NDR651_duc_sink_mk2::get_duc_rate_index ( ) const
pure virtual

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

Returns
The rate index.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ get_duc_sample_rate()

virtual long gr::CyberRadio::NDR651_duc_sink_mk2::get_duc_sample_rate ( ) const
pure virtual

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

Returns
The sample rate.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ get_duc_stream_id()

virtual unsigned int gr::CyberRadio::NDR651_duc_sink_mk2::get_duc_stream_id ( ) const
pure virtual

Gets the VITA stream ID for the DUC.

Returns
The stream ID.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ get_duc_tx_attenuation()

virtual unsigned int gr::CyberRadio::NDR651_duc_sink_mk2::get_duc_tx_attenuation ( ) const
pure virtual

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

Returns
The transmit attenuation.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ get_duc_tx_channels()

virtual unsigned int gr::CyberRadio::NDR651_duc_sink_mk2::get_duc_tx_channels ( ) const
pure virtual

Gets the transmit channel mask for the DUC in use.

Returns
The transmit channel mask.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ get_duc_tx_frequency()

virtual double gr::CyberRadio::NDR651_duc_sink_mk2::get_duc_tx_frequency ( ) const
pure virtual

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

Returns
The transmit center frequency.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ get_iq_scale_factor()

virtual float gr::CyberRadio::NDR651_duc_sink_mk2::get_iq_scale_factor ( ) const
pure virtual

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

Returns
The scale factor.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ get_radio_host_name()

virtual std::string gr::CyberRadio::NDR651_duc_sink_mk2::get_radio_host_name ( ) const
pure virtual

Gets the radio host name.

Returns
The radio host name.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ get_radio_tcp_port()

virtual int gr::CyberRadio::NDR651_duc_sink_mk2::get_radio_tcp_port ( ) const
pure virtual

Gets the radio TCP port.

Returns
The port number.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ get_tengig_iface_list()

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

Gets the 10GigE interface list for the radio.

Returns
The interface list.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ make()

static sptr gr::CyberRadio::NDR651_duc_sink_mk2::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 
)
static

Creates an NDR651_duc_sink_mk2 block.

Parameters
radio_host_nameThe radio host name. If this is an empty string, then the block will not connect to a radio.
radio_tcp_portThe radio TCP port.
tengig_iface_indexThe index of the 10 gig interface
iq_scale_factorScale factor for coverting I/Q data from complex input to native sample format.
duc_channelThe channel number for the DUC in use.
duc_iface_stringThe interface string for the DUC in use.
duc_rate_indexThe rate index for the DUC in use.
duc_frequencyThe frequency offset for the DUC in use.
duc_attenuationThe attenuation for the DUC in use.
duc_tx_channelsThe transmit channel mask for the DUC in use.
duc_tx_frequencyThe transmit center frequency for the DUC in use.
duc_tx_attenuationThe transmit attenuation for the DUC in use.
duc_stream_idThe stream ID/UDP port for the DUC in use.
config_txThe configured tx device
debugWhether the block should produce debug output. Defaults to False.
duchsPfThreshPf Threshold
duchsPeThreshPe Threshold
duchsPeriodperiod
updatePEPE update flag
txinv_modetransmitter mode
Returns
A boost::shared_ptr<NDR651_duc_sink_mk2> representing the new block.

◆ set_duc_attenuation()

virtual void gr::CyberRadio::NDR651_duc_sink_mk2::set_duc_attenuation ( float  duc_attenuation)
pure virtual

Sets the attenuation for the DUC in use.

Parameters
duc_attenuationThe attenuation for the DUC in use.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ set_duc_channel()

virtual void gr::CyberRadio::NDR651_duc_sink_mk2::set_duc_channel ( int  duc_channel)
pure virtual

Sets the channel number for the DUC in use.

Parameters
duc_channelThe channel number for the DUC in use.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ set_duc_frequency()

virtual void gr::CyberRadio::NDR651_duc_sink_mk2::set_duc_frequency ( long  duc_frequency)
pure virtual

Sets the frequency offset for the DUC in use.

Parameters
duc_frequencyThe frequency offset for the DUC in use.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ set_duc_iface_string()

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

Sets the interface name for the DUC in use.

Parameters
duc_iface_stringThe interface string for the DUC in use.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ set_duc_rate_index()

virtual void gr::CyberRadio::NDR651_duc_sink_mk2::set_duc_rate_index ( int  duc_rate_index)
pure virtual

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

Parameters
duc_rate_indexThe rate index for the DUC in use.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ set_duc_stream_id()

virtual void gr::CyberRadio::NDR651_duc_sink_mk2::set_duc_stream_id ( unsigned int  duc_stream_id)
pure virtual

Sets the VITA stream ID for the DUC.

Parameters
duc_stream_idThe stream ID.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ set_duc_tx_attenuation()

virtual void gr::CyberRadio::NDR651_duc_sink_mk2::set_duc_tx_attenuation ( unsigned int  duc_tx_attenuation)
pure virtual

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

Parameters
duc_tx_attenuationThe transmit attenuation for the DUC in use.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ set_duc_tx_channels()

virtual void gr::CyberRadio::NDR651_duc_sink_mk2::set_duc_tx_channels ( unsigned int  duc_tx_channels)
pure virtual

Sets the transmit channel mask for the DUC in use.

Parameters
duc_tx_channelsThe transmit channel mask for the DUC in use.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ set_duc_tx_frequency()

virtual void gr::CyberRadio::NDR651_duc_sink_mk2::set_duc_tx_frequency ( double  duc_tx_frequency)
pure 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.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ set_duc_txinv_mode()

virtual void gr::CyberRadio::NDR651_duc_sink_mk2::set_duc_txinv_mode ( int  txinv_mode)
pure virtual

Sets the TX inversion mode for the DUC in use.

Parameters
txinv_mode1 to enable tx inversion, 0 to disable.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ set_duchs_pe_threshold()

virtual void gr::CyberRadio::NDR651_duc_sink_mk2::set_duchs_pe_threshold ( int  duchsPeThresh)
pure virtual

◆ set_duchs_period()

virtual void gr::CyberRadio::NDR651_duc_sink_mk2::set_duchs_period ( int  duchsPeriod)
pure virtual

◆ set_duchs_pf_threshold()

virtual void gr::CyberRadio::NDR651_duc_sink_mk2::set_duchs_pf_threshold ( int  duchsPfThresh)
pure virtual

◆ set_duchs_update_pe()

virtual void gr::CyberRadio::NDR651_duc_sink_mk2::set_duchs_update_pe ( bool  updatePE)
pure virtual

◆ set_iq_scale_factor()

virtual void gr::CyberRadio::NDR651_duc_sink_mk2::set_iq_scale_factor ( float  iq_scale_factor)
pure virtual

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

Parameters
iq_scale_factorThe scale factor.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.

◆ set_radio_params()

virtual void gr::CyberRadio::NDR651_duc_sink_mk2::set_radio_params ( const std::string &  radio_host_name,
int  radio_tcp_port,
const std::vector< std::string > &  tengig_iface_list 
)
pure 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.

Implemented in gr::CyberRadio::NDR651_duc_sink_mk2_impl.


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