40 #ifndef FXLS8471Q_DRV_H_ 41 #define FXLS8471Q_DRV_H_ 74 #define FXLS8471Q_ACCEL_DATA_SIZE (0x06) 78 #define FXLS8471Q_SPI_MAX_MSG_SIZE (64) 82 #define FXLS8471Q_SPI_CMD_LEN (2) 86 #define FXLS8471Q_SS_ACTIVE_VALUE SPI_SS_ACTIVE_LOW 104 ARM_DRIVER_SPI *pBus,
184 #endif // FXLS8471Q_DRV_H_ void FXLS8471Q_SPI_SetIdleTask(fxls8471q_spi_sensorhandle_t *pSensorHandle, registeridlefunction_t idleTask, void *userParam)
: The interface function to set the SPI Idle Task.
int32_t FXLS8471Q_SPI_Deinit(fxls8471q_spi_sensorhandle_t *pSensorHandle)
The interface function to De Initialize sensor..
registerDeviceInfo_t deviceInfo
int32_t FXLS8471Q_SPI_ReadData(fxls8471q_spi_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.
ARM_DRIVER_SPI * pCommDrv
spiSlaveSpecificParams_t slaveParams
int32_t FXLS8471Q_SPI_Configure(fxls8471q_spi_sensorhandle_t *pSensorHandle, const registerwritelist_t *pRegWriteList)
The interface function to configure he sensor.
This structure defines the fxls8471q raw data buffer.
The fxls8471q.h file contains the register definitions for fxls8471q sensor driver.
The sensor_io_spi.h file declares low-level interface functions for reading and writing sensor regist...
void FXLS8471Q_SPI_ReadPreprocess(void *pCmdOut, uint32_t offset, uint32_t size)
The SPI Read Pre-Process function to generate Sensor specific SPI Message Header. ...
This defines the sensor specific information for SPI.
int32_t FXLS8471Q_SPI_Initialize(fxls8471q_spi_sensorhandle_t *pSensorHandle, ARM_DRIVER_SPI *pBus, uint8_t index, void *pSlaveSelect, uint8_t whoAmi)
The interface function to initialize the sensor for I2C.
void FXLS8471Q_SPI_WritePreprocess(void *pCmdOut, uint32_t offset, uint32_t size, void *pWritebuffer)
The SPI Write Pre-Process function to generate Sensor specific SPI Message Header.
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.
This structure defines the spi slave command format.
The register_io_spi.h file declares low-level interface functions for reading and writing sensor regi...