CTL_STATUS_t fxos8700cq_initialize_i2c(FXOS8700CQ_t *self,
                                       CTL_I2C_BUS_t *bus,
                                       int addr);

fxos8700cq_initialize_i2c initializes the FXOS8700CQ's accelerometer and magnetometer on the I2C bus bus using the 8-bit I2C address addr. When complete, the the IMU member core is initialized pointing to the appropriate members within self with the gyroscope set to zero.

Return Value

fxos8700cq_initialize_i2c returns a standard status code.

Thread Safety

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

See Also