aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard/magnesium
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/dboard/magnesium')
-rw-r--r--host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp9
-rw-r--r--host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.hpp4
2 files changed, 13 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);
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,