Skip to main content

crc16

Function crc16 

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

Compute the CRC-16 over data.

Returns the CRC as a u16 in native byte order. To write it into a packet, use crc16_to_bytes which lays it out low byte first as the protocol expects.