📄 manual_watchdog_timer_functions.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html lang="en"><head><title>Watchdog Timer Functions - Universal Driver Documentation</title><meta http-equiv="Content-type" content="text/html; charset=iso-8859-1"><meta name="robots" content="index,follow"><link rel="shortcut icon" href="/favicon.ico"><link rel="stylesheet" href="/dscud/style/wikiprintable.css"><script type="text/javascript" src="/dscud/style/wikibits.js"></script><style type='text/css'><!--a.new, #quickbar a.new { color: #CC2200; }#quickbar { position: absolute; top: 4px; left: 4px; border-right: 1px solid gray; }#article { margin-left: 152px; margin-right: 4px; }//--></style></head><body bgcolor='#FFFFFF'><div class='titlebox'><h1 class='pagetitle'>Watchdog Timer Functions</h1><span class='subtitle'>Universal Driver Documentation</span></div><div class='navbox'><a href="manual_Main_Page.html" class='printable' title ="Main Page">Main Page</a> || <a href="manual_Table_of_Contents.html" class='printable' title ="Table of Contents">Table_of_Contents</a> || <a href="http://www.diamondsystems.com/">Diamond Systems Website</a></div></div><div class='bodytext'>An overview of the watchdog timer functions is provided here. Full details of the functions are given in the <a href="manual_DSCUD_Function_Reference.html" class='printable' title ="DSCUD Function Reference">DSCUD Function Reference</a>.
<p>
<strong><tt><a href="manual_DscWatchdogEnable.html" class='printable' title ="DscWatchdogEnable">dscWatchdogEnable</a>(DSCB board, WORD wd1, BYTE wd2, SDWORD options)</tt><br></strong>
This function loads the watchdog counters to the specified values and configures the general behavior of watchdog counter 1, and arms the watchdog timer circuit.
<p>
<strong><tt><a href="manual_DscWatchdogDisable.html" class='printable' title ="DscWatchdogDisable">dscWatchdogDisable</a>(DSCB board)</tt><br></strong>
This function disables the watchdog timer circuit on the specified board.
A previously enabled but subsequently disabled watchdog timer may be re-enabled using the existing configuration by a subsequent call to dscWatchdogTrigger().
<p>
<strong><tt><a href="manual_DscWatchdogTrigger.html" class='printable' title ="DscWatchdogTrigger">dscWatchdogTrigger</a>(DSCB board)</tt><br></strong>
This function retriggers the watchdog timer circuit, causing both counters WD1 and WD2 to be reloaded with their initial values. After a call to dscWatchdogTrigger(), the application has the amount of time specified in WD2 before it must call the function again.
<p>
If the watchdog timer has been disabled with a call to dscWatchdogDisable(), than this function will reenable the watchdog timer. It uses the existing watchdog configuration from the last <tt><a href="manual_DscWatchdogEnable.html" class='printable' title ="DscWatchdogEnable">dscWatchdogEnable</a>()</tt> call, so any calls to <tt><a href="manual_DscWatchdogTrigger.html" class='printable' title ="DscWatchdogTrigger">dscWatchdogTrigger</a>()</tt> before <tt><a href="manual_DscWatchdogEnable.html" class='printable' title ="DscWatchdogEnable">dscWatchdogEnable</a>()</tt> will have undefined results.
<p>
In a typical application, <tt><a href="manual_DscWatchdogTrigger.html" class='printable' title ="DscWatchdogTrigger">dscWatchdogTrigger</a>()</tt> is used in a continuous loop to keep retriggering the watchdog timer circuit as evidence that the system is running properly. If the loop ever crashes, or otherwise fails to call <tt><a href="manual_DscWatchdogTrigger.html" class='printable' title ="DscWatchdogTrigger">dscWatchdogTrigger</a>()</tt> in time, the system will reset. The system is configured to automatically restart the application software when it reboots. This way the amount of down time due to a software failure is minimized.
<p></div><p><em> <br> This page was last modified 14:55, 12 Feb 2004.<br>Copyright (c) 2004 Diamond Systems. All Rights Reserved.</em><!-- Time since request: 0.15 secs. --></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -