CTL_STATUS_t lis331dlh_initialize_i2c(CTL_ACCELEROMETER_t *self, CTL_I2C_BUS_t *bus, int addr);
lis331dlh_initialize_i2c initializes the accelerometer interface self with methods to communicate with a LIS331DLH accelerometer on the I2C bus bus with 8-bit I2C address addr.
Once the accelerometer interface is initialized, you can use all standard accelerometer methods from the sensor API on the interface.
lis331dlh_initialize_i2c returns a standard status code.
lis331dlh_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.