(self, speed, parity, bytesize, stop)
Set serial port connection parameters.
Set serial port connection parameters.
Set serial port connection parameters .
def set_params(self, speed, parity, bytesize, stop):
        """Set serial port connection parameters."""
        logging.debug(
            'Setting serial port %s parameters to (%d, %s, %s, %s).',
            self._serial.port, speed, parity, bytesize, stop
        )
        with safe_io(error.DEVICE_FAULT):
            self._check_open()
            self._serial.baudrate = speed
            self._serial.parity = parity.decode('ascii')
            self._serial.bytesize = bytesize
            self._serial.stopbits = stop
def set_params ( self , speed , parity , bytesize , stop ) : logging . debug ( 'Setting serial port %s parameters to (%d, %s, %s, %s).' , self . _serial . port , speed , parity , bytesize , stop ) with safe_io ( error . DEVICE_FAULT ) : self . _check_open ( ) self . _serial . baudrate = speed self . _serial . parity = parity . decode ( 'ascii' ) self . _serial . bytesize = bytesize self . _serial . stopbits = stop