SetWDT
@ Description
Set the timeout value of watchdog timer. There are two param-
eters for this function to indicate the timeout ticks and unit.
Users should call ResetWDT or StopWDT before the expiration
of watchdog timer, or the system will be reset.
@ Supported controllers
MXC-4000 series
@ Syntax
C/C++
BOOL SetWDT(BYTE tick, BYTE unit)
@ Parameters
tick
Specify the number of tick for watchdog timer. A valid value
is 1 - 255.
unit
Specify the timeout ticks of the watchdog timer.
Value
The unit of tick is second. For example, when you specify tick
0
as 100 and unit as 0, the timeout value is 100 seconds.
The unit of tick is minute. For example, when you specify tick
1
as 100 and unit as 1, the timeout value is 100 minutes.
@ Return codes
TRUE if timeout value of watchdog timer is successfully set.
FALSE if timeout value of watchdog timer is failed to set.
Appendix
Matrix MXC-4000 Series
Description
User's Manual
67
Need help?
Do you have a question about the Matrix MXC-4000 Series and is the answer not in the manual?