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/python/usrp_mpm/dboard_manager/magnesium.py | 9 +++++++++ mpm/python/usrp_mpm/rpc_server.py | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'mpm/python') diff --git a/mpm/python/usrp_mpm/dboard_manager/magnesium.py b/mpm/python/usrp_mpm/dboard_manager/magnesium.py index d5cc525dc..1ffbc6f16 100644 --- a/mpm/python/usrp_mpm/dboard_manager/magnesium.py +++ b/mpm/python/usrp_mpm/dboard_manager/magnesium.py @@ -493,6 +493,15 @@ class Magnesium(BfrfsEEPROM, DboardManagerBase): self._reinit(self.master_clock_rate) return bw + def set_fir(self, name, gain, coeffs): + self.log.debug("ad9371 set_fir name: {} gain: {} coeffs: {}".format(name, gain, coeffs)) + self.mykonos.set_fir(name, gain, coeffs) + return + + def get_fir(self, name): + self.log.debug("ad9371 get_fir name: {}".format(name)) + return self.mykonos.get_fir(name) + ########################################################################## # Debug ########################################################################## diff --git a/mpm/python/usrp_mpm/rpc_server.py b/mpm/python/usrp_mpm/rpc_server.py index 78b76ab19..c0779ab77 100644 --- a/mpm/python/usrp_mpm/rpc_server.py +++ b/mpm/python/usrp_mpm/rpc_server.py @@ -32,7 +32,7 @@ from usrp_mpm.sys_utils import net TIMEOUT_INTERVAL = 5.0 # Seconds before claim expires (default value) TOKEN_LEN = 16 # Length of the token string # Compatibility number for MPM -MPM_COMPAT_NUM = (4, 1) +MPM_COMPAT_NUM = (4, 2) def no_claim(func): " Decorator for functions that require no token check " -- cgit v1.2.3