6. LIBRARY FUNCTIONS
6-5
If dwCmd is WDT_STAT, the remaining time (in seconds) at the timing of the function
call until the watchdog timer expires is stored to the variable pointed by pdwCount. If the
value of the variable pointed by pdwCount is 0 when the function returns, that means the
watchdog timer has already timed out.
Note that the value of the variable pointed by pdwCount when the function is called is
ignored.
<Diagnosis>
If this function completes successfully, the function returns TRUE. If this function terminates
with an error, the function returns FALSE.
When this function terminates with an error, call the GetLastError Windows API function to
get the error code. Error codes returned by this function on its own are as follows.
Error code (value)
Description
W2KRAS_INVALID_PARAMETER
(0x2001)
There is an error in the specified parameters.
W2KRAS_WDT_NONMANUAL
(0x2002)
This function cannot be used because
Retriggered by
application program
is not selected under
Watchdog
timer setting
in the
RAS Setup
window.
W2KRAS_NOT_INITIALIZE
(0x2005)
Startup of the RAS software has not completed yet.
W2KRAS_INTERNAL_ERROR
(0x2007)
An internal error has been generated.
Other error codes come from the Windows API functions used by this function. For details
about those error codes, refer to the Windows API help.
<Sample program>
We provide a sample program that uses this function in C. For information about the name of
the sample program and where you can find it, see “6.2 Sample Programs”.
For information about how to monitor the operational state of a user program using the
watchdog timer, see “2.7.2 Using a watchdog timer for monitoring a user program”.
Содержание HF-W7500 40
Страница 1: ...WIN 63 0090 03 ...
Страница 2: ...WIN 63 0090 03 ...
Страница 23: ...This page is intentionally left blank ...
Страница 105: ...This page is intentionally left blank ...
Страница 145: ...This page is intentionally left blank ...
Страница 161: ...This page is intentionally left blank ...