14 #ifndef MMA845x_DRV_H_ 15 #define MMA845x_DRV_H_ 47 #define MMA845x_ACCEL_DATA_SIZE (0x06) 116 #endif // MMA845x_DRV_H_ ARM_DRIVER_I2C * pCommDrv
The mma845x.h contains the MMA845x sensor register definitions and its bit mask.
This structure defines the device specific info required by register I/O.
This structure defines the Write command List.
This structure defines the mma845x raw data buffer.
typedef int32_t(DATA_FORMAT_Append_t))(void *pData
The interface function to append the data on the formated stream.
The register_io_i2c.h file declares low-level interface functions for reading and writing sensor regi...
int32_t MMA845x_I2C_ReadData(mma845x_i2c_sensorhandle_t *pSensorHandle, const registerreadlist_t *pReadList, uint8_t *pBuffer)
The interface function to read the sensor data.
void(* registeridlefunction_t)(void *userParam)
This is the register idle function type.
registerDeviceInfo_t deviceInfo
int32_t MMA845x_I2C_Deinit(mma845x_i2c_sensorhandle_t *pSensorHandle)
The interface function to De Initialize sensor..
int32_t MMA845x_I2C_Initialize(mma845x_i2c_sensorhandle_t *pSensorHandle, ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, uint8_t whoAmi)
The interface function to initialize the sensor.
This structure defines the Read command List.
int32_t MMA845x_I2C_Configure(mma845x_i2c_sensorhandle_t *pSensorHandle, const registerwritelist_t *pRegWriteList)
The interface function to configure he sensor.
void MMA845x_I2C_SetIdleTask(mma845x_i2c_sensorhandle_t *pSensorHandle, registeridlefunction_t idleTask, void *userParam)
: The interface function to set the I2C Idle Task.
This defines the sensor specific information.
The sensor_io_i2c.h file declares low-level interface functions for reading and writing sensor regist...