Skip to main content

pamoja_sht3x_status_bytes

Function pamoja_sht3x_status_bytes 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_sht3x_status_bytes( bits: u16, out_bytes: *mut u8, ) -> PamojaStatus
Expand description

Builds the three bytes an SHT3x sends for a status word, CRC last.

§Returns

PamojaStatus::Ok on success, with the three bytes written to out_bytes, or PamojaStatus::InvalidArgument if out_bytes is null.

§Safety

out_bytes must point to at least three writable bytes.