diff options
author | jcorgan | 2009-04-04 05:59:44 +0000 |
---|---|---|
committer | jcorgan | 2009-04-04 05:59:44 +0000 |
commit | 40402fb8f5c1009b6fa205303c7a57b0ae918148 (patch) | |
tree | 9faab37d57dc43f2e5c7a56ccec54926929a64c3 /gr-usrp2/src/usrp2_source_base.h | |
parent | 0907e015a341269f1d9fdb556fcadd8c051c7f81 (diff) | |
download | gnuradio-40402fb8f5c1009b6fa205303c7a57b0ae918148.tar.gz gnuradio-40402fb8f5c1009b6fa205303c7a57b0ae918148.tar.bz2 gnuradio-40402fb8f5c1009b6fa205303c7a57b0ae918148.zip |
Merged r10712:10765 from jcorgan/gpio into trunk. Adds out-of-band and streaming GPIO functions for USRP2.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10766 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-usrp2/src/usrp2_source_base.h')
-rw-r--r-- | gr-usrp2/src/usrp2_source_base.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gr-usrp2/src/usrp2_source_base.h b/gr-usrp2/src/usrp2_source_base.h index f98d329fd..2e2d51fc3 100644 --- a/gr-usrp2/src/usrp2_source_base.h +++ b/gr-usrp2/src/usrp2_source_base.h @@ -129,6 +129,31 @@ public: * \brief Called by scheduler when stopping flowgraph */ virtual bool stop(); + + /*! + * \brief Set daughterboard GPIO data direction register. + */ + bool set_gpio_ddr(uint16_t value, uint16_t mask); + + /*! + * \brief Set daughterboard GPIO output selection register. + */ + bool set_gpio_sels(std::string sels); + + /*! + * \brief Set daughterboard GPIO pin values. + */ + bool write_gpio(uint16_t value, uint16_t mask); + + /*! + * \brief Read daughterboard GPIO pin values + */ + bool read_gpio(uint16_t *value); + + /*! + * \brief Enable streaming GPIO in sample LSBs + */ + bool enable_gpio_streaming(int enable); }; #endif /* INCLUDED_USRP2_SOURCE_BASE_H */ |