diff options
author | Trung N Tran <trung.tran@ettus.com> | 2018-02-05 11:26:18 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-02-08 22:24:21 +0100 |
commit | 20a776bce3eec84c093b23e79d01b715f8756d72 (patch) | |
tree | fde15a5b4c4499a13da27b817dedec09dac90ccf /host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp | |
parent | d76918974ad467a4364d4c32948ce00a3afb59ff (diff) | |
download | uhd-20a776bce3eec84c093b23e79d01b715f8756d72.tar.gz uhd-20a776bce3eec84c093b23e79d01b715f8756d72.tar.bz2 uhd-20a776bce3eec84c093b23e79d01b715f8756d72.zip |
mg : implement set_bandwidth
Diffstat (limited to 'host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp')
-rw-r--r-- | host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp b/host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp index 9a91a316a..983de72fa 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp @@ -73,9 +73,10 @@ double magnesium_ad9371_iface::set_gain( double magnesium_ad9371_iface::set_bandwidth(const double bandwidth, const size_t chan, const direction_t dir) { - // TODO: implement - UHD_LOG_WARNING(_L, "Ignoring attempt to set bandwidth"); - return 0.0; + auto const which = _get_which(dir, chan); + auto retval = request<double>("set_bw_filter", which, bandwidth); + UHD_LOG_TRACE(_L, _rpc_prefix << "set_bw_filter returned " << retval); + return retval; } double magnesium_ad9371_iface::get_frequency( |