Skip to main content

pamoja_tmp117_measure

Function pamoja_tmp117_measure 

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

Runs one conversion and reads the temperature, initializing the part first if pamoja_tmp117_init has not run.

§Arguments

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

§Returns

As pamoja_tmp117_init, with PamojaStatus::Io also when the part never reports the conversion done.

§Safety

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