Keapisetcpuperformance, Memory, Keapigetmemoryinfo – Kontron KEAPI User Manual
Page 12: 4 keapisetcpuperformance

Software specification for Kontron EAPI
12
Parameters:
in/out
Parameter name
Description
in
boardHandle
Handle of the selected board
out
pPerformanceType
Pointer to the type of current CPU performance. The
type is given by a number (0
– 3 where:
0 - high performance
1 - power save mode
2 - on demand mode
3 - conservative mode
) .
Supported only on Linux
out
pPerformancePercentage
Pointer to current CPU performance in percentage.
Supported only on Windows
2.4.4 KEApiSetCpuPerformance
KEAPI_CALLTYPE
KEAPI_UINT32
KEApiSetCpuPerformance (
KEAPI_UINT32
boardHandle,
KEAPI_INT8
performanceType,
KEAPI_INT8
performancePercentage
);
Description:
Linux: Allows you to set the type of the CPU performance
high performance: CPU_PERFORMANCE_HIGH, 0
power save mode: CPU_PERFORMANCE_POWER_SAVE, 1
on demand mode: CPU_PERFORMANCE_ON_DEMAND, 2
conservative mode: CPU_PERFORMANCE_CONSERVATIVE, 3.
Windows: Allows you to set CPU performance in percentage
Parameters:
in/out
Parameter name
Description
in
boardHandle
Handle of the selected board
in
performanceType
CPU performance type
Supported only on Linux
in
performancePercentage
CPU performance in percentage
Supported only on Windows
2.5 Memory
2.5.1 KEApiGetMemoryInfo
KEAPI_CALLTYPE
KEAPI_UINT32
KEApiGetMemoryInfo (
KEAPI_UINT32
boardHandle,
PMEMORY_INFO
pMemoryInfo
);
Description:
Provides information about physical memory.
Parameters:
in/out
Parameter name
Description
in
boardHandle
Handle of selected board
out
pMemoryInfo
Returned
MEMORY_INFO
structure