diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-10-09 17:46:01 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:04:02 -0800 |
commit | 96f012a14a75ddd559be2c22b87dc03025d3ea1e (patch) | |
tree | 322543b914e136d40ca1118dc2dc6daf40350b23 /mpm | |
parent | cea45dda8f7d7918930a6b1150913390d4480037 (diff) | |
download | uhd-96f012a14a75ddd559be2c22b87dc03025d3ea1e.tar.gz uhd-96f012a14a75ddd559be2c22b87dc03025d3ea1e.tar.bz2 uhd-96f012a14a75ddd559be2c22b87dc03025d3ea1e.zip |
mpm: n310: Add mboard EEPROM support
This is a specific override for the N310. It returns all the default
device info as a dict.
Diffstat (limited to 'mpm')
-rw-r--r-- | mpm/python/usrp_mpm/periph_manager/n310.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/n310.py b/mpm/python/usrp_mpm/periph_manager/n310.py index a920fd35b..f2aa43a84 100644 --- a/mpm/python/usrp_mpm/periph_manager/n310.py +++ b/mpm/python/usrp_mpm/periph_manager/n310.py @@ -511,3 +511,18 @@ class n310(PeriphManagerBase): 'value': str(lock_status).lower(), } + ########################################################################### + # EEPROMs + ########################################################################### + def get_mb_eeprom(self): + """ + Return a dictionary with EEPROM contents. + + All key/value pairs are string -> string. + + We don't actually return the EEPROM contents, instead, we return the + mboard info again. This filters the EEPROM contents to what we think + the user wants to know/see. + """ + return self.mboard_info + |