Overview

Driver for a Freescale MMA8491Q accelerometer.

Resources

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

Web page

MMA8491Q

Datasheet

MMA8491Q

Test hardware

This code has been tested using an eLement-14/Freescale XTRINSIC-SENSORS-EVK:

http://uk.farnell.com/freescale-semiconductor/xtrinsic-sensors-evk/evaluation-kit-xtrinsic-sensor/dp/2308734

This was wired to a CoreStack and installed on a SolderCore:

http://soldercore.com/products/soldercore/

Specification
Parameter Supported settings
Bandwidth (Hz) 1.56, 6.25, 12.5, 50, 100, 200, 400, 800
Range (g) ±8
Communication 400 kHz (I2C)

API Summary

Macros
MMA8491Q_I2C_ADDR MMA8491Q 8-bit I2C address
Functions
mma8491q_initialize_i2c Initialize sensor on I2C bus