MT_GetFanSpeed

■Description

Get FAN RPM information (CPU/System).

■Synopsis

int MT_GetFanSpeed(int fd, PFANSPEED pFanSpeed);

■Argument

  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
* For MR4100, system fan2 is stored in usFanExt[0].

■RETURN VALUE

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