summaryrefslogtreecommitdiff
path: root/include/user/power.h
blob: f08564c450552f80de83baf7b8f37f3da2420f1a (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(void);
int scePowerGetBatteryLifePercent(void);
int scePowerSetConfigurationMode(int mode); //?
SceBool scePowerIsSuspendRequired(void); //?
int scePowerIsPowerOnline(void);
int scePowerGetBatteryLifeTime(void);
int scePowerGetBatteryRemainCapacity(void); //?
int scePowerIsLowBattery(void);
int scePowerUnregisterCallback(int slot);
int scePowerGetBatteryFullCapacity(void); //?
int scePowerGetArmClockFrequency(void); //Get Clock Frequency of the ARM
int scePowerGetBusClockFrequency(void); //Get Clock Frequency of the BUS
int scePowerGetGpuClockFrequency(void); //Get Clock Frequency of the Gpu
int scePowerGetGpuXbarClockFrequency(void); //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_ */