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.
Parameter | Supported settings |
Bandwidth (Hz) | 62.5, 125 |
Range (g) | ±2, ±4, ±8 |
Communication | up to 400 kHz (I2C), 8 MHz (SPI) |
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 |