aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/dboard_manager/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'mpm/python/usrp_mpm/dboard_manager/base.py')
-rw-r--r--mpm/python/usrp_mpm/dboard_manager/base.py17
1 files changed, 11 insertions, 6 deletions
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", "")