twisted.internet.serialport.SerialPort(BaseSerialPort, abstract.FileDescriptor)
class documentationtwisted.internet.serialport
View Source
(View In Hierarchy)
A serial device, acting as a transport, that uses a win32 event.
Method | __init__ | |
Method | serialReadEvent | Undocumented |
Method | write | Reliably write some data. |
Method | serialWriteEvent | Undocumented |
Method | connectionLost | Called when the serial port disconnects. |
Method | _finishPortSetup | Finish setting up the serial port. |
Inherited from _LogOwner (via FileDescriptor):
Method | logPrefix | Override this method to insert custom logging behavior. Its return value will be inserted in front of every line. It may be called more times than the number of output lines. |
Method | _getLogPrefix | Determine the log prefix to use for messages related to
applicationObject , which may or may not be an interfaces.ILoggingContext
provider. |
Inherited from _LogOwner (via FileDescriptor):
Method | logPrefix | Override this method to insert custom logging behavior. Its return value will be inserted in front of every line. It may be called more times than the number of output lines. |
Method | _getLogPrefix | Determine the log prefix to use for messages related to
applicationObject , which may or may not be an interfaces.ILoggingContext
provider. |
Inherited from _LogOwner (via FileDescriptor):
Method | logPrefix | Override this method to insert custom logging behavior. Its return value will be inserted in front of every line. It may be called more times than the number of output lines. |
Method | _getLogPrefix | Determine the log prefix to use for messages related to
applicationObject , which may or may not be an interfaces.ILoggingContext
provider. |
Inherited from _LogOwner (via FileDescriptor):
Method | logPrefix | Override this method to insert custom logging behavior. Its return value will be inserted in front of every line. It may be called more times than the number of output lines. |
Method | _getLogPrefix | Determine the log prefix to use for messages related to
applicationObject , which may or may not be an interfaces.ILoggingContext
provider. |
Parameters | reactor | An IReactorFDSet
provider which this descriptor will use to get readable and writeable event
notifications. If no value is given, the global reactor will be used. |
Finish setting up the serial port.
This is a separate method to facilitate testing.
Reliably write some data.
The data is buffered until the underlying file descriptor is ready for
writing. If there is more than self.bufferSize
data in the
buffer and this descriptor has a registered streaming producer, its
pauseProducing()
method will be called.
Called when the serial port disconnects.
Will call connectionLost
on the protocol that is handling
the serial data.