libnx
v4.8.0
|
Performance management (apm) service IPC wrapper. More...
Go to the source code of this file.
Enumerations | |
enum | ApmPerformanceMode { ApmPerformanceMode_Invalid = -1 , ApmPerformanceMode_Normal = 0 , ApmPerformanceMode_Boost = 1 } |
PerformanceMode. More... | |
enum | ApmCpuBoostMode { ApmCpuBoostMode_Normal = 0 , ApmCpuBoostMode_FastLoad = 1 , ApmCpuBoostMode_Type2 = 2 } |
CpuBoostMode. With appletSetCpuBoostMode, only values 0/1 are available. This allows using higher clock rates. More... | |
Functions | |
Result | apmInitialize (void) |
Initialize apm. Used automatically by appletInitialize with AppletType_Application. | |
void | apmExit (void) |
Exit apm. Used automatically by appletExit with AppletType_Application. | |
Service * | apmGetServiceSession (void) |
Gets the Service object for the actual apm service session. | |
Service * | apmGetServiceSession_Session (void) |
Gets the Service object for ISession. | |
Result | apmGetPerformanceMode (ApmPerformanceMode *out_performanceMode) |
Gets the current ApmPerformanceMode. More... | |
Result | apmSetPerformanceConfiguration (ApmPerformanceMode PerformanceMode, u32 PerformanceConfiguration) |
Sets the PerformanceConfiguration for the specified PerformanceMode. More... | |
Result | apmGetPerformanceConfiguration (ApmPerformanceMode PerformanceMode, u32 *PerformanceConfiguration) |
Gets the PerformanceConfiguration for the specified PerformanceMode. More... | |
Performance management (apm) service IPC wrapper.
This is used internally by applet with __nx_applet_PerformanceConfiguration, however if you prefer non-init/exit can be used manually. See also: https://switchbrew.org/wiki/PTM_services#apm:am
enum ApmCpuBoostMode |
CpuBoostMode. With appletSetCpuBoostMode, only values 0/1 are available. This allows using higher clock rates.
enum ApmPerformanceMode |
Result apmGetPerformanceConfiguration | ( | ApmPerformanceMode | PerformanceMode, |
u32 * | PerformanceConfiguration | ||
) |
Gets the PerformanceConfiguration for the specified PerformanceMode.
[in] | PerformanceMode | ApmPerformanceMode |
[out] | PerformanceConfiguration | PerformanceConfiguration |
Result apmGetPerformanceMode | ( | ApmPerformanceMode * | out_performanceMode | ) |
Gets the current ApmPerformanceMode.
[out] | out_performanceMode | ApmPerformanceMode |
Result apmSetPerformanceConfiguration | ( | ApmPerformanceMode | PerformanceMode, |
u32 | PerformanceConfiguration | ||
) |
Sets the PerformanceConfiguration for the specified PerformanceMode.
[in] | PerformanceMode | ApmPerformanceMode |
[in] | PerformanceConfiguration | PerformanceConfiguration |