#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_ina226_set_alert(
sensor: *mut PamojaIna226,
mask: PamojaIna226MaskEnable,
limit: u16,
) -> PamojaStatusExpand description
Programs the alert pin: which limit it watches, and the limit.
§Arguments
sensor- the driver.mask- the mask/enable settings, one alert function at a time.limit- the alert-limit register, in the units of the register the function watches.
§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.