#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_ds18b20_parse_scratchpad(
bytes: *const u8,
bytes_len: usize,
out_reading: *mut PamojaDs18b20Reading,
) -> PamojaStatusExpand description
Parses and CRC-checks a nine-byte DS18B20 scratchpad.
§Returns
PamojaStatus::Ok on success, with *out_reading filled in, or
PamojaStatus::Codec if the CRC does not match, which means the read was
corrupted on the bus and should be repeated.
§Safety
bytes must point to at least bytes_len readable bytes, and out_reading
must point to a writable PamojaDs18b20Reading.