I tried to calculate ANSI CRC16 polynomial (0x8005) using this code
import crcmod
crc16 = crcmod.mkCrcFun(0x8005, 0xffff, True)
but I got this error message
ValueError: The degree of the polynomial must be 8, 16, 24, 32 or 64
I tried to calculate ANSI CRC16 polynomial (0x8005) using this code
import crcmod
crc16 = crcmod.mkCrcFun(0x8005, 0xffff, True)
but I got this error message
ValueError: The degree of the polynomial must be 8, 16, 24, 32 or 64
There is an implied
1
at the beginning of0x8005
crcmod expects you to provide the
1
explicitly