14 #ifndef MMA8491Q_FI_H_ 15 #define MMA8491Q_FI_H_ 63 #define MMA8491Q_DATA_SIZE (6) 114 #endif // MMA8491Q_FI_H_
This structure defines the device specific info required by register I/O.
This defines the function pointers and sensor specific information.
ARM_DRIVER_I2C * pCommDrv
typedef int32_t(DATA_FORMAT_Append_t))(void *pData
The interface function to append the data on the formated stream.
volatile bool inTransition
This structure stores the Sensor's context parameters.
The register_io_i2c.h file declares low-level interface functions for reading and writing sensor regi...
void(* registeridlefunction_t)(void *userParam)
This is the register idle function type.
registerDeviceInfo_t deviceInfo
This structure defines the mma8491q data buffer.
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_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.
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.
The sensor_io_i2c.h file declares low-level interface functions for reading and writing sensor regist...