Skip to main content

pamoja_sht3x_read_status

Function pamoja_sht3x_read_status 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_sht3x_read_status( sensor: *mut PamojaSht3x, out_status: *mut PamojaSht3xStatus, ) -> PamojaStatus
Expand description

Reads the status register.

§Arguments

  • sensor - the driver.
  • out_status - receives the status.

§Returns

PamojaStatus::Ok, PamojaStatus::InvalidArgument for a null argument, PamojaStatus::Io when the bus fails, or PamojaStatus::Codec when the word fails its CRC.

§Safety

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