Wdt Function Reference; Initwdt; Setwdt - Neousys POC-500 Series User Manual

Table of Contents

Advertisement

WDT Function Reference

InitWDT

Syntax
Description:
Parameter
Return Value
Usage

SetWDT

Syntax
Description
Parameter
Return Value
Usage
POC-500 Series
BOOL InitWDT(void);
Initialize the WDT function. You should always invoke
InitWDT() before set or start watchdog timer.
None
TRUE: Successfully initialized
FALSE: Failed to initialize
BOOL bRet = InitWDT()
BOOL SetWDT(WORD tick, BYTE unit);
Set timeout value and unit for watchdog timer. When InitWDT()
is invoked, a default timeout value of 255 seconds is assigned.
tick
WORD value (1 ~ 65535) to indicate timeout ticks.
unit
BYTE value (0 or 1) to indicate unit of timeout ticks.
0 : unit is minute
1: unit is second
If value of unit is correct (0 or 1), this function returns TRUE,
otherwise FALSE.
WORD tick=255;
BYTE unit=1; //unit is second.
BOOL bRet = SetWDT(tick, unit); //timeout value is 255
seconds
99

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Poc-515Poc-516Poc-545Poc-546

Table of Contents