Skip to main content

pamoja_bme280_sim_burst

Function pamoja_bme280_sim_burst 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_bme280_sim_burst( out_burst: *mut u8, ) -> PamojaStatus
Expand description

Copies the one measurement a simulated BME280 holds: the eight data registers a real part read, which compensate to 20.44 C, 848.05 hPa, and 44.65 % against its calibration.

§Arguments

  • out_burst - receives the eight bytes a burst read returns.

§Returns

PamojaStatus::Ok, or PamojaStatus::InvalidArgument for a null pointer.

§Safety

out_burst must point to 8 writable bytes.