aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/dboard_manager/neon.py
diff options
context:
space:
mode:
authorSugandha Gupta <sugandha.gupta@ettus.com>2019-01-25 11:34:47 -0800
committerBrent Stapleton <brent.stapleton@ettus.com>2019-05-01 15:17:23 -0700
commit178b35569b1a25180a80a23b945b10b04c9f10f5 (patch)
tree3adb6f78ebd148867a50526c60fe7bf9694a4a72 /mpm/python/usrp_mpm/dboard_manager/neon.py
parent8a400f6a30942c9d6d3596f6989720eb4cff058b (diff)
downloaduhd-178b35569b1a25180a80a23b945b10b04c9f10f5.tar.gz
uhd-178b35569b1a25180a80a23b945b10b04c9f10f5.tar.bz2
uhd-178b35569b1a25180a80a23b945b10b04c9f10f5.zip
e310/e320: Move E310 to MPM architecture and refactor
- Turns the E310 into an MPM device (like N3xx, E320) - Factor out common code between E320 and E310, maximize sharing between the two devices - Remove all pre-MPM E310 code that is no longer needed - Modify MPM to remove all existing overlays before applying new ones (this is necessary to enable idle image mode for E310) Co-authored-by: Virendra Kakade <virendra.kakade@ni.com> Signed-off-by: Virendra Kakade <virendra.kakade@ni.com>
Diffstat (limited to 'mpm/python/usrp_mpm/dboard_manager/neon.py')
-rw-r--r--mpm/python/usrp_mpm/dboard_manager/neon.py19
1 files changed, 17 insertions, 2 deletions
diff --git a/mpm/python/usrp_mpm/dboard_manager/neon.py b/mpm/python/usrp_mpm/dboard_manager/neon.py
index c0eb10eae..00438503d 100644
--- a/mpm/python/usrp_mpm/dboard_manager/neon.py
+++ b/mpm/python/usrp_mpm/dboard_manager/neon.py
@@ -18,7 +18,7 @@ from usrp_mpm.mpmlog import get_logger
from usrp_mpm.sys_utils.udev import get_eeprom_paths
from usrp_mpm.sys_utils.uio import UIO
from usrp_mpm.periph_manager.e320_periphs import MboardRegsControl
-
+from usrp_mpm.mpmutils import async_exec
###############################################################################
# Main dboard control class
@@ -186,7 +186,7 @@ class Neon(DboardManagerBase):
))
# Some default chains on -- needed for setup purposes
self.catalina.set_active_chains(True, False, True, False)
- self.catalina.set_clock_rate(self.master_clock_rate)
+ self.set_catalina_clock_rate(self.master_clock_rate)
return True
@@ -321,3 +321,18 @@ class Neon(DboardManagerBase):
'value': str(self.get_rssi_val(which)),
}
+ def set_catalina_clock_rate(self, rate):
+ """
+ Async call to catalina set_clock_rate
+ """
+ self.log.trace("Setting Clock rate to {}".format(rate))
+ async_exec(lib.ad9361, "set_clock_rate", self.catalina, rate)
+ return rate
+
+ def catalina_tune(self, which, freq):
+ """
+ Async call to catalina tune
+ """
+ self.log.trace("Tuning {} {}".format(which, freq))
+ async_exec(lib.ad9361, "tune", self.catalina, which, freq)
+ return self.catalina.get_freq(which)