beautypg.com

Be_writebezeleeprom, Function for watchdog timer control, Watchdog_tag – Rockwell Automation 6182 SDK User Manual

Page 51: Syntax, Remarks

background image

RAC6182-Specific Extensions to the CE API

4–11

Publication 6182-UM002B-EN-P

be_WriteBezelEEPROM

This function (prototyped in bezeleeprom.h) is intended for use by
operating system developers only. Rockwell Automation recommends
against and does not support use of this function in application programs
or user implemented device drivers.

ATTENTION: Improper use of this function could result
in disruption of critical system level data.

The RAC6182 incorporates a watchdog device to allow automatic reset
in case of an application error that involves the application’s loss of
control over the hardware. Immediately following system initialization,

the watchdog device is disabled. It is enabled when an application issues
an initial Watchdog_Tag call. Once enabled, the watchdog device must
be tagged periodically by the issuance of additional tags calls to reset the
timer in the device; otherwise, the timer will time out. If a timeout
occurs, it is assumed that the application or some underlying software
has lost control, and the system is reset.

An application can set the time allowed between watchdog tags and can
enable or disable the device by calling the function described in this
section.

Watchdog_Tag

This function tags the watchdog timer. It is prototyped in watchdog.h.

Syntax

#include
#include

DWORD Watchdog_Tag(DWORD dwTimeout)

Remarks
If the value of dwTimeout is 0, the watchdog timeout value is not
changed, but if the timer is running, it is reset (tagged).

If the value of dwTimeout is 0xffffffff, the watchdog timer is disabled. If
the watchdog is disabled, calling Watchdog_Tag with dwTimeout set to 0
will always return WATCHDOG_TIMEOUT_FAILED as no current
watchdog timeout value is defined.

If the value of dwTimeout is other than 0 and 0xffffffff, it is taken to
represent the time, in milliseconds, than must elapse before the watchdog
will trigger a system reset. If possible, the timer is reset to this value and

Function for Watchdog

Timer Control

This manual is related to the following products: