Overview

Driver for a Freescale MMA7660FC accelerometer.

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=MMA7660FC

Datasheet

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

Test hardware

This code has been tested using a Seeed Studio MMA7660FC module:

http://www.seeedstudio.com/depot/grove-3axis-digital-accelerometer15g-p-765.html?cPath=144_146

This was attached to a SolderCore:

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

Specification
Parameter Supported settings
Bandwidth (Hz) Not configurable.
Range (g) ±1.5 (fixed)
Communication up to 400 kHz (I2C)

API Summary

Macros
MMA7660FC_I2C_ADDR MMA7660FC 8-bit I2C address
Functions
mma7660fc_initialize_i2c Initialize sensor on I2C bus