Skip to main content

pamoja_hdc1080_measurement_bytes

Function pamoja_hdc1080_measurement_bytes 

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

Builds the four bytes an HDC1080 sends for a pair of raw registers.

§Returns

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

§Safety

out_bytes must point to at least four writable bytes.