Synopsis
CTL_STATUS_t atavrsbin1_initialize_i2c(ATAVRSBIN1_t *self,
                                       CTL_I2C_BUS_t *bus);
Description

atavrsbin1_initialize_i2c initializes the BMA150 accelerometer, ITG-3200 gyroscope, and AK8975 magnetometer on the I2C bus bus using factory I2C addresses. When complete, the the IMU member core is initialized pointing to the appropriate members within self.

Return Value

atavrsbin1_initialize_i2c returns a standard status code.

Thread Safety

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