Getlinestatus - ICP DAS USA MP-8 43 Series Function Reference

Hide thumbs Also See for MP-8 43 Series:
Table of Contents

Advertisement

4.4.5 GetLineStatus

Description:
Get the Line Status (CTS, DSR, RI, CD).
Syntax:
long
GetLineStatus
Parameter:
port:
pin:
Return Value:
1 :
0 :
Others :
Example:
int
port=3;
//Com_port of PAC
int
pin=0;
WORD Status;
Status= GetLineStatus(port, pin);
Remark:
http://www.icpdas.com
[C
(int
port,
int
pin)
[Input] 1=COM1, 2=COM2 .... , MAXPORT
[Input] 0: CTS, 1: DSR, 2: RI, 3: CD
ON
OFF
Error code, please refer to "Appendix A Error Code".
MP-8x43 Function Reference V 1.0
++
]
104 

Advertisement

Table of Contents
loading

Table of Contents