Appendix d: watchdog timer (wdt) function library, D.1 wdt with api/windows, Initwdt – ADLINK MXC-6000 Series User Manual
Page 89: D appendix: watchdog timer (wdt) function library, Wdt with api/windows

Watchdog Timer (WDT) Function Library
77
MXC-6000
Appendix D: Watchdog Timer (WDT)
Function Library
This appendix describes use of the watchdog timer (WDT) func-
tion library for the MXC-6000 controller. The watchdog timer is a
hardware mechanism provided to reset the system if the operating
system or an application stalls. After starting, the watchdog timer
in the application must be periodically reset before the timer
expires. Once the watchdog timer expires, a hardware-generated
signal is sent to reset the system.
D.1 WDT with API/Windows
Matrix WDT API library files and a demo program (incl. source
code) can be found on the included driver CD or downloaded from
http://www.adlinktech.com.
To use the WDT function library for MXC-6000 series, include the
header file WDT.h and linkage library WDT.lib in the C++ project.
InitWDT
@ Description
Initialize the watchdog timer function of MXC-6000 controller.
InitWDT must be called before the invocation of any other WDT
function.
@ Supported controllers
MXC-6000
@ Syntax
C/C++
BOOL InitWDT()
@ Parameters
None
@ Return code
TRUE
if watchdog timer is successfully initialized.
FALSE
if watchdog timer fails to initialize.