beautypg.com

ADLINK iSeries Monitor 18/21 User Manual

Page 59

background image

Watchdog Timer (WDT) & DI/O Function Libraries

47

TPZ-1300

BOOL StartWDT()

@ Parameters

None

@ Return codes

TRUE

if watchdog timer is successfully started.

FALSE

if watchdog timer is failed to start.

ResetWDT

Resets the watchdog timer. The invocation of ResetWDT
allows restoration of the watchdog timer to the initial timeout
value specified in SetWDT function. ResetWDT or StopWDT
should be called before the expiration of the watchdog timer, or
the system will reset.

@ Syntax

C/C++

BOOL ResetWDT()

@ Parameters

None

@ Return codes

TRUE

if watchdog timer is successfully reset.

FALSE

if watchdog timer fails to reset.

StopWDT

Stops the watchdog timer.

@ Syntax

C/C++

BOOL StopWDT()

@ Parameters

None

@ Return codes

TRUE

if watchdog timer is successfully stopped.