40 #ifndef MMA865x_DRV_H_ 41 #define MMA865x_DRV_H_ 137 #endif // MMA865x_DRV_H_ The register_io_i2c.h file declares low-level interface functions for reading and writing sensor regi...
int32_t MMA865x_I2C_ReadData(mma865x_i2c_sensorhandle_t *pSensorHandle, const registerreadlist_t *pReadList, uint8_t *pBuffer)
The interface function to read the sensor data.
This structure defines the mma865x raw data buffer.
The mma865x.h contains the MMA865xFC Digital Accelerometer Sensor register definitions, access macros, and device access functions.
This defines the sensor specific information.
registerDeviceInfo_t deviceInfo
void(* registeridlefunction_t)(void *userParam)
This is the register idle function type.
void MMA865x_I2C_SetIdleTask(mma865x_i2c_sensorhandle_t *pSensorHandle, registeridlefunction_t idleTask, void *userParam)
: The interface function to set the I2C Idle Task.
int32_t MMA865x_I2C_DeInit(mma865x_i2c_sensorhandle_t *pSensorHandle)
The interface function to De Initialize sensor..
int32_t MMA865x_I2C_Configure(mma865x_i2c_sensorhandle_t *pSensorHandle, const registerwritelist_t *pRegWriteList)
The interface function to configure he sensor.
This structure defines the Write command List.
This structure defines the Read command List.
This structure defines the device specific info required by register I/O.
int32_t MMA865x_I2C_Initialize(mma865x_i2c_sensorhandle_t *pSensorHandle, ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, uint8_t whoAmi)
The interface function to initialize the sensor.
The sensor_io_i2c.h file declares low-level interface functions for reading and writing sensor regist...
ARM_DRIVER_I2C * pCommDrv