aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp
diff options
context:
space:
mode:
authorDaniel Jepson <daniel.jepson@ni.com>2018-07-12 15:56:30 -0500
committerMartin Braun <martin.braun@ettus.com>2018-08-02 12:37:34 -0700
commit528b288cce02b05f3d979cb9fd91cc9e3782cd5c (patch)
tree40ec5ba6aabe922662a86be34f9d2fbac236428e /host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp
parentfab3dc52d75d8f07d629da220f260b5c48369ef7 (diff)
downloaduhd-528b288cce02b05f3d979cb9fd91cc9e3782cd5c.tar.gz
uhd-528b288cce02b05f3d979cb9fd91cc9e3782cd5c.tar.bz2
uhd-528b288cce02b05f3d979cb9fd91cc9e3782cd5c.zip
mpm: mg: add set_master_clock_rate member
Diffstat (limited to 'host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp')
-rw-r--r--host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp b/host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp
index 41e33574d..977d0bcab 100644
--- a/host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp
+++ b/host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp
@@ -71,6 +71,15 @@ double magnesium_ad9371_iface::set_gain(
}
+double magnesium_ad9371_iface::set_master_clock_rate(
+ const double freq
+) {
+ auto actual_freq = request<double>("set_master_clock_rate", freq);
+ UHD_LOG_TRACE(_log_prefix,
+ _rpc_prefix << "set_master_clock_rate returned successfully");
+ return freq;
+}
+
double magnesium_ad9371_iface::set_bandwidth(const double bandwidth, const size_t chan, const direction_t dir)
{
auto const which = _get_which(dir, chan);