Skip to main content

pamoja_sht3x_single_shot

Function pamoja_sht3x_single_shot 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_sht3x_single_shot( repeatability: u8, clock_stretching: bool, out_command: *mut u16, ) -> PamojaStatus
Expand description

Returns the SHT3x single-shot command for a repeatability and clock mode.

§Returns

PamojaStatus::Ok on success, with *out_command set, or PamojaStatus::InvalidArgument if repeatability is not 0, 1, or 2.

§Safety

out_command must point to a writable uint16_t.