Go to the source code of this file.
Defines | |
#define | PSP_POWER_CB_POWER_SWITCH 0x80000000 |
Power callback flags. | |
#define | PSP_POWER_CB_HOLD_SWITCH 0x40000000 |
#define | PSP_POWER_CB_STANDBY 0x00080000 |
#define | PSP_POWER_CB_RESUME_COMPLETE 0x00040000 |
#define | PSP_POWER_CB_RESUMING 0x00020000 |
#define | PSP_POWER_CB_SUSPENDING 0x00010000 |
#define | PSP_POWER_CB_AC_POWER 0x00001000 |
#define | PSP_POWER_CB_BATTERY_LOW 0x00000100 |
#define | PSP_POWER_CB_BATTERY_EXIST 0x00000080 |
#define | PSP_POWER_CB_BATTPOWER 0x0000007F |
Typedefs | |
typedef void(* | powerCallback_t )(int unknown, int powerInfo) |
Power Callback Function Definition. | |
Functions | |
int | scePowerRegisterCallback (int slot, SceUID cbid) |
Register Power Callback Function. | |
int | scePowerIsPowerOnline (void) |
Check if unit is plugged in. | |
int | scePowerIsBatteryExist (void) |
Check if a battery is present. | |
int | scePowerIsBatteryCharging (void) |
Check if the battery is charging. | |
int | scePowerGetBatteryChargingStatus (void) |
Get the status of the battery charging. | |
int | scePowerIsLowBattery (void) |
Check if the battery is low. | |
int | scePowerGetBatteryLifePercent (void) |
Get battery life as integer percent. | |
int | scePowerGetBatteryLifeTime (void) |
Get battery life as time. | |
int | scePowerGetBatteryTemp (void) |
Get temperature of the battery. | |
int | scePowerGetBatteryElec (void) |
unknown? - crashes PSP in usermode | |
int | scePowerGetBatteryVolt (void) |
Get battery volt level. | |
int | scePowerSetCpuClockFrequency (int cpufreq) |
Set CPU Frequency. | |
int | scePowerSetBusClockFrequency (int busfreq) |
Set Bus Frequency. | |
int | scePowerGetCpuClockFrequency (void) |
Alias for scePowerGetCpuClockFrequencyInt. | |
int | scePowerGetCpuClockFrequencyInt (void) |
Get CPU Frequency as Integer. | |
float | scePowerGetCpuClockFrequencyFloat (void) |
Get CPU Frequency as Float. | |
int | scePowerGetBusClockFrequency (void) |
Alias for scePowerGetBusClockFrequencyInt. | |
int | scePowerGetBusClockFrequencyInt (void) |
Get Bus fequency as Integer. | |
float | scePowerGetBusClockFrequencyFloat (void) |
Get Bus frequency as Float. | |
int | scePowerSetClockFrequency (int cpufreq, int ramfreq, int busfreq) |
Set Clock Frequencies. | |
int | scePowerLock (int unknown) |
Lock power switch. | |
int | scePowerUnlock (int unknown) |
Unlock power switch. | |
int | scePowerTick (int unknown) |
Generate a power tick, preventing unit from powering off and turning off display. | |
int | scePowerGetIdleTimer (void) |
Get Idle timer. | |
int | scePowerIdleTimerEnable (int unknown) |
Enable Idle timer. | |
int | scePowerIdleTimerDisable (int unknown) |
Disable Idle timer. |
|
|
|
|
|
|
|
|
|
|
|
Power callback flags.
|
|
|
|
|
|
|
|
|
|
Power Callback Function Definition.
|
|
Get the status of the battery charging.
|
|
unknown? - crashes PSP in usermode
|
|
Get battery life as integer percent.
|
|
Get battery life as time.
|
|
Get temperature of the battery.
|
|
Get battery volt level.
|
|
Alias for scePowerGetBusClockFrequencyInt.
|
|
Get Bus frequency as Float.
|
|
Get Bus fequency as Integer.
|
|
Alias for scePowerGetCpuClockFrequencyInt.
|
|
Get CPU Frequency as Float.
|
|
Get CPU Frequency as Integer.
|
|
Get Idle timer.
|
|
Disable Idle timer.
|
|
Enable Idle timer.
|
|
Check if the battery is charging.
|
|
Check if a battery is present.
|
|
Check if the battery is low.
|
|
Check if unit is plugged in.
|
|
Lock power switch. Note: if the power switch is toggled while locked it will fire immediately after being unlocked.
|
|
Register Power Callback Function.
|
|
Set Bus Frequency.
|
|
Set Clock Frequencies. NOTE: Please use scePowerSetBusClockFrequency and scePowerSetCpuClockFrequency instead of this function for clock <= 222 and bus <= 111.
|
|
Set CPU Frequency.
|
|
Generate a power tick, preventing unit from powering off and turning off display.
|
|
Unlock power switch.
|