Driver for a Freescale MMA7455L accelerometer.
All correct at time of writing, but as always, manufacturers love to move things around on their website.
This code has been tested using an Embedded Artists LPC1788-OEM module on the EA OEM Base Board.
|Bandwidth (Hz)||62.5, 125|
|Range (g)||±2, ±4, ±8|
|Communication||up to 400 kHz (I2C), 8 MHz (SPI)|
|MMA7455_I2C_ADDR||MMA7455L 8-bit I2C address|
|mma7455l_initialize_i2c||Initialize sensor on I2C bus|
|mma7455l_initialize_spi||Initialize sensor on SPI bus|