Set Handshake Direction Control
serial.setdir(portn, dtr, rts)
Parameter | Type | Description |
---|---|---|
portn |
integer | Port number 1-4 |
dtr |
integer | Direction control for DTR line |
rts |
integer | Direction control for RTS line |
Direct control value | TX mode | RX mode |
---|---|---|
0 | - | - |
1 | Asserted | Unasserted |
-1 | Unasserted | Asserted |