21
Chapter 3
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_INVALID_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_INVALID_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
Summary of Contents for Watchdog Timer UNO-2171
Page 1: ...Watchdog Timer UNO 2170 UNO 2171 UNO 205XE User Manual ...
Page 4: ...UNO Watchdog Timer User Manual iv ...
Page 6: ...UNO Watchdog Timer User Manual vi ...
Page 12: ...UNO Watchdog Timer User Manual 6 ...
Page 19: ...13 Chapter2 Step2 Press Apply Step3 Press Enable ...
Page 21: ...15 Chapter2 Step6 Click the item AdsWatchdog you can view the event message ...
Page 23: ...2 CHAPTER 3 Function API s ...
Page 33: ...2 CHAPTER 4 Example Call Flows ...