#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_opt3001_init(
sensor: *mut PamojaOpt3001,
) -> PamojaStatusExpand description
Checks the part is an OPT3001 and writes the settings with the part in shutdown.
§Arguments
sensor- the driver.
§Returns
PamojaStatus::Ok; PamojaStatus::InvalidArgument for a null driver;
PamojaStatus::Io when the bus fails; or PamojaStatus::Codec when either id register
is not an OPT3001’s.
§Safety
sensor must be a live handle or null.