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

#include <vita_iq_source_2_impl.h>

Inheritance diagram for gr::CyberRadio::vita_iq_source_2_impl:
gr::CyberRadio::vita_iq_source_2

Public Member Functions

 vita_iq_source_2_impl (int vitaType, size_t payloadSize, size_t vitaHeaderSize, size_t vitaTailSize, bool byteSwapped, bool iqSwapped, const std::string &host, int port, bool debug, bool tagOutput, bool coherent)
 
 ~vita_iq_source_2_impl ()
 
void connect (const std::string &host, int port)
 Change the connection to a new destination. More...
 
void disconnect ()
 Cut the connection if we have one set up. More...
 
void set_receive_buffer_size (int size)
 Change the size of the UDP receive buffer. More...
 
int get_receive_buffer_size (void)
 Get the size of the UDP receive buffer. More...
 
void set_scale_factor (int)
 Set the scale factor used when converting from short to float. Default is 32767. More...
 
int get_scale_factor ()
 Get the scale factor used when converting from short to float. More...
 
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::vita_iq_source_2
typedef boost::shared_ptr< vita_iq_source_2sptr
 
- Static Public Member Functions inherited from gr::CyberRadio::vita_iq_source_2
static sptr make (int vitaType, size_t payloadSize, size_t vitaHeaderSize, size_t vitaTailSize, bool byteSwapped, bool iqSwapped, const std::string &host, int port, bool debug=false, bool tagOutput=false, bool coherent=false)
 Return a shared_ptr to a new instance of G3Tech::vita_iq_source. More...
 

Constructor & Destructor Documentation

◆ vita_iq_source_2_impl()

gr::CyberRadio::vita_iq_source_2_impl::vita_iq_source_2_impl ( int  vitaType,
size_t  payloadSize,
size_t  vitaHeaderSize,
size_t  vitaTailSize,
bool  byteSwapped,
bool  iqSwapped,
const std::string &  host,
int  port,
bool  debug,
bool  tagOutput,
bool  coherent 
)

◆ ~vita_iq_source_2_impl()

gr::CyberRadio::vita_iq_source_2_impl::~vita_iq_source_2_impl ( )

Member Function Documentation

◆ connect()

void gr::CyberRadio::vita_iq_source_2_impl::connect ( const std::string &  host,
int  port 
)
virtual

Change the connection to a new destination.

Parameters
hostThe name or IP address of the receiving host; use NULL or None to break the connection without closing
portDestination port to connect to on receiving host

Calls disconnect() to terminate any current connection first.

Implements gr::CyberRadio::vita_iq_source_2.

◆ disconnect()

void gr::CyberRadio::vita_iq_source_2_impl::disconnect ( )
virtual

Cut the connection if we have one set up.

Implements gr::CyberRadio::vita_iq_source_2.

◆ get_receive_buffer_size()

int gr::CyberRadio::vita_iq_source_2_impl::get_receive_buffer_size ( void  )
virtual

Get the size of the UDP receive buffer.

Returns
size The size in bytes of the UDP receive buffer.

Implements gr::CyberRadio::vita_iq_source_2.

◆ get_scale_factor()

int gr::CyberRadio::vita_iq_source_2_impl::get_scale_factor ( )
virtual

Get the scale factor used when converting from short to float.

Returns
scale The scale factor.

Implements gr::CyberRadio::vita_iq_source_2.

◆ set_receive_buffer_size()

void gr::CyberRadio::vita_iq_source_2_impl::set_receive_buffer_size ( int  size)
virtual

Change the size of the UDP receive buffer.

Parameters
sizeThe size in bytes of the UDP receive buffer.

Implements gr::CyberRadio::vita_iq_source_2.

◆ set_scale_factor()

void gr::CyberRadio::vita_iq_source_2_impl::set_scale_factor ( int  scale)
virtual

Set the scale factor used when converting from short to float. Default is 32767.

Parameters
scaleThe scale factor Default is 32767.

Implements gr::CyberRadio::vita_iq_source_2.

◆ work()

int gr::CyberRadio::vita_iq_source_2_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: