Moxa Technologies C360 Computer Hardware User Manual


 
Chapter 4 For UNIX Users
~34~
bit 2 -- S_RI
bit 3 -- S_CD
-1 bad port
-2 time out
port = port number
12. Set modem line control.
int sio_lctrl(int port, int mode)
return = 0 ok
-1 bad port
-2 time out
port = port number
mode = C_DTR(bit 0), C_RTS(bit 1)
13. Set modem line control signal DTR.
int sio_DTR(int port, int mode)
return = 0 ok
-1 bad port
-2 time out
port = port number
mode = 0 set DTR off
1 set DTR on
14. Set modem line control signal RTS.
int sio_RTS(int port, int mode)
return = 0 ok
-1 bad port
-2 time out
-6 H/W flow control setting
port = port number
mode = 0 set RTS off
1 set RTS on
15. Setting CTS/RTS and XON/XOFF flow control.