Skip to main content

pamoja_sht3x_last_status

Function pamoja_sht3x_last_status 

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

Reports the status an SHT3x driver last read, without reading it again.

§Arguments

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

§Returns

true with the status in out_status; false before the status has been read, or for a null argument.

§Safety

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