Skip to main content

crc16

Function crc16 

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

Compute the CRC-16/KERMIT over bytes.

The OSDP variant uses initial value 0x1D0F. The result is transmitted little-endian after the payload.