blob: 3a5ad75194cdcd6ec52655f4bd688c8ace34161e (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
|
/*
Vita Development Suite Libraries
*/
#ifndef _VDSUITE_COMMON_POWER_H
#define _VDSUITE_COMMON_POWER_H
#include_next <power.h>
#if defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus)
extern "C" {
#endif /* defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus) */
/*J 電源関係通知コールバックの引数定義マクロ */
/*E Constant Definitions */
#define SCE_POWER_CALLBACKARG_SUSPENDING 0x00010000 /** Entering suspend from timer */
#define SCE_POWER_CALLBACKARG_RESUMING 0x00020000 /** Resuming from suspend */
#define SCE_POWER_CALLBACKARG_RESUME_COMPLETE 0x00040000 /** Finished resuming from suspend */
#define SCE_POWER_CALLBACKARG_POWER_SWITCH 0x80000000 /** Entering suspend from power button */
/*J プロトタイプ宣言 */
/*E prototype declaration */
/**
* Returns battery life percentage
*
* @return Battery life percentage
*/
int scePowerGetBatteryLifePercent(void);
/**
* Check if a suspend is required
*
* @return SCE_TRUE if suspend is required, SCE_FALSE otherwise
*/
SceBool scePowerIsSuspendRequired(void);
/**
* Returns battery life time
*
* @return Battery life time in seconds
*/
int scePowerGetBatteryLifeTime(void);
/**
* Returns battery remaining capacity
*
* @return battery remaining capacity in mAh (milliampere hour)
*/
int scePowerGetBatteryRemainCapacity(void);
/**
* Returns battery full capacity
*
* @return battery full capacity in mAh (milliampere hour)
*/
int scePowerGetBatteryFullCapacity(void);
/**
* Returns battery temperature
*
* @return temperature in degrees celcius * 100
*/
int scePowerGetBatteryTemp(void);
/**
* Returns battery voltage
*
* @return battery voltage in mV (millivolts)
*/
int scePowerGetBatteryVolt(void);
/**
* Returns battery state of health
*
* @return battery state of health percent
*/
int scePowerGetBatterySOH(void);
/**
* Returns battery cycle count
*
* @return battery cycle count
*/
int scePowerGetBatteryCycleCount(void);
/**
* Returns CPU clock frequency
*
* @return CPU clock frequency in Mhz
*/
int scePowerGetArmClockFrequency(void);
/**
* Returns BUS clock frequency
*
* @return BUS clock frequency in Mhz
*/
int scePowerGetBusClockFrequency(void);
/**
* Returns GPU crossbar clock frequency
*
* @return GPU crossbar clock frequency in Mhz
*/
int scePowerGetGpuXbarClockFrequency(void);
/**
* Requests PS Vita to do a cold reset
*
* @return always 0
*/
int scePowerRequestColdReset(void);
/**
* Requests PS Vita to go into standby
*
* @return always 0
*/
int scePowerRequestStandby(void);
/**
* Requests PS Vita to suspend
*
* @return always 0
*/
int scePowerRequestSuspend(void);
/**
* Request display on
*
* @return always 0
*/
int scePowerRequestDisplayOn(void);
/**
* Request display off
*
* @return always 0
*/
int scePowerRequestDisplayOff(void);
/**
* Sets CPU clock frequency
*
* @param freq - Frequency to set in Mhz
*
* @return 0 on success, < 0 on error
*/
int scePowerSetArmClockFrequency(int freq);
/**
* Sets BUS clock frequency
*
* @param freq - Frequency to set in Mhz
*
* @return 0 on success, < 0 on error
*/
int scePowerSetBusClockFrequency(int freq);
/**
* Sets GPU crossbar clock frequency
*
* @param freq - Frequency to set in Mhz
*
* @return 0 on success, < 0 on error
*/
int scePowerSetGpuXbarClockFrequency(int freq);
#if defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus)
}
#endif /* defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus) */
#endif /* _VDSUITE_COMMON_POWER_H */
|