#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_bme280_init(
sensor: *mut PamojaBme280,
) -> PamojaStatusExpand description
Resets the part, checks it is a BME280, reads its calibration, and writes the settings, in the order the datasheet requires, leaving the part asleep.
§Arguments
sensor- the driver.
§Returns
PamojaStatus::Ok; PamojaStatus::InvalidArgument for a null driver;
PamojaStatus::Io when the bus fails or the calibration never finishes loading; or
PamojaStatus::Codec when the part at the address is not a BME280.
§Safety
sensor must be a live handle or null.