#[unsafe(no_mangle)]pub extern "C" fn pamoja_opt3001_sim_reporting(
address: u8,
lux: f32,
) -> *mut PamojaI2cPartExpand description
Creates a simulated OPT3001 that reads what it is asked to. Its configuration register keeps the flags the part sets for itself, with the conversion-ready flag set.
§Arguments
address- the address it answers to.lux- the illuminance it reports, which lands on the nearest step its exponent and mantissa represent.
§Returns
The part, which the caller releases with crate::hal::pamoja_i2c_part_free.