diff options
author | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2009-07-22 00:48:34 +0000 |
---|---|---|
committer | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2009-07-22 00:48:34 +0000 |
commit | edcdbe4d08b4ff3ad5a5b90c1fda94223a80a534 (patch) | |
tree | cd45fbe361b7405595c281637be770c6eb14bea1 | |
parent | b58a32158883a03bf571bdfead5310675e003301 (diff) | |
download | pyserial-git-edcdbe4d08b4ff3ad5a5b90c1fda94223a80a534.tar.gz |
add more about base classes
-rw-r--r-- | documentation/pyserial_api.rst | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/documentation/pyserial_api.rst b/documentation/pyserial_api.rst index 70929da..622e214 100644 --- a/documentation/pyserial_api.rst +++ b/documentation/pyserial_api.rst @@ -275,6 +275,87 @@ Classes Returns self. +.. class:: SerialBase + + The following attributes are implemented as properties. They work with open + and closed ports. + + .. attribute:: port + + Read or write port. When the port is already open, it will be closed + and reopened with the new setting. + + .. attribute:: baudrate + + Read or write current baud rate setting. It is possible to change this + on an opened port. + + .. attribute:: bytesize + + Read or write current data byte size setting. It is possible to change + this on an opened port. + + .. attribute:: parity + + Read or write current parity setting. It is possible to change this on + an opened port. + + .. attribute:: stopbits + + Read or write current stop bit width setting. It is possible to change + this on an opened port. + + .. attribute:: timeout + + Read or write current read timeout setting. It is possible to change + this on an opened port. + + .. attribute:: writeTimeout + + Read or write current write timeout setting. It is possible to change + this on an opened port. + + .. attribute:: xonxoff + + Read or write current software flow control rate setting. It is + possible to change this on an opened port. + + .. attribute:: rtscts + + Read or write current hardware flow control setting. It is possible to + change this on an opened port. + + .. attribute:: dsrdtr + + Read or write current hardware flow control setting. It is possible to + change this on an opened port. + + .. attribute:: interCharTimeout + + Read or write current inter character timeout setting. It is possible + to change this on an opened port. + + The following constants are also provided: + + .. attribute:: BAUDRATES + + A tuple of standard baud rate values. The actual device may support more + or less... + + .. attribute:: BYTESIZES + + A tuple of supported byte size values. + + .. attribute:: PARITIES + + A tuple of supported parity settings. + + .. attribute:: STOPBITS + + A tuple of supported stop bit settings. + + + Exceptions ========== |