예제 #1
0
    def __init__(self, config):
        MsgParser.__init__(self, config)

        self.crc = crcmod.mkCrcFun(0x107, initCrc=0, xorOut=0,
                                   rev=False)  # CRC-8
        self.crcLength = 1
        self.msg = SLIPmsg(256)
예제 #2
0
    def __init__(self, config):
        MsgParser.__init__(self, config)

        self.crc = crcmod.mkCrcFun(0x11021,
                                   initCrc=0xFFFF,
                                   xorOut=0,
                                   rev=False)  # CRC-16
        self.crcLength = 2
        self.msg = HDLCMsg(2058)
예제 #3
0
    def __init__(self, config):
        MsgParser.__init__(self, config)

        self.crc16 = crcmod.predefined.mkCrcFun('crc16')
        self.slipMsg = SLIPmsg(256)