summaryrefslogtreecommitdiff
path: root/gr-uhd/include/gr_uhd_usrp_source.h
diff options
context:
space:
mode:
authorJosh Blum2012-09-29 20:43:40 -0700
committerJohnathan Corgan2012-09-29 21:47:22 -0700
commit3795a17b08404ff7ce5958afe1585b6b2ba561d7 (patch)
tree784d8741746739363504556faab1d700b77f1c40 /gr-uhd/include/gr_uhd_usrp_source.h
parent2abda17d8ed2794ff5b4bc0d9f61d30d8ffac651 (diff)
downloadgnuradio-3795a17b08404ff7ce5958afe1585b6b2ba561d7.tar.gz
gnuradio-3795a17b08404ff7ce5958afe1585b6b2ba561d7.tar.bz2
gnuradio-3795a17b08404ff7ce5958afe1585b6b2ba561d7.zip
uhd: provide source block hook for issue stream cmd
Diffstat (limited to 'gr-uhd/include/gr_uhd_usrp_source.h')
-rw-r--r--gr-uhd/include/gr_uhd_usrp_source.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/gr-uhd/include/gr_uhd_usrp_source.h b/gr-uhd/include/gr_uhd_usrp_source.h
index b5acabee4..1243ddcc2 100644
--- a/gr-uhd/include/gr_uhd_usrp_source.h
+++ b/gr-uhd/include/gr_uhd_usrp_source.h
@@ -129,6 +129,19 @@ public:
virtual void set_start_time(const uhd::time_spec_t &time) = 0;
/*!
+ * *Advanced use only:*
+ * Issue a stream command to all channels in this source block.
+ *
+ * This method is intended to override the default "always on" behavior.
+ * After starting the flow graph, the user should call stop() on this block,
+ * then issue any desired arbitrary stream_cmd_t structs to the device.
+ * The USRP will be able to enqueue several stream commands in the FPGA.
+ *
+ * \param cmd the stream command to issue to all source channels
+ */
+ virtual void issue_stream_cmd(const uhd::stream_cmd_t &cmd) = 0;
+
+ /*!
* Returns identifying information about this USRP's configuration.
* Returns motherboard ID, name, and serial.
* Returns daughterboard RX ID, subdev name and spec, serial, and antenna.