38 #ifndef __DRIVERLIB_EEPROM_H__ 39 #define __DRIVERLIB_EEPROM_H__ 73 #define EEPROM_INIT_OK 0 84 #define EEPROM_INIT_ERROR 2 97 #define EEPROM_RC_WRBUSY 0x00000020 106 #define EEPROM_RC_NOPERM 0x00000010 114 #define EEPROM_RC_WKCOPY 0x00000008 121 #define EEPROM_RC_WKERASE 0x00000004 128 #define EEPROM_RC_WORKING 0x00000001 143 #define EEPROM_PROT_SUPERVISOR_ONLY 0x00000008 152 #define EEPROM_PROT_RW_LRO_URW 0x00000000 159 #define EEPROM_PROT_NA_LNA_URW 0x00000001 168 #define EEPROM_PROT_RO_LNA_URO 0x00000002 177 #define EEPROM_INT_PROGRAM 0x00000004 196 #define EEPROMBlockFromAddr(ui32Addr) ((ui32Addr) >> 6) 212 #define EEPROMAddrFromBlock(ui32Block) ((ui32Block) << 6) 229 extern void EEPROMRead(uint32_t *pui32Data, uint32_t ui32Address,
232 uint32_t ui32Address,
235 uint32_t ui32Address);
240 uint32_t ui32Protect);
242 uint32_t *pui32Password,
246 uint32_t *pui32Password,
263 #endif // __DRIVERLIB_EEPROM_H__ uint32_t EEPROMStatusGet(void)
Definition: eeprom.c:1044
uint32_t EEPROMBlockUnlock(uint32_t ui32Block, uint32_t *pui32Password, uint32_t ui32Count)
Definition: eeprom.c:807
void EEPROMRead(uint32_t *pui32Data, uint32_t ui32Address, uint32_t ui32Count)
Definition: eeprom.c:257
uint32_t EEPROMBlockCountGet(void)
Definition: eeprom.c:220
uint32_t EEPROMProgram(uint32_t *pui32Data, uint32_t ui32Address, uint32_t ui32Count)
Definition: eeprom.c:331
uint32_t EEPROMBlockLock(uint32_t ui32Block)
Definition: eeprom.c:754
uint32_t EEPROMIntStatus(bool bMasked)
Definition: eeprom.c:970
uint32_t EEPROMProgramNonBlocking(uint32_t ui32Data, uint32_t ui32Address)
Definition: eeprom.c:457
uint32_t EEPROMBlockPasswordSet(uint32_t ui32Block, uint32_t *pui32Password, uint32_t ui32Count)
Definition: eeprom.c:678
void EEPROMBlockHide(uint32_t ui32Block)
Definition: eeprom.c:867
void EEPROMIntClear(uint32_t ui32IntFlags)
Definition: eeprom.c:1019
uint32_t EEPROMBlockProtectSet(uint32_t ui32Block, uint32_t ui32Protect)
Definition: eeprom.c:613
uint32_t EEPROMSizeGet(void)
Definition: eeprom.c:198
void EEPROMIntDisable(uint32_t ui32IntFlags)
Definition: eeprom.c:935
uint32_t EEPROMBlockProtectGet(uint32_t ui32Block)
Definition: eeprom.c:550
void EEPROMIntEnable(uint32_t ui32IntFlags)
Definition: eeprom.c:899
uint32_t EEPROMInit(void)
Definition: eeprom.c:126
uint32_t EEPROMMassErase(void)
Definition: eeprom.c:502