Skip to main content

crc16

Function crc16 

Source
pub fn crc16(data: &[u8]) -> u16
Expand description

CRC-KERMIT (polynomial 0x1021, initial value 0x0000, reflected).

Covers all bytes from SYNC through the last DATA byte (not including the two CRC bytes themselves). The result is transmitted LSB-first.