Current File : //usr/lib/python3/dist-packages/twisted/internet/__pycache__/_win32serialport.cpython-312.pyc |
�
Ϫ�f� � �| � d Z ddlZddlZddlmZmZmZ ddlmZ ddl m
Z
ddlmZ G d� dee
j � Zy) zB
Serial port support for Windows.
Requires PySerial and pywin32.
� N)� EIGHTBITS�PARITY_NONE�STOPBITS_ONE)�to_bytes)�abstract)�BaseSerialPortc �L � e Zd ZdZdZdeeeddfd�Zd� Z d� Z
d� Zd � Zd
� Z
d� Zy)
�
SerialPortz@A serial device, acting as a transport, that uses a win32 event.� i�% r c
� � | j |||||d || �� | _ | j � | j � || _ || _ g | _ d| _ d| _ d| _ || _ t j � | _ t j d ddd � | j _ t j � | _ t j d ddd � | j _ | j j# | j j | d� | j j# | j j | d� | j
j% | � | j'