summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gr-uhd/include/gr_uhd_usrp_sink.h5
-rw-r--r--gr-uhd/include/gr_uhd_usrp_source.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/gr-uhd/include/gr_uhd_usrp_sink.h b/gr-uhd/include/gr_uhd_usrp_sink.h
index e3d21226a..47e815c02 100644
--- a/gr-uhd/include/gr_uhd_usrp_sink.h
+++ b/gr-uhd/include/gr_uhd_usrp_sink.h
@@ -29,6 +29,11 @@
#ifndef INCLUDED_UHD_STREAM_HPP
namespace uhd{
struct GR_UHD_API stream_args_t{
+ stream_args_t(void){}
+ stream_args_t(const std::string &cpu, const std::string &otw="sc16"){
+ cpu_format = cpu;
+ otw_format = otw;
+ }
std::string cpu_format;
std::string otw_format;
std::string args;
diff --git a/gr-uhd/include/gr_uhd_usrp_source.h b/gr-uhd/include/gr_uhd_usrp_source.h
index c2b310e44..2433d422d 100644
--- a/gr-uhd/include/gr_uhd_usrp_source.h
+++ b/gr-uhd/include/gr_uhd_usrp_source.h
@@ -29,6 +29,11 @@
#ifndef INCLUDED_UHD_STREAM_HPP
namespace uhd{
struct GR_UHD_API stream_args_t{
+ stream_args_t(void){}
+ stream_args_t(const std::string &cpu, const std::string &otw="sc16"){
+ cpu_format = cpu;
+ otw_format = otw;
+ }
std::string cpu_format;
std::string otw_format;
std::string args;