at25xxx_constants.h File Reference

Commands for the AT25xxx family of SPI-EEPROMs. More...

Detailed Description

Commands for the AT25xxx family of SPI-EEPROMs.

Author
Benjamin Valentin benja.nosp@m.min..nosp@m.valen.nosp@m.tin@.nosp@m.ml-pa.nosp@m..com

Definition in file at25xxx_constants.h.

Go to the source code of this file.

Macros

#define CMD_WREN   (0x6)
 Write Enable

 
#define CMD_WRDI   (0x4)
 Write Disable

 
#define CMD_RDSR   (0x5)
 Read Status Register

 
#define CMD_WRSR   (0x1)
 Write Status Register

 
#define CMD_READ   (0x3)
 Read from Memory Array

 
#define CMD_WRITE   (0x2)
 Write to Memory Array

 
#define SR_WIP   (0x01)
 Write In Progress

 
#define SR_WEL   (0x02)
 Write Enable Latch

 
#define SR_BP0   (0x04)
 Block Protect 0

 
#define SR_BP1   (0x08)
 Block Protect 1

 
#define SR_SRWD   (0x80)
 Status Register Write Disable.