Skip to main content

pamoja_bmp280_measure

Function pamoja_bmp280_measure 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_bmp280_measure( sensor: *mut PamojaBmp280, out_reading: *mut PamojaBmp280Reading, ) -> PamojaStatus
Expand description

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

§Arguments

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

§Returns

As pamoja_bmp280_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_reading a writable pointer or null.