Watchdog Timer Control Function (Wdtcontrol); Table 6-2 List Of Actions Of Wdtcontrol Specified By Dwcmd - Hitachi HF-W6500 45/40 Feature Manual

Hide thumbs Also See for HF-W6500 45/40:
Table of Contents

Advertisement

6.1.3 Watchdog timer control function (WdtControl)

(1) Function interface
<Name>
WdtControl - Watchdog timer control / status acquisition
<Syntax>
#include <w2kras.h>
BOOL WdtControl(DWORD dwCmd, PDWORD pdwCount);
<Description>
This function performs the action specified by dwCmd on the watchdog timer.
In order to use this function, in the RAS Setup window, select
program
under Watchdog timer setting. If the watchdog timer setting is different, this
function terminates with an error. If you call the GetLastError Windows API function, an
error code W2KRAS_WDT_NONMANUAL is returned.
Each parameter of this function is explained below.
dwCmd:
This parameter specifies which action is performed on the watchdog timer. The following
options are available for this parameter.

Table 6-2 List of Actions of WdtControl Specified by dwCmd

dwCmd
WDT_SET (0x00)
WDT_STOP (0x01)
WDT_STAT (0x02)
If a value other than the above is specified, this function terminates with an error. If you
call the GetLastError Windows API function, an error code
W2KRAS_INVALID_PARAMETER is returned.
pdwCount:
If dwCmd is WDT_SET, you can configure the timeout of the watchdog timer by
specifying the timeout of the watchdog timer in the variable pointed by pdwCount and
calling this function.
Specify a value between 1 and 63 in seconds. If a value other than the above is specified,
this function terminates with an error. If you call the GetLastError Windows API function,
an error code W2KRAS_INVALID_PARAMETER is returned.
When this function returns, the value of the variable pointed by pdwCount is undefined. Do
not use the value.
If dwCmd is WDT_STOP, the value of pdwCount is ignored. When this function returns,
the value of the variable pointed by pdwCount is undefined. Do not use the value.
Explanation of the action
Specifies the timeout (in seconds).
Stops the watchdog timer.
Acquires the status of the watchdog timer.
6-5
6. LIBRARY FUNCTIONS
Retriggered by application

Advertisement

Table of Contents
loading

Table of Contents