| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/twisted/internet/ |
Upload File : |
ó
¹7¬Nc @ s¾ d Z d d l Z d d l m Z m Z m Z d d l m Z m Z d d l m Z m Z m Z m
Z
d d l Z d d l Z d d l
m Z d d l m Z d e e j f d „ ƒ YZ d S(
sB
Serial port support for Windows.
Requires PySerial and pywin32.
iÿÿÿÿN( t PARITY_NONEt PARITY_EVENt
PARITY_ODD( t STOPBITS_ONEt STOPBITS_TWO( t FIVEBITSt SIXBITSt SEVENBITSt EIGHTBITS( t abstract( t BaseSerialPortt
SerialPortc B s\ e Z d Z d Z d e e e d d d „ Z d „ Z d „ Z d „ Z
d „ Z d „ Z RS(
s@ A serial device, acting as a transport, that uses a win32 event.i i€% i c
C s? | j | d | d | d | d | d d d | d | ƒ| _ | j ƒ | j ƒ | | _ | | _ g | _ d | _ d | _ d | _
| | _ t j ƒ | _
t j d d d d ƒ | j
_ t j ƒ | _ t j d d d d ƒ | j _ | j j | j
j | d
ƒ | j j | j j | d ƒ | j j | ƒ | j ƒ d S( Nt baudratet bytesizet parityt stopbitst timeoutt xonxofft rtsctsi i t serialReadEventt serialWriteEvent( t _serialFactoryt Nonet _serialt
flushInputt flushOutputt reactort protocolt outQueuet closedt closedNotifiest writeInProgresst win32filet
OVERLAPPEDt _overlappedReadt
win32eventt CreateEventt hEventt _overlappedWritet addEventt makeConnectiont _finishPortSetup(
t selfR t deviceNameOrPortNumberR R R
R R R R ( ( sE /usr/lib/python2.7/dist-packages/twisted/internet/_win32serialport.pyt __init__ s*
c C sO t j | j j ƒ \ } } t j | j j t j d ƒ | j ƒ \ } | _ d S( sn
Finish setting up the serial port.
This is a separate method to facilitate testing.
i N( R t ClearCommErrorR t hComPortt ReadFilet AllocateReadBufferR"