Rabbit OP7100 User Manual Page 164

  • Download
  • Add to my manuals
  • Print
  • Page
    / 172
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 163
158 eDisplay (OP7200)
Sets software watchdog timeout period. Call this function prior to enabling the software watchdog timer.
This function will check device information to determine that the peripheral board is connected to a master.
PARAMETERS
handle is an address index to device information. Use rn_device() or rn_find() to establish the
handle.
timeout is a timeout period from 0.025 to 6.375 seconds in increments of 0.025 seconds. Entering a
zero value will disable the software watchdog timer.
RETURN VALUE
The status byte from the previous command. -1 means that device information indicates the peripheral
board is not connected to the master.
Enables the hardware and/or software watchdog timers on a peripheral board. The software on the
peripheral board will keep the hardware watchdog timer updated, but will hard reset if the time expires.
The hardware watchdog cannot be disabled except by a hard reset on the peripheral board. The software
watchdog timer must be updated by software on the master. The peripheral board will soft reset if the
timeout set by rn_sw_wdt() expires.
This function will check device information to determine that the
peripheral board is connected to a master.
PARAMETERS
handle is an address index to device information. Use rn_device() or rn_find() to establish the
handle.
wdttype
0 enables both hardware and software watchdog timers
1 enables hardware watchdog timer
2 enables software watchdog timer
RETURN VALUE
The status byte from the previous command. -1 means that device information indicates the peripheral
board is not connected to the master.
SEE ALSO
rn_hitwd, rn_sw_wdt
int rn_sw_wdt(int handle, float timeout);
int rn_enable_wdt(int handle, int wdttype);
Page view 163

Comments to this Manuals

No comments