Overview

Driver for a Freescale FXOS8700CQ accelerometer + magnetometer.

Resources

All correct at time of writing, but as always, manufacturers love to move things around on their website.

Web page

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FXOS8700CQ

Datasheet

http://cache.freescale.com/files/sensors/doc/data_sheet/FXOS8700CQ.pdf

Test hardware

This code has been tested using a FRDM-KL26Z:

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FRDM-KL26Z

Accelerometer Specification
Parameter Supported settings
Bandwidth (Hz) 0.78125, 3.125, 6.25, 25, 50, 100, 200, 500
Range (g) ±2, ±4, ±8
Communication up to 400 kHz (I2C)

API Summary

Macros
FXOS8700CQ_I2C_ADDR FXOS8700CQ 8-bit I2C address
Types
FXOS8700CQ_t Sensor group
Functions
fxos8700cq_initialize_i2c Initialize sensor on I2C bus