aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/common/ad9361_ctrl.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2015-06-09 16:17:53 -0700
committerMartin Braun <martin.braun@ettus.com>2015-06-09 16:17:53 -0700
commit533548a681f0045f1194c4b47f857fa16314784d (patch)
treed5dbc598b17605d5c4be85fad08f1c766025bb6c /host/lib/usrp/common/ad9361_ctrl.cpp
parent13f9f07c42c4928ef3adcb1bbee3343198c9ecae (diff)
parent4d0dadb3cc0106c9026bc41d7d74d55918d13b43 (diff)
downloaduhd-533548a681f0045f1194c4b47f857fa16314784d.tar.gz
uhd-533548a681f0045f1194c4b47f857fa16314784d.tar.bz2
uhd-533548a681f0045f1194c4b47f857fa16314784d.zip
Merge branch 'maint'
Conflicts: host/lib/usrp/common/ad9361_ctrl.hpp host/lib/usrp/common/ad9361_driver/ad9361_device.h host/lib/usrp/e300/e300_remote_codec_ctrl.hpp
Diffstat (limited to 'host/lib/usrp/common/ad9361_ctrl.cpp')
-rw-r--r--host/lib/usrp/common/ad9361_ctrl.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/host/lib/usrp/common/ad9361_ctrl.cpp b/host/lib/usrp/common/ad9361_ctrl.cpp
index f3ab36247..2d9f297b3 100644
--- a/host/lib/usrp/common/ad9361_ctrl.cpp
+++ b/host/lib/usrp/common/ad9361_ctrl.cpp
@@ -169,6 +169,15 @@ public:
return _device.tune(direction, value);
}
+ //! get the current frequency for the given frontend
+ double get_freq(const std::string &which)
+ {
+ boost::lock_guard<boost::mutex> lock(_mutex);
+
+ ad9361_device_t::direction_t direction = _get_direction_from_antenna(which);
+ return _device.get_freq(direction);
+ }
+
//! turn on/off data port loopback
void data_port_loopback(const bool on)
{