Macros | Functions
eeprom.h File Reference
#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Macros

#define EEPROM_INIT_OK   0
 
#define EEPROM_INIT_ERROR   2
 
#define EEPROM_RC_WRBUSY   0x00000020
 
#define EEPROM_RC_NOPERM   0x00000010
 
#define EEPROM_RC_WKCOPY   0x00000008
 
#define EEPROM_RC_WKERASE   0x00000004
 
#define EEPROM_RC_WORKING   0x00000001
 
#define EEPROM_PROT_SUPERVISOR_ONLY   0x00000008
 
#define EEPROM_PROT_RW_LRO_URW   0x00000000
 
#define EEPROM_PROT_NA_LNA_URW   0x00000001
 
#define EEPROM_PROT_RO_LNA_URO   0x00000002
 
#define EEPROM_INT_PROGRAM   0x00000004
 
#define EEPROMBlockFromAddr(ui32Addr)   ((ui32Addr) >> 6)
 
#define EEPROMAddrFromBlock(ui32Block)   ((ui32Block) << 6)
 

Functions

uint32_t EEPROMInit (void)
 
uint32_t EEPROMSizeGet (void)
 
uint32_t EEPROMBlockCountGet (void)
 
void EEPROMRead (uint32_t *pui32Data, uint32_t ui32Address, uint32_t ui32Count)
 
uint32_t EEPROMProgram (uint32_t *pui32Data, uint32_t ui32Address, uint32_t ui32Count)
 
uint32_t EEPROMProgramNonBlocking (uint32_t ui32Data, uint32_t ui32Address)
 
uint32_t EEPROMStatusGet (void)
 
uint32_t EEPROMMassErase (void)
 
uint32_t EEPROMBlockProtectGet (uint32_t ui32Block)
 
uint32_t EEPROMBlockProtectSet (uint32_t ui32Block, uint32_t ui32Protect)
 
uint32_t EEPROMBlockPasswordSet (uint32_t ui32Block, uint32_t *pui32Password, uint32_t ui32Count)
 
uint32_t EEPROMBlockLock (uint32_t ui32Block)
 
uint32_t EEPROMBlockUnlock (uint32_t ui32Block, uint32_t *pui32Password, uint32_t ui32Count)
 
void EEPROMBlockHide (uint32_t ui32Block)
 
void EEPROMIntEnable (uint32_t ui32IntFlags)
 
void EEPROMIntDisable (uint32_t ui32IntFlags)
 
uint32_t EEPROMIntStatus (bool bMasked)
 
void EEPROMIntClear (uint32_t ui32IntFlags)
 
Copyright 2017, Texas Instruments Incorporated