![]() |
ISSDK
1.8
IoT Sensing Software Development Kit
|
Provides init() and read() functions for the MMA845x 3-axis accel family. More...
#include "board.h"
#include "sensor_fusion.h"
#include "sensor_drv.h"
#include "sensor_io_i2c.h"
#include "MMA845x.h"
#include "drivers.h"
Go to the source code of this file.
Macros | |
#define | MMA845x_COUNTSPERG 8192.0 |
#define | MMA8451_ACCEL_FIFO_SIZE 32 |
Provides init() and read() functions for the MMA845x 3-axis accel family.
Supports MMA8451Q, MMA8452Q and MMA8453Q. Key differences which are applicable to this driver are shown in the table below.
Feature | MMA8451Q | MMA8452Q | MMA8453Q |
---|---|---|---|
# Bits | 14 | 12 | 10 |
FIFO | 32-deep | NONE | NONE |
All three have the MSB of the result registers located in the same location, so if we read as one 16-bit value, the only thing that should change g/count will be which range (+/- 2/4/8g) we are on.
Definition in file driver_MMA845X.c.
#define MMA8451_ACCEL_FIFO_SIZE 32 |
Definition at line 32 of file driver_MMA845X.c.
#define MMA845x_COUNTSPERG 8192.0 |
Definition at line 31 of file driver_MMA845X.c.