Go to the latest version of this document.

# ``twisted`.`internet`.`serialport`.`BaseSerialPort``

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 | `flushInput` | Undocumented
Method | `flushOutput` | Undocumented
Method | `getCD` | Undocumented
Method | `getCTS` | Undocumented
Method | `getDSR` | Undocumented
Method | `getRI` | Undocumented
Method | `inWaiting` | Undocumented
Method | `sendBreak` | Undocumented
Method | `setBaudRate` | Undocumented
Method | `setDTR` | Undocumented
Method | `setRTS` | Undocumented
Instance Variable | `_serial` | a pyserial `serial.Serial` instance used to manage the options on the serial port.
Instance Variable | `_serialFactory` | 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)
overridden in `twisted.internet._posixserialport.SerialPort`, `twisted.internet.serialport.SerialPort`

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.