GetFlashXSize (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

ALL

Firmware version:

1.00 / 1.00.00


GetFlashXSize will return the maximum index that can be used in the persistent extended FLASH.

 

 

Note:
Not all RTCU devices support extended flash memory. When not supported, this function will return 0 (zero).

 

 

Input:

None

 

Returns: INT

The highest location that can be used in the extended FLASH persistent memory.

 

 

Declaration:

FUNCTION GetFlashXSize : INT;

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
VAR
  max : INT;
END_VAR;
 
 max := GetFlashXSize();
 
BEGIN
  ...
END;
 
END_PROGRAM;