9.
Functions for Watch dog
hid_SetWD
This function sets time interval for Watch Dog.
Declaration
BOOL
hid_SetWD( HANDLE hDevice,
BYTE byMode
);
Parameters
hDevice A valid device handle, previously obtained from hid_OpenDeviceDevice
byMode Time interval for Watch Dog (Value 1~5 as 1/5/10/30/60 seconds, default as 10s)
Return value
TRUE if successful, FALSE otherwise.
If an error occurred, GetLastError() may return the following values:
ERROR_INVALID_PARAMETER - The handle passed was invalid, or the port number was out of
range for the device selected.
---------------------------------------------------------------------------------------------------------------------------------
hid_EnableWD
This function enables/disables Watch Dog.
Declaration
BOOL
hid_EnableWD( HANDLE hDevice,
BOOL bEnabled );
Parameters
hDevice
A valid device handle, previously obtained from hid_OpenDeviceDevice
bEnabled
Enable/disable watch dog.
Return value
TRUE if successful, FALSE otherwise.
If an error occurred, GetLastError() may return the following values:
ERROR_INVALID_PARAMETER - The handle passed was invalid, or the port number was out of
range for the device selected.