verCheckUpgrade (Functionblock) |
Top Previous Next |
This function block is used to inform the VPL program that a background update is in progress and that a download of either a new firmware or a new application has completed. With this functionality, the application can decide not to PowerDown() during an upgrade and it can also decide when the "switch" to the new application or firmware should happen. When a background update is available, the actual "upgrade" will happen when the device starts up next time - for example after a boardReset().
Input: None.
Output: firmware : BOOL True if a new firmware is available as a background update.
application : BOOL True if a new application is available as a background update.
transfer : BOOL True if the application or firmware is being transferred in the background.
Declaration: FUNCTION_BLOCK verCheckUpgrade;
Example: INCLUDE rtcu.inc |