From 528b288cce02b05f3d979cb9fd91cc9e3782cd5c Mon Sep 17 00:00:00 2001 From: Daniel Jepson Date: Thu, 12 Jul 2018 15:56:30 -0500 Subject: mpm: mg: add set_master_clock_rate member --- host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp | 9 +++++++++ host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.hpp | 4 ++++ 2 files changed, 13 insertions(+) (limited to 'host/lib/usrp/dboard/magnesium') 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("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); diff --git a/host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.hpp b/host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.hpp index 592af578e..62a7f5d5e 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.hpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.hpp @@ -44,6 +44,10 @@ public: const uhd::direction_t dir ); + double set_master_clock_rate( + const double freq + ); + double set_bandwidth( const double bandwidth, const size_t chan, -- cgit v1.2.3