183
Acquisition of OFF Reason
Acquires the reason that the system was most recently turned OFF.
SYNTAX
int SYS_GetPowerOffFactor();
INPUT
None
OUTPUT
b0
Power key
b1
Reset switch
b2
Reserved
b3
LBO
b4,b6, b7
Reserved
b5
LB1 timeout (indicates “OFF” by the condition of battery voltage low.)
b8
APO
b9
Software-triggered OFF
b10 to b15
Reserved
Note:
If the reset switch is pressed the system menu is initiated. This means that an application
program will never acquire the status of "Reset switch being pressed" as the reboot reason.
If the system is rebooted, the reason it was set OFF will be cleared. Therefore, zero will be
acquired if the reason it was set OFF is read for the first time after rebooting.
If "Cancellation of the next resume process" is set as the reason the power was set OFF
(including Power key, APO, Software-triggered OFF, etc.), the reason it was set OFF will
be cleared during the reboot process.