40 #ifndef MMA9553_DRV_H_ 41 #define MMA9553_DRV_H_ 87 #define FXLC95000_COCO_ERROR_MASK (0x7F) 91 #define FXLC95000_SPI_MAX_MSG_SIZE (64) 95 #define FXLC95000_SPI_CMD_LEN (1) 99 #define FXLC95000_SS_ACTIVE_VALUE SPI_SS_ACTIVE_LOW 103 #define FXLC95000_ROM_CI_WRITE_MIN_LEN 4 107 #define FXLC95000_ROM_CI_WRITE_MAX_LEN 24 111 #define FXLC95000_ROM_CI_READ_WRITE_MAX_LEN 32 115 #define FXLC95000_ROM_CI_READ_WRITE_HDR_LEN 6 119 #define FXLC95000_ROM_CI_READ_WRITE_ADDR_LEN 2 123 #define FXLC95000_FLASH_PAYLOAD_ADDR_LEN 4 170 ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, uint8_t *pFlashBytes, uint8_t numBytes);
185 ARM_DRIVER_I2C *pBus,
234 ARM_DRIVER_SPI *pBus,
297 #endif // FXLC95000_DRV_H_ void FXLC95000_I2C_SetIdleTask(fxlc95000_i2c_sensorhandle_t *pSensorHandle, registeridlefunction_t idleTask, void *userParam)
: The interface function to set the I2C Idle Task.
The register_io_i2c.h file declares low-level interface functions for reading and writing sensor regi...
This structure defines the fxlc95000 pedometer data buffer.
void FXLC95000_SPI_SetIdleTask(fxlc95000_spi_sensorhandle_t *pSensorHandle, registeridlefunction_t idleTask, void *userParam)
: The interface function to set the SPI Idle Task.
int32_t FXLC95000_I2C_CommandResponse(fxlc95000_i2c_sensorhandle_t *pSensorHandle, const registercommandlist_t *pCommandList, const registerreadlist_t *pReadList, uint8_t *pBuffer)
The interface function to read the sensor data.
registerDeviceInfo_t deviceInfo
registerDeviceInfo_t deviceInfo
void(* registeridlefunction_t)(void *userParam)
This is the register idle function type.
int32_t FXLC95000_SPI_Initialize(fxlc95000_spi_sensorhandle_t *pSensorHandle, ARM_DRIVER_SPI *pBus, uint8_t index, void *pSpiSelect, void *pSlaveSelect, void *pReset, uint16_t buildId)
The interface function to initialize the sensor.
int32_t FXLC95000_I2C_CheckRomMode(ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress)
The interface function to check if the sensor is in ROM CI Mode.
ARM_DRIVER_I2C * pCommDrv
void FXLC95000_SPI_ReadPreprocess(void *pCmdOut, uint32_t offset, uint32_t size)
The SPI Read Pre-Process function to generate Sensor specific SPI Message Header. ...
int32_t FXLC95000_SPI_CommandResponse(fxlc95000_spi_sensorhandle_t *pSensorHandle, const registercommandlist_t *pCommandList, const registerreadlist_t *pReadList, uint8_t *pBuffer)
The interface function to read the sensor data.
void FXLC95000_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.
The fxlc95000.h contains the FXLC95000L Digital Accelerometer command definitions and access macros...
int32_t FXLC95000_I2C_FlashCommands(ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, const registercommandlist_t *pCommandList)
The interface function to write ROM CI Commands.
ARM_DRIVER_SPI * pCommDrv
The sensor_io_spi.h file declares low-level interface functions for reading and writing sensor regist...
int32_t FXLC95000_I2C_Initialize(fxlc95000_i2c_sensorhandle_t *pSensorHandle, ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, uint16_t buildId)
The interface function to initialize the sensor.
spiSlaveSpecificParams_t slaveParams
This defines the sensor specific information for SPI.
This structure defines the Read command List.
This defines the sensor specific information for I2C.
This structure defines the device specific info required by register I/O.
This structure defines the Block command List.
int32_t FXLC95000_I2C_FlashPayload(ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, uint8_t *pFlashBytes, uint8_t numBytes)
The interface function to write ROM CI Data Payload.
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...
The sensor_io_i2c.h file declares low-level interface functions for reading and writing sensor regist...