14 #ifndef MMA9553_DRV_H_ 15 #define MMA9553_DRV_H_ 61 #define FXLC95000_COCO_ERROR_MASK (0x7F) 65 #define FXLC95000_SPI_MAX_MSG_SIZE (64) 69 #define FXLC95000_SPI_CMD_LEN (1) 73 #define FXLC95000_SS_ACTIVE_VALUE SPI_SS_ACTIVE_LOW 77 #define FXLC95000_ROM_CI_WRITE_MIN_LEN 4 81 #define FXLC95000_ROM_CI_WRITE_MAX_LEN 24 85 #define FXLC95000_ROM_CI_READ_WRITE_MAX_LEN 32 89 #define FXLC95000_ROM_CI_READ_WRITE_HDR_LEN 6 93 #define FXLC95000_ROM_CI_READ_WRITE_ADDR_LEN 2 97 #define FXLC95000_FLASH_PAYLOAD_ADDR_LEN 4 144 ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, uint8_t *pFlashBytes, uint8_t numBytes);
159 ARM_DRIVER_I2C *pBus,
208 ARM_DRIVER_SPI *pBus,
271 #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.
This structure defines the device specific info required by register I/O.
The sensor_io_spi.h file declares low-level interface functions for reading and writing sensor regist...
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.
ARM_DRIVER_SPI * pCommDrv
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.
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.
The register_io_spi.h file declares low-level interface functions for reading and writing sensor regi...
This structure defines the Block command List.
This structure defines the fxlc95000 pedometer data buffer.
This structure defines the spi slave command format.
registerDeviceInfo_t deviceInfo
typedef int32_t(DATA_FORMAT_Append_t))(void *pData
The interface function to append the data on the formated stream.
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.
registerDeviceInfo_t deviceInfo
This defines the sensor specific information for I2C.
The register_io_i2c.h file declares low-level interface functions for reading and writing sensor regi...
void(* registeridlefunction_t)(void *userParam)
This is the register idle function type.
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_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.
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.
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.
ARM_DRIVER_I2C * pCommDrv
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.
This structure defines the Read command List.
This defines the sensor specific information for SPI.
The sensor_io_i2c.h file declares low-level interface functions for reading and writing sensor regist...
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. ...
spiSlaveSpecificParams_t slaveParams