CSharp/Viewer/ViewerLib/Serial/SerialHandler.cs
/// <summary>
/// Configures the serial connection with the given parameters.
/// </summary>
/// <param name="configuration">
/// The serial configuration to use. See <see cref="SerialConfig"/>.
/// </param>
Configures the serial connection with the given parameters.
Configures the serial connection with the given parameters .
public void ConfigureSerialConnection(SerialConfig configuration)
        {
            serialPort.PortName = configuration.PortName;
            serialPort.BaudRate = configuration.BaudRate;
            serialPort.Parity = configuration.Parity;
            serialPort.DataBits = configuration.DataBits;
            serialPort.StopBits = configuration.StopBits;
            serialPort.Handshake = configuration.Handshake;
            serialPort.ReadTimeout = configuration.ReadTimeout;
            serialPort.WriteTimeout = configuration.WriteTimeout;
        }
public void ConfigureSerialConnection ( SerialConfig configuration ) { serialPort . PortName = configuration . PortName ; serialPort . BaudRate = configuration . BaudRate ; serialPort . Parity = configuration . Parity ; serialPort . DataBits = configuration . DataBits ; serialPort . StopBits = configuration . StopBits ; serialPort . Handshake = configuration . Handshake ; serialPort . ReadTimeout = configuration . ReadTimeout ; serialPort . WriteTimeout = configuration . WriteTimeout ; }
Configures the serial connection with the given parameters.
Configures the serial connection with the given parameters .
configuration
SerialConfig
The serial configuration to use. See .
The serial configuration to use . See .