aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/lib/mykonos/ad937x_ctrl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mpm/lib/mykonos/ad937x_ctrl.cpp')
-rw-r--r--mpm/lib/mykonos/ad937x_ctrl.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/mpm/lib/mykonos/ad937x_ctrl.cpp b/mpm/lib/mykonos/ad937x_ctrl.cpp
index 8aeb5b599..d6062c228 100644
--- a/mpm/lib/mykonos/ad937x_ctrl.cpp
+++ b/mpm/lib/mykonos/ad937x_ctrl.cpp
@@ -431,7 +431,6 @@ public:
virtual void set_fir(const std::string &which, int8_t gain, const std::vector<int16_t> & fir)
{
auto dir = _get_direction_from_antenna(which);
- auto chain = _get_chain_from_antenna(which);
auto lengths = _get_valid_fir_lengths(which);
if (std::find(lengths.begin(), lengths.end(), fir.size()) == lengths.end())
@@ -440,16 +439,15 @@ public:
}
std::lock_guard<std::mutex> lock(*spi_mutex);
- device.set_fir(dir, chain, gain, fir);
+ device.set_fir(dir, gain, fir);
}
virtual std::vector<int16_t> get_fir(const std::string &which, int8_t &gain)
{
auto dir = _get_direction_from_antenna(which);
- auto chain = _get_chain_from_antenna(which);
std::lock_guard<std::mutex> lock(*spi_mutex);
- return device.get_fir(dir, chain, gain);
+ return device.get_fir(dir, gain);
}
virtual int16_t get_temperature()
@@ -458,6 +456,13 @@ public:
return device.get_temperature();
}
+ virtual void set_master_clock_rate(const double rate)
+ {
+ std::lock_guard<std::mutex> lock(*spi_mutex);
+ // FIXME: Add check for valid rates
+ device.set_master_clock_rate(rate);
+ }
+
virtual void set_enable_gain_pins(const std::string &which, bool enable)
{
auto dir = _get_direction_from_antenna(which);