summaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-26 18:13:09 -0700
committerJosh Blum <josh@joshknows.com>2010-04-26 18:13:09 -0700
commita62ff5290ab931a8c57f743e54e030c07964e568 (patch)
tree5d41b5df88322ad1d368e91fe2ba79b7f4a615e0 /host/lib/usrp
parent06e1859d47c9b5be19ae680ba463a8fa72df9ebd (diff)
downloaduhd-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/lib/usrp')
-rw-r--r--host/lib/usrp/simple_usrp.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/host/lib/usrp/simple_usrp.cpp b/host/lib/usrp/simple_usrp.cpp
index 321d66a4a..a8c104485 100644
--- a/host/lib/usrp/simple_usrp.cpp
+++ b/host/lib/usrp/simple_usrp.cpp
@@ -102,6 +102,10 @@ public:
_mboard[MBOARD_PROP_CLOCK_CONFIG] = clock_config;
}
+ float read_rssi(void){
+ return _rx_subdev[SUBDEV_PROP_RSSI].as<float>();
+ }
+
/*******************************************************************
* RX methods
******************************************************************/
@@ -145,6 +149,10 @@ public:
return _rx_subdev[SUBDEV_PROP_ANTENNA_NAMES].as<prop_names_t>();
}
+ bool get_rx_lo_locked(void){
+ return _rx_subdev[SUBDEV_PROP_LO_LOCKED].as<bool>();
+ }
+
/*******************************************************************
* TX methods
******************************************************************/
@@ -188,6 +196,10 @@ public:
return _tx_subdev[SUBDEV_PROP_ANTENNA_NAMES].as<prop_names_t>();
}
+ bool get_tx_lo_locked(void){
+ return _tx_subdev[SUBDEV_PROP_LO_LOCKED].as<bool>();
+ }
+
private:
device::sptr _dev;
wax::obj _mboard;