Expand description
Sensor Driver for the LPS22HB MEMS nano pressure sensor using the I2C bus.
https://www.st.com/resource/en/datasheet/lps22hb.pdf
The LPS22HB is an ultra-compact piezoresistive absolute pressure sensor which functions as a digital output barometer. The device comprises a sensing element and an IC interface which communicates through I2C or SPI from the sensing element to the application.
§Driver Semantics
This driver exposes the LPS22HB’s pressure functionality via the [PressureDriver] HIL interface. It doesn’t support handling multiple concurrent pressure requests.
§Usage
ⓘ
let lps22hb_i2c = static_init!(
capsules::virtual_i2c::I2CDevice,
capsules::virtual_i2c::I2CDevice::new(i2c_bus, 0x5C));
let lps22hb = static_init!(
capsules::lps22hb::Lps22hb<'static>,
capsules::lps22hb::Lps22hb::new(lps22hb_i2c,
&mut capsules::lps22hb::BUFFER));
lps22hb_i2c.set_client(lps22hb);Structs§
Enums§
Constants§
- DRIVER_
NUM - Syscall driver number.