aboutsummaryrefslogtreecommitdiffstats
path: root/mpm
diff options
context:
space:
mode:
Diffstat (limited to 'mpm')
-rw-r--r--mpm/python/usrp_mpm/dboard_manager/mg_periphs.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/mpm/python/usrp_mpm/dboard_manager/mg_periphs.py b/mpm/python/usrp_mpm/dboard_manager/mg_periphs.py
index 2f74ce11c..fb014cf54 100644
--- a/mpm/python/usrp_mpm/dboard_manager/mg_periphs.py
+++ b/mpm/python/usrp_mpm/dboard_manager/mg_periphs.py
@@ -190,12 +190,19 @@ class MgCPLD(object):
mask = (1<<4) if which.lower() == 'tx' else 1
return bool(self.peek16(self.REG_LO_STATUS & mask))
- def reset_mykonos(self):
+ def reset_mykonos(self, keep_in_reset=False):
"""
- Hard-resets Mykonos
+ Hard-resets Mykonos.
+
+ Arguments:
+ keep_in_reset -- If True, Mykonos will stay in reset. Otherwise, it will
+ simply pulse the reset and Mykonos will be out of reset
+ once the function returns
"""
self.log.debug("Resetting AD9371!")
self.poke16(self.REG_MYK_CTRL, 0x1)
+ if keep_in_reset:
+ return
time.sleep(0.001) # No spec here, but give it some time to reset.
self.poke16(self.REG_MYK_CTRL, 0x0)
time.sleep(0.001) # No spec here, but give it some time to reset.