diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-11-28 18:29:39 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:05:07 -0800 |
commit | 44b117be95dac3dd15c988e4e7d01b49f82d1a0c (patch) | |
tree | 647313fa43d4c1ae01619aad52e7ac7a524d932c /mpm/python/usrp_mpm/dboard_manager/magnesium.py | |
parent | c22ba82562e8f0c5ea2eff7b7255661cd0b57da5 (diff) | |
download | uhd-44b117be95dac3dd15c988e4e7d01b49f82d1a0c.tar.gz uhd-44b117be95dac3dd15c988e4e7d01b49f82d1a0c.tar.bz2 uhd-44b117be95dac3dd15c988e4e7d01b49f82d1a0c.zip |
mpm: mg: Add ref lock sensor
Note: The sensor API for this lives in n310, but it queries the dboards
for a ref lock status, which is now no longer a stub.
Diffstat (limited to 'mpm/python/usrp_mpm/dboard_manager/magnesium.py')
-rw-r--r-- | mpm/python/usrp_mpm/dboard_manager/magnesium.py | 15 |
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 |