summaryrefslogtreecommitdiff
path: root/gr-uhd/include/gr_uhd_usrp_sink.h
diff options
context:
space:
mode:
authorJohnathan Corgan2012-01-10 10:21:43 -0800
committerJohnathan Corgan2012-01-10 10:21:43 -0800
commit4b1b276fdd0e98f25a3f357dab8453e17b1aa4cf (patch)
tree548df924922982931f5585f331adb04e657d7fcf /gr-uhd/include/gr_uhd_usrp_sink.h
parentd35c6bd9eeffc40c9a9a15e9a000df47990ff6d6 (diff)
downloadgnuradio-4b1b276fdd0e98f25a3f357dab8453e17b1aa4cf.tar.gz
gnuradio-4b1b276fdd0e98f25a3f357dab8453e17b1aa4cf.tar.bz2
gnuradio-4b1b276fdd0e98f25a3f357dab8453e17b1aa4cf.zip
uhd: add API call to set user registers
Diffstat (limited to 'gr-uhd/include/gr_uhd_usrp_sink.h')
-rw-r--r--gr-uhd/include/gr_uhd_usrp_sink.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gr-uhd/include/gr_uhd_usrp_sink.h b/gr-uhd/include/gr_uhd_usrp_sink.h
index ce76ec03b..d6cbe2fdc 100644
--- a/gr-uhd/include/gr_uhd_usrp_sink.h
+++ b/gr-uhd/include/gr_uhd_usrp_sink.h
@@ -448,6 +448,15 @@ public:
* \return the multi usrp device object
*/
virtual uhd::usrp::multi_usrp::sptr get_device(void) = 0;
+
+ /*!
+ * Perform write on the user configuration register bus. These only exist if
+ * the user has implemented custom setting registers in the device FPGA.
+ * \param addr 8-bit register address
+ * \param data 32-bit register value
+ * \param mboard which motherboard to set the user register
+ */
+ virtual void set_user_register(const uint8_t addr, const uint32_t data, size_t mboard = 0) = 0;
};
#endif /* INCLUDED_GR_UHD_USRP_SINK_H */