27#define PSP_POWER_CB_POWER_SWITCH 0x80000000
29#define PSP_POWER_CB_HOLD_SWITCH 0x40000000
31#define PSP_POWER_CB_STANDBY 0x00080000
33#define PSP_POWER_CB_RESUME_COMPLETE 0x00040000
35#define PSP_POWER_CB_RESUMING 0x00020000
37#define PSP_POWER_CB_SUSPENDING 0x00010000
39#define PSP_POWER_CB_AC_POWER 0x00001000
41#define PSP_POWER_CB_BATTERY_LOW 0x00000100
43#define PSP_POWER_CB_BATTERY_EXIST 0x00000080
45#define PSP_POWER_CB_BATTPOWER 0x0000007F
51#define PSP_POWER_TICK_ALL 0
53#define PSP_POWER_TICK_SUSPEND 1
55#define PSP_POWER_TICK_DISPLAY 6
int SceUID
UIDs are used to describe many different kernel objects.
Definition pspkerneltypes.h:24
int scePowerSetCpuClockFrequency(int cpufreq)
Set CPU Frequency.
int scePowerIsBatteryCharging(void)
Check if the battery is charging.
int scePowerGetBatteryLifeTime(void)
Get battery life as time.
int scePowerIsPowerOnline(void)
Check if unit is plugged in.
int scePowerGetBatteryLifePercent(void)
Get battery life as integer percent.
int scePowerGetIdleTimer(void)
Get Idle timer.
int scePowerIdleTimerEnable(int unknown)
Enable Idle timer.
void(* powerCallback_t)(int unknown, int powerInfo)
Power Callback Function Definition.
Definition psppower.h:63
int scePowerGetBusClockFrequencyInt(void)
Get Bus fequency as Integer.
int scePowerIsBatteryExist(void)
Check if a battery is present.
int scePowerTick(int type)
Generate a power tick, preventing unit from powering off and turning off display.
int scePowerUnlock(int unknown)
Unlock power switch.
int scePowerGetCpuClockFrequencyInt(void)
Get CPU Frequency as Integer.
int scePowerLock(int unknown)
Lock power switch.
int scePowerIsSuspendRequired(void)
Check if a suspend is required.
int scePowerGetBusClockFrequency(void)
Alias for scePowerGetBusClockFrequencyInt.
int scePowerSetClockFrequency(int pllfreq, int cpufreq, int busfreq)
Set Clock Frequencies.
int scePowerRequestSuspend(void)
Request the PSP to go into suspend.
int scePowerGetBatteryFullCapacity(void)
Returns battery full capacity.
float scePowerGetCpuClockFrequencyFloat(void)
Get CPU Frequency as Float.
int scePowerIdleTimerDisable(int unknown)
Disable Idle timer.
int scePowerUnregisterCallback(int slot)
Unregister Power Callback Function.
int scePowerGetBatteryVolt(void)
Get battery volt level.
int scePowerGetBatteryRemainCapacity(void)
Returns battery remaining capacity.
int scePowerSetBusClockFrequency(int busfreq)
Set Bus Frequency.
int scePowerRegisterCallback(int slot, SceUID cbid)
Register Power Callback Function.
int scePowerGetBatteryChargingStatus(void)
Get the status of the battery charging.
float scePowerGetBusClockFrequencyFloat(void)
Get Bus frequency as Float.
int scePowerGetBatteryTemp(void)
Get temperature of the battery.
int scePowerGetBatteryElec(void)
unknown? - crashes PSP in usermode
int scePowerIsLowBattery(void)
Check if the battery is low.
int scePowerRequestStandby(void)
Request the PSP to go into standby.
int scePowerGetCpuClockFrequency(void)
Alias for scePowerGetCpuClockFrequencyInt.
struct _uidControlBlock * type
Definition pspsysmem_kernel.h:2
float x
Definition psptypes.h:0