40 #ifndef FXOS8700_DRV_H_ 41 #define FXOS8700_DRV_H_ 95 #define FXOS8700_SPI_MAX_MSG_SIZE (64) 99 #define FXOS8700_SPI_CMD_LEN (2) 103 #define FXOS8700_SS_ACTIVE_VALUE SPI_SS_ACTIVE_LOW 186 ARM_DRIVER_SPI *pBus,
266 #endif // FXOS8700_DRV_H_ The register_io_i2c.h file declares low-level interface functions for reading and writing sensor regi...
int32_t FXOS8700_I2C_ReadData(fxos8700_i2c_sensorhandle_t *pSensorHandle, const registerreadlist_t *pReadList, uint8_t *pBuffer)
The interface function to read the sensor data.
int32_t FXOS8700_I2C_Deinit(fxos8700_i2c_sensorhandle_t *pSensorHandle)
The interface function to De Initialize sensor..
This structure defines the fxos8700 raw data buffer.
registerDeviceInfo_t deviceInfo
ARM_DRIVER_SPI * pCommDrv
ARM_DRIVER_I2C * pCommDrv
int32_t FXOS8700_SPI_ReadData(fxos8700_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.
The fxos8700.h file contains the register definitions for FXOS8700 sensor driver. ...
This defines the sensor specific information for I2C.
void FXOS8700_I2C_SetIdleTask(fxos8700_i2c_sensorhandle_t *pSensorHandle, registeridlefunction_t idleTask, void *userParam)
: The interface function to set the I2C Idle Task.
void FXOS8700_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 fxos8700 raw accel data buffer.
spiSlaveSpecificParams_t slaveParams
int32_t FXOS8700_SPI_Configure(fxos8700_spi_sensorhandle_t *pSensorHandle, const registerwritelist_t *pRegWriteList)
The interface function to configure he sensor.
int32_t FXOS8700_SPI_Initialize(fxos8700_spi_sensorhandle_t *pSensorHandle, ARM_DRIVER_SPI *pBus, uint8_t index, void *pSlaveSelect, uint8_t whoAmi)
The interface function to initialize the sensor.
void FXOS8700_SPI_ReadPreprocess(void *pCmdOut, uint32_t offset, uint32_t size)
The SPI Read Pre-Process function to generate Sensor specific SPI Message Header. ...
registerDeviceInfo_t deviceInfo
The sensor_io_spi.h file declares low-level interface functions for reading and writing sensor regist...
void FXOS8700_SPI_SetIdleTask(fxos8700_spi_sensorhandle_t *pSensorHandle, registeridlefunction_t idleTask, void *userParam)
: The interface function to set the SPI Idle Task.
This defines the sensor specific information for SPI.
This structure defines the Write command List.
This structure defines the Read command List.
int32_t FXOS8700_SPI_Deinit(fxos8700_spi_sensorhandle_t *pSensorHandle)
The interface function to De Initialize sensor..
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...
int32_t FXOS8700_I2C_Configure(fxos8700_i2c_sensorhandle_t *pSensorHandle, const registerwritelist_t *pRegWriteList)
The interface function to configure he sensor.
The sensor_io_i2c.h file declares low-level interface functions for reading and writing sensor regist...
int32_t FXOS8700_I2C_Initialize(fxos8700_i2c_sensorhandle_t *pSensorHandle, ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, uint8_t whoAmi)
The interface function to initialize the sensor.