Skip to main content

pamoja_ds18b20_crc8

Function pamoja_ds18b20_crc8 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_ds18b20_crc8( data: *const u8, data_len: usize, ) -> u8
Expand description

Computes the Maxim CRC-8 a 1-Wire device checks its own bytes with.

§Returns

The checksum over data.

§Safety

data must point to at least data_len readable bytes, or be null when data_len is 0.