Get FAN RPM information (CPU/System).
int MT_GetFanSpeed(int fd, PFANSPEED pFanSpeed);
int fd
Please specify handle acquired by MT_Open function.
PFANSPEED pFanSpeed
Specify a pointer to a structure that stores FAN RPM values.
The FANSPEED structure is as follows.
typedef struct _FANSPEED {
unsigned short usFan1; // SysFanRPM
unsigned short usFan2; // CPUFanRPM
unsigned short usFanExt[6]; // Reserved
} FANSPEED, *PFANSPEED;
For each member, the FAN RPM data in the table below is stored.
| Member variable | Information to be stored |
|---|---|
| usFan1 | SYSTEM FAN RPM |
| usFan2 | CPU FAN RPM |
| usFanExt | reserved |
If the function succeeds, NO_ERROR is returned.
The FAN RPM value matching the model is stored in pFanSpeed.
If the function fails, a code other than NO_ERROR is returned.
The other errors : Error code details
Function List