Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/twisted/internet/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/twisted/internet/serialport.pyc

ó
¹7¬Nc@sdZddddddddd	d
dgZdd
lZdd
lZdd
lZddlmZmZmZddlmZm	Z	ddlm
Z
mZmZm
Z
ddd„ƒYZdefd„ƒYZejdkrðddlmZn"ejdkrddlmZnd
S(s
Serial Port Protocol
tserialt
PARITY_ODDtPARITY_EVENtPARITY_NONEtSTOPBITS_TWOtSTOPBITS_ONEtFIVEBITSt	EIGHTBITSt	SEVENBITStSIXBITSt
SerialPortiÿÿÿÿN(RRR(RR(RR	RRtBaseSerialPortcBs€eZdZejZd„Zd„Zd„Zd„Z	d„Z
d„Zd„Zd„Z
d	„Zd
d„Zd
d„ZRS(
sV
    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.
    cCs9t|jdƒr%|jj|ƒn|jj|ƒdS(NtsetBaudrate(thasattrt_serialRtsetBaudRate(tselftbaudrate((s?/usr/lib/python2.7/dist-packages/twisted/internet/serialport.pyR,scCs
|jjƒS(N(Rt	inWaiting(R((s?/usr/lib/python2.7/dist-packages/twisted/internet/serialport.pyR2scCs|jjƒdS(N(Rt
flushInput(R((s?/usr/lib/python2.7/dist-packages/twisted/internet/serialport.pyR5scCs|jjƒdS(N(RtflushOutput(R((s?/usr/lib/python2.7/dist-packages/twisted/internet/serialport.pyR8scCs|jjƒdS(N(Rt	sendBreak(R((s?/usr/lib/python2.7/dist-packages/twisted/internet/serialport.pyR;scCs
|jjƒS(N(RtgetDSR(R((s?/usr/lib/python2.7/dist-packages/twisted/internet/serialport.pyR>scCs
|jjƒS(N(RtgetCD(R((s?/usr/lib/python2.7/dist-packages/twisted/internet/serialport.pyRAscCs
|jjƒS(N(RtgetRI(R((s?/usr/lib/python2.7/dist-packages/twisted/internet/serialport.pyRDscCs
|jjƒS(N(RtgetCTS(R((s?/usr/lib/python2.7/dist-packages/twisted/internet/serialport.pyRGsicCs|jj|ƒdS(N(RtsetDTR(Rton((s?/usr/lib/python2.7/dist-packages/twisted/internet/serialport.pyRJscCs|jj|ƒdS(N(RtsetRTS(RR((s?/usr/lib/python2.7/dist-packages/twisted/internet/serialport.pyRMs(t__name__t
__module__t__doc__RtSerialt_serialFactoryRRRRRRRRRRR(((s?/usr/lib/python2.7/dist-packages/twisted/internet/serialport.pyRs
										cBseZRS((RR(((s?/usr/lib/python2.7/dist-packages/twisted/internet/serialport.pyR
Pstposix(R
twin32((Rt__all__tostsysRRRRRRRR	RRRR
tnamet!twisted.internet._posixserialporttplatformt!twisted.internet._win32serialport(((s?/usr/lib/python2.7/dist-packages/twisted/internet/serialport.pyt<module>s			"3