
Software specification for Kontron EAPI
13
Structure used:
typedef struct Memory_Info
{
KEAPI_INT32 memTotal; // Total physical memory size in MB
KEAPI_INT32 memFree; // Free memory in MB
KEAPI_INT32 memSpeed; // Memory speed in MHz
KEAPI_CHAR memType[MAX_STR]; // Type of memory (DDR, DDR2, etc.
} MEMORY_INFO, *PMEMORY_INFO;
2.5.2 KEApiGetMemoryModuleCount
KEAPI_CALLTYPE KEAPI_UINT32 KEApiGetMemoryModuleCount (
KEAPI_UINT32 boardHandle,
KEAPI_PINT32 pMemoryModuleCount
);
Description:
Provides number of installed memory modules.
Parameters:
Number of installed memory modules
2.5.3 KEApiGetMemoryModuleInfo
KEAPI_CALLTYPE KEAPI_UINT32 KEApiGetMemoryModuleInfo (
KEAPI_UINT32 boardHandle,
KEAPI_INT8 moduleNr,
PMEMORY_MODULE pMemoryModule
);
Description:
Provides information about selected memory module.
Parameters:
Handle of the selected board
Requested memory's module number. Numbers start with
zero.
Returned MEMORY_MODULE structure
Structure used:
typedef struct MemoryModule
{
KEAPI_INT32 moduleSize; // Module capacity in MB
KEAPI_CHAR manufacturer[MAX_STR]; // Memory module manufacturer
KEAPI_CHAR partNumber[MAX_STR]; // Memory module part number
KEAPI_CHAR serialNumber[MAX_STR]; // Memory module serial number
} MEMORY_MODULE, *PMEMORY_MODULE;
Comentarios a estos manuales