pub fn crc16(bytes: &[u8]) -> u16
Compute the CRC-16/KERMIT over bytes.
bytes
The OSDP variant uses initial value 0x1D0F. The result is transmitted little-endian after the payload.
0x1D0F