AT45D DataFlash defines. More...
Go to the source code of this file.
Data Structures | |
| struct | _AT45D_INFO |
| AT45D DataFlash parameter structure. More... | |
Typedefs | |
| typedef struct _AT45D_INFO | AT45D_INFO |
| AT45D DataFlash parameter structure type. | |
Variables | |
| AT45D_INFO | at45d_info [] |
| Table of known AT45D DataFlash chips. | |
| uint_fast8_t | at45d_known_types |
| Number of known AT45D DataFlash chips. | |
AT45D DataFlash Commands | |
| #define | DFCMD_CONT_READ_LF 0x03 |
| Continuos read (low frequency). | |
| #define | DFCMD_CONT_READ_HF 0x0B |
| Continuos read (high frequency). | |
| #define | DFCMD_BLOCK_ERASE 0x50 |
| Block erase. | |
| #define | DFCMD_SECTOR_ERASE 0x7C |
| Sector erase. | |
| #define | DFCMD_PAGE_ERASE 0x81 |
| Page erase. | |
| #define | DFCMD_BUF1_PROG 0x82 |
| Main memory page program through buffer 1. | |
| #define | DFCMD_BUF1_FLASH 0x83 |
| Buffer 1 flash with page erase. | |
| #define | DFCMD_BUF1_WRITE 0x84 |
| Buffer 1 write. | |
| #define | DFCMD_BUF2_PROG 0x85 |
| Main memory page program through buffer 2. | |
| #define | DFCMD_BUF2_FLASH 0x86 |
| Buffer 2 flash with page erase. | |
| #define | DFCMD_BUF2_WRITE 0x87 |
| Buffer 2 write. | |
| #define | DFCMD_BUF1_FLASH_NE 0x88 |
| Buffer 1 flash without page erase. | |
| #define | DFCMD_BUF2_FLASH_NE 0x89 |
| Buffer 2 flash without page erase. | |
| #define | DFCMD_CHIP_ERASE 0xC7 |
| Chip erase. | |
| #define | DFCMD_BUF1_READ_LF 0xD1 |
| Buffer 1 read (low frequency). | |
| #define | DFCMD_READ_PAGE 0xD2 |
| Read main memory page. | |
| #define | DFCMD_BUF2_READ_LF 0xD3 |
| Buffer 2 read (low frequency). | |
| #define | DFCMD_BUF1_READ 0xD4 |
| Buffer 1 read. | |
| #define | DFCMD_BUF2_READ 0xD6 |
| Buffer 2 read. | |
| #define | DFCMD_READ_STATUS 0xD7 |
| Read status register. | |
| #define | DFCMD_CONT_READ 0xE8 |
| Continuos read (legacy). | |
AT45D DataFlash Status Bits | |
| #define | AT45D_STATUS_RDY 0x80 |
| Ready (not busy) flag. | |
| #define | AT45D_STATUS_COMP 0x40 |
| Last compare result. | |
| #define | AT45D_STATUS_DENSITY 0x3C |
| Device type code. | |
| #define | AT45D_STATUS_PROTECT 0x02 |
| Sector protection flag. | |
| #define | AT45D_STATUS_PAGE_SIZE 0x01 |
| Set when binary page size is configured. | |
AT45D DataFlash defines.
* $Id: at45d.h 4115 2012-04-12 21:06:13Z olereinhardt $ *
| #define DFCMD_CONT_READ_LF 0x03 |
Continuos read (low frequency).
Reads a continous stream in low speed mode. Automatically switches to the the page and wraps to the first page after the last has been read. Note, that the data buffers are not used for this operation.
| #define DFCMD_CONT_READ_HF 0x0B |
Continuos read (high frequency).
Reads a continous stream in high speed mode. Automatically switches to the the page and wraps to the first page after the last has been read. Note, that the data buffers are not used for this operation.
| #define DFCMD_BLOCK_ERASE 0x50 |
Block erase.
| #define DFCMD_SECTOR_ERASE 0x7C |
Sector erase.
| #define DFCMD_PAGE_ERASE 0x81 |
Page erase.
Referenced by SpiAt45dPageErase().
| #define DFCMD_BUF1_PROG 0x82 |
Main memory page program through buffer 1.
| #define DFCMD_BUF1_FLASH 0x83 |
Buffer 1 flash with page erase.
Referenced by SpiAt45dPageWrite().
| #define DFCMD_BUF1_WRITE 0x84 |
Buffer 1 write.
Referenced by SpiAt45dPageWrite().
| #define DFCMD_BUF2_PROG 0x85 |
Main memory page program through buffer 2.
| #define DFCMD_BUF2_FLASH 0x86 |
Buffer 2 flash with page erase.
| #define DFCMD_BUF2_WRITE 0x87 |
Buffer 2 write.
| #define DFCMD_BUF1_FLASH_NE 0x88 |
Buffer 1 flash without page erase.
| #define DFCMD_BUF2_FLASH_NE 0x89 |
Buffer 2 flash without page erase.
| #define DFCMD_CHIP_ERASE 0xC7 |
Chip erase.
| #define DFCMD_BUF1_READ_LF 0xD1 |
Buffer 1 read (low frequency).
| #define DFCMD_READ_PAGE 0xD2 |
Read main memory page.
Automatically wraps to the first byte of the same page after the last byte had been read. The data buffers are left unchanged.
| #define DFCMD_BUF2_READ_LF 0xD3 |
Buffer 2 read (low frequency).
| #define DFCMD_BUF1_READ 0xD4 |
Buffer 1 read.
| #define DFCMD_BUF2_READ 0xD6 |
Buffer 2 read.
| #define DFCMD_READ_STATUS 0xD7 |
Read status register.
Referenced by At45dNodeStatus().
| #define DFCMD_CONT_READ 0xE8 |
Continuos read (legacy).
Reads a continous stream. Automatically switches to the the page and wraps to the first page after the last has been read. Note, that the data buffers are not used for this operation.
Referenced by SpiAt45dPageRead().
| #define AT45D_STATUS_RDY 0x80 |
Ready (not busy) flag.
| #define AT45D_STATUS_COMP 0x40 |
Last compare result.
| #define AT45D_STATUS_DENSITY 0x3C |
Device type code.
Referenced by At45dNodeProbe(), and SpiAt45dInit().
| #define AT45D_STATUS_PROTECT 0x02 |
Sector protection flag.
| #define AT45D_STATUS_PAGE_SIZE 0x01 |
Set when binary page size is configured.
Referenced by At45dNodeProbe(), and SpiAt45dInit().
| typedef struct _AT45D_INFO AT45D_INFO |
AT45D DataFlash parameter structure type.