vitasdk
Documentation of the vitasdk
power.h File Reference

Go to the source code of this file.

Typedefs

typedef void(* ScePowerCallback) (int notifyId, int notifyCount, int powerInfo, void *userData)
 Callback function prototype. More...
 

Enumerations

enum  ScePowerErrorCode {
  SCE_POWER_ERROR_INVALID_VALUE = 0x802B0000 , SCE_POWER_ERROR_ALREADY_REGISTERED = 0x802B0001 , SCE_POWER_ERROR_CALLBACK_NOT_REGISTERED = 0x802B0002 , SCE_POWER_ERROR_CANT_SUSPEND = 0x802B0003 ,
  SCE_POWER_ERROR_NO_BATTERY = 0x802B0100 , SCE_POWER_ERROR_DETECTING = 0x802B0101
}
 
enum  ScePowerCallbackType {
  SCE_POWER_CB_AFTER_SYSTEM_RESUME = 0x00000080 , SCE_POWER_CB_BATTERY_ONLINE = 0x00000100 , SCE_POWER_CB_THERMAL_SUSPEND = 0x00000200 , SCE_POWER_CB_LOW_BATTERY_SUSPEND = 0x00000400 ,
  SCE_POWER_CB_LOW_BATTERY = 0x00000800 , SCE_POWER_CB_POWER_ONLINE = 0x00001000 , SCE_POWER_CB_SYSTEM_SUSPEND = 0x00010000 , SCE_POWER_CB_SYSTEM_RESUMING = 0x00020000 ,
  SCE_POWER_CB_SYSTEM_RESUME = 0x00040000 , SCE_POWER_CB_UNK_0x100000 = 0x00100000 , SCE_POWER_CB_APP_RESUME = 0x00200000 , SCE_POWER_CB_APP_SUSPEND = 0x00400000 ,
  SCE_POWER_CB_APP_RESUMING = 0x00800000 , SCE_POWER_CB_BUTTON_PS_START_PRESS = 0x04000000 , SCE_POWER_CB_BUTTON_PS_POWER_PRESS = 0x08000000 , SCE_POWER_CB_BUTTON_PS_HOLD = 0x10000000 ,
  SCE_POWER_CB_BUTTON_PS_PRESS = 0x20000000 , SCE_POWER_CB_BUTTON_POWER_HOLD = 0x40000000 , SCE_POWER_CB_BUTTON_POWER_PRESS = 0x80000000 , SCE_POWER_CB_VALID_MASK_KERNEL = 0xFCF71F80 ,
  SCE_POWER_CB_VALID_MASK_SYSTEM = 0xFCF71F80 , SCE_POWER_CB_VALID_MASK_NON_SYSTEM = 0x00361180
}
 
enum  ScePowerConfigurationMode { SCE_POWER_CONFIGURATION_MODE_A = 0x00000080U , SCE_POWER_CONFIGURATION_MODE_B = 0x00000800U , SCE_POWER_CONFIGURATION_MODE_C = 0x00010880U , __SCE_POWER_CONFIGURATION_MODE = 0xFFFFFFFF }
 

Functions

 VITASDK_BUILD_ASSERT_EQ (4, ScePowerErrorCode)
 
 VITASDK_BUILD_ASSERT_EQ (4, ScePowerCallbackType)
 
 VITASDK_BUILD_ASSERT_EQ (4, ScePowerConfigurationMode)