Function bit_lib_crc16
Source pub unsafe extern "C" fn bit_lib_crc16(
data: *const u8,
data_size: usize,
polynom: u16,
init: u16,
ref_in: bool,
ref_out: bool,
xor_out: u16,
) -> u16
Expand description
Slow, but generic CRC16 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
uint16_t