![]() |
vitasdk
Documentation of the vitasdk
|
Exports for Kernel. More...
Data Structures | |
| struct | ScePowerBatteryFakeStatus |
| Simulated battery state used by kscePowerSetBatteryFakeStatus. More... | |
Typedefs | |
| typedef void(* | ScePowerCallback) (int notifyId, int notifyCount, int powerInfo, void *userData) |
| Callback function prototype. | |
| typedef void(* | ScePowerIdleCallback) (SceUInt32 index, SceUInt32 idle_time, void *user_data) |
| Idle callback called by ScePower's periodic idle worker. | |
| typedef void(* | ScePowerProcessIdleCallback) (ScePID pid, SceUInt32 idle_time, void *user_data) |
| Process-idle callback called by ScePower's periodic idle worker. | |
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. | |
| VITASDK_BUILD_ASSERT_EQ (0x10, ScePowerBatteryFakeStatus) | |
| int | kscePowerBatteryDisableUsbCharging (void) |
| Clear ScePower's USB-charging request. | |
| int | kscePowerBatteryEnableUsbCharging (void) |
| Enable ScePower's USB-charging request. | |
| int | kscePowerBatteryForbidCharging (void) |
| Increment the reference count that prevents charging. | |
| int | kscePowerBatteryPermitCharging (void) |
| Decrement the reference count that prevents charging, if it is nonzero. | |
| int | kscePowerBatterySetUsbStatus (int usb_status) |
| Set the USB device state reported to Syscon. | |
| int | kscePowerBatteryStopUsbCharging (void) |
| Request that Syscon stop USB charging immediately. | |
| int | kscePowerGetArmClockFrequencyProc (ScePID pid) |
| Get one process's ARM-clock request. | |
| int | kscePowerGetBusClockFrequencyProc (ScePID pid) |
| Get one process's bus-clock request. | |
| int | kscePowerGetCameraBusClockFrequency (void) |
| Get the applied camera-bus clock frequency. | |
| int | kscePowerGetCompatClockFrequency (void) |
| Get the most recent compatibility-clock request. | |
| int | kscePowerGetDmac5ClockFrequency (void) |
| Get the applied DMAC5 clock frequency. | |
| int | kscePowerGetGpuClockFrequencyInternal (SceInt32 *core_frequency, SceInt32 *mp_frequency) |
| Get the applied GPU core and MP clock frequencies. | |
| int | kscePowerGetGpuClockFrequencyProc (ScePID pid) |
| Get one process's GPU-clock request. | |
| int | kscePowerGetGpuXbarClockFrequencyProc (ScePID pid) |
| Get one process's GPU-crossbar clock request. | |
| int | kscePowerGetPowerSwMode (void) |
| Get the combined power-switch policy. | |
| int | kscePowerGetVeneziaClockFrequency (void) |
| Get the most recent Venezia-clock request. | |
| int | kscePowerGetVipClockFrequency (void) |
| Get the most recent VIP-clock request. | |
| int | kscePowerGetWakeupFactor (void) |
| Get the wakeup factor captured during the most recent resume sequence. | |
| int | kscePowerRequestDisplayOn (void) |
| Request that the display be turned on. | |
| int | kscePowerRequestHibernate (void) |
| Queue an asynchronous hibernate request. | |
| int | kscePowerRequestResume (void) |
| Request that an in-progress suspend sequence resume or abort sleeping. | |
| int | kscePowerSetArmClockFrequencyProc (ScePID pid, int frequency) |
| Set one process's ARM-clock request. | |
| int | kscePowerSetBatteryFakeStatus (const ScePowerBatteryFakeStatus *fake_status) |
| Enable or disable simulated battery values. | |
| int | kscePowerSetBusClockFrequencyProc (ScePID pid, int frequency) |
| Set one process's bus-clock request. | |
| int | kscePowerSetCameraBusClockFrequency (int frequency) |
| Set the camera-bus clock. | |
| int | kscePowerSetCompatClockFrequency (int frequency) |
| Set the compatibility/Allegrex clock request. | |
| int | kscePowerSetDisplayMaxBrightness (int max_brightness) |
| Set the maximum display brightness. | |
| int | kscePowerSetDmac5ClockFrequency (int frequency) |
| Set the DMAC5 clock. | |
| int | kscePowerSetGpuClockFrequencyInternal (SceInt32 core_frequency, SceInt32 mp_frequency) |
| Set the GPU core and MP clocks directly. | |
| int | kscePowerSetGpuClockFrequencyProc (ScePID pid, int frequency) |
| Set one process's GPU-clock request. | |
| int | kscePowerSetGpuXbarClockFrequencyProc (ScePID pid, int frequency) |
| Set one process's GPU-crossbar clock request. | |
| int | kscePowerSetIdleCallback (SceUInt32 index, int flags, SceUInt64 duration, ScePowerIdleCallback callback, void *user_data) |
| Configure one of the eight global idle callbacks. | |
| int | kscePowerSetPowerSwMode (int mode) |
| Set the Vsh/user power-switch policy slot. | |
| int | kscePowerSetPowerSwMode2 (int mode) |
| Set the kernel power-switch policy slot. | |
| int | kscePowerSetProcessIdleCallback (ScePowerProcessIdleCallback callback, void *user_data) |
| Install the process-idle callback used for every tracked process. | |
| int | kscePowerSetPsButtonPushTime (int push_time_us) |
| Set the PS button hold threshold. | |
| int | kscePowerSetStandbyButtonPushTime (int push_time_us) |
| Set the standby/power button hold threshold. | |
| int | kscePowerSetSysClockFrequency (int frequency) |
| Set the system clock request. | |
| int | kscePowerSetVeneziaClockFrequency (int frequency) |
| Set the Venezia clock request. | |
| int | kscePowerSetVipClockFrequency (int frequency) |
| Set the VIP clock request. | |
| int | kscePowerTick (SceUInt32 type) |
| Record activity for ScePower idle tracking. | |
| int | kscePowerWlanActivate (void) |
| Set ScePower's software WLAN-active flag. | |
| int | kscePowerWlanDeactivate (void) |
| Clear ScePower's software WLAN-active flag. | |
Variables | |
| SceSize | ScePowerBatteryFakeStatus::size |
Must be sizeof(ScePowerBatteryFakeStatus). | |
| SceUInt32 | ScePowerBatteryFakeStatus::remaining_capacity |
| Initial remaining capacity in mAh. See kscePowerSetBatteryFakeStatus. | |
| SceUInt32 | ScePowerBatteryFakeStatus::full_capacity |
| Full capacity in mAh; 0 is treated as 2000. | |
| SceUInt32 | ScePowerBatteryFakeStatus::discharge_time |
| Simulated discharge duration in microseconds, or zero to keep the capacity constant. | |
Exports for Kernel.
Include the header file in your project:
Include the header file in your project:
Link the library to the executable:
| struct ScePowerBatteryFakeStatus |
Simulated battery state used by kscePowerSetBatteryFakeStatus.
When discharge_time is nonzero, FW 3.60 linearly decreases the reported remaining capacity from remaining_capacity to zero over that many microseconds. A zero duration keeps the simulated capacity constant.
| Data Fields | ||
|---|---|---|
| SceSize | size |
Must be sizeof(ScePowerBatteryFakeStatus). |
| SceUInt32 | remaining_capacity | Initial remaining capacity in mAh. See kscePowerSetBatteryFakeStatus. |
| SceUInt32 | full_capacity | Full capacity in mAh; 0 is treated as 2000. |
| SceUInt32 | discharge_time | Simulated discharge duration in microseconds, or zero to keep the capacity constant. |
| typedef void(* ScePowerCallback) (int notifyId, int notifyCount, int powerInfo, void *userData) |
Callback function prototype.
Idle callback called by ScePower's periodic idle worker.
| [in] | index | Idle-callback slot from 0 through 7. |
| [in] | idle_time | Number of elapsed microseconds, truncated to 32 bits. Zero reports that activity reset a previously expired callback. |
| [in] | user_data | Value supplied to kscePowerSetIdleCallback. |
Process-idle callback called by ScePower's periodic idle worker.
| [in] | pid | Process whose idle state changed. |
| [in] | idle_time | Number of elapsed microseconds, truncated to 32 bits. Zero reports activity after a previous expiration. |
| [in] | user_data | Value supplied to kscePowerSetProcessIdleCallback. |
| enum ScePowerErrorCode |
| enum ScePowerCallbackType |
USB device states observed on FW 3.60.
| 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 |
| VITASDK_BUILD_ASSERT_EQ | ( | 0x10 | , |
| ScePowerBatteryFakeStatus | |||
| ) |
| int kscePowerBatteryDisableUsbCharging | ( | void | ) |
Clear ScePower's USB-charging request.
This clears the software request and wakes the battery worker. It does not issue the separate immediate-stop Syscon command used by kscePowerBatteryStopUsbCharging.
| int kscePowerBatteryEnableUsbCharging | ( | void | ) |
Enable ScePower's USB-charging request.
| int kscePowerBatteryForbidCharging | ( | void | ) |
Increment the reference count that prevents charging.
The first forbid request cancels a pending re-enable timer and wakes the battery worker.
| int kscePowerBatteryPermitCharging | ( | void | ) |
Decrement the reference count that prevents charging, if it is nonzero.
Releasing the last forbid request schedules charging to be reconsidered after five seconds.
| int kscePowerBatterySetUsbStatus | ( | int | usb_status | ) |
Set the USB device state reported to Syscon.
| [in] | usb_status | USB device state. Normally one of ScePowerBatteryUsbStatus. Only the low eight bits are sent to Syscon; the value is not range-checked. |
| int kscePowerBatteryStopUsbCharging | ( | void | ) |
Request that Syscon stop USB charging immediately.
The command is issued only while the USB-charging request is enabled. This function does not clear that request; use kscePowerBatteryDisableUsbCharging for that purpose.
| int kscePowerGetArmClockFrequencyProc | ( | ScePID | pid | ) |
Get one process's ARM-clock request.
| [in] | pid | Process ID, or 0 for the current process. |
| int kscePowerGetBusClockFrequencyProc | ( | ScePID | pid | ) |
Get one process's bus-clock request.
| [in] | pid | Process ID, or 0 for the current process. |
| int kscePowerGetCameraBusClockFrequency | ( | void | ) |
Get the applied camera-bus clock frequency.
| int kscePowerGetCompatClockFrequency | ( | void | ) |
Get the most recent compatibility-clock request.
This returns the caller-supplied request, not necessarily the physical frequency selected by the clock hardware.
| int kscePowerGetDmac5ClockFrequency | ( | void | ) |
Get the applied DMAC5 clock frequency.
Get the applied GPU core and MP clock frequencies.
| [out] | core_frequency | Optional output for the GPU core frequency in MHz. |
| [out] | mp_frequency | Optional output for the GPU MP frequency in MHz. |
| int kscePowerGetGpuClockFrequencyProc | ( | ScePID | pid | ) |
Get one process's GPU-clock request.
| [in] | pid | Process ID, or 0 for the current process. |
| int kscePowerGetGpuXbarClockFrequencyProc | ( | ScePID | pid | ) |
Get one process's GPU-crossbar clock request.
| [in] | pid | Process ID, or 0 for the current process. |
| int kscePowerGetPowerSwMode | ( | void | ) |
Get the combined power-switch policy.
FW 3.60 keeps separate kernel and Vsh/user policy values and returns their bitwise OR. Only bits 0 through 2 can be set through the two exported setters.
| int kscePowerGetVeneziaClockFrequency | ( | void | ) |
Get the most recent Venezia-clock request.
| int kscePowerGetVipClockFrequency | ( | void | ) |
Get the most recent VIP-clock request.
| int kscePowerGetWakeupFactor | ( | void | ) |
Get the wakeup factor captured during the most recent resume sequence.
Callers on FW 3.60 interpret the low seven bits as the wake-reason value. The remaining bits are returned unchanged.
| int kscePowerRequestDisplayOn | ( | void | ) |
Request that the display be turned on.
FW 3.60 queues the request only for the Shell process or a system program; other callers are silently ignored.
| int kscePowerRequestHibernate | ( | void | ) |
Queue an asynchronous hibernate request.
| int kscePowerRequestResume | ( | void | ) |
Request that an in-progress suspend sequence resume or abort sleeping.
| int kscePowerSetArmClockFrequencyProc | ( | ScePID | pid, |
| int | frequency | ||
| ) |
Set one process's ARM-clock request.
ScePower applies the maximum request among active processes. FW 3.60 accepts frequencies from 1 through 444 MHz; values between hardware levels select the next level.
| [in] | pid | Process ID, or 0 for the current process. |
| [in] | frequency | Requested frequency in MHz. |
| int kscePowerSetBatteryFakeStatus | ( | const ScePowerBatteryFakeStatus * | fake_status | ) |
Enable or disable simulated battery values.
A NULL parameter disables simulation. For a non-NULL parameter, size must be 0x10. If remaining_capacity is zero, FW 3.60 starts from the real remaining capacity when it is available; otherwise it starts from full_capacity.
| [in] | fake_status | Simulated state, or NULL to disable it. |
| int kscePowerSetBusClockFrequencyProc | ( | ScePID | pid, |
| int | frequency | ||
| ) |
Set one process's bus-clock request.
ScePower applies the maximum request among active processes. FW 3.60 accepts frequencies from 1 through 222 MHz and rounds upward to 55, 83, 111, 166, or 222 MHz.
| [in] | pid | Process ID, or 0 for the current process. |
| [in] | frequency | Requested frequency in MHz. |
| int kscePowerSetCameraBusClockFrequency | ( | int | frequency | ) |
Set the camera-bus clock.
FW 3.60 accepts 0 through 166 MHz. Zero selects the released/default state; positive values are rounded upward to 41, 67, 83, 133, or 166 MHz.
| [in] | frequency | Requested frequency in MHz. |
| int kscePowerSetCompatClockFrequency | ( | int | frequency | ) |
Set the compatibility/Allegrex clock request.
The meaningful requests are 0, 222, and 333 MHz. Zero releases the override, 222 selects the low compatibility selector, and 333 selects the high selector. FW 3.60 accepts every other signed value below 334 except 222, including negative values, but all of them select the same hardware mode as 333 while the getter returns the supplied value.
| [in] | frequency | Requested frequency in MHz. |
| int kscePowerSetDisplayMaxBrightness | ( | int | max_brightness | ) |
Set the maximum display brightness.
| [in] | max_brightness | Brightness limit in internal units. FW 3.60 normally uses 0x10000, or 0xC4EC when reducing brightness at high GPU clock speeds. A value of 1 is treated as 2. Other values are not checked. |
| int kscePowerSetDmac5ClockFrequency | ( | int | frequency | ) |
Set the DMAC5 clock.
FW 3.60 accepts 0 through 166 MHz. Zero disables/releases the clock; positive values are rounded upward to 41, 83, 133, or 166 MHz.
| [in] | frequency | Requested frequency in MHz. |
Set the GPU core and MP clocks directly.
Supplying zero for both frequencies disables the pair. Otherwise each value is rounded upward to 41, 55, 83, 111, 166, or 222 MHz; a zero value is treated as a request at or below 41 MHz. The resulting core frequency must not exceed the resulting MP frequency. During an actual selector change FW 3.60 quiesces Grab clients 8 through 11, waits at least three microseconds, programs the clock, and releases those clients.
| [in] | core_frequency | GPU core frequency in MHz. |
| [in] | mp_frequency | GPU MP frequency in MHz. |
| int kscePowerSetGpuClockFrequencyProc | ( | ScePID | pid, |
| int | frequency | ||
| ) |
Set one process's GPU-clock request.
ScePower applies the maximum request among active processes to both the GPU core and MP clocks. FW 3.60 accepts frequencies from 1 through 222 MHz.
| [in] | pid | Process ID, or 0 for the current process. |
| [in] | frequency | Requested frequency in MHz. |
| int kscePowerSetGpuXbarClockFrequencyProc | ( | ScePID | pid, |
| int | frequency | ||
| ) |
Set one process's GPU-crossbar clock request.
ScePower applies the maximum request among active processes. FW 3.60 accepts frequencies from 1 through 166 MHz; the effective hardware level is at most 83, 111, or 166 MHz.
| [in] | pid | Process ID, or 0 for the current process. |
| [in] | frequency | Requested frequency in MHz. |
| int kscePowerSetIdleCallback | ( | SceUInt32 | index, |
| int | flags, | ||
| SceUInt64 | duration, | ||
| ScePowerIdleCallback | callback, | ||
| void * | user_data | ||
| ) |
Configure one of the eight global idle callbacks.
FW 3.60 stores only the low 16 bits of flags. Bit 0x200 makes the slot's activity timestamp reset only when its corresponding explicit tick bit is supplied. Bit 0x400 makes resets conditional on the current display/input policy. The purpose of other flag bits is unknown. The callback is called once after duration expires and again with an idle time of zero if later activity resets the expired slot.
| [in] | index | Slot from 0 through 7. A tick for this slot uses 1U << index with kscePowerTick. |
| [in] | flags | Idle policy flags. |
| [in] | duration | Expiration interval in microseconds, or zero to use the global fallback interval. |
| [in] | callback | Callback to install, or NULL to clear the slot. |
| [in] | user_data | Value passed to callback. |
| int kscePowerSetPowerSwMode | ( | int | mode | ) |
Set the Vsh/user power-switch policy slot.
The value is combined with the kernel slot set by kscePowerSetPowerSwMode2. The individual meanings of bits 0 through 2 are internal to FW 3.60's standby-button state machine.
| [in] | mode | Policy value from 0 through 7. |
| int kscePowerSetPowerSwMode2 | ( | int | mode | ) |
Set the kernel power-switch policy slot.
The value is combined with the Vsh/user slot set by kscePowerSetPowerSwMode. The individual meanings of bits 0 through 2 are internal to FW 3.60's standby-button state machine.
| [in] | mode | Policy value from 0 through 7. |
| int kscePowerSetProcessIdleCallback | ( | ScePowerProcessIdleCallback | callback, |
| void * | user_data | ||
| ) |
Install the process-idle callback used for every tracked process.
Passing NULL disables notifications. FW 3.60 replaces the current callback and user-data value without synchronization or duplicate-registration checks.
| [in] | callback | Callback to install, or NULL. |
| [in] | user_data | Value passed to callback. |
| int kscePowerSetPsButtonPushTime | ( | int | push_time_us | ) |
Set the PS button hold threshold.
| [in] | push_time_us | Hold threshold in microseconds. FW 3.60 defaults to 1000000 microseconds and does not range-check this value. |
| int kscePowerSetStandbyButtonPushTime | ( | int | push_time_us | ) |
Set the standby/power button hold threshold.
| [in] | push_time_us | Hold threshold in microseconds. FW 3.60 defaults to 2000000 microseconds, or 4000000 in the special Sysroot mode selected during initialization, and does not range-check this value. |
| int kscePowerSetSysClockFrequency | ( | int | frequency | ) |
Set the system clock request.
FW 3.60 accepts 1 through 222 MHz. Requests up to 190 select the 190 MHz level; requests from 191 through 222 select the 222 MHz level. The getter returns the supplied request rather than the selected level.
| [in] | frequency | Requested frequency in MHz. |
| int kscePowerSetVeneziaClockFrequency | ( | int | frequency | ) |
Set the Venezia clock request.
FW 3.60 accepts 0 through 333 MHz and selects the next level from 41, 55, 83, 111, 166, 222, and 333 MHz. Zero disables/releases the clock. The getter returns the supplied request rather than the selected level.
| [in] | frequency | Requested frequency in MHz. |
| int kscePowerSetVipClockFrequency | ( | int | frequency | ) |
Set the VIP clock request.
FW 3.60 accepts 0 through 222 MHz and selects the next level from 41, 55, 83, 111, 166, and 222 MHz. Zero disables/releases the clock. The getter returns the supplied request rather than the selected level.
| [in] | frequency | Requested frequency in MHz. |
| int kscePowerTick | ( | SceUInt32 | type | ) |
Record activity for ScePower idle tracking.
Bits 0 through 7 select the corresponding global idle-callback slots. Bit 0 additionally refreshes the current process's idle timestamp. Other bits are ignored and the value is not range-checked.
| [in] | type | Bitmask of idle-callback slots to refresh. |
| int kscePowerWlanActivate | ( | void | ) |
Set ScePower's software WLAN-active flag.
This does not directly enable WLAN hardware.
| int kscePowerWlanDeactivate | ( | void | ) |
Clear ScePower's software WLAN-active flag.
This does not directly disable WLAN hardware.
| SceSize ScePowerBatteryFakeStatus::size |
Must be sizeof(ScePowerBatteryFakeStatus).
| SceUInt32 ScePowerBatteryFakeStatus::remaining_capacity |
Initial remaining capacity in mAh. See kscePowerSetBatteryFakeStatus.
| SceUInt32 ScePowerBatteryFakeStatus::full_capacity |
Full capacity in mAh; 0 is treated as 2000.
| SceUInt32 ScePowerBatteryFakeStatus::discharge_time |
Simulated discharge duration in microseconds, or zero to keep the capacity constant.