LoadDataX (Function) |
Top Previous Next |
LoadDataX will load a block of memory from a specific location in the persistent FRAM memory.
Use the GetFlashXSize function to determine the highest location it is possible to read from.
Note: not all RTCU devices support extended flash memory.
Input: index : INT (1..max) Location number the data should be loaded from.
data : ADR Address of the memory block that receives the loaded data.
datasize : INT (1..255) Maximum size to load into "ptr".
Returns: INT The actual length loaded from the specified index (this will be 0 if there is no valid data at the index - i.e. a string is stored at this position).
Declaration: FUNCTION LoadDataX : INT;
Example: INCLUDE rtcu.inc |