Overview

Driver for a Freescale MMA7455L accelerometer.

Resources

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

Web page

MMA745xL

Datasheet

MMA8451Q

Test hardware

This code has been tested using an Embedded Artists LPC1788-OEM module on the EA OEM Base Board.

Specification
Parameter Supported settings
Bandwidth (Hz) 62.5, 125
Range (g) ±2, ±4, ±8
Communication up to 400 kHz (I2C), 8 MHz (SPI)

API Summary

Macros
MMA7455_I2C_ADDR MMA7455L 8-bit I2C address
Functions
mma7455l_initialize_i2c Initialize sensor on I2C bus
mma7455l_initialize_spi Initialize sensor on SPI bus