Download EEPROM Emulation Library EEL

Transcript
EEPROM Emulation Library
User Interface (API)
Return types/values
Type
Argument
eel_status_t
u32
counter_pu32
Description
Result of the function. Possible
values are:
EEL_OK
EEL_ERR_ACCESS_LOCKED
Pointer to the erase counter storage
location
Pre-conditions
•
The library must be unlocked:
o
Call EEL_Init to initialize the library
o
Call EEL_Startup and call EEL_Handler cyclically to unlock the access
status ( access status != EEL_ACCESS_LOCKED )
o
Do not call EEL_ShutDown or EEL_Suspend before
Post-conditions
None
Example
eel_u32
eel_status_t
eraseCounter;
ret;
ret = EEL_GetEraseCounter( &EraseCounter );
if( EEL_OK != ret )
{
/* Error treatment */
}
R01AN1035ED0100 Rev. 1.0
Application Note
69