Advantech Watchdog Timer UNO-2170 User Manual page 32

Table of Contents

Advertisement

Return Values:
(1) ADS_WATCHDOG_ERROR_SUCCESS: operation succeed
(2) ADS_WATCHDOG_ERROR_INV ALID_HANDLE: Invalid device
handle
(3) ADS_WATCHDOG_ERROR_INV ALID_PARAMETER: Invalid
timer span index
LONG WDT_GetErrMsg ( LONG i_hHandle, LONG i_lErrCode,
LPTSTR o_pErrMsg );
Description: Get the error description of the specified error code
Input Parameters:
(1) i_hHandle: Handle of the watchdog driver
(2) i_lErrCode: The error code returned by a function call
(3) o_pErrMsg: The pointer to a buffer to store the error message associ-
ated with a specified error code. The memory pointed by this pointer
should be allocated and initialized before transferred into this function, as
well should be de-allocated outside this function. The buffer size should
be large enough to load 64 characters.
Return Values:
(1) ADS_WATCHDOG_ERROR_SUCCESS: operation succeeds
(2) ADS_WATCHDOG_ERROR_INV ALID_HANDLE: Invalid device
handle
(3) ADS_WATCHDOG_ERROR_INV ALID_PARAM: The error code
is invalid
UNO Watchdog Timer User Manual
26

Advertisement

Table of Contents
loading

This manual is also suitable for:

Watchdog timer uno-2171Watchdog timer uno-205xe

Table of Contents