Skip to main content

Module crc

Module crc 

Source
Expand description

CRC-16 CCITT Kermit implementation for IEEE 802.15.4 FCS.

The 802.15.4 standard uses CRC-16 CCITT with the Kermit polynomial (0x8408), which is the bit-reversed form of the standard CCITT polynomial (0x1021). Initial value is 0x0000, and the result is stored in little-endian byte order.

Functionsยง

compute_fcs
Compute the FCS bytes (2 bytes, little-endian) for the given data.
crc_ccitt_kermit
Compute CRC-16 CCITT Kermit checksum over the given data.
verify_fcs
Verify the FCS of a frame.