Skip to main content

pamoja_bmp280_measurement_bytes

Function pamoja_bmp280_measurement_bytes 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_bmp280_measurement_bytes( pressure: u32, temperature: u32, out_bytes: *mut u8, ) -> PamojaStatus
Expand description

Builds the six data bytes a BMP280 holding these codes would return.

§Returns

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

§Safety

out_bytes must point to at least six writable bytes.