diff options
author | Josh Blum <josh@joshknows.com> | 2010-04-26 18:13:09 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-04-26 18:13:09 -0700 |
commit | a62ff5290ab931a8c57f743e54e030c07964e568 (patch) | |
tree | 5d41b5df88322ad1d368e91fe2ba79b7f4a615e0 /host/include | |
parent | 06e1859d47c9b5be19ae680ba463a8fa72df9ebd (diff) | |
download | uhd-a62ff5290ab931a8c57f743e54e030c07964e568.tar.gz uhd-a62ff5290ab931a8c57f743e54e030c07964e568.tar.bz2 uhd-a62ff5290ab931a8c57f743e54e030c07964e568.zip |
added simple usrp api to read rssi and get LO lock status
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/usrp/simple_usrp.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/host/include/uhd/usrp/simple_usrp.hpp b/host/include/uhd/usrp/simple_usrp.hpp index e3f181ec3..c4142b4e6 100644 --- a/host/include/uhd/usrp/simple_usrp.hpp +++ b/host/include/uhd/usrp/simple_usrp.hpp @@ -98,6 +98,13 @@ public: */ virtual void set_clock_config(const clock_config_t &clock_config) = 0; + /*! + * Read the RSSI value from a usrp device. + * Or throw if the dboard does not support an RSSI readback. + * \return the rssi in dB + */ + virtual float read_rssi(void) = 0; + /******************************************************************* * RX methods ******************************************************************/ @@ -115,6 +122,8 @@ public: virtual std::string get_rx_antenna(void) = 0; virtual std::vector<std::string> get_rx_antennas(void) = 0; + virtual bool get_rx_lo_locked(void) = 0; + /******************************************************************* * TX methods ******************************************************************/ @@ -131,6 +140,8 @@ public: virtual void set_tx_antenna(const std::string &ant) = 0; virtual std::string get_tx_antenna(void) = 0; virtual std::vector<std::string> get_tx_antennas(void) = 0; + + virtual bool get_tx_lo_locked(void) = 0; }; }} |