File: //lib/python3/dist-packages/twisted/internet/__pycache__/_posixserialport.cpython-310.pyc
o
�b! � @ sT d Z ddlmZ ddlmZmZ ddlmZmZ ddlm Z G dd� de ej
�ZdS ) z
Serial Port Protocol
� )�PARITY_NONE)� EIGHTBITS�STOPBITS_ONE)�abstract�fdesc)�BaseSerialPortc @ sL e Zd ZdZdZdeeedddfdd�Zdd� Z d d
� Z
dd� Zd
d� ZdS )�
SerialPortz>
A select()able serial device, acting as a transport.
� i�% r c
C s^ t j�| |� | j||||||| |
d�| _|| _| �� | �� || _| j� | � | �
� d S )N)�baudrate�bytesize�parity�stopbits�timeout�xonxoff�rtscts)r �FileDescriptor�__init__�_serialFactory�_serial�reactor�
flushInput�flushOutput�protocol�makeConnection�startReading)�selfr �deviceNameOrPortNumberr r
r r r
r r r � r �C/usr/lib/python3/dist-packages/twisted/internet/_posixserialport.pyr s"