aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/lib/mykonos/ad937x_ctrl.cpp
diff options
context:
space:
mode:
authorTrung N Tran <trung.tran@ettus.com>2018-02-05 11:04:07 -0800
committerMartin Braun <martin.braun@ettus.com>2018-02-08 22:24:21 +0100
commitd76918974ad467a4364d4c32948ce00a3afb59ff (patch)
treea5bc76081356938318d36774656188d361b122d7 /mpm/lib/mykonos/ad937x_ctrl.cpp
parent832cbe095ae5e851aadddce66e1510d33a4430f3 (diff)
downloaduhd-d76918974ad467a4364d4c32948ce00a3afb59ff.tar.gz
uhd-d76918974ad467a4364d4c32948ce00a3afb59ff.tar.bz2
uhd-d76918974ad467a4364d4c32948ce00a3afb59ff.zip
mpm: ad937x: implement set_bw_filter
Diffstat (limited to 'mpm/lib/mykonos/ad937x_ctrl.cpp')
-rw-r--r--mpm/lib/mykonos/ad937x_ctrl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/mpm/lib/mykonos/ad937x_ctrl.cpp b/mpm/lib/mykonos/ad937x_ctrl.cpp
index 63eef4314..0e9e2ec00 100644
--- a/mpm/lib/mykonos/ad937x_ctrl.cpp
+++ b/mpm/lib/mykonos/ad937x_ctrl.cpp
@@ -363,8 +363,9 @@ public:
virtual double set_bw_filter(const std::string &which, const double value)
{
- // TODO implement
- return double();
+ const auto dir = _get_direction_from_antenna(which);
+ std::lock_guard<std::mutex> lock(*spi_mutex);
+ return device.set_bw_filter(dir, value);
}
virtual double set_gain(const std::string &which, const double value)