![]() |
ISSDK
1.7
IoT Sensing Software Development Kit
|
The mma8491q.h contains the MMA8491Q Multifunction Digital Accelerometer register definitions, access macros, and device access functions. More...
Go to the source code of this file.
Data Structures | |
union | MMA8491Q_STATUS_t |
union | MMA8491Q_OUT_X_LSB_t |
union | MMA8491Q_OUT_Y_LSB_t |
union | MMA8491Q_OUT_Z_LSB_t |
Macros | |
#define | MMA8491Q_I2C_ADDRESS (0x55) /* MMA8491Q I2C Slave Address. */ |
#define | MMA8491Q_T_RST_MIN (1U) /* Approx time between falling edge of EN and next rising edge of EN. */ |
#define | MMA8491Q_T_ON_TYPICAL (1U) /* Approx time taken for Data to become available after rising edge of EN. */ |
#define | MMA8491Q_STATUS_XDR_MASK ((uint8_t)0x01) |
#define | MMA8491Q_STATUS_XDR_SHIFT ((uint8_t)0) |
#define | MMA8491Q_STATUS_YDR_MASK ((uint8_t)0x02) |
#define | MMA8491Q_STATUS_YDR_SHIFT ((uint8_t)1) |
#define | MMA8491Q_STATUS_ZDR_MASK ((uint8_t)0x04) |
#define | MMA8491Q_STATUS_ZDR_SHIFT ((uint8_t)2) |
#define | MMA8491Q_STATUS_ZYXDR_MASK ((uint8_t)0x08) |
#define | MMA8491Q_STATUS_ZYXDR_SHIFT ((uint8_t)3) |
#define | MMA8491Q_STATUS_RESERVED_MASK ((uint8_t)0xF0) |
#define | MMA8491Q_STATUS_RESERVED_SHIFT ((uint8_t)4) |
#define | MMA8491Q_STATUS_XDR_DRDY ((uint8_t)0x01) /* - Set to 1 whenever new X-axis data acquisition is */ |
#define | MMA8491Q_STATUS_YDR_DRDY ((uint8_t)0x02) /* - Set to 1 whenever new Y-axis data acquisition is */ |
#define | MMA8491Q_STATUS_ZDR_DRDY ((uint8_t)0x04) /* - Set to 1 whenever new Z-axis data acquisition is */ |
#define | MMA8491Q_STATUS_ZYXDR_DRDY ((uint8_t)0x08) /* - Signals that new acquisition for any of the enabled */ |
#define | MMA8491Q_STATUS_RESERVED_ZERO ((uint8_t)0x00) /* - Value of reserved field. */ |
#define | MMA8491Q_OUT_X_LSB_OUT_X_LSB_MASK ((uint8_t)0xFC) |
#define | MMA8491Q_OUT_X_LSB_OUT_X_LSB_SHIFT ((uint8_t)2) |
#define | MMA8491Q_OUT_Y_LSB_OUT_Y_LSB_MASK ((uint8_t)0xFC) |
#define | MMA8491Q_OUT_Y_LSB_OUT_Y_LSB_SHIFT ((uint8_t)2) |
#define | MMA8491Q_OUT_Z_LSB_OUT_Z_LSB_MASK ((uint8_t)0xFC) |
#define | MMA8491Q_OUT_Z_LSB_OUT_Z_LSB_SHIFT ((uint8_t)2) |
Typedefs | |
typedef uint8_t | MMA8491Q_OUT_X_MSB_t |
typedef uint8_t | MMA8491Q_OUT_Y_MSB_t |
typedef uint8_t | MMA8491Q_OUT_Z_MSB_t |
Enumerations | |
enum | { MMA8491Q_STATUS = 0x00, MMA8491Q_OUT_X_MSB = 0x01, MMA8491Q_OUT_X_LSB = 0x02, MMA8491Q_OUT_Y_MSB = 0x03, MMA8491Q_OUT_Y_LSB = 0x04, MMA8491Q_OUT_Z_MSB = 0x05, MMA8491Q_OUT_Z_LSB = 0x06 } |
The mma8491q.h contains the MMA8491Q Multifunction Digital Accelerometer register definitions, access macros, and device access functions.
Definition in file mma8491q.h.
#define MMA8491Q_I2C_ADDRESS (0x55) /* MMA8491Q I2C Slave Address. */ |
Definition at line 27 of file mma8491q.h.
Referenced by ADS_DetectShield().
#define MMA8491Q_OUT_X_LSB_OUT_X_LSB_MASK ((uint8_t)0xFC) |
Definition at line 121 of file mma8491q.h.
#define MMA8491Q_OUT_X_LSB_OUT_X_LSB_SHIFT ((uint8_t)2) |
Definition at line 122 of file mma8491q.h.
#define MMA8491Q_OUT_Y_LSB_OUT_Y_LSB_MASK ((uint8_t)0xFC) |
Definition at line 154 of file mma8491q.h.
#define MMA8491Q_OUT_Y_LSB_OUT_Y_LSB_SHIFT ((uint8_t)2) |
Definition at line 155 of file mma8491q.h.
#define MMA8491Q_OUT_Z_LSB_OUT_Z_LSB_MASK ((uint8_t)0xFC) |
Definition at line 187 of file mma8491q.h.
#define MMA8491Q_OUT_Z_LSB_OUT_Z_LSB_SHIFT ((uint8_t)2) |
Definition at line 188 of file mma8491q.h.
#define MMA8491Q_STATUS_RESERVED_MASK ((uint8_t)0xF0) |
Definition at line 71 of file mma8491q.h.
Referenced by ADS_DetectShield(), and MMA8491Q_I2C_Initialize().
#define MMA8491Q_STATUS_RESERVED_SHIFT ((uint8_t)4) |
Definition at line 72 of file mma8491q.h.
#define MMA8491Q_STATUS_RESERVED_ZERO ((uint8_t)0x00) /* - Value of reserved field. */ |
Definition at line 90 of file mma8491q.h.
Referenced by MMA8491Q_I2C_Initialize().
#define MMA8491Q_STATUS_XDR_DRDY ((uint8_t)0x01) /* - Set to 1 whenever new X-axis data acquisition is */ |
Definition at line 77 of file mma8491q.h.
#define MMA8491Q_STATUS_XDR_MASK ((uint8_t)0x01) |
Definition at line 59 of file mma8491q.h.
#define MMA8491Q_STATUS_XDR_SHIFT ((uint8_t)0) |
Definition at line 60 of file mma8491q.h.
#define MMA8491Q_STATUS_YDR_DRDY ((uint8_t)0x02) /* - Set to 1 whenever new Y-axis data acquisition is */ |
Definition at line 80 of file mma8491q.h.
#define MMA8491Q_STATUS_YDR_MASK ((uint8_t)0x02) |
Definition at line 62 of file mma8491q.h.
#define MMA8491Q_STATUS_YDR_SHIFT ((uint8_t)1) |
Definition at line 63 of file mma8491q.h.
#define MMA8491Q_STATUS_ZDR_DRDY ((uint8_t)0x04) /* - Set to 1 whenever new Z-axis data acquisition is */ |
Definition at line 83 of file mma8491q.h.
#define MMA8491Q_STATUS_ZDR_MASK ((uint8_t)0x04) |
Definition at line 65 of file mma8491q.h.
#define MMA8491Q_STATUS_ZDR_SHIFT ((uint8_t)2) |
Definition at line 66 of file mma8491q.h.
#define MMA8491Q_STATUS_ZYXDR_DRDY ((uint8_t)0x08) /* - Signals that new acquisition for any of the enabled */ |
Definition at line 86 of file mma8491q.h.
#define MMA8491Q_STATUS_ZYXDR_MASK ((uint8_t)0x08) |
Definition at line 68 of file mma8491q.h.
Referenced by main().
#define MMA8491Q_STATUS_ZYXDR_SHIFT ((uint8_t)3) |
Definition at line 69 of file mma8491q.h.
#define MMA8491Q_T_ON_TYPICAL (1U) /* Approx time taken for Data to become available after rising edge of EN. */ |
Definition at line 30 of file mma8491q.h.
Referenced by ADS_DetectShield(), and mma8491q_en_delay().
#define MMA8491Q_T_RST_MIN (1U) /* Approx time between falling edge of EN and next rising edge of EN. */ |
Definition at line 29 of file mma8491q.h.
typedef uint8_t MMA8491Q_OUT_X_MSB_t |
Definition at line 99 of file mma8491q.h.
typedef uint8_t MMA8491Q_OUT_Y_MSB_t |
Definition at line 132 of file mma8491q.h.
typedef uint8_t MMA8491Q_OUT_Z_MSB_t |
Definition at line 165 of file mma8491q.h.
anonymous enum |
MMA8491Q Sensor Internal Registers
Enumerator | |
---|---|
MMA8491Q_STATUS | |
MMA8491Q_OUT_X_MSB | |
MMA8491Q_OUT_X_LSB | |
MMA8491Q_OUT_Y_MSB | |
MMA8491Q_OUT_Y_LSB | |
MMA8491Q_OUT_Z_MSB | |
MMA8491Q_OUT_Z_LSB |
Definition at line 16 of file mma8491q.h.