Skip to main content

pamoja_bmp280_sim_part

Function pamoja_bmp280_sim_part 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_bmp280_sim_part( address: u8, ) -> *mut PamojaI2cPart
Expand description

Creates a simulated BMP280 holding a real part’s trimming and one measurement it took, which compensate to 20.44 C and 848.05 hPa.

§Arguments

  • address - the address it answers to.

§Returns

The part, which the caller releases with crate::hal::pamoja_i2c_part_free.