Get temperature information (CPU/System).
int MT_GetTemp(int fd, PTEMPVAL ptemp)
int fd
Please specify handle acquired by MT_Open function.
PTEMPVAL ptemp
Specify a pointer to a structure that stores temperature values.
The TEMPVAL structure is as follows.
typedef struct _TEMPVAL {
unsigned char ucCPU;
unsigned char ucMB;
} TEMPVAL, *PTEMPVAL;
For each member, the temperature data in the table below is stored.
| Member variable | Information to be stored |
|---|---|
| ucCPU | CPU temperature(℃) |
| ucMB | M/B temperature(℃) |
If the function succeeds, NO_ERROR is returned.
The temperature value matching the model is stored in ptemp.
If the function fails, a code other than NO_ERROR is returned.
* A standard MSR module is used to obtain the CPU temperature.
Please note that access permissions and module load status may affect the result.
The other errors : Error code details
Function List