bus: Support bus enumerations and add support for reserved pins

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-03-31 20:30:14 -04:00
parent 4c3d50693e
commit 1ab02e5225
5 changed files with 87 additions and 23 deletions

View file

@ -384,6 +384,10 @@ class MessageParser:
except Exception as e:
logging.exception("process_identify error")
raise error("Error during identify: %s" % (str(e),))
def get_enumerations(self):
return dict(self.enumerations)
def get_constants(self):
return dict(self.config)
class sentinel: pass
def get_constant(self, name, default=sentinel, parser=str):
if name not in self.config: