Skip to main content

pamoja_scd4x_set_temperature_offset

Function pamoja_scd4x_set_temperature_offset 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_scd4x_set_temperature_offset( sensor: *mut PamojaScd4x, milli_celsius: u32, ) -> PamojaStatus
Expand description

Sets the temperature offset that compensates the part’s own warmth, stopping periodic measurement to write it and starting it again. The setting lasts until power is lost.

§Arguments

  • sensor - the driver.
  • milli_celsius - the offset to subtract, in millidegrees.

§Returns

As pamoja_scd4x_stop.

§Safety

sensor must be a live handle or null.