diff options
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 */ |