Download EEPROM Emulation Library EEL

Transcript
EEPROM Emulation Library
User Interface (API)
o
identifier_u16
→ ID to read
o
address_u32
→ Destination buffer address
o
length_u16
→ Number of bytes to read
o
offset_u16
→ Offset from DS begin to start reading
o
command_enu
→ EEL_CMD_READ for the Read operation
Parameter checks, resulting in return value EEL_ERR_PARAMETER:
•
o
Offset + length > DS size
o
Unknown ID
Write
Writing data from a user defined address (buffer) into a new DS instance,
identified by a given ID. This is done with normal priority.
Required parameters from the request structure:
o
identifier_u16
→ ID to write
o
address_u32
→ source buffer address
o
command_enu
→ EEL_CMD_WRITE for the Write operation
Parameter checks, resulting in return value EEL_ERR_PARAMETER:
o
•
Unknown ID
Write Incremental
Writing data from a user defined address (buffer) into a new DS instance,
identified by a given ID. The data write is only executed when the given data
in the write buffer differs from the data of the last DS instance in the EEL pool.
If the data equals, the operation is successfully finished without data write
operation.
This is done with normal priority.
Required parameters from the request structure:
o
identifier_u16
→ ID to write
o
address_u32
→ source buffer address
o
command_enu
operation
→ EEL_CMD_WRITE_INC for the Write
Parameter checks, resulting in return value EEL_ERR_PARAMETER:
o
•
Unknown ID
Invalidate
Writing a DS instance, identified by an ID invalid. This is done with normal
priority.
Required parameters from the request structure:
o
R01AN1035ED0100 Rev. 1.0
Application Note
identifier_u16
→ ID to invalidate
62