vitasdk
Documentation of the vitasdk
power.h
Go to the documentation of this file.
1
6#ifndef _PSP2COMMON_POWER_H_
7#define _PSP2COMMON_POWER_H_
8
10#include <psp2common/types.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
25
51
52/* GPU, WLAN/COM configuration setting */
54 SCE_POWER_CONFIGURATION_MODE_A = 0x00000080U, /* GPU clock normal, WLAN/COM enabled */
55 SCE_POWER_CONFIGURATION_MODE_B = 0x00000800U, /* GPU clock high, WLAN/COM disabled */
56 SCE_POWER_CONFIGURATION_MODE_C = 0x00010880U, /* GPU clock high, WLAN/COM enabled (drains battery faster) */
60
61/* Callbacks */
62
64typedef void (*ScePowerCallback)(int notifyId, int notifyCount, int powerInfo, void* userData);
65
66
67#ifdef __cplusplus
68}
69#endif
70
71#endif /* _PSP2COMMON_POWER_H_ */
#define VITASDK_BUILD_ASSERT_EQ(__size__, __name__)
Definition build_utils.h:13
ScePowerErrorCode
Definition power.h:16
ScePowerCallbackType
Definition power.h:26
ScePowerConfigurationMode
Definition power.h:53
void(* ScePowerCallback)(int notifyId, int notifyCount, int powerInfo, void *userData)
Callback function prototype.
Definition power.h:64
@ SCE_POWER_ERROR_CALLBACK_NOT_REGISTERED
Definition power.h:19
@ SCE_POWER_ERROR_INVALID_VALUE
Definition power.h:17
@ SCE_POWER_ERROR_ALREADY_REGISTERED
Definition power.h:18
@ SCE_POWER_ERROR_NO_BATTERY
Definition power.h:21
@ SCE_POWER_ERROR_DETECTING
Definition power.h:22
@ SCE_POWER_ERROR_CANT_SUSPEND
Definition power.h:20
@ SCE_POWER_CB_SYSTEM_RESUME
Definition power.h:35
@ SCE_POWER_CB_AFTER_SYSTEM_RESUME
Definition power.h:27
@ SCE_POWER_CB_BUTTON_PS_START_PRESS
Definition power.h:40
@ SCE_POWER_CB_VALID_MASK_SYSTEM
Definition power.h:47
@ SCE_POWER_CB_THERMAL_SUSPEND
Definition power.h:29
@ SCE_POWER_CB_VALID_MASK_NON_SYSTEM
Definition power.h:48
@ SCE_POWER_CB_APP_SUSPEND
Definition power.h:38
@ SCE_POWER_CB_POWER_ONLINE
Definition power.h:32
@ SCE_POWER_CB_SYSTEM_RESUMING
Definition power.h:34
@ SCE_POWER_CB_APP_RESUMING
Definition power.h:39
@ SCE_POWER_CB_BUTTON_PS_PRESS
Definition power.h:43
@ SCE_POWER_CB_APP_RESUME
Definition power.h:37
@ SCE_POWER_CB_BATTERY_ONLINE
Definition power.h:28
@ SCE_POWER_CB_LOW_BATTERY_SUSPEND
Definition power.h:30
@ SCE_POWER_CB_BUTTON_PS_HOLD
Definition power.h:42
@ SCE_POWER_CB_SYSTEM_SUSPEND
Definition power.h:33
@ SCE_POWER_CB_UNK_0x100000
Definition power.h:36
@ SCE_POWER_CB_BUTTON_POWER_HOLD
Definition power.h:44
@ SCE_POWER_CB_BUTTON_PS_POWER_PRESS
Definition power.h:41
@ SCE_POWER_CB_LOW_BATTERY
Definition power.h:31
@ SCE_POWER_CB_BUTTON_POWER_PRESS
Definition power.h:45
@ SCE_POWER_CB_VALID_MASK_KERNEL
Definition power.h:46
@ SCE_POWER_CONFIGURATION_MODE_C
Definition power.h:56
@ SCE_POWER_CONFIGURATION_MODE_A
Definition power.h:54
@ __SCE_POWER_CONFIGURATION_MODE
Definition power.h:57
@ SCE_POWER_CONFIGURATION_MODE_B
Definition power.h:55