29 if ((pSensorHandle == NULL) || (pBus == NULL))
40 if ((ARM_DRIVER_OK != status) || (whoAmi != reg))
66 if ((pSensorHandle == NULL) || (pRegWriteList == NULL))
81 if (ARM_DRIVER_OK != status)
89 if (ARM_DRIVER_OK != status)
98 if (ARM_DRIVER_OK != status)
113 if ((pSensorHandle == NULL) || (pReadList == NULL) || (pBuffer == NULL))
127 if (ARM_DRIVER_OK != status)
139 if (pSensorHandle == NULL)
153 if (ARM_DRIVER_OK != status)
int32_t Sensor_I2C_Read(ARM_DRIVER_I2C *pCommDrv, registerDeviceInfo_t *devInfo, uint16_t slaveAddress, const registerreadlist_t *pReadList, uint8_t *pOutBuffer)
Read register data from a sensor.
This structure defines the Write command List.
#define FXPQ3115_CTRL_REG1_RST_MASK
#define FXPQ3115_CTRL_REG1_SBYB_ACTIVE
int32_t Register_I2C_Read(ARM_DRIVER_I2C *pCommDrv, registerDeviceInfo_t *devInfo, uint16_t slaveAddress, uint8_t offset, uint8_t length, uint8_t *pOutBuffer)
The interface function to read a sensor register.
int32_t Register_I2C_Write(ARM_DRIVER_I2C *pCommDrv, registerDeviceInfo_t *devInfo, uint16_t slaveAddress, uint8_t offset, uint8_t value, uint8_t mask, bool repeatedStart)
The interface function to write a sensor register.
#define FXPQ3115_CTRL_REG1_SBYB_MASK
int32_t FXPQ3115_I2C_DeInit(fxpq3115_i2c_sensorhandle_t *pSensorHandle)
The interface function to De Initialize sensor..
typedef int32_t(DATA_FORMAT_Append_t))(void *pData
The interface function to append the data on the formated stream.
int32_t FXPQ3115_I2C_Configure(fxpq3115_i2c_sensorhandle_t *pSensorHandle, const registerwritelist_t *pRegWriteList)
The interface function to configure he sensor.
int32_t Sensor_I2C_Write(ARM_DRIVER_I2C *pCommDrv, registerDeviceInfo_t *devInfo, uint16_t slaveAddress, const registerwritelist_t *pRegWriteList)
Write register data to a sensor.
void(* registeridlefunction_t)(void *userParam)
This is the register idle function type.
void FXPQ3115_I2C_SetIdleTask(fxpq3115_i2c_sensorhandle_t *pSensorHandle, registeridlefunction_t idleTask, void *userParam)
: The interface function to set the I2C Idle Task.
int32_t FXPQ3115_I2C_Initialize(fxpq3115_i2c_sensorhandle_t *pSensorHandle, ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, uint8_t whoAmi)
The interface function to initialize the sensor.
registerDeviceInfo_t deviceInfo
The fxpq3115_drv.h file describes the fxpq3115 driver interface and structures.
#define FXPQ3115_CTRL_REG1_SBYB_STANDBY
ARM_DRIVER_I2C * pCommDrv
This structure defines the Read command List.
This defines the sensor specific information.
int32_t FXPQ3115_I2C_ReadData(fxpq3115_i2c_sensorhandle_t *pSensorHandle, const registerreadlist_t *pReadList, uint8_t *pBuffer)
The interface function to read the sensor data.
registeridlefunction_t idleFunction
#define FXPQ3115_CTRL_REG1_RST_EN