Skip to main content

Module crc

Module crc 

Source
Expand description

CRC-16/CCITT-FALSE — the wire-level integrity check used by DongLoRa Protocol.

Polynomial 0x1021, initial value 0xFFFF, no reflection, XOR-out 0x0000. This is the same variant also known as CRC-16/AUTOSAR or CRC-16/IBM-3740. It is NOT the same as CRC-16/KERMIT, CRC-16/XMODEM, or plain “CRC-16/CCITT” — those use different initial values or reflect their inputs.

Check value: crc16("123456789") == 0x29B1. A module-level test pins this, and tests/vectors.rs anchors every Appendix C wire example.

Functions§

crc16
CRC-16/CCITT-FALSE of data.