Expand description
CRC-16-CCITT implementation for SBF block validation
SBF uses CRC-16-CCITT with polynomial 0x1021 and initial value 0. The CRC covers ID + Length + Body (excludes sync bytes and CRC field itself).
Functions§
- calculate_
block_ crc - Calculate CRC for block data (ID + Length + Body) and return expected CRC
- crc16_
ccitt - Calculate CRC-16-CCITT checksum
- validate_
block - Validate an SBF block’s CRC