diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2012-04-04 16:56:14 -0700 |
---|---|---|
committer | Nicholas Corgan <nick.corgan@ettus.com> | 2012-04-04 16:56:14 -0700 |
commit | 27dd737afdab4123e40a1b886635b387b3c063c6 (patch) | |
tree | 919302a2ba4aa07b738924228be72b048e4fb2e6 /gr-uhd/include | |
parent | fc03a9b18ca874cac546b7a414089d3649dce48d (diff) |
gr-uhd: uhd_siggen, uhd_siggen_gui, and uhd_fft include information on the user's UHD version and USRP configuration
Diffstat (limited to 'gr-uhd/include')
-rw-r--r-- | gr-uhd/include/gr_uhd_usrp_sink.h | 14 | ||||
-rw-r--r-- | gr-uhd/include/gr_uhd_usrp_source.h | 13 |
2 files changed, 21 insertions, 6 deletions
diff --git a/gr-uhd/include/gr_uhd_usrp_sink.h b/gr-uhd/include/gr_uhd_usrp_sink.h index 169d581526..fff567438c 100644 --- a/gr-uhd/include/gr_uhd_usrp_sink.h +++ b/gr-uhd/include/gr_uhd_usrp_sink.h @@ -133,11 +133,11 @@ public: /*! * Returns identifying information about this USRP's configuration. * Returns motherboard ID, name, and serial. - * Returns daughterboard TX/RX ID, subdev name, and serial. - * \param mboard the motherboard index 0 to M-1 + * Returns daughterboard TX ID, subdev name, and serial. * \param chan channel index 0 to N-1 + * \return TX info */ - virtual uhd::dict<std::string, std::string> get_usrp_info(size_t mboard = 0, size_t chan = 0) = 0; + virtual uhd::dict<std::string, std::string> get_usrp_tx_info(size_t chan = 0) = 0; /*! * Set the frontend specification. @@ -146,6 +146,14 @@ public: */ virtual void set_subdev_spec(const std::string &spec, size_t mboard = 0) = 0; + + /*! + * Get the TX frontend specification. + * \param mboard the motherboard index 0 to M-1 + * \return the frontend specification in use + */ + virtual std::string get_subdev_spec (size_t mboard = 0) = 0; + /*! * Set the sample rate for the usrp device. * \param rate a new rate in Sps diff --git a/gr-uhd/include/gr_uhd_usrp_source.h b/gr-uhd/include/gr_uhd_usrp_source.h index 20cc863d7a..0dde4b1946 100644 --- a/gr-uhd/include/gr_uhd_usrp_source.h +++ b/gr-uhd/include/gr_uhd_usrp_source.h @@ -125,11 +125,11 @@ public: /*! * Returns identifying information about this USRP's configuration. * Returns motherboard ID, name, and serial. - * Returns daughterboard TX/RX ID, subdev name, and serial. - * \param mboard the motherboard index 0 to M-1 + * Returns daughterboard RX ID, subdev name, and serial. * \param chan channel index 0 to N-1 + * \return RX info */ - virtual uhd::dict<std::string, std::string> get_usrp_info(size_t mboard = 0, size_t chan = 0) = 0; + virtual uhd::dict<std::string, std::string> get_usrp_rx_info(size_t chan = 0) = 0; /*! * Set the frontend specification. @@ -139,6 +139,13 @@ public: virtual void set_subdev_spec(const std::string &spec, size_t mboard = 0) = 0; /*! + * Get the RX frontend specification. + * \param mboard the motherboard index 0 to M-1 + * \return the frontend specification in use + */ + virtual std::string get_subdev_spec(size_t mboard = 0) = 0; + + /*! * Set the sample rate for the usrp device. * \param rate a new rate in Sps */ |