Constant rubble::link::CRC_POLY[][src]

pub const CRC_POLY: u32 = 0b00000001_00000000_00000110_01011011;
Expand description

The CRC polynomial to use for CRC24 generation.

If your radio has hardware support for CRC generation, you may use (parts of) this value to configure it (if necessary). The CRC should be computed only over the PDU. Also note that the CRC, unlike every other field, is transmitted MSb first.

Counting from the least-significant bit (bit 0), bit k in this value is set if the term x^k occurs in the CRC polynomial. This includes bit 24, which is usually not explicitly specified.

Written out, the polynomial is:

x^24 + x^10 + x^9 + x^6 + x^4 + x^3 + x + 1