Function bit_lib_crc8
Source pub unsafe extern "C" fn bit_lib_crc8(
data: *const u8,
data_size: usize,
polynom: u8,
init: u8,
ref_in: bool,
ref_out: bool,
xor_out: u8,
) -> u16
Expand description
Slow, but generic CRC8 implementation
§Arguments
data -
data_size -
polynom - CRC polynom
init - init value
ref_in - true if the right bit is older
ref_out - true to reverse output
xor_out - xor output with this value
§Returns
uint8_t