Skip to main content

crc16_to_bytes

Function crc16_to_bytes 

Source
pub fn crc16_to_bytes(crc: u16) -> [u8; 2]
Expand description

Serialize a CRC into the two-byte little-endian form expected on the wire.

The chip transmits and expects the low byte first, then the high byte.