CTL_STATUS_t l3g4200d_initialize_i2c(CTL_GYROSCOPE_t *self,
                                     CTL_I2C_BUS_t *bus,
                                     int addr);

l3g4200d_initialize_i2c initializes the gyroscope interface self with methods to communicate with an L3G4200D gyroscope on the I2C bus bus with 8-bit I2C address addr.

Once the gyroscope interface is initialized, you can use all standard gyroscope methods from the sensor API on the interface.

Return Value

l3g4200d_initialize_i2c returns a standard status code.

Thread Safety

l3g4200d_initialize_i2c is thread-safe if a mutex is associated with the I2C bus bus.

See Also