Inherits IDispatch.
Public Types |
Public Member Functions | |
HRESULT | Setup ([in]LONG timeout, [in]WatchdogAction action) |
HRESULT | Start (void) |
HRESULT | Stop (void) |
HRESULT | Reset (void) |
HRESULT | GetState ([out, retval]WatchdogState *state) |
Definition of the IWatchdog interface.
The IWatchdog interface provides a watchdog mechanism which allows the MLPI Device to react on connection or general exception errors in the user program.
Definition at line 126 of file IWatchdog.idl.
This enumeration must be used to define the action when a watchdog has expired.
Definition at line 130 of file IWatchdog.idl.
This enumeration describes the state of a watchdog.
Enumerator | |
---|---|
WATCHDOG_DISABLED |
Watchdog has not started. |
WATCHDOG_ENABLED |
Watchdog has started. |
WATCHDOG_TIMEOUT |
Watchdog has expired and has been disabled. |
Definition at line 140 of file IWatchdog.idl.
HRESULT IWatchdog::Setup | ( | [in] LONG | timeout, |
[in] WatchdogAction | action | ||
) |
This function initializes or changes the watchdog functionality.
[in] | timeout | This is the timeout of the watchdog in ms. The timeout is checked every millisecond. |
[in] | action | This is the action that will be taken in case the watchdog expires. |
mlpiWatchdogSetup
, where you can find further documentation. HRESULT IWatchdog::Start | ( | void | ) |
This function starts the watchdog supervision.
mlpiWatchdogStart
, where you can find further documentation. HRESULT IWatchdog::Stop | ( | void | ) |
This function stops the watchdog supervision.
mlpiWatchdogStop
, where you can find further documentation. HRESULT IWatchdog::Reset | ( | void | ) |
This function resets the watchdog. It has to be called in an interval which is shorter than the timeout that has been specified in Setup
method.
mlpiWatchdogReset
, where you can find further documentation. HRESULT IWatchdog::GetState | ( | [out, retval] WatchdogState * | state | ) |
This function will return the current state of the watchdog. The state will read that the watchdog is fired until the watchdog is started again.
[out] | state | Returns the current state of the watchdog. |
mlpiWatchdogGetState
, where you can find further documentation.