Return DCE/DTE Pin Condition
v = serial.getpin(portn)
Parameter | Type | Description |
---|---|---|
portn |
integer | Port number 1-4 |
Returns | Type | Description |
---|---|---|
v |
integer | DCE/DTE state |
v value |
Description |
---|---|
0 | port is in the "OFF" state |
1 | DCE mode (Rx2 / Tx3) |
2 | DTE mode (Rx3 / Tx2) |
3 | Both pins 2 + 3 have voltage |
4 | Auto pin detect mode |