summaryrefslogtreecommitdiff
path: root/gr-uhd/include/gnuradio/uhd/usrp_sink.h
diff options
context:
space:
mode:
Diffstat (limited to 'gr-uhd/include/gnuradio/uhd/usrp_sink.h')
-rw-r--r--gr-uhd/include/gnuradio/uhd/usrp_sink.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/gr-uhd/include/gnuradio/uhd/usrp_sink.h b/gr-uhd/include/gnuradio/uhd/usrp_sink.h
index affdfbf9d2..dd1bd6a73a 100644
--- a/gr-uhd/include/gnuradio/uhd/usrp_sink.h
+++ b/gr-uhd/include/gnuradio/uhd/usrp_sink.h
@@ -570,6 +570,23 @@ namespace gr {
virtual void set_user_register(const uint8_t addr,
const uint32_t data,
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;
};
} /* namespace uhd */