summaryrefslogtreecommitdiff
path: root/gr-uhd/include/gr_uhd_usrp_source.h
diff options
context:
space:
mode:
authorJosh Blum2011-09-26 12:04:27 -0700
committerJosh Blum2011-09-26 12:04:27 -0700
commit1ff42298b8c5216587ecddcd3a3571def2e5fa21 (patch)
treef06d584ae6196e39829c17b5a9f6d728a03adfd1 /gr-uhd/include/gr_uhd_usrp_source.h
parent4aa4411f2a3f184760ff5f534eec015f557f80c9 (diff)
parent18201a678610a608a4c952122ce6dc9430e8e2d1 (diff)
downloadgnuradio-1ff42298b8c5216587ecddcd3a3571def2e5fa21.tar.gz
gnuradio-1ff42298b8c5216587ecddcd3a3571def2e5fa21.tar.bz2
gnuradio-1ff42298b8c5216587ecddcd3a3571def2e5fa21.zip
Merge branch 'next' of http://gnuradio.org/git/gnuradio into next
Diffstat (limited to 'gr-uhd/include/gr_uhd_usrp_source.h')
-rw-r--r--gr-uhd/include/gr_uhd_usrp_source.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/gr-uhd/include/gr_uhd_usrp_source.h b/gr-uhd/include/gr_uhd_usrp_source.h
index 6e51a1423..f8ac9361e 100644
--- a/gr-uhd/include/gr_uhd_usrp_source.h
+++ b/gr-uhd/include/gr_uhd_usrp_source.h
@@ -28,6 +28,29 @@
class uhd_usrp_source;
+/*!
+ * \brief Make a new USRP source block.
+ *
+ * The USRP source block receives samples and writes to a stream.
+ * The source block also provides API calls for receiver settings.
+ *
+ * RX Stream tagging:
+ *
+ * The following tag keys will be produced by the work function:
+ * - pmt::pmt_string_to_symbol("rx_time")
+ *
+ * The timstamp tag value is a pmt tuple of the following:
+ * (uint64 seconds, and double fractional seconds).
+ * A timestamp tag is produced at start() and after overflows.
+ *
+ * See the UHD manual for more detailed documentation:
+ * http://code.ettus.com/redmine/ettus/projects/uhd/wiki
+ *
+ * \param device_addr the address to identify the hardware
+ * \param io_type the desired output data type
+ * \param num_channels number of stream from the device
+ * \return a new USRP source block object
+ */
GR_UHD_API boost::shared_ptr<uhd_usrp_source> uhd_make_usrp_source(
const uhd::device_addr_t &device_addr,
const uhd::io_type_t &io_type,