Initialize and set the watchdog timer.
int MT_SetWDT(int fd,PWDTVAL pwdt)
int fd
Please specify handle acquired by MT_Open function.
PWDTVAL pwdt
Specify a pointer to a structure that stores WDT setting information.
typedef struct _WDTVAL {
unsigned char ucTimeOut;
long lTickCount
} WDTVAL, *PWDTVAL;
| Member variable | Setting information |
|---|---|
| ucTimeOut (Timeout value) |
Sets the time-up time of the watchdog timer. The setting range is from 1 to 255 (seconds). |
| lTickCount (Tick count value) |
Set the tick count value. |
If the function succeeds, NO_ERROR is returned.
If the function fails, a code other than NO_ERROR is returned.
The other errors : Error code details
Function List