From 4efea95324b66477f877d65c2d9c6ce188850174 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 10 May 2017 12:07:14 -0700 Subject: mpm: Enabled mboard EEPROM readout --- mpm/python/usrp_mpm/dboard_manager/base.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'mpm/python/usrp_mpm/dboard_manager/base.py') diff --git a/mpm/python/usrp_mpm/dboard_manager/base.py b/mpm/python/usrp_mpm/dboard_manager/base.py index 13284f6d3..985c20484 100644 --- a/mpm/python/usrp_mpm/dboard_manager/base.py +++ b/mpm/python/usrp_mpm/dboard_manager/base.py @@ -22,15 +22,20 @@ from ..mpmlog import get_logger class DboardManagerBase(object): """ - Holds shared pointer to wrapped C++ implementation. - Sanitizes arguments before calling C++ functions. - Ties various constants to specific daughterboard class + Base class for daughterboard controls """ - _eeprom = {} + ######################################################################### + # Overridables + # + # These values are meant to be overridden by the according subclasses + ######################################################################### + # Very important: A list of PIDs that apply to the current device. Must be + # list, even if there's only one entry. + pids = [] - def __init__(self, eeprom=None): - self._eeprom = eeprom or {} + def __init__(self, slot_idx, **kwargs): self.log = get_logger('dboardManager') + self.slot_idx = slot_idx def get_serial(self): return self._eeprom.get("serial", "") -- cgit v1.2.3