crc16-0.1.0: Calculate the crc16-ccitt.
Data.Digest.CRC16
Contents
Description
crc16 ccitt
1) MSB first 1021 x^16 + x^12 + x^5 + 1
2) LSB first 8048
Synopsis
crc16_updateSource
Arguments
polynomial
inverse bits
initial crc
data byte
new crc
crc16 calculation This uses the simple method based on bit shifting. See the unittests for an example.