diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-11-21 16:20:04 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 12:21:34 -0800 |
commit | 66a9df7b16ee230dc010443ea67d637cfaf44265 (patch) | |
tree | bfb0d587363424822d47a9ce58c48a3e3981a608 /host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp | |
parent | 911ca16adc9222be11d1cbf134bf547daa16806f (diff) | |
download | uhd-66a9df7b16ee230dc010443ea67d637cfaf44265.tar.gz uhd-66a9df7b16ee230dc010443ea67d637cfaf44265.tar.bz2 uhd-66a9df7b16ee230dc010443ea67d637cfaf44265.zip |
mg: Always set MCR on both daughterboards
The N310 cannot set the MCR for its daughterboards separately. This
patch modifies the radio block controller such that any block
controller, when requested to change the master clock rate, will first
change Radio 0, and then Radio 1.
This fixes the following issues:
- In multi_usrp, calling set_master_clock_rate() will not necessarily
call set_rate() on the radios in any particular order, which will
break when calling Radio 1 first
- In RFNoC apps, it wasn't possible to run off of slot B alone without
this change.
Note: When calling set_rate() on one radio, the other radio is in an
invalid state until its set_rate() is also called.
Diffstat (limited to 'host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp')
-rw-r--r-- | host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp b/host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp index d7d1b43de..f71b1aa4e 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp @@ -60,15 +60,6 @@ double magnesium_ad9371_iface::set_gain( // return 0.0; } - -double magnesium_ad9371_iface::set_master_clock_rate(const double freq) -{ - const auto actual_freq = request<double>("set_master_clock_rate", freq); - UHD_LOG_TRACE( - _log_prefix, _rpc_prefix << "set_master_clock_rate returned successfully"); - return actual_freq; -} - double magnesium_ad9371_iface::set_bandwidth( const double bandwidth, const size_t chan, const direction_t dir) { |