Beispiel #1
0
        def __init__(self, defaultAddr, speed, parity):
            typecheck.is_byte(defaultAddr, AssertionError)
            typecheck.is_int(speed, AssertionError)
            typecheck.is_byte(parity, AssertionError)

            self.defaultAddr = defaultAddr
            self.speed = speed
            self.parity = parity
Beispiel #2
0
        def __init__(self, name, slaveAddr, baud, parity):
            typecheck.is_string(name, AssertionError)
            typecheck.is_byte(slaveAddr, AssertionError)
            typecheck.is_int(baud, AssertionError)
            typecheck.is_byte(parity, AssertionError)

            self.name = name
            self.slaveAddr = slaveAddr
            self.baud = baud
            self.parity = parity
        def __init__(self, name, slaveAddr, baud, parity):
            typecheck.is_string(name, AssertionError)
            typecheck.is_byte(slaveAddr, AssertionError)
            typecheck.is_int(baud, AssertionError)
            typecheck.is_byte(parity, AssertionError)

            self.name = name
            self.slaveAddr = slaveAddr
            self.baud = baud
            self.parity = parity
        def __init__(self, devAddr, lhxAddr):
            typecheck.is_byte(devAddr, AssertionError)
            typecheck.is_byte(lhxAddr, AssertionError)

            self.devAddr = devAddr
            self.lhxAddr = lhxAddr
Beispiel #5
0
        def __init__(self, devAddr, lhxAddr):
            typecheck.is_byte(devAddr, AssertionError)
            typecheck.is_byte(lhxAddr, AssertionError)

            self.devAddr = devAddr
            self.lhxAddr = lhxAddr