nandps: xnandps_onfi.h File Reference

| nandps Xilinx SDK Drivers API Documentation

- Overview
- Data Structures
- APIs
- File List
- Examples

Data Structures | Macros | Enumerations
xnandps_onfi.h File Reference

## Data Structures
struct | __attribute__
| ONFI 1.0 support. More...

## Macros
#define | ONFI_CMD_READ1 0x00
| ONFI Read command (1st cycle) More...
#define | ONFI_CMD_READ2 0x30
| ONFI Read command (2nd cycle) More...
#define | ONFI_CMD_CHANGE_READ_COLUMN1 0x05
| ONFI Change Read Column command (1st cycle) More...
#define | ONFI_CMD_CHANGE_READ_COLUMN2 0xE0
| ONFI Change Read Column command (2nd cycle) More...
#define | ONFI_CMD_BLOCK_ERASE1 0x60
| ONFI Block Erase (1st cycle) More...
#define | ONFI_CMD_BLOCK_ERASE2 0xD0
| ONFI Block Erase (2nd cycle) More...
#define | ONFI_CMD_READ_STATUS 0x70
| ONFI Read status command. More...
#define | ONFI_CMD_PAGE_PROG1 0x80
| ONFI Page Program command (1st cycle) More...
#define | ONFI_CMD_PAGE_PROG2 0x10
| ONFI Page Program command (2nd cycle) More...
#define | ONFI_CMD_CHANGE_WRITE_COLUMN 0x85
| ONFI Change Write Column command. More...
#define | ONFI_CMD_READ_ID 0x90
| ONFI Read ID command. More...
#define | ONFI_CMD_READ_PARAM_PAGE 0xEC
| ONFI Read Parameter Page command. More...
#define | ONFI_CMD_RESET 0xFF
| ONFI Reset command. More...
#define | ONFI_CMD_COPYBACK_READ1 0x00
| ONFI Copyback Read command (1st cycle) More...
#define | ONFI_CMD_COPYBACK_READ2 0x35
| ONFI Copyback Read command (2nd cycle) More...
#define | ONFI_CMD_READ_CACHE_ENHANCED1 0x00
| ONFI Read cache enhanced command (1st cycle) More...
#define | ONFI_CMD_READ_CACHE_ENHANCED2 0x31
| ONFI Read cache enhanced command (2nd cycle) More...
#define | ONFI_CMD_READ_CACHE 0x31
| ONFI Read cache command. More...
#define | ONFI_CMD_READ_CACHE_END 0x3F
| ONFI Read cache end command. More...
#define | ONFI_CMD_BLOCK_ERASE_INTERLEAVED2 0xD1
| ONFI Block Erase interleaved command (2nd cycle) More...
#define | ONFI_CMD_READ_STATUS_ENHANCED 0x78
| ONFI Read Status enhanced command. More...
#define | ONFI_CMD_PAGE_PROGRAM_INTERLEAVED2 0x11
| ONFI Page Program interleaved command (2nd cycle) More...
#define | ONFI_CMD_PAGE_CACHE_PROGRAM1 0x80
| ONFI Page cache program (1st cycle) More...
#define | ONFI_CMD_PAGE_CACHE_PROGRAM2 0x15
| ONFI Page cache program (2nd cycle) More...
#define | ONFI_CMD_COPYBACK_PROGRAM1 0x85
| ONFI Copyback program command (1st cycle) More...
#define | ONFI_CMD_COPYBACK_PROGRAM2 0x10
| ONFI Copyback program command (2nd cycle) More...
#define | ONFI_CMD_COPYBACK_PROGRAM_INTERLEAVED2 0x11
| ONFI Copyback program interleaved command (2nd cycle) More...
#define | ONFI_CMD_READ_UNIQUEID 0xED
| ONFI Read Unique ID command. More...
#define | ONFI_CMD_GET_FEATURES 0xEE
| ONFI Get features command. More...
#define | ONFI_CMD_SET_FEATURES 0xEF
| ONFI Set features command. More...
#define | ONFI_STATUS_FAIL 0x01
| ONFI Status Register : FAIL. More...
#define | ONFI_STATUS_FAILC 0x02
| ONFI Status Register : FAILC. More...
#define | ONFI_STATUS_ARDY 0x20
| ONFI Status Register : ARDY. More...
#define | ONFI_STATUS_RDY 0x40
| ONFI Status Register : RDY. More...
#define | ONFI_STATUS_WP 0x80
| ONFI Status Register : WR. More...
#define | ONFI_ID_LEN 4
| ONFI ID Length. More...
#define | ONFI_CRC_INIT 0x4F4E
| ONFI CRC16 Inititialization constant. More...
#define | ONFI_CRC_POLYNOM 0x8005
| ONFI CRC16 polynomial. More...
#define | ONFI_CRC_ORDER 16
| ONFI CRC16 order. More...
#define | ONFI_PARAM_PAGE_LEN 256
| ONFI Parameter page length. More...
#define | ONFI_CRC_LEN 254
| ONFI CRC16 length. More...
#define | ONFI_SIGNATURE_LEN 4
| ONFI Signature Length. More...

## Enumerations
enum | OnfiCommandsEnum { READ =0, CHANGE_READ_COLUMN, BLOCK_ERASE, READ_STATUS, PAGE_PROGRAM, CHANGE_WRITE_COLUMN, READ_ID, READ_PARAM_PAGE, RESET, GET_FEATURES, SET_FEATURES, READ_CACHE_RANDOM, READ_CACHE_END_SEQ, PAGE_CACHE_PROGRAM }
| This enum defines the onfi commands. More...