Skip to main content

pamoja_opt3001_lsb_milli_lux

Function pamoja_opt3001_lsb_milli_lux 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_opt3001_lsb_milli_lux( exponent: u8, out_milli_lux: *mut u32, ) -> bool
Expand description

Returns the illuminance one count carries at an OPT3001 exponent.

§Returns

true when the exponent is one the part defines, with *out_milli_lux set to the step; false for a reserved exponent.

§Safety

out_milli_lux must point to a writable uint32_t.