Chapter
6
Software utirity
Example programming
#include <stdio.h>
#include <string.h>
#include “TinyRAS.h”
int main ( void ){
HMVAL val;
(void)memset(&val, 0, sizeof(val));
(void)tRasHwMon(&val);
printf("CPUtemperature %.1f℃\n", val.t_cpu) ;
printf("CPUvoltage %.1f[V]\n", val.v_cpu) ;
printf("CPUFan %d[rpm]\n", val.f_cpu) ;
return 0 ;
}
Set the threshold value optionally. (例: Sound an alarm for excessive temperatures,
etc…)
User’s Manual
91