aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mpm/python/usrp_mpm/dboard_manager/magnesium.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/dboard_manager/magnesium.py b/mpm/python/usrp_mpm/dboard_manager/magnesium.py
index e1301b699..ae854ec81 100644
--- a/mpm/python/usrp_mpm/dboard_manager/magnesium.py
+++ b/mpm/python/usrp_mpm/dboard_manager/magnesium.py
@@ -753,6 +753,21 @@ class Magnesium(DboardManagerBase):
##########################################################################
# Sensors
##########################################################################
+ def get_ref_lock(self):
+ """
+ Returns True if the LMK reference is locked.
+
+ Note: This does not return a sensor dict. The sensor API call is
+ in the motherboard class.
+ """
+ if self.lmk is None:
+ self.log.debug("LMK object not yet initialized, defaulting to " \
+ "no ref locked!")
+ return False
+ lmk_lock_status = self.lmk.check_plls_locked()
+ self.log.trace("LMK lock status is: {}".format(lmk_lock_status))
+ return lmk_lock_status
+
def get_lowband_lo_lock(self, which):
"""
Return LO lock status (Boolean!) of the lowband LOs. 'which' must be