Download EEPROM Emulation Library EEL

Transcript
EEPROM Emulation Library
User Interface (API)
EEL_ERR_PARAMETER,
EEL_ERR_REJECTED,
EEL_ERR_ACCESS_LOCKED,
EEL_ERR_NO_INSTANCE,
EEL_ERR_POOL_FULL,
EEL_ERR_FLASH_ERROR,
EEL_ERR_INTERNAL,
EEL_ERR_POOL_EXHAUSTED,
EEL_ERR_POOL_INCONSISTENT,
EEL_ERR_COMMAND
} eel_status_t;
typedef volatile struct EEL_REQUEST_T {
eel_u08
*address_pu08;
eel_u16
identifier_u16;
eel_u16
length_u16;
eel_u16
offset_u16;
eel_command_t
command_enu;
eel_status_t
status_enu;
} eel_request_t;
5.3.3 Driver status
The EEL supervision process collects and signals all background
operations/processes errors. Furthermore, the process controls two driver status
values which describe the status of the EEL background operations. These are
the operation status and access status:
•
Operational status
Defining the status of the state machine according to the following:
o
EEL_OPERATION_PASSIVE
The state machine can handle neither internal nor user initiated
processes.
This state is set:
- before EEL startup
- after EEL shutdown is finished
- after fatal EEL operations errors
o
EEL_ OPERATION _IDLE
No process active except supervision doing margin checks. No Refresh
or Prepare necessary and no user process Read, Write, Format active.
o
EEL_ OPERATION _BUSY
This status is set, if either a background process, e.g. Refresh or
Prepare is active or a user process Read or Write is being processed.
As Flash operations may be processed, the device should not be
switched off in this status in order to avoid repair operations to be
executed on EEL startup.
o
EEL_OPERATION_STARTUP
This status is set as long as the startup background process is executed.
This indicates that the EEL is not completely up and running. As long as
this operational status is returned, EEL functionality is possibly limited.
Please see emulation access status below.
o
EEL_OPERATION_SUSPENDED
When the suspend request is issued to the EEL by the EEL_Suspend
function, the state machine enters the suspend mode. As this cannot be
R01AN1035ED0100 Rev. 1.0
Application Note
51