Advantech Watchdog Timer UNO-2170 User Manual page 30

Table of Contents

Advertisement

LONG WDT_IsEnabled (LONG i_hHandle, BOOL * o_bEnabled );
Description: Get the watchdog's running status: Enabled or Disabled Input
Parameters:
(1) i_hHandle: Handle of the watchdog driver
(2) o_bEnabled: The watchdog current running status, TRUE for enabled
and FALSE for disabled
Return Values:
(1) ADS_WATCHDOG_ERROR_SUCCESS: operation succeed
(2) ADS_WATCHDOG_ERROR_INV ALID_HANDLE: Invalid device
handle
LONG WDT_LogEvent (LONG i_hHandle, BOOL i_bLog);
Description: Set the watchdog operations: Enable, Disable and Reboot to
be logged into the system event base or not
Input Parameters:
(1) i_hHandle: Handle of the watchdog driver
(2) i_bLog: TRUE for log the three operations into system base, FALSE for
not logging.
Return Values:
(1) ADS_WATCHDOG_ERROR_SUCCESS: operation succeed
(2) ADS_WATCHDOG_ERROR_INV ALID_HANDLE: Invalid device
handle
(3) ADS_WATCHDOG_ERROR_WDT_RUNNING: Watchdog is run-
ning now
LONG WDT_IsLogged (LONG i_hHandle, BOOL * o_bLogged );
Description: Get the watchdog event log information: The "Enable", "Dis-
able", "Reboot"operation logged into system event base or not
Input Parameters:
(1) i_hHandle: Handle of the watchdog driver
(2) o_bLogged: TRUE for log the "Enabled", "Disable", "Reboot" opera-
tions into system base, FALSE for not logging.
UNO Watchdog Timer User Manual
24

Advertisement

Table of Contents
loading

This manual is also suitable for:

Watchdog timer uno-2171Watchdog timer uno-205xe

Table of Contents