Skip to main content

pamoja_bmp280_sim_burst_for

Function pamoja_bmp280_sim_burst_for 

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

Builds the six data registers a simulated BMP280 holds when it reports a reading.

§Arguments

  • celsius - the temperature.
  • hectopascals - the pressure.
  • out_burst - receives the six bytes a burst read returns.

§Returns

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

§Safety

out_burst must point to 6 writable bytes.