summaryrefslogtreecommitdiff
path: root/gr-uhd/include/gnuradio/uhd/usrp_source.h
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/include/gnuradio/uhd/usrp_source.h
parentc815a018b9ee2e072239f900f1eb08000c18194d (diff)
uhd: Added set_stream_args() method to sink & source
Diffstat (limited to 'gr-uhd/include/gnuradio/uhd/usrp_source.h')
-rw-r--r--gr-uhd/include/gnuradio/uhd/usrp_source.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/gr-uhd/include/gnuradio/uhd/usrp_source.h b/gr-uhd/include/gnuradio/uhd/usrp_source.h
index 478c875aaa..61f63bdf3b 100644
--- a/gr-uhd/include/gnuradio/uhd/usrp_source.h
+++ b/gr-uhd/include/gnuradio/uhd/usrp_source.h
@@ -567,6 +567,23 @@ namespace gr {
size_t mboard = 0) = 0;
/*!
+ * Update the stream args for this device.
+ *
+ * This update will only take effect after a restart of the
+ * streaming, or before streaming and after construction.
+ * This will also delete the current streamer.
+ * Note you cannot change the I/O signature of this block using
+ * this function, or it will throw.
+ *
+ * It is possible to leave the 'channels' fields of \p stream_args
+ * unset. In this case, the previous channels field is used.
+ *
+ * \param stream_args New stream args.
+ * \throws std::runtime_error if new settings are invalid.
+ */
+ virtual void set_stream_args(const ::uhd::stream_args_t &stream_args) = 0;
+
+ /*!
* Convenience function for finite data acquisition.
* This is not to be used with the scheduler; rather,
* one can request samples from the USRP in python.