40 #ifndef MMA8491Q_FI_H_ 41 #define MMA8491Q_FI_H_ 89 #define MMA8491Q_DATA_SIZE (6) 107 ARM_DRIVER_I2C *pBus,
140 #endif // MMA8491Q_FI_H_ The register_io_i2c.h file declares low-level interface functions for reading and writing sensor regi...
ARM_DRIVER_I2C * pCommDrv
void MMA8491Q_I2C_SetIdleTask(mma8491q_i2c_sensorhandle_t *pSensorHandle, registeridlefunction_t idleTask, void *userParam)
: The interface function to set the I2C Idle Task.
int32_t MMA8491Q_I2C_Initialize(mma8491q_i2c_sensorhandle_t *pSensorHandle, ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress)
The interface function to initialize the sensor.
void(* registeridlefunction_t)(void *userParam)
This is the register idle function type.
registerDeviceInfo_t deviceInfo
volatile bool inTransition
The mma8491q.h contains the MMA8491Q Multifunction Digital Accelerometer register definitions...
This defines the function pointers and sensor specific information.
This structure stores the Sensor's context parameters.
int32_t MMA8491Q_I2C_ReadData(mma8491q_i2c_sensorhandle_t *pSensorHandle, const registerreadlist_t *pReadList, uint8_t *pBuffer)
The interface function to read the sensor data.
This structure defines the Read command List.
This structure defines the mma8491q data buffer.
This structure defines the device specific info required by register I/O.
The sensor_io_i2c.h file declares low-level interface functions for reading and writing sensor regist...