blob: d24f7d1d399a47067464670b5ce22b08874efd18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
import io
from typing import Any, Optional
class SerialBase(io.RawIOBase):
"""\
Serial port base class. Provides __init__ function and properties to
get/set port settings.
"""
def __init__(
self,
port: Optional[str] = ...,
baudrate: Optional[int] = ...,
**kwargs: Any
) -> None:
"""Initialize comm port object. If a "port" is given, then the port
will be opened immediately. Otherwise a Serial port object in closed
state is returned.
"""
...
@property
def baudrate(self) -> int: ...
@baudrate.setter
def baudrate(self) -> None: ...
def setRTS(self, value: Optional[bool] = ...) -> None:
...
def setDTR(self, value: Optional[bool] = ...) -> None:
...
@property
def is_open(self) -> bool:
...
|