97
PC Watchdog Timer API
Section A-7
A-7
PC Watchdog Timer API
A-7-1
CPNT_EnablePCWDTTimer (Enable PC WDT)
Purpose
Enable or disable the PC Watchdog Timer.
Call Format
BOOL CPNT_EnablePCWDTTimer (
HANDLE Handle,
WORD Timer
) ;
Argument
Returned value
It returns TRUE when the function succeeds.
It returns FALSE when an error occurs. The error details can be obtained with
the function GetLastError.
Remarks
See Section 4-7 for the PC WDT function.
A-7-2
CPNT_RefreshPCWDTTimer (Refresh PC WDT)
Purpose
Refresh the PC Watchdog Timer value.
Call Format
BOOL CPNT_RefreshPCWDTTimer (HANDLE Handle) ;
Argument
Returned value
It returns TRUE when the function succeeds.
It returns FALSE when an error occurs. The error details can be obtained with
the function GetLastError.
Remarks
•
When the PC WDT function is in use, execute this function to refresh the
timer value within a value smaller than the set timer value. If the timer is out
without refreshing, the communications cycle stops.
•
See Section 4-7 for the PC WDT function.
Type
Parameter
Direction
Description
HANDLE
Handle
IN
Device handle obtained with the
function CPNT_Open
WORD
Timer
IN
Monitoring time:
0x0: Disabled the PC WDT.
0x1 to 0xFFFF(1 to 65535):
Enabled the PC WDT.
Monitoring time = The value written
on the left x 10 ms
Type
Parameter
Direction
Description
HANDLE
Handle
IN
Device handle obtained with the
function CPNT_Open
Summary of Contents for 3G8F7-CRM21
Page 4: ...iv...
Page 10: ...x TABLE OF CONTENTS...
Page 46: ...26 Connecting the Communications Power Supply Cables Section 2 4...
Page 74: ...54 Board Hardware Error Notification Section 4 8...
Page 173: ...153 APPENDIX D Sample Program D 1 Sample Program 154...
Page 230: ...210 Wiring for Power Supply Section E 5...
Page 234: ...214 Index...
Page 236: ...216 Revision History...
Page 237: ......