A.1 wdt with api/windows, Initwdt, Wdt with api/windows – ADLINK MXE-200i User Manual
Page 47
Watchdog Timer (WDT) & DI/O Function Libraries
33
MXE-200
Appendix A Watchdog Timer (WDT) &
DI/O Function Libraries
This appendix describes use of the watchdog timer (WDT) func-
tion library for the MXE-200.
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.
DI/O provides input/output to support inter-device communica-
tions. Simple programming guides allow easy transmission of digi-
tal signals between the system and attached peripherals.
A.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 MXE-200 series, include the
header file matrix_wdt.h and linkage library matrix_wdt.lib in the
C++ project.
InitWDT
Initializes watchdog timer function of MXE-200. InitWDT must
be called before the invocation of any other WDT function.
@ Syntax
C/C++
BOOL InitWDT()
@ Parameters
None
@ Return code
TRUE
if watchdog timer is successfully initialized.
FALSE
if watchdog timer fails to initialize.