Skip to main content

pamoja_hdc1080_heater

Function pamoja_hdc1080_heater 

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

Switches the on-die heater, which runs only during acquisitions, on or off.

§Arguments

  • sensor - the driver.
  • on - whether the heater runs.

§Returns

PamojaStatus::Ok, PamojaStatus::InvalidArgument for a null driver, or PamojaStatus::Io when the bus fails.

§Safety

sensor must be a live handle or null.