![]() |
vitasdk
Documentation of the vitasdk
|
Exports for Kernel. More...
Typedefs | |
| typedef void(* | ScePowerCallback) (int notifyId, int notifyCount, int powerInfo, void *userData) |
| Callback function prototype. | |
Functions | |
| VITASDK_BUILD_ASSERT_EQ (4, ScePowerErrorCode) | |
| VITASDK_BUILD_ASSERT_EQ (4, ScePowerCallbackType) | |
| int | kscePowerRegisterCallback (SceUID cbid) |
| Registers a ScePower Callback. | |
| int | kscePowerUnregisterCallback (SceUID cbid) |
| Unregister a callback. | |
| SceBool | kscePowerIsBatteryCharging (void) |
| Returns battery charging status. | |
| int | kscePowerGetBatteryLifePercent (void) |
| Returns battery life percentage. | |
| SceBool | kscePowerIsSuspendRequired (void) |
| Check if a suspend is required. | |
| SceBool | kscePowerIsPowerOnline (void) |
| Check if AC is plugged in. | |
| int | kscePowerGetBatteryLifeTime (void) |
| Returns battery life time. | |
| int | kscePowerGetBatteryRemainCapacity (void) |
| Returns battery remaining capacity. | |
| SceBool | kscePowerIsLowBattery (void) |
| Returns battery state. | |
| int | kscePowerGetBatteryFullCapacity (void) |
| Returns battery full capacity. | |
| int | kscePowerGetBatteryTemp (void) |
| Returns battery temperature. | |
| int | kscePowerGetBatteryVolt (void) |
| Returns battery voltage. | |
| int | kscePowerGetBatterySOH (void) |
| Returns battery state of health. | |
| int | kscePowerGetBatteryCycleCount (void) |
| Returns battery cycle count. | |
| int | kscePowerGetArmClockFrequency (void) |
| Returns CPU clock frequency. | |
| int | kscePowerGetBusClockFrequency (void) |
| Returns BUS clock frequency. | |
| int | kscePowerGetSysClockFrequency (void) |
| Returns Sys clock frequency. | |
| int | kscePowerGetGpuXbarClockFrequency (void) |
| Returns GPU crossbar clock frequency. | |
| int | kscePowerRequestSoftReset (void) |
| Requests PS Vita to do a soft reset. | |
| int | kscePowerRequestColdReset (void) |
| Requests PS Vita to do a cold reset. | |
| int | kscePowerRequestStandby (void) |
| Requests PS Vita to go into standby. | |
| int | kscePowerRequestSuspend (void) |
| Requests PS Vita to suspend. | |
| int | kscePowerRequestDisplayOff (void) |
| Request display off. | |
| int | kscePowerSetDisplayBrightness (int brightness) |
| Set the screen brightness. | |
| int | kscePowerSetArmClockFrequency (int freq) |
| Sets CPU clock frequency. | |
| int | kscePowerSetBusClockFrequency (int freq) |
| Sets BUS clock frequency. | |
| int | kscePowerSetGpuClockFrequency (int freq) |
| Sets GPU clock frequency. | |
| int | kscePowerSetGpuXbarClockFrequency (int freq) |
| Sets GPU crossbar clock frequency. | |
Exports for Kernel.
Include the header file in your project:
Include the header file in your project:
Link the library to the executable:
| typedef void(* ScePowerCallback) (int notifyId, int notifyCount, int powerInfo, void *userData) |
Callback function prototype.
| enum ScePowerErrorCode |
| enum ScePowerCallbackType |
| VITASDK_BUILD_ASSERT_EQ | ( | 4 | , |
| ScePowerErrorCode | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 4 | , |
| ScePowerCallbackType | |||
| ) |
| int kscePowerRegisterCallback | ( | SceUID | cbid | ) |
Registers a ScePower Callback.
| cbid | - The UID of the specified callback |
| int kscePowerUnregisterCallback | ( | SceUID | cbid | ) |
Unregister a callback.
| cbid | - The UID of the specified callback |
| SceBool kscePowerIsBatteryCharging | ( | void | ) |
Returns battery charging status.
| int kscePowerGetBatteryLifePercent | ( | void | ) |
Returns battery life percentage.
| SceBool kscePowerIsSuspendRequired | ( | void | ) |
Check if a suspend is required.
| SceBool kscePowerIsPowerOnline | ( | void | ) |
Check if AC is plugged in.
| int kscePowerGetBatteryLifeTime | ( | void | ) |
Returns battery life time.
| int kscePowerGetBatteryRemainCapacity | ( | void | ) |
Returns battery remaining capacity.
| SceBool kscePowerIsLowBattery | ( | void | ) |
Returns battery state.
| int kscePowerGetBatteryFullCapacity | ( | void | ) |
Returns battery full capacity.
| int kscePowerGetBatteryTemp | ( | void | ) |
Returns battery temperature.
| int kscePowerGetBatteryVolt | ( | void | ) |
Returns battery voltage.
| int kscePowerGetBatterySOH | ( | void | ) |
Returns battery state of health.
| int kscePowerGetBatteryCycleCount | ( | void | ) |
Returns battery cycle count.
| int kscePowerGetArmClockFrequency | ( | void | ) |
Returns CPU clock frequency.
| int kscePowerGetBusClockFrequency | ( | void | ) |
Returns BUS clock frequency.
| int kscePowerGetSysClockFrequency | ( | void | ) |
Returns Sys clock frequency.
| int kscePowerGetGpuXbarClockFrequency | ( | void | ) |
Returns GPU crossbar clock frequency.
| int kscePowerRequestSoftReset | ( | void | ) |
Requests PS Vita to do a soft reset.
| int kscePowerRequestColdReset | ( | void | ) |
Requests PS Vita to do a cold reset.
| int kscePowerRequestStandby | ( | void | ) |
Requests PS Vita to go into standby.
| int kscePowerRequestSuspend | ( | void | ) |
Requests PS Vita to suspend.
| int kscePowerRequestDisplayOff | ( | void | ) |
Request display off.
| int kscePowerSetDisplayBrightness | ( | int | brightness | ) |
Set the screen brightness.
| brightness | Brightness that the screen will be set to (range 21-65536, 0 turns off the screen). |
| int kscePowerSetArmClockFrequency | ( | int | freq | ) |
Sets CPU clock frequency.
| freq | - Frequency to set in Mhz |
| int kscePowerSetBusClockFrequency | ( | int | freq | ) |
Sets BUS clock frequency.
| freq | - Frequency to set in Mhz |
| int kscePowerSetGpuClockFrequency | ( | int | freq | ) |
Sets GPU clock frequency.
| freq | - Frequency to set in Mhz |
| int kscePowerSetGpuXbarClockFrequency | ( | int | freq | ) |
Sets GPU crossbar clock frequency.
| freq | - Frequency to set in Mhz |