Skip to main content

pamoja_hdc1080_measure

Function pamoja_hdc1080_measure 

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

Triggers one acquisition of both channels and reads them, initializing the part first if pamoja_hdc1080_init has not run.

§Arguments

  • sensor - the driver.
  • out_measurement - receives the temperature and humidity.

§Returns

As pamoja_hdc1080_init. A part that does not acknowledge the read before its results are ready is PamojaStatus::Io.

§Safety

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