Ϫf|dZddlZddlZddlmZmZmZddlmZddl m Z ddl m Z Gdde e jZy) zB Serial port support for Windows. Requires PySerial and pywin32. N) EIGHTBITS PARITY_NONE STOPBITS_ONE)to_bytes)abstract)BaseSerialPortcLeZdZdZdZdeeeddfdZdZ dZ dZ d Z d Z d Zy ) SerialPortz@A serial device, acting as a transport, that uses a win32 event.i%rc |j|||||d|| |_|j|j||_||_g|_d|_d|_d|_ ||_tj|_ tjdddd|j_tj|_tjdddd|j _|jj#|jj|d|jj#|j j|d|j j%||j'y)N)baudratebytesizeparitystopbitstimeoutxonxoffrtsctsrr serialReadEventserialWriteEvent)_serialFactory_serial flushInput flushOutputreactorprotocoloutQueueclosedclosedNotifieswriteInProgress win32file OVERLAPPED_overlappedRead win32event CreateEventhEvent_overlappedWriteaddEventmakeConnection_finishPortSetup) selfrdeviceNameOrPortNumberrr rrrrrs C/usr/lib/python3/dist-packages/twisted/internet/_win32serialport.py__init__zSerialPort.__init__ sB** "+             (335&0&<&..tV<  $$V,r.N)__name__ __module__ __qualname____doc__ connectedrrrr-r)r0rrFrrNr.r,r r sDJI) V  C @  -r.r )rTr#r serialrrrserial.serialutilrtwisted.internetrtwisted.internet.serialportrrMr rVr.r,r[s= 87&&7@-!8!8@-r.