SerialPortChannel Constructor
Namespace: Rebex.TerminalEmulation
Assembly: Rebex.Terminal.SerialPort.dll (version 7.0.9313)
SerialPortChannel(SerialPort)
Initialize a new instance of SerialPortChannel based on the specified SerialPort.
Declaration
public SerialPortChannel(SerialPort port)
Parameters
| Type | Name | Description |
|---|---|---|
| SerialPort | port | Serial port to communicate with. |
SerialPortChannel(String)
Initialize a new instance of SerialPortChannel with specified port name.
Declaration
public SerialPortChannel(string portName)
Parameters
| Type | Name | Description |
|---|---|---|
| String | portName | Port name to use. |
SerialPortChannel(String, Int32)
Initialize a new instance of SerialPortChannel with specified port name and baud rate.
Declaration
public SerialPortChannel(string portName, int baudRate)
Parameters
| Type | Name | Description |
|---|---|---|
| String | portName | Port name to use. |
| Int32 | baudRate | A baud rate. |
SerialPortChannel(String, Int32, Parity, Int32, StopBits)
Initialize a new instance of SerialPortChannel with specified port name, baud rate, parity bit, data bits and stop bits.
Declaration
public SerialPortChannel(string portName, int baudRate, Parity parity, int dataBits, StopBits stopBits)
Parameters
| Type | Name | Description |
|---|---|---|
| String | portName | Port name to use. |
| Int32 | baudRate | A baud rate. |
| Parity | parity | Parity bit. |
| Int32 | dataBits | Data bits. |
| StopBits | stopBits | Stop bits. |