A.1 wdt with api/windows, Initwdt, Wdt with api/windows – ADLINK iSeries Monitor 18/21 User Manual

Page 57

Advertising
background image

Watchdog Timer (WDT) & DI/O Function Libraries

45

TPZ-1300

Appendix A: Watchdog Timer (WDT) &

DI/O Function Libraries

This appendix describes use of the watchdog timer (WDT) func-
tion library for the TPZ-1300.

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

Topaz 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 TPZ-1300 series, include the
header file WDT.h and linkage library WDT.lib in the C++ project.

InitWDT

Initializes watchdog timer function of TPZ-1300. 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.

Advertising