Can an external magnetometer connect to BMI160 via secondary I2C interface. Does it support only Bosch BMM150 magnetometer?
BMI160 has control registers to configure external magnetometer on its 2nd I2C bus. In addition to BMM150, It supports any magnetometer that has forced mode (or single measurement mode), such as AK09911, AK09912, YAS532, etc.... The BMI160 API source code available to download from Github : https://github.com/BoschSensortec/BMI160_driver.