pub fn crc16(data: &[u8]) -> u16Expand 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.
pub fn crc16(data: &[u8]) -> u16Compute 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.