CTL_STATUS_t atavrsbin2_initialize_i2c(ATAVRSBIN2_t *self,
                                       CTL_I2C_BUS_t *bus);

atavrsbin2_initialize_i2c initializes the KXTF9 accelerometer, IMU-3000 gyroscope, and HMC5883L 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

atavrsbin2_initialize_i2c returns a standard status code.

Thread Safety

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