summaryrefslogtreecommitdiff
path: root/gr-uhd/include/gr_uhd_usrp_source.h
diff options
context:
space:
mode:
authorTom Rondeau2011-09-26 13:20:09 -0400
committerTom Rondeau2011-09-26 13:20:09 -0400
commit18201a678610a608a4c952122ce6dc9430e8e2d1 (patch)
treef580ed94541f53fd86c99922708cf5367c972513 /gr-uhd/include/gr_uhd_usrp_source.h
parentdc88c64b25bf4c4f28e1e0097c8c579b36e3a079 (diff)
parentdd63208289584f764ad69f36fbd552def3c761e5 (diff)
downloadgnuradio-18201a678610a608a4c952122ce6dc9430e8e2d1.tar.gz
gnuradio-18201a678610a608a4c952122ce6dc9430e8e2d1.tar.bz2
gnuradio-18201a678610a608a4c952122ce6dc9430e8e2d1.zip
Merge branch 'master' 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,