Download User`s Manual EEPROM Emulation Library EEL
Transcript
EEPROM Emulation Library 5.3.2 User operation request structure All different user operations are initiated by a central initiation function (EEL_Execute). All information required for the execution is passes to the EEL by a central request structure. Also the error is returned by the same structure: Figure 22 Request structure handling Application *address_pu08 identifier_u16 length_u16 offset_u16 command_enu status_enu Write access EEL Read access The following request elements are defined: command_enu: User operation to execute: EEL_CMD_READ EEL_CMD_WRITE EEL_CMD_INVALIDATE Read a DS Write a DS Write a DS data invalid EEL_CMD_WRITE_IMM Write a DS with high priority EEL_EMD_INVALIDATE_IMM Write a DS data invalid with high priority EEL_CMD_FORMAT Format the Data Flash for EEPROM EEL_CMD_CLEANUP Clean up ring buffer to provide as much as possible prepared ring buffer space *address_pu08 Buffer pointer for the Read and Write operation. identifier_u16: 16bit ID, identifying the DS to read or write. length_u16: Only required for Read operation: Number of bytes to read from the DS. offset_u16: Only required for Read operation: Read offset from the DS bottom. Together with length the parameter is used to read only a fraction of the DS. status_enu: Status/Error codes returned by the library (see next page). User’s Manual U20280EE1V2UM00 51