summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2010-05-21 00:30:09 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2010-05-21 00:30:09 +0000
commitf042c97eab3d2ba217e9d5fa0bd0adf039281b2b (patch)
tree627a88177d9f1dfcd6b81308c32d81dc1cf85101 /documentation
parent59eb56a741b22afb533fbcedaee0d26087cf4392 (diff)
downloadpyserial-f042c97eab3d2ba217e9d5fa0bd0adf039281b2b.tar.gz
- documentation updates
- preparations for next release git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@362 f19166aa-fa4f-0410-85c2-fa1106f25c8a
Diffstat (limited to 'documentation')
-rw-r--r--documentation/pyserial_api.rst14
1 files changed, 13 insertions, 1 deletions
diff --git a/documentation/pyserial_api.rst b/documentation/pyserial_api.rst
index d8566e3..14f1848 100644
--- a/documentation/pyserial_api.rst
+++ b/documentation/pyserial_api.rst
@@ -12,7 +12,7 @@ Native ports
.. class:: Serial
- .. method:: __init__(port=None, baudrate=9600, bytesize=EIGHTBITS, parity=PARITY_NONE, stopbits=STOPBITS_ONE, timeout=None, xonxoff=0, rtscts=0, interCharTimeout=None)
+ .. method:: __init__(port=None, baudrate=9600, bytesize=EIGHTBITS, parity=PARITY_NONE, stopbits=STOPBITS_ONE, timeout=None, xonxoff=0, rtscts=0, writeTimeout=None, dsrdtr=False, interCharTimeout=None)
:param port:
Device name or port number number or :const:`None`.
@@ -44,6 +44,12 @@ Native ports
:param rtscts:
Enable hardware (RTS/CTS) flow control.
+ :param dsrdtr:
+ Enable hardware (DSR/DTR) flow control.
+
+ :param writeTimeout:
+ Set a write timeout value.
+
:param interCharTimeout:
Inter-character timeout, :const:`None` to disable (default).
@@ -70,10 +76,16 @@ Native ports
- ``timeout = 0``: non-blocking mode (return immediately on read)
- ``timeout = x``: set timeout to ``x`` seconds (float allowed)
+ Writes are blocking by default unless *writeTimeout* is set. For possible
+ values refer to the list for *timeout* above.
+
Note that enabling both flow control methods (*xonxoff* and *rtscts*)
together may not be supported. It is common to use one of the methods
at once, not both.
+ *dsrdtr* is not supported by all platforms (silently ignored). Setting
+ it to ``None`` has the effect that its state follows *rtscts*.
+
.. method:: open()
Open port.