pmPowerFail (Function) |
Top Previous Next |
This sets whether the device will continue to operate on internal battery or enter pmPowerDown (forever) when external power is lost (power fail). Please also refer to the technical manual for the specific RTCU device for further information and support. If external power is disabled, operating on internal battery can not be disabled.
Input: bat : BOOL If true, the device will operate on internal battery when a power fail occur. If false, the device will enter a power-down mode.
Returns: INT
Declaration: FUNCTION pmPowerFail : INT;
Example: INCLUDE rtcu.inc |