
SDK Programming Guide Version 1.511
ABLELink
R
Ethernet-Serial Server MAXI Series
SetupWatchDogTime()
Description:
Set the timeout time of watch dog timer.
Include:
DAPAPI.H
Usage:
void SetupWatchDogTime(
ushort
value
);
Input Parameters:
value:
// timeout time of watch dog timer. (0x0000 -
0xFFFF)
// timeout time = (value * 55 msec) + 1.6sec.
Return Value:
none
Example:
Watch Dog Time out = 56.6 sec.
= watch-dog-time x 55 msec + 1.6 sec
watch-dog-time = 1000 = 0x3e8
SetupWatchDogTime
(0x3e8);
Setup watch-dog timer.
Remarks:
When the watch dog timer is set to be controlled by user, the AP must call
ClrWatchDogTime
function to clear watch dog timer before this timeout
time is reached. Otherwise the system will reset itself.
SetIOMode()
Description:
Set a channel to be DI/DO.
Include:
g21s3api.h
Usage:
void SetIOMode( uchar
channel
, uchar
mode
) ;
Input Parameters:
channel:
// 0-3 for channel 1-4
mode:
// 0:DO, 1:DI
Return Value:
None
Example:
SetIOMode(0,1);
// set channel 1 to DI
SetIOMode(1,0);
// set channel 2 to DO
Remarks:
GetIOMode()
Description:
Get a channel’s I/O mode.
Include:
g21s3api.h
Usage:
ushort GetIOMode( uchar
channel
) ;
Copyright © 2004 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.