Get Function For The Memory Condition (Getmemstatus) - Hitachi HF-W7500 40 Manual

Industrial computer, ras features
Table of Contents

Advertisement

6. LIBRARY FUNCTIONS

6.1.7 Get function for the memory condition (GetMemStatus)

<Name>
GetMemStatus - Memory status acquisition
<Syntax>
#include <w2kras.h>
BOOL GetMemStatus(PMEM_DATA pMemData);
<Description>
The GetMemStatus function stores the condition of the memory in this equipment to a structure
pointed by pMemData. The parameters of this function are explained below.
pMemData:
This parameter specifies a pointer to a MEM_DATA structure that stores the acquired
memory condition.
typedef struct MEM_DATA {
int
Dimm_Number;
DWORD Dimm_Status[4];
} MEM_DATA, *PMEM_DATA;
When this function completes successfully, the maximum number of DIMMs is stored in
Dimm_Number. This value varies depending on the model. Each element of Dimm_Status
stores a value described in the following table. Note that the number of valid elements is
Dimm_Number. (For example, if Dimm_Number is 2, the elements up to Dimm_Status[1]
are valid.) The elements after that are reserved. The values of those reserved elements are
undefined. Do not use those values.
Table 6-7 List of Values Stored in Each Element of Dimm_Status
MEMORY_NOMAL (0x00)
MEMORY_ERR_DETECT (0x01)
MEMORY_NOT_MOUNTED (0x02)
//Number of DIMM slots in this equipment
//Condition of each DIMM
Value
Description
The memory is working properly.
Frequent error correction occurs.
DIMM is not mounted.
6-16

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents