CTL_STATUS_t lps331ap_initialize_i2c(CTL_PRESSURE_SENSOR_t *self, CTL_I2C_BUS_t *bus, int addr);
lps331ap_initialize_i2c initializes the pressure sensor interface self with methods to communicate with an LPC331AP pressure sensor on I2C bus bus using the 8-bit I2C address addr.
Once the pressure sensor interface is initialized, you can use all standard pressure sensor methods from the sensor API on the interface.
lps331ap_initialize_i2c returns a standard status code.
lps331ap_initialize_i2c is thread-safe if the transport transport is thread-safe. Typically, for SPI and I2C transports, you ensure thread safety by associating a mutex with the bus used by the transport.