Advantech RSB-4210 Evaluation Kit User Manual Page 97

  • Download
  • Add to my manuals
  • Print
  • Page
    / 104
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 96
89 RSB-4210 User Manual
Chapter 3 Software Functionality
WDIOF_POWERUNDER Power bad/power fault
The machine is showing an undervoltage status
WDIOF_CARDRESET Card previously reset the CPU
The last reboot was caused by the watchdog card
WDIOF_POWEROVER Power over voltage
The machine is showing an overvoltage status. Note that if one level is under and
one over both bits will be set - this may seem odd but makes sense.
WDIOF_KEEPALIVEPING Keep alive ping reply
The watchdog saw a keepalive ping since it was last queried.
WDIOF_SETTIMEOUT Can set/get the timeout
The watchdog can do pretimeouts.
WDIOF_PRETIMEOUT Pretimeout (in seconds), get/set
For those drivers that return any bits set in the option field, the GETSTATUS and
GETBOOTSTATUS ioctls can be used to ask for the current status, and the status at
the last reboot, respectively.
int flags;
ioctl(fd, WDIOC_GETSTATUS, &flags);
or
ioctl(fd, WDIOC_GETBOOTSTATUS, &flags);
Note that not all devices support these two calls, and some only support the GET-
BOOTSTATUS call.
Some drivers can measure the temperature using the GETTEMP ioctl. The returned
value is the temperature in degrees fahrenheit.
int temperature;
ioctl(fd, WDIOC_GETTEMP, &temperature);
Finally the SETOPTIONS ioctl can be used to control some aspects of the cards
operation.
int options = 0;
Page view 96
1 2 ... 92 93 94 95 96 97 98 99 100 101 102 103 104

Comments to this Manuals

No comments