Beispiel #1
0
		def __init__(self):
			IrisChannel.__init__(self)
			self.config = config.ConfigList(self.__class__, {
				'port' : config.ConfigString('Port name', '0'),
				'baudrate' : config.ConfigChoice('Baudrate', serial_module.Serial.BAUDRATES, 9600),
				'bytesize' : config.ConfigInt('Size of each byte', 5, 8, 8),
				'parity' : config.ConfigChoice('Parity', {'None':serial_module.PARITY_NONE, 'Odd':serial_module.PARITY_ODD, 'Even':serial_module.PARITY_EVEN, 'Mark':serial_module.PARITY_MARK, 'Space':serial_module.PARITY_SPACE}, 'None'),
				'stopbits' : config.ConfigInt('Number of stop bits', 1, 2),
				'control' : config.ConfigChoice('Flow control method', ('None', 'RTS/CTS', 'Xon/Xoff'), 'None')
			})
Beispiel #2
0
	def __init__(self):
		IrisChannel.__init__(self)