DP Eng's Arduino library for the BMX160 breakout board with raw sensor data, magnetometer calibration and AHRS examples. Credit to Adafruit for the general library structure.
DP Eng's BMX160 Breakout Board is specifically developed for this library with 3 - 5V input including I2C & SPI voltage translation/level shifting and 10k Ohm pull-ups, you can purchase it on eBay or Amazon here:
DP Eng BMX160 Breakout Board eBay Link with tracked international shipping
DP Eng BMX160 Breakout Board Amazon.co.uk
The DP Eng BMX160 Breakout BoardAdditional Libraries Required: The Adafruit Sensor library is required.