1 #ifndef __MLPIWATCHDOGLIB_H__ 2 #define __MLPIWATCHDOGLIB_H__ 258 #if !defined(TARGET_OS_VXWORKS) 263 #if !defined(TARGET_OS_VXWORKS) 278 #if defined(TARGET_OS_WINNT) 279 #if defined(MLPI_EXPORTS) 280 #define MLPI_API __declspec(dllexport) 281 #elif defined(MLPI_IMPORTS) 282 #define MLPI_API __declspec(dllimport) 287 #if defined(MLPI_EXPORTS) 288 #define MLPI_API __attribute__ ((visibility("default"))) 289 #elif defined(MLPI_IMPORTS) 415 #endif // endof: #ifndef __MLPIWATCHDOGLIB_H__ MlpiWatchdogState
This enumeration must be used to define the action when a watchdog has expired.
Error with class F0 severity (warning, no action) will be generated.
long MLPIRESULT
common MLPI-API return value
Watchdog has not started.
Watchdog has expired and was disabled.
MLPIRESULT mlpiWatchdogSetup(const MLPIHANDLE connection, ULONG timeout, MlpiWatchdogAction action)
This function initializes or changes the watchdog functionality.
Error with class F5 severity (all axes go to error stop) will be generated.
MLPIRESULT mlpiWatchdogReset(const MLPIHANDLE connection)
This function resets the watchdog. Has to be called in an interval which is shorter than the timeout ...
MlpiWatchdogAction
This enumeration must be used to define the action when a watchdog has expired.
MLPIRESULT mlpiWatchdogGetState(const MLPIHANDLE connection, MlpiWatchdogState *state)
This function will return the current state of the watchdog. Once the watchdog fired, the function will return that state until it is reset using mlpiWatchdogReset.
unsigned long ULONG
4 byte unsigned integer
MLPIRESULT mlpiWatchdogStart(const MLPIHANDLE connection)
This function starts the watchdog supervision.
unsigned long MLPIHANDLE
common MLPI-API handle value
MLPIRESULT mlpiWatchdogStop(const MLPIHANDLE connection)
This function stops the watchdog supervision.