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)
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)
def __init__(self, config): MsgParser.__init__(self, config) self.crc16 = crcmod.predefined.mkCrcFun('crc16') self.slipMsg = SLIPmsg(256)