#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_opt3001_set_limits(
sensor: *mut PamojaOpt3001,
low_milli_lux: u32,
high_milli_lux: u32,
) -> PamojaStatusExpand description
Writes the low and high limits the part’s interrupt pin compares each result against.
§Arguments
sensor- the driver.low_milli_lux- the low limit, in millilux.high_milli_lux- the high limit, in millilux.
§Returns
PamojaStatus::Ok, PamojaStatus::InvalidArgument for a null driver, or
PamojaStatus::Io when the bus fails.
§Safety
sensor must be a live handle or null.