Lines Matching refs:sPort
68 self.sPort = portId.open("python serial module", 10)
70 self.sPort = None
73 self._instream = self.sPort.getInputStream()
74 self._outstream = self.sPort.getOutputStream()
79 if not self.sPort:
82 self.sPort.enableReceiveTimeout(30)
124 self.sPort.setSerialPortParams(self._baudrate, jdatabits, jstopbits, jparity)
125 self.sPort.setFlowControlMode(jflowin | jflowout)
128 self.sPort.enableReceiveTimeout(self._timeout*1000)
130 self.sPort.disableReceiveTimeout()
135 if self.sPort:
138 self.sPort.close()
139 self.sPort = None
149 if not self.sPort: raise portNotOpenError
156 if not self.sPort: raise portNotOpenError
170 if not self.sPort: raise portNotOpenError
178 if not self.sPort: raise portNotOpenError
184 if not self.sPort: raise portNotOpenError
189 if not self.sPort: raise portNotOpenError
190 self.sPort.sendBreak(duration*1000.0)
199 if not self.sPort: raise portNotOpenError
200 self.sPort.setRTS(level)
204 if not self.sPort: raise portNotOpenError
205 self.sPort.setDTR(level)
209 if not self.sPort: raise portNotOpenError
210 self.sPort.isCTS()
214 if not self.sPort: raise portNotOpenError
215 self.sPort.isDSR()
219 if not self.sPort: raise portNotOpenError
220 self.sPort.isRI()
224 if not self.sPort: raise portNotOpenError
225 self.sPort.isCD()