Nut/OS  4.10.3
API Reference
at45d.h File Reference

AT45D DataFlash defines. More...

#include <sys/types.h>
#include <stdint.h>
Include dependency graph for at45d.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _AT45D_INFO
 AT45D DataFlash parameter structure. More...

Typedefs

typedef CONST 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.

Detailed Description

AT45D DataFlash defines.

 * $Id: at45d.h 3653 2011-11-14 15:20:31Z haraldkipp $
 * 

Definition in file at45d.h.


Define Documentation

#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.

Definition at line 59 of file at45d.h.

#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.

Definition at line 67 of file at45d.h.

#define DFCMD_BLOCK_ERASE   0x50

Block erase.

Definition at line 71 of file at45d.h.

#define DFCMD_SECTOR_ERASE   0x7C

Sector erase.

Definition at line 75 of file at45d.h.

#define DFCMD_PAGE_ERASE   0x81

Page erase.

Definition at line 79 of file at45d.h.

Referenced by SpiAt45dPageErase().

#define DFCMD_BUF1_PROG   0x82

Main memory page program through buffer 1.

Definition at line 83 of file at45d.h.

#define DFCMD_BUF1_FLASH   0x83

Buffer 1 flash with page erase.

Definition at line 87 of file at45d.h.

Referenced by SpiAt45dPageWrite().

#define DFCMD_BUF1_WRITE   0x84

Buffer 1 write.

Definition at line 91 of file at45d.h.

Referenced by SpiAt45dPageWrite().

#define DFCMD_BUF2_PROG   0x85

Main memory page program through buffer 2.

Definition at line 94 of file at45d.h.

#define DFCMD_BUF2_FLASH   0x86

Buffer 2 flash with page erase.

Definition at line 98 of file at45d.h.

#define DFCMD_BUF2_WRITE   0x87

Buffer 2 write.

Definition at line 102 of file at45d.h.

#define DFCMD_BUF1_FLASH_NE   0x88

Buffer 1 flash without page erase.

Definition at line 106 of file at45d.h.

#define DFCMD_BUF2_FLASH_NE   0x89

Buffer 2 flash without page erase.

Definition at line 110 of file at45d.h.

#define DFCMD_CHIP_ERASE   0xC7

Chip erase.

Definition at line 113 of file at45d.h.

#define DFCMD_BUF1_READ_LF   0xD1

Buffer 1 read (low frequency).

Definition at line 117 of file at45d.h.

#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.

Definition at line 124 of file at45d.h.

#define DFCMD_BUF2_READ_LF   0xD3

Buffer 2 read (low frequency).

Definition at line 128 of file at45d.h.

#define DFCMD_BUF1_READ   0xD4

Buffer 1 read.

Definition at line 132 of file at45d.h.

#define DFCMD_BUF2_READ   0xD6

Buffer 2 read.

Definition at line 136 of file at45d.h.

#define DFCMD_READ_STATUS   0xD7

Read status register.

Definition at line 140 of file at45d.h.

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.

Definition at line 148 of file at45d.h.

Referenced by SpiAt45dPageRead().

#define AT45D_STATUS_RDY   0x80

Ready (not busy) flag.

Definition at line 157 of file at45d.h.

#define AT45D_STATUS_COMP   0x40

Last compare result.

Definition at line 159 of file at45d.h.

#define AT45D_STATUS_DENSITY   0x3C

Device type code.

Definition at line 161 of file at45d.h.

Referenced by At45dNodeProbe(), and SpiAt45dInit().

#define AT45D_STATUS_PROTECT   0x02

Sector protection flag.

Definition at line 163 of file at45d.h.

#define AT45D_STATUS_PAGE_SIZE   0x01

Set when binary page size is configured.

Definition at line 165 of file at45d.h.

Referenced by At45dNodeProbe(), and SpiAt45dInit().


Typedef Documentation

typedef CONST struct _AT45D_INFO AT45D_INFO

AT45D DataFlash parameter structure type.

Definition at line 172 of file at45d.h.