GNU Radio Manual and C++ API Reference  3.7.4
The Free & Open Software Radio Ecosystem
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages

Functions

static sptr gr::uhd::amsg_source::make (const ::uhd::device_addr_t &device_addr, msg_queue::sptr msgq)
 Make a new USRP asynchronous message-based source block. More...
 
static sptr gr::uhd::usrp_sink::make (const ::uhd::device_addr_t &device_addr, const ::uhd::io_type_t &io_type, size_t num_channels)
 DEPRECATED Make a new USRP sink block using the deprecated io_type_t. More...
 
static sptr gr::uhd::usrp_source::make (const ::uhd::device_addr_t &device_addr, const ::uhd::io_type_t &io_type, size_t num_channels)
 Make a new USRP source block.The USRP source block receives samples and writes to a stream. The source block also provides API calls for receiver settings. More...
 

Detailed Description

Function Documentation

static sptr gr::uhd::amsg_source::make ( const ::uhd::device_addr_t &  device_addr,
msg_queue::sptr  msgq 
)
static

Make a new USRP asynchronous message-based source block.

static sptr gr::uhd::usrp_sink::make ( const ::uhd::device_addr_t &  device_addr,
const ::uhd::io_type_t &  io_type,
size_t  num_channels 
)
static

DEPRECATED Make a new USRP sink block using the deprecated io_type_t.

This function will be removed in the future. Please use the other make function, gr::uhd::make(const ::uhd::device_addr_t, const ::uhd::stream_args_t, const std::string).

static sptr gr::uhd::usrp_source::make ( const ::uhd::device_addr_t &  device_addr,
const ::uhd::io_type_t &  io_type,
size_t  num_channels 
)
static

Make a new USRP source block.The USRP source block receives samples and writes to a stream. The source block also provides API calls for receiver settings.

RX Stream tagging:

The following tag keys will be produced by the work function:

The timstamp tag value is a pmt tuple of the following: (uint64 seconds, and double fractional seconds). A timestamp tag is produced at start() and after overflows.

The sample rate and center frequency tags are doubles, representing the sample rate in Sps and frequency in Hz. These tags are produced upon the user changing parameters.

See the UHD manual for more detailed documentation: http://code.ettus.com/redmine/ettus/projects/uhd/wiki

Parameters
device_addrthe address to identify the hardware
io_typethe desired output data type
num_channelsnumber of stream from the device
Returns
a new USRP source block object