Skip to main content

pamoja_bme280_new

Function pamoja_bme280_new 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_bme280_new( bus: *const PamojaI2cBus, address: u8, settings: PamojaBme280Settings, out_sensor: *mut *mut PamojaBme280, ) -> PamojaStatus
Expand description

Creates a BME280 driver on a bus. Nothing is sent until pamoja_bme280_init or the first pamoja_bme280_measure.

§Arguments

§Returns

PamojaStatus::Ok with the driver in out_sensor, or PamojaStatus::InvalidArgument for a null argument.

§Safety

bus must be a live handle or null, and out_sensor a writable pointer or null.