MT_GetTemp

■Description

Get temperature information (CPU/System).

■Synopsis

int MT_GetTemp(int fd, PTEMPVAL ptemp)

■Argument

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(℃)

■RETURN VALUE

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.

* The CPS-BXC200 Series, BX-U200 Series, BX-T1000 Series, BX-T210 Series, BX-M1500 Series, BX-M2500 Series, BX-T3000 Series, PT-M1xSA-210 Series, BX-T310-J Series, BX-M310-J Series and PT-MxxWA-310/PT-FxxSA-320 Series use the standard MSR module to acquire the CPU temperature.
Please note that access permissions and module load status may affect the result.

The other errors : Error code details



Function List