37 lBoardInfo = toolbox.readSubNodes(device.getNode(
'io.config'),
False)
39 boardType = lBoardInfo[
'board_type'].value()
40 carrierType = lBoardInfo[
'carrier_type'].value()
41 designType = lBoardInfo[
'design_type'].value()
47 raise RuntimeError(
'Device '+device.id()+
': Unknown board type')
49 raise RuntimeError(
'Device '+device.id()+
': Unknown design type')
51 def ctor(self, device, boardType, carrierType, designType):
55 self.
info.boardType = boardType
56 self.
info.carrierType = carrierType
57 self.
info.designType = designType
62 lCls = type(device.id(), (boardcls, designcls), {
'__init__':ctor})
64 return lCls(device, boardType, carrierType, designType)