blob: b1a355de4da40eb52e85ff4d75cc2aa993709eb3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifndef _PSP2_POWER_H_
#define _PSP2_POWER_H_
#include <psp2/types.h>
#ifdef __cplusplus
extern "C" {
#endif
/* callback */
typedef void (*ScePowerCallback)(int unknown, int powerInfo);
/* prototypes */
int scePowerRegisterCallback(int slot, SceUID cbid);
int scePowerIsBatteryCharging();
int scePowerGetBatteryLifePercent();
int scePowerSetConfigurationMode(int mode); //?
SceBool scePowerIsSuspendRequired(); //?
int scePowerIsPowerOnline();
int scePowerGetBatteryLifeTime();
int scePowerGetBatteryRemainCapacity(); //?
int scePowerIsLowBattery();
int scePowerUnregisterCallback(int slot);
int scePowerGetBatteryFullCapacity(); //?
int scePowerGetArmClockFrequency(); //Get Clock Frequency of the ARM
int scePowerGetBusClockFrequency(); //Get Clock Frequency of the BUS
int scePowerGetGpuClockFrequency(); //Get Clock Frequency of the Gpu
int scePowerGetGpuXbarClockFrequency(); //Get Clock Frequency of the Gpu Crossbar
int scePowerSetArmClockFrequency(int freq); // Set Clock Frequency of the ARM
int scePowerSetBusClockFrequency(int freq); // Set Clock Frequency of the BUS
int scePowerSetGpuClockFrequency(int freq); // Set Clock Frequency of the Gpu
int scePowerSetGpuXbarClockFrequency(int freq); // Set Clock Frequency of the Gpu Crossbar
#ifdef __cplusplus
}
#endif
#endif /* _PSP2_POWER_H_ */
|