40 #ifndef __DRIVERLIB_EEPROM_H__
41 #define __DRIVERLIB_EEPROM_H__
72 #define EEPROM_INIT_OK 0
81 #define EEPROM_INIT_RETRY 1
92 #define EEPROM_INIT_ERROR 2
107 #define EEPROM_RC_INVPL 0x00000100
113 #define EEPROM_RC_WRBUSY 0x00000020
122 #define EEPROM_RC_NOPERM 0x00000010
130 #define EEPROM_RC_WKCOPY 0x00000008
137 #define EEPROM_RC_WKERASE 0x00000004
144 #define EEPROM_RC_WORKING 0x00000001
159 #define EEPROM_PROT_SUPERVISOR_ONLY 0x00000008
168 #define EEPROM_PROT_RW_LRO_URW 0x00000000
175 #define EEPROM_PROT_NA_LNA_URW 0x00000001
184 #define EEPROM_PROT_RO_LNA_URO 0x00000002
193 #define EEPROM_INT_PROGRAM 0x00000004
212 #define EEPROMBlockFromAddr(ui32Addr) ((ui32Addr) >> 6)
228 #define EEPROMAddrFromBlock(ui32Block) ((ui32Block) << 6)
245 extern void EEPROMRead(uint32_t *pui32Data, uint32_t ui32Address,
248 uint32_t ui32Address,
251 uint32_t ui32Address);
256 uint32_t ui32Protect);
258 uint32_t *pui32Password,
262 uint32_t *pui32Password,
279 #endif // __DRIVERLIB_EEPROM_H__
uint32_t EEPROMStatusGet(void)
Definition: eeprom.c:1149
uint32_t EEPROMBlockUnlock(uint32_t ui32Block, uint32_t *pui32Password, uint32_t ui32Count)
Definition: eeprom.c:903
void EEPROMRead(uint32_t *pui32Data, uint32_t ui32Address, uint32_t ui32Count)
Definition: eeprom.c:312
uint32_t EEPROMBlockCountGet(void)
Definition: eeprom.c:275
uint32_t EEPROMProgram(uint32_t *pui32Data, uint32_t ui32Address, uint32_t ui32Count)
Definition: eeprom.c:387
uint32_t EEPROMBlockLock(uint32_t ui32Block)
Definition: eeprom.c:850
uint32_t EEPROMIntStatus(bool bMasked)
Definition: eeprom.c:1066
uint32_t EEPROMProgramNonBlocking(uint32_t ui32Data, uint32_t ui32Address)
Definition: eeprom.c:534
uint32_t EEPROMBlockPasswordSet(uint32_t ui32Block, uint32_t *pui32Password, uint32_t ui32Count)
Definition: eeprom.c:774
void EEPROMBlockHide(uint32_t ui32Block)
Definition: eeprom.c:963
void EEPROMIntClear(uint32_t ui32IntFlags)
Definition: eeprom.c:1115
uint32_t EEPROMBlockProtectSet(uint32_t ui32Block, uint32_t ui32Protect)
Definition: eeprom.c:708
uint32_t EEPROMSizeGet(void)
Definition: eeprom.c:253
void EEPROMIntDisable(uint32_t ui32IntFlags)
Definition: eeprom.c:1031
uint32_t EEPROMBlockProtectGet(uint32_t ui32Block)
Definition: eeprom.c:644
void EEPROMIntEnable(uint32_t ui32IntFlags)
Definition: eeprom.c:995
uint32_t EEPROMInit(void)
Definition: eeprom.c:181
uint32_t EEPROMMassErase(void)
Definition: eeprom.c:588