From b8acf58798018f5fb4d84d470badadce5dd3a08d Mon Sep 17 00:00:00 2001 From: mattprost Date: Thu, 16 Dec 2021 13:48:26 -0600 Subject: n310: Add Filter API to n310 Add the Filter API to n3xx specifically for the AD937x device. The TX filter is limited to 32 taps, and the RX filter is limited to 48 taps. This feature requires MPM version 4.2 or later on the device. Co-authored-by: bpadalino Signed-off-by: mattprost --- mpm/lib/mykonos/ad937x_device.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mpm/lib/mykonos/ad937x_device.hpp') diff --git a/mpm/lib/mykonos/ad937x_device.hpp b/mpm/lib/mykonos/ad937x_device.hpp index 8ee77db54..4b4503eb3 100644 --- a/mpm/lib/mykonos/ad937x_device.hpp +++ b/mpm/lib/mykonos/ad937x_device.hpp @@ -20,6 +20,7 @@ #include #include #include +#include #include class ad937x_device : public boost::noncopyable @@ -82,9 +83,10 @@ public: bool get_pll_lock_status(const uint8_t pll, const bool wait_for_lock = false); + void set_fir(const std::string& name, int8_t gain, const std::vector& fir); void set_fir( const uhd::direction_t direction, int8_t gain, const std::vector& fir); - std::vector get_fir(const uhd::direction_t direction, int8_t& gain); + std::pair> get_fir(const std::string& name); int16_t get_temperature(); @@ -136,4 +138,7 @@ private: static double _convert_rx_gain_from_mykonos(const uint8_t gain); static uint16_t _convert_tx_gain_to_mykonos(const double gain); static double _convert_tx_gain_from_mykonos(const uint16_t gain); + + const static std::map _tx_filter_map; + const static std::map _rx_filter_map; }; -- cgit v1.2.3