![]() |
qspips
Vitis Drivers API Documentation
|
Macros | |
| #define | WRITE_STATUS_CMD 0x01 |
| Write status register command. More... | |
| #define | WRITE_CMD 0x02 |
| Write (page program) command. More... | |
| #define | READ_CMD 0x03 |
| Normal read command. More... | |
| #define | WRITE_DISABLE_CMD 0x04 |
| Write disable command. More... | |
| #define | READ_STATUS_CMD 0x05 |
| Read status register command. More... | |
| #define | WRITE_ENABLE_CMD 0x06 |
| Write enable command. More... | |
| #define | FAST_READ_CMD 0x0B |
| Fast read command. More... | |
| #define | DUAL_READ_CMD 0x3B |
| Dual read command. More... | |
| #define | QUAD_READ_CMD 0x6B |
| Quad read command. More... | |
| #define | BULK_ERASE_CMD 0xC7 |
| Bulk erase command. More... | |
| #define | SEC_ERASE_CMD 0xD8 |
| Sector erase command. More... | |
| #define | READ_ID 0x9F |
| Read ID command. More... | |
| #define | COMMAND_OFFSET 0 |
| FLASH instruction. More... | |
| #define | ADDRESS_1_OFFSET 1 |
| MSB byte of address to read or write. More... | |
| #define | ADDRESS_2_OFFSET 2 |
| Middle byte of address to read or write. More... | |
| #define | ADDRESS_3_OFFSET 3 |
| LSB byte of address to read or write. More... | |
| #define | DATA_OFFSET 4 |
| Start of Data for Read/Write. More... | |
| #define | DUMMY_OFFSET 4 |
| Dummy byte offset for fast, dual and quad reads. More... | |
| #define | DUMMY_SIZE 1 |
| Number of dummy bytes for fast, dual and quad reads. More... | |
| #define | RD_ID_SIZE 4 |
| Read ID command + 3 bytes ID response. More... | |
| #define | BULK_ERASE_SIZE 1 |
| Bulk Erase command size. More... | |
| #define | SEC_ERASE_SIZE 4 |
| Sector Erase command + Sector address. More... | |
| #define | OVERHEAD_SIZE 4 |
| Command and address byte count. More... | |
| #define | SECTOR_SIZE 0x20000 |
| Half from each flash. More... | |
| #define | NUM_SECTORS 0x100 |
| Number of sectors. More... | |
| #define | NUM_PAGES 0x10000 |
| Number of pages. More... | |
| #define | PAGE_SIZE 512 |
| 256 bytes from each flash. More... | |
| #define | LQSPI_CR_FAST_QUAD_READ 0x0000006B |
| Fast Quad Read output. More... | |
| #define | LQSPI_CR_1_DUMMY_BYTE 0x00000100 |
| 1 Dummy Byte between address and return data. More... | |
| #define | DUAL_QSPI_CONFIG_WRITE |
| LQSPI configuration register value for writing to the dual flash. More... | |
| #define | DUAL_QSPI_CONFIG_QUAD_READ |
| LQSPI configuration register value for Linear quad reads of dual flash. More... | |
| #define | PAGE_COUNT 32 |
| Number of flash pages to be written. More... | |
| #define | TEST_ADDRESS 0x0000 |
| Flash address to which data is to be written. More... | |
| #define | UNIQUE_VALUE 0x3 |
| Start value of the data pattern. More... | |
| #define | MAX_DATA (PAGE_COUNT * PAGE_SIZE) |
| Maximum amount of data transferred to and from the FLASH. More... | |
Functions | |
| int | main (void) |
| Runs the Linear QSPI dual flash example. More... | |
Variables | |
| int | Test = 0x2 |
| The following variable allows a test value to be added to the values that are written to the FLASH such that unique values can be generated to guarantee the writes to the FLASH were successful. More... | |
| u8 | ReadBuffer [MAX_DATA+DATA_OFFSET+DUMMY_SIZE] |
| Read buffer. More... | |
| u8 | WriteBuffer [PAGE_SIZE+DATA_OFFSET] |
| Write buffer. More... | |
| #define ADDRESS_1_OFFSET 1 |
MSB byte of address to read or write.
| #define ADDRESS_2_OFFSET 2 |
Middle byte of address to read or write.
| #define ADDRESS_3_OFFSET 3 |
LSB byte of address to read or write.
| #define BULK_ERASE_CMD 0xC7 |
Bulk erase command.
Referenced by FlashErase().
| #define BULK_ERASE_SIZE 1 |
Bulk Erase command size.
Referenced by FlashErase().
| #define COMMAND_OFFSET 0 |
FLASH instruction.
Referenced by FlashErase().
| #define DATA_OFFSET 4 |
Start of Data for Read/Write.
| #define DUAL_QSPI_CONFIG_QUAD_READ |
LQSPI configuration register value for Linear quad reads of dual flash.
| #define DUAL_QSPI_CONFIG_WRITE |
LQSPI configuration register value for writing to the dual flash.
| #define DUAL_READ_CMD 0x3B |
Dual read command.
| #define DUMMY_OFFSET 4 |
Dummy byte offset for fast, dual and quad reads.
| #define DUMMY_SIZE 1 |
Number of dummy bytes for fast, dual and quad reads.
| #define FAST_READ_CMD 0x0B |
Fast read command.
| #define LQSPI_CR_1_DUMMY_BYTE 0x00000100 |
1 Dummy Byte between address and return data.
| #define LQSPI_CR_FAST_QUAD_READ 0x0000006B |
Fast Quad Read output.
| #define MAX_DATA (PAGE_COUNT * PAGE_SIZE) |
Maximum amount of data transferred to and from the FLASH.
| #define NUM_PAGES 0x10000 |
Number of pages.
| #define NUM_SECTORS 0x100 |
Number of sectors.
| #define OVERHEAD_SIZE 4 |
Command and address byte count.
| #define PAGE_COUNT 32 |
Number of flash pages to be written.
| #define PAGE_SIZE 512 |
256 bytes from each flash.
| #define QUAD_READ_CMD 0x6B |
Quad read command.
| #define RD_ID_SIZE 4 |
Read ID command + 3 bytes ID response.
| #define READ_CMD 0x03 |
Normal read command.
| #define READ_ID 0x9F |
Read ID command.
| #define READ_STATUS_CMD 0x05 |
Read status register command.
| #define SEC_ERASE_CMD 0xD8 |
Sector erase command.
| #define SEC_ERASE_SIZE 4 |
Sector Erase command + Sector address.
| #define SECTOR_SIZE 0x20000 |
Half from each flash.
| #define TEST_ADDRESS 0x0000 |
Flash address to which data is to be written.
| #define UNIQUE_VALUE 0x3 |
Start value of the data pattern.
| #define WRITE_CMD 0x02 |
Write (page program) command.
| #define WRITE_DISABLE_CMD 0x04 |
Write disable command.
| #define WRITE_ENABLE_CMD 0x06 |
Write enable command.
| #define WRITE_STATUS_CMD 0x01 |
Write status register command.
| int main | ( | void | ) |
Runs the Linear QSPI dual flash example.
| u8 ReadBuffer[MAX_DATA+DATA_OFFSET+DUMMY_SIZE] |
Read buffer.
Referenced by QspiFlashIntrExample().
| int Test = 0x2 |
The following variable allows a test value to be added to the values that are written to the FLASH such that unique values can be generated to guarantee the writes to the FLASH were successful.
Referenced by QspiFlashIntrExample().
| u8 WriteBuffer[PAGE_SIZE+DATA_OFFSET] |
Write buffer.
Referenced by FlashErase(), and QspiFlashIntrExample().