Function calculate_crc

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

Calculates the CRC checksum of a messages header, payload and the CRC_EXTRA byte.