Rabbit OP7100 User Manual Page 165

  • Download
  • Add to my manuals
  • Print
  • Page
    / 172
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 164
User’s Manual 159
Hits software watchdog. Set the timeout period and enable the software watchdog prior to using this
function.
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.
count is a pointer to return the present count of the software watchdog timer. The equivalent time left in
seconds can be determined from count × 0.025 seconds.
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_enable_wdt, rn_sw_wdt
Reads the status of which reset occurred and whether any watchdogs are enabled.
PARAMETERS
handle is an address index to device information. Use rn_device() or rn_find() to establish the
handle.
retdata is a pointer to the return address of the communication byte. A set bit indicates which error
occurred. This register is cleared when read.
7—HW reset has occurred
6—SW reset has occurred
5—HW watchdog enabled
4—SW watchdog enabled
3,2,1,0—Reserved
RETURN VALUE
The status byte from the previous command.
int rn_hitwd(int handle, char *count);
int rn_rst_status(int handle, char *retdata);
Page view 164

Comments to this Manuals

No comments