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 method

crc16_updateSource

Arguments

:: Word16

polynomial

-> Bool

inverse bits

-> Word16

initial crc

-> Word8

data byte

-> Word16

new crc

crc16 calculation This uses the simple method based on bit shifting. See the unittests for an example.