beautypg.com

ADLINK MXC-6300 Series User Manual

Page 105

background image

Watchdog Timer (WDT) Function Library

93

MXC-6300

Return codes

TRUE

if watchdog timer is successfully started.

FALSE

if watchdog timer is failed to start.

ResetWDT

Reset 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.

FALSE

if watchdog timer fails to stop.