Skip to main content

calculate_crc

Function calculate_crc 

Source
pub fn calculate_crc(bytes: &[u8; 90]) -> u8
Expand description

Calculate the XOR checksum over byte positions 2 through 87 inclusive.

The CRC and reserved bytes are intentionally excluded.

对第 2 至 87 字节(含两端)计算异或校验和;不包含校验和与保留字节。