Skip to main content

pamoja_bme280_measure

Function pamoja_bme280_measure 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_bme280_measure( sensor: *mut PamojaBme280, out_measurement: *mut PamojaBme280Measurement, ) -> PamojaStatus
Expand description

Runs one forced measurement and compensates it, initializing the part first if pamoja_bme280_init has not run.

§Arguments

  • sensor - the driver.
  • out_measurement - receives the reading.

§Returns

As pamoja_bme280_init, with PamojaStatus::Io also when the part is still measuring after the datasheet’s time.

§Safety

sensor must be a live handle or null, and out_measurement a writable pointer or null.