summaryrefslogtreecommitdiff
path: root/gr-uhd/lib/usrp_source_impl.cc
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2015-01-27 11:42:52 +0100
committerMartin Braun <martin.braun@ettus.com>2015-02-03 18:30:41 +0100
commitec2d27866933d4ec9f361d0b794f208ce0a7b2ad (patch)
tree24cb5acc7f55c7635752ba06ba8430fa0ca22fbe /gr-uhd/lib/usrp_source_impl.cc
parentc815a018b9ee2e072239f900f1eb08000c18194d (diff)
uhd: Added set_stream_args() method to sink & source
Diffstat (limited to 'gr-uhd/lib/usrp_source_impl.cc')
-rw-r--r--gr-uhd/lib/usrp_source_impl.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/gr-uhd/lib/usrp_source_impl.cc b/gr-uhd/lib/usrp_source_impl.cc
index c3b67533b5..b3eca9eb46 100644
--- a/gr-uhd/lib/usrp_source_impl.cc
+++ b/gr-uhd/lib/usrp_source_impl.cc
@@ -1,6 +1,6 @@
/* -*- c++ -*- */
/*
- * Copyright 2010-2013 Free Software Foundation, Inc.
+ * Copyright 2010-2015 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
@@ -522,6 +522,17 @@ namespace gr {
}
void
+ usrp_source_impl::set_stream_args(const ::uhd::stream_args_t &stream_args)
+ {
+ _update_stream_args(stream_args);
+#ifdef GR_UHD_USE_STREAM_API
+ _rx_stream.reset();
+#else
+ throw std::runtime_error("not implemented in this version");
+#endif
+ }
+
+ void
usrp_source_impl::set_start_time(const ::uhd::time_spec_t &time)
{
_start_time = time;