 |
ADI iSensor FX3 Firmware
v2.9.4-pub
Firmware for the Analog Devices EVAL-ADIS-FX3 IMU Evaluation Platform. This firmware can be compiled using the Cypress EZ USB Suite IDE
|
Go to the documentation of this file.
23 #include "cyu3error.h"
30 void AdiFlashWrite(uint32_t Address, uint16_t NumBytes, uint8_t* WriteBuf);
31 void AdiFlashRead(uint32_t Address, uint16_t NumBytes, uint8_t* ReadBuf);
35 #define FLASH_PAGE_SIZE 0x40
38 #define FLASH_TIMEOUT_MS 5000
void AdiFlashReadHandler(uint32_t Address, uint16_t NumBytes)
Handles flash read requests from control endpoint.
Definition: Flash.c:198
CyU3PReturnStatus_t AdiFlashInit()
Initializes flash memory interface module.
Definition: Flash.c:46
void AdiFlashReadHandler(uint32_t Address, uint16_t NumBytes)
Handles flash read requests from control endpoint.
Definition: Flash.c:198
uint32_t I2CBitRate
Definition: main.h:195
BoardState FX3State
Definition: main.c:112
Header file for FX3 flash interfacing module.
#define ADI_FLASH_WRITE_ENABLE_PIN
Definition: PinFunctions.h:88
void AdiFlashRead(uint32_t Address, uint16_t NumBytes, uint8_t *ReadBuf)
Read a block of memory from flash, at the specified byte address.
Definition: Flash.c:178
Struct to store the current board state (SPI config, USB speed, etc)
Definition: main.h:148
static uint16_t GetFlashDeviceAddress(uint32_t ByteAddress)
Gets the flash devices address, based on the requested byte address.
Definition: Flash.c:361
void AdiFlashWrite(uint32_t Address, uint16_t NumBytes, uint8_t *WriteBuf)
Write a block of memory to flash, at the specified byte address.
Definition: Flash.c:154
void AdiFlashRead(uint32_t Address, uint16_t NumBytes, uint8_t *ReadBuf)
Read a block of memory from flash, at the specified byte address.
Definition: Flash.c:178
void AdiFlashWrite(uint32_t Address, uint16_t NumBytes, uint8_t *WriteBuf)
Write a block of memory to flash, at the specified byte address.
Definition: Flash.c:154
static CyU3PDmaChannel flashRxHandle
Definition: Flash.c:34
void AdiFlashDeInit()
De-init the flash memory interfacing module.
Definition: Flash.c:128
Main header file for the Analog Devices iSensor FX3 Demonstration Platform firmware.
static CyU3PDmaChannel flashTxHandle
Definition: Flash.c:31
static CyU3PReturnStatus_t FlashTransfer(uint32_t Address, uint16_t NumBytes, uint8_t *Buf, CyBool_t isRead)
Performs a transfer from the I2C flash memory.
Definition: Flash.c:229
void AdiFlashDeInit()
De-init the flash memory interfacing module.
Definition: Flash.c:128
CyU3PReturnStatus_t AdiFlashInit()
Initializes flash memory interface module.
Definition: Flash.c:46
CyU3PReturnStatus_t AdiI2CInit(uint32_t BitRate, CyBool_t isDMA)
Init I2C peripheral.
Definition: I2cFunctions.c:130
#define FLASH_PAGE_SIZE
Definition: Flash.h:35