GNU Radio 3.6.5 C++ API

gr_uhd_usrp_sink.h File Reference

#include <gr_uhd_api.h>
#include <gr_sync_block.h>
#include <uhd/usrp/multi_usrp.hpp>

Go to the source code of this file.

Classes

struct  uhd::stream_args_t
class  uhd_usrp_sink

Namespaces

namespace  uhd

Defines

#define INCLUDED_UHD_STREAM_HPP

Functions

GR_UHD_API boost::shared_ptr
< uhd_usrp_sink
uhd_make_usrp_sink (const uhd::device_addr_t &device_addr, const uhd::io_type_t &io_type, size_t num_channels)
 Make a new USRP sink block.The USRP sink block reads a stream and transmits the samples. The sink block also provides API calls for transmitter settings.
GR_UHD_API boost::shared_ptr
< uhd_usrp_sink
uhd_make_usrp_sink (const uhd::device_addr_t &device_addr, const uhd::stream_args_t &stream_args)
 Make a new USRP sink block.

Define Documentation

#define INCLUDED_UHD_STREAM_HPP

Function Documentation

GR_UHD_API boost::shared_ptr<uhd_usrp_sink> uhd_make_usrp_sink ( const uhd::device_addr_t &  device_addr,
const uhd::stream_args_t stream_args 
)

Make a new USRP sink block.

The USRP sink block reads a stream and transmits the samples. The sink block also provides API calls for transmitter settings.

TX Stream tagging:

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

The sob and eob (start and end of burst) tag values are pmt booleans. When present, burst tags should be set to true (pmt::PMT_T).

The timstamp tag value is a pmt tuple of the following: (uint64 seconds, and double fractional seconds).

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
stream_argsthe IO format and channel specification
Returns:
a new USRP sink block object