pub unsafe extern "C" fn subghz_protocol_blocks_crc8(
    message: *const [u8; 0],
    size: usize,
    polynomial: u8,
    init: u8
) -> u8
Expand description

Generic Cyclic Redundancy Check CRC-8. Example polynomial: 0x31 = x8 + x5 + x4 + 1 (x8 is implicit) Example polynomial: 0x80 = x8 + x7 (a normal bit-by-bit parity XOR)

@param message array of bytes to check @param size number of bytes in message @param polynomial byte is from x^7 to x^0 (x^8 is implicitly one) @param init starting crc value

@return CRC value