Definition in file spieeprom.h.
#include "global.h"
Go to the source code of this file.
Defines | |
#define | SPIEEPROM_CMD_READ 0x03 |
Read byte(s). | |
#define | SPIEEPROM_CMD_WRITE 0x02 |
Write byte(s). | |
#define | SPIEEPROM_CMD_WREN 0x06 |
Write Enable. | |
#define | SPIEEPROM_CMD_WRDI 0x04 |
Write Disable. | |
#define | SPIEEPROM_CMD_RDSR 0x05 |
Read Status Register. | |
#define | SPIEEPROM_CMD_WRSR 0x01 |
Write Status Register. | |
#define | SPIEEPROM_STATUS_WIP 0x01 |
Write in progress. | |
#define | SPIEEPROM_STATUS_WEL 0x01 |
Write enable. | |
#define | SPIEEPROM_STATUS_BP0 0x01 |
Block Proection 0. | |
#define | SPIEEPROM_STATUS_BP1 0x01 |
Block Proection 1. | |
#define | SPIEEPROM_STATUS_WPEN 0x01 |
Write Protect Enable. | |
Functions | |
void | spieepromInit (void) |
Initialize SPI EEPROM interface. | |
u08 | spieepromReadByte (u32 memAddr) |
In the SPI EEPROM read a byte from memory location [memAddr]. | |
void | spieepromWriteByte (u32 memAddr, u08 data) |
In the SPI EEPROM write a byte [data] to the memory location [memAddr]. | |
void | spieepromWriteEnable (void) |
void | spieepromWriteDisable (void) |
u08 | spieepromReadStatus (void) |