blob: 6e4df8ce10e20f573320e2b45b25f4ec0b0c0298 (
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
|
#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 scePowerSetArmClockFrequency(int freq); // Set Cet Clock Frequency of the ARM
#ifdef __cplusplus
}
#endif
#endif /* _PSP2_POWER_H_ */
|