diff options
author | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2009-08-18 00:58:31 +0000 |
---|---|---|
committer | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2009-08-18 00:58:31 +0000 |
commit | 876862489c2b8ccffd1c2ec50d94fb81ad8a4d19 (patch) | |
tree | 4f68bfae3ce02f8fda165c944a47f38ad6474051 | |
parent | 568dd3c9dfd366c9d2288cc14fcc3813a831688a (diff) | |
download | pyserial-git-876862489c2b8ccffd1c2ec50d94fb81ad8a4d19.tar.gz |
doc tweaks
-rw-r--r-- | pyserial/documentation/pyserial_api.rst | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/pyserial/documentation/pyserial_api.rst b/pyserial/documentation/pyserial_api.rst index 5f15046..c243559 100644 --- a/pyserial/documentation/pyserial_api.rst +++ b/pyserial/documentation/pyserial_api.rst @@ -27,12 +27,12 @@ Native ports :param parity: Enable parity checking. Possible values: - :const:`PARITY_NONE` :const:`PARITY_EVEN` :const:`PARITY_ODD` - :const:`PARITY_MARK` :const:`PARITY_SPACE` + :const:`PARITY_NONE`, :const:`PARITY_EVEN`, :const:`PARITY_ODD` + :const:`PARITY_MARK`, :const:`PARITY_SPACE` :param stopbits: Number of stop bits. Possible values: - :const:`STOPBITS_ONE` :const:`STOPBITS_ONE_POINT_FIVE` + :const:`STOPBITS_ONE`, :const:`STOPBITS_ONE_POINT_FIVE`, :const:`STOPBITS_TWO` :param timeout: @@ -653,29 +653,30 @@ Exceptions Constants ========= -Parity ------- +*Parity* + .. data:: PARITY_NONE .. data:: PARITY_EVEN .. data:: PARITY_ODD .. data:: PARITY_MARK .. data:: PARITY_SPACE -Stop bits ---------- +*Stop bits* + .. data:: STOPBITS_ONE .. data:: STOPBITS_ONE_POINT_FIVE .. data:: STOPBITS_TWO -Byte size ---------- +*Byte size* + .. data:: FIVEBITS .. data:: SIXBITS .. data:: SEVENBITS .. data:: EIGHTBITS -Others -------- + +*Others* + Default control characters (instances of :class:`bytes` for Python 3.0+) for software flow control: @@ -688,7 +689,10 @@ Module version: A string indicating the pySerial version, such as ``2.5``. -Functions: + .. versionadded:: 2.3 + +Module functions +================ .. function:: device(number) @@ -723,6 +727,7 @@ Functions: .. versionadded:: 2.5 + .. _URLs: URLs @@ -734,6 +739,11 @@ accept the following types URL: - ``socket://<host>:<port>[/<option>[/<option>]]`` - ``loop://[<option>[/<option>]]`` +Device names are also supported: + +- ``/dev/ttyUSB0`` (Linux) +- ``COM3`` (Windows) + (Future releases of pySerial might add more types). ``rfc2217://`` |