#include <uhd/stream.hpp>
Public Member Functions | |
stream_args_t (const std::string &cpu="", const std::string &otw="") | |
Convenience constructor for streamer args. More... | |
Public Attributes | |
std::string | cpu_format |
std::string | otw_format |
device_addr_t | args |
std::vector< size_t > | channels |
A struct of parameters to construct a streamer.
Note: Not all combinations of CPU and OTW format have conversion support. You may however write and register your own conversion routines.
|
inline |
Convenience constructor for streamer args.
device_addr_t uhd::stream_args_t::args |
The args parameter is used to pass arbitrary key/value pairs. Possible keys used by args (depends on implementation):
The following are not implemented, but are listed for conceptual purposes:
std::vector<size_t> uhd::stream_args_t::channels |
The channels is a list of channel numbers. Leave this blank to default to channel 0. Set channels for a multi-channel application. Channel mapping depends on the front-end selection.
std::string uhd::stream_args_t::cpu_format |
The CPU format is a string that describes the format of host memory. Conversions for the following CPU formats have been implemented:
The following are not implemented, but are listed to demonstrate naming convention:
std::string uhd::stream_args_t::otw_format |
The OTW format is a string that describes the format over-the-wire. The following over-the-wire formats have been implemented:
The following are not implemented, but are listed to demonstrate naming convention: