etherlab/EthercatSlave.py
changeset 2366 d635680e4c2c
parent 2363 9c7da6ff6a34
child 2375 cfa68a06a24d
equal deleted inserted replaced
2365:bc07b9910cdb 2366:d635680e4c2c
    84         return TYPECONVERSION.get(self.GetCTRoot().GetBaseType(type), None)
    84         return TYPECONVERSION.get(self.GetCTRoot().GetBaseType(type), None)
    85 
    85 
    86     def GetSlavePos(self):
    86     def GetSlavePos(self):
    87         return self.BaseParams.getIEC_Channel()
    87         return self.BaseParams.getIEC_Channel()
    88 
    88 
    89     def GetParamsAttributes(self, path = None):
    89     def GetParamsAttributes(self, path=None):
    90         if path:
    90         if path:
    91             parts = path.split(".", 1)
    91             parts = path.split(".", 1)
    92             if self.MandatoryParams and parts[0] == self.MandatoryParams[0]:
    92             if self.MandatoryParams and parts[0] == self.MandatoryParams[0]:
    93                 return self.MandatoryParams[1].getElementInfos(parts[0], parts[1])
    93                 return self.MandatoryParams[1].getElementInfos(parts[0], parts[1])
    94             elif self.CTNParams and parts[0] == self.CTNParams[0]:
    94             elif self.CTNParams and parts[0] == self.CTNParams[0]: