Return Direction Control State
rts, dtr = serial.getdir(portn)
Parameter | Type | Description |
---|---|---|
portn |
integer | Port number 1-4 |
Returns | Type | Description |
---|---|---|
rts |
integer | 1 = assert for TX; -1 = unassert for TX; 0 = unaffected |
dtr |
integer | 1 = assert for TX; -1 = unassert for TX; 0 = unaffected |