
84
©Vecow ECS-4500 User Manual
Appendix C
BOOL set_GPIO1(WORD GPIO_data)
Set GPIO.
•
GPIO_data ([15:0]): GPIO state, pin setting by hexadecimal bitmask.
1: High; 0: Low.
Return:
TRUE (1): Success.
FALSE (0): Fail (Initial error or hardware problem).
BOOL get_WDT(DWORD *WDT)
Get watchdog timer setup.
•
WDT: watchdog timer setup.
Unit: second (Range: 0 ~ 65535 sec, 1093 ~ 65535 min (=65580 ~ 3932100 sec)).
Return:
TRUE (1): Success.
FALSE (0): Fail (Initial error, or call by pointer error, or hardware problem).
BOOL set_WDT(DWORD WDT)
Set watchdog timer setup.
•
WDT: watchdog timer setup.
Unit: second (Range: 0 ~ 65535 sec, 1093 ~ 65535 min (=65580 ~ 3932100 sec)).
Return:
TRUE (1): Success.
FALSE (0): Fail (Initial error, or setup 0, or hardware problem).
BOOL cancel_WDT()
Cancel watchdog timer.
Return:
TRUE (1): Success.
FALSE (0): Fail (Initial error or hardware problem).
FALSE (0): Fail (Driver not exists, or version is too old, or out of range error).
BOOL config_COMPORT(BYTE *PORT_NUM)
Set COMPORT configuration.
•
PORT_NUM: Usable COMPORT number.
Range: 1~6.
Return:
TRUE (1): Success.
FALSE (0): Fail (Initial error, or setup 0, or hardware problem).
BOOL set_COMPORT_mode(BYTE port, BYTE mode, BYTE term)
Set COMPORT mode.
•
port: which port set.
Range: 1~6.
•
mode: Usable COMPORT number.
0: RS232 mode; 1: RS422-5Wire mode.
2: RS422-9Wire mode; 4: RS485 mode.
4: Loopback mode.
•
term: Termination enable for RS422/RS485 mode.
1: Enable; 0: Disable.