| Method Summary |
| |
__init__(self,
port,
baudrate,
bytesize,
parity,
stopbits,
timeout,
xonxoff,
rtscts)
Initialize comm port object. |
| |
__repr__(self)
String representation of the current port settings and its state. |
| |
getBaudrate(self)
Get the current baudrate setting. |
| |
getByteSize(self)
Get the current byte size setting. |
| |
getParity(self)
Get the current parity setting. |
| |
getPort(self)
get the current port setting. |
| |
getRtsCts(self)
Get the current RtsCts setting. |
| |
getStopbits(self)
Get the current stopbits setting. |
| |
getSupportedBaudrates(self)
|
| |
getSupportedByteSizes(self)
|
| |
getSupportedParities(self)
|
| |
getSupportedStopbits(self)
|
| |
getTimeout(self)
Get the current timeout setting. |
| |
getXonXoff(self)
Get the current XonXoff setting. |
| |
isOpen(self)
Check if the port is opened. |
| |
setBaudrate(self,
baudrate)
Change baudrate. |
| |
setByteSize(self,
bytesize)
Change byte size. |
| |
setParity(self,
parity)
Change parity setting. |
| |
setPort(self,
port)
Change the port. |
| |
setRtsCts(self,
rtscts)
Change RtsCts setting. |
| |
setStopbits(self,
stopbits)
Change stopbits size. |
| |
setTimeout(self,
timeout)
Change timeout setting. |
| |
setXonXoff(self,
xonxoff)
Change XonXoff setting. |
| Inherited from FileLike |
| |
flush(self)
flush of file like objects... |
| |
read(self,
size)
|
| |
readline(self,
size,
eol)
read a line which is terminated with end-of-line (eol) character... |
| |
readlines(self,
sizehint,
eol)
read a list of lines, until timeout... |
| |
write(self,
s)
|
| |
writeline(self,
message,
eol)
|
| |
writelines(self,
sequence)
|
| |
xreadlines(self,
sizehint)
just call readlines - here for compatibility... |
| Inherited from object |
| |
__delattr__(...)
x.__delattr__('name') <==> del x.name... |
| |
__getattribute__(...)
x.__getattribute__('name') <==> x.name... |
| |
__hash__(x)
x.__hash__() <==> hash(x)... |
| |
__new__(T,
S,
...)
T.__new__(S, ...) -> a new object with type S, a subtype of T... |
| |
__reduce__(...)
helper for pickle... |
| |
__reduce_ex__(...)
helper for pickle... |
| |
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value... |
| |
__str__(x)
x.__str__() <==> str(x)... |