I am working with a device that requires me to generate a 16 bit CRC.
The datasheet for the device says it needs the following CRC Definition:
CRC Type Length Polynomial Direction Preset Residue CRC-CCITT 16 bits x16 + x12 + x5 + 1 Forward FFFF (16) 1D0F (16)
where preset=FFFF (16 bit) and Residue=1D0F (16 bit)
I searched for a CRC algorithm and found this link: http://www.lammertbies.nl/comm/info/crc-calculation.html
It has both on it. CRC-CCITT (0xFFFF) CRC-CCITT (0x1D0F)
What's the difference between the preset and the residue?