Advantech Watchdog Timer UNO-2170 User Manual page 27

Table of Contents

Advertisement

LONG WDT_SetMode( LONG i_hHandle, WatchMode
i_watchMode );
Description: Set the watch mode of the watchdog
Input Parameters:
(1) i_hHandle: Handle of the watchdog driver
(2) i_watchMode: The mode of the watchdog
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: The watchdog is
running now and can not change mode
LONG WDT_GetMode ( LONG i_hHandle, WatchMode *
o_pWatchMode );
Description: Get the current running mode of the watchdog
Input Parameters:
(1) i_hHandle:Handle of the watchdog driver
(2) o_pWatchMode: The current watch mode of the watchdog
Return Values:
(1) ADS_WATCHDOG_ERROR_SUCCESS: operation succeed
(2) ADS_WATCHDOG_ERROR_INV ALID_HANDLE: Invalid device
handle
LONG WDT_SetTimerSpan ( LONG i_hHandle, DWORD
i_dwIndex );
Description: Set the timer span of the watchdog driver
Input Parameters:
(1) i_hHandle: Handle ofthe watchdog driver
(2) i_dwIndex: The timer span index
21
Chapter 3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Watchdog timer uno-2171Watchdog timer uno-205xe

Table of Contents