summaryrefslogtreecommitdiff
path: root/include/kernel/power.h
diff options
context:
space:
mode:
authorSree2018-03-14 20:39:24 +1100
committerFrancisco José García García2018-03-14 10:39:24 +0100
commit697c08b091fba144a2be8815f1ca7127ef5587af (patch)
treeabebd2949fe9cb60cd212237d88e6be200e3b196 /include/kernel/power.h
parentAdded two SceSyscon NIDs (diff)
downloadvds-libraries-697c08b091fba144a2be8815f1ca7127ef5587af.tar.gz
Added some ScePowerCallbackTypes, fix some typos. (#299)
* fix: add createCallback param in example, typo for sys_exit * fix: adding more power callback types
Diffstat (limited to '')
-rw-r--r--include/kernel/power.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/include/kernel/power.h b/include/kernel/power.h
index ed797be..9394e01 100644
--- a/include/kernel/power.h
+++ b/include/kernel/power.h
@@ -8,12 +8,22 @@ extern "C" {
#endif
typedef enum ScePowerCallbackType {
- /** indicates the unit is suspending, seems to occur due to inactivity */
- SCE_POWER_CB_SUSPENDING = 0x00010000,
+ /** indicates the power button was pushed, putting the unit into suspend mode */
+ SCE_POWER_CB_POWER_SWITCH = 0x80000000,
+ /** ? screen on after off ? **/
+ SCE_POWER_CB_UNK_1 = 0x00600000,
+ /** ? screen off ? **/
+ SCE_POWER_CB_UNK_2 = 0x00400000,
+ /** indicates the unit has finish resuming from suspend mode */
+ SCE_POWER_CB_RESUME_COMPLETE = 0x00040000,
/** indicates the unit is resuming from suspend mode */
SCE_POWER_CB_RESUMING = 0x00020000,
- /** indicates the unit has finish resuming from suspend mode */
- SCE_POWER_CB_RESUME_COMPLETE = 0x00040000
+ /** indicates the unit is suspending, seems to occur due to inactivity */
+ SCE_POWER_CB_SUSPENDING = 0x00010000,
+ /**indicates the unit is plugged into an AC outlet*/
+ SCE_POWER_CB_AC_POWER = 0x00001000,
+ /**indicates there is a battery present in the unit**/
+ SCE_POWER_CB_BATTERY_EXIST = 0x00000080
} ScePowerCallbackType;
/* Callbacks */