#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_opt3001_measure(
sensor: *mut PamojaOpt3001,
out_reading: *mut PamojaOpt3001Reading,
) -> PamojaStatusExpand description
Runs one conversion and reads the illuminance, initializing the part first if
pamoja_opt3001_init has not run.
§Arguments
sensor- the driver.out_reading- receives the illuminance.
§Returns
As pamoja_opt3001_init, with PamojaStatus::Io also when the conversion never
finishes.
§Safety
sensor must be a live handle or null, and out_reading a writable pointer or null.