+
    Dfj                         R t . ROt^ RIt^ RIHtHtHtHtHtHtH	t	H
t
Ht ^ RIHt  ! R R4      t]P                  ! 4       '       d	   ^ RIHt R# ^ RIHt R# )z
Serial Port Protocol
N)		EIGHTBITSFIVEBITSPARITY_EVENPARITY_NONE
PARITY_ODD	SEVENBITSSIXBITSSTOPBITS_ONESTOPBITS_TWO)platformc                      a  ] tR t^-t o Rt]P                  tR tR t	R t
R tR tR tR tR	 tR
 tRR ltRR ltRtV tR# )BaseSerialPorta:  
Base class for Windows and POSIX serial ports.

@ivar _serialFactory: a pyserial C{serial.Serial} factory, used to create
    the instance stored in C{self._serial}. Overrideable to enable easier
    testing.

@ivar _serial: a pyserial C{serial.Serial} instance used to manage the
    options on the serial port.
c                    \        V P                  R 4      '       d   V P                  P                  V4       R# V P                  P                  V4       R# )setBaudrateN)hasattr_serialr   setBaudRate)selfbaudrates   &&=/usr/lib/python3/dist-packages/twisted/internet/serialport.pyr   BaseSerialPort.setBaudRate;   s7    4<<//LL$$X.LL$$X.    c                6    V P                   P                  4       # N)r   	inWaitingr   s   &r   r   BaseSerialPort.inWaitingA   s    ||%%''r   c                :    V P                   P                  4        R # r   )r   
flushInputr   s   &r   r   BaseSerialPort.flushInputD   s    !r   c                :    V P                   P                  4        R # r   )r   flushOutputr   s   &r   r!   BaseSerialPort.flushOutputG   s      "r   c                :    V P                   P                  4        R # r   )r   	sendBreakr   s   &r   r$   BaseSerialPort.sendBreakJ   s     r   c                6    V P                   P                  4       # r   )r   getDSRr   s   &r   r'   BaseSerialPort.getDSRM       ||""$$r   c                6    V P                   P                  4       # r   )r   getCDr   s   &r   r+   BaseSerialPort.getCDP       ||!!##r   c                6    V P                   P                  4       # r   )r   getRIr   s   &r   r/   BaseSerialPort.getRIS   r-   r   c                6    V P                   P                  4       # r   )r   getCTSr   s   &r   r2   BaseSerialPort.getCTSV   r)   r   c                <    V P                   P                  V4       R # r   )r   setDTRr   ons   &&r   r5   BaseSerialPort.setDTRY       Br   c                <    V P                   P                  V4       R # r   )r   setRTSr6   s   &&r   r;   BaseSerialPort.setRTS\   r9   r    N)   )__name__
__module____qualname____firstlineno____doc__serialSerial_serialFactoryr   r   r   r!   r$   r'   r+   r/   r2   r5   r;   __static_attributes____classdictcell__)__classdict__s   @r   r   r   -   sQ     	 ]]N/("#!%$$%    r   r   )
SerialPort)rD   r   r   r   r
   r	   r   r   r   r   rJ   )rC   __all__rD   r   r   r   r   r   r   r   r	   r
   twisted.python.runtimer   r   	isWindows!twisted.internet._win32serialportrJ   !twisted.internet._posixserialportr=   r   r   <module>rP      sL   
  
 
 
 ,0  0 h <<r   