class documentation

class BaseSerialPort: (source)

Known subclasses: twisted.internet._posixserialport.SerialPort, twisted.internet.serialport.SerialPort

View In Hierarchy

Base class for Windows and POSIX serial ports.
Method flush​Input Undocumented
Method flush​Output Undocumented
Method get​CD Undocumented
Method get​CTS Undocumented
Method get​DSR Undocumented
Method get​RI Undocumented
Method in​Waiting Undocumented
Method send​Break Undocumented
Method set​Baud​Rate Undocumented
Method set​DTR Undocumented
Method set​RTS Undocumented
Instance Variable _serial a pyserial serial.Serial instance used to manage the options on the serial port.
Instance Variable _serial​Factory a pyserial serial.Serial factory, used to create the instance stored in self._serial. Overrideable to enable easier testing.
def flushInput(self): (source)

Undocumented

def flushOutput(self): (source)

Undocumented

def getCD(self): (source)

Undocumented

def getCTS(self): (source)

Undocumented

def getDSR(self): (source)

Undocumented

def getRI(self): (source)

Undocumented

def inWaiting(self): (source)

Undocumented

def sendBreak(self): (source)

Undocumented

def setBaudRate(self, baudrate): (source)

Undocumented

def setDTR(self, on=1): (source)

Undocumented

def setRTS(self, on=1): (source)

Undocumented

_serial = (source)
a pyserial serial.Serial instance used to manage the options on the serial port.
_serialFactory = (source)
a pyserial serial.Serial factory, used to create the instance stored in self._serial. Overrideable to enable easier testing.