Skip to main content

pamoja_sht3x_parse_status

Function pamoja_sht3x_parse_status 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_sht3x_parse_status( frame: *const u8, frame_len: usize, out_status: *mut PamojaSht3xStatus, ) -> PamojaStatus
Expand description

Parses and CRC-checks a three-byte SHT3x status frame.

§Returns

PamojaStatus::Ok on success, with *out_status filled in, or PamojaStatus::Codec if the CRC does not match.

§Safety

frame must point to at least frame_len readable bytes, and out_status must point to a writable PamojaSht3xStatus.