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, BX-U200, BX-T1000, BX-T210, BX-M1500, BX-M2500, BX-T3000 and PT-M1xSA-210 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