Show / Hide Table of Contents

Class SerialCommandHost

Provides functionality for serial commands via PC serialport with interface ISerialCommand

Inheritance
System.Object
SerialCommandHost
Implements
ISerialCommand
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Elatec.FCT.Client.Hardware
Assembly: ElatecFCT.dll
Syntax
public class SerialCommandHost : ISerialCommand

Constructors

View Source

SerialCommandHost(String)

Initializes a new instance of the Elatec.FCT.Client.Hardware.Serial using an serial port

Declaration
public SerialCommandHost(string port)
Parameters
Type Name Description
System.String port

Properties

View Source

BaudRate

Declaration
public int BaudRate { get; set; }
Property Value
Type Description
System.Int32
View Source

DataBits

Declaration
public int DataBits { get; set; }
Property Value
Type Description
System.Int32
View Source

Parity

Declaration
public Parity Parity { get; set; }
Property Value
Type Description
System.IO.Ports.Parity
View Source

PortName

Declaration
public string PortName { get; }
Property Value
Type Description
System.String
View Source

ReadTimeout

Declaration
public int ReadTimeout { get; set; }
Property Value
Type Description
System.Int32
View Source

StopBits

Declaration
public StopBits StopBits { get; set; }
Property Value
Type Description
System.IO.Ports.StopBits
View Source

StopChar

Declaration
public char StopChar { get; set; }
Property Value
Type Description
System.Char

Methods

View Source

Close()

Close the serial port

Declaration
public void Close()
View Source

Open()

Open the serial port

Declaration
public void Open()
View Source

ReadTo(String)

Declaration
public string ReadTo(string value)
Parameters
Type Name Description
System.String value
Returns
Type Description
System.String
View Source

Rx()

Declaration
public byte[] Rx()
Returns
Type Description
System.Byte[]
View Source

Tx(Byte[])

Declaration
public void Tx(byte[] tx)
Parameters
Type Name Description
System.Byte[] tx
View Source

TxRx(Byte[])

Declaration
public byte[] TxRx(byte[] tx)
Parameters
Type Name Description
System.Byte[] tx
Returns
Type Description
System.Byte[]
View Source

Write(String)

Declaration
public void Write(string data)
Parameters
Type Name Description
System.String data
View Source

WriteReadTo(String, String)

Declaration
public string WriteReadTo(string wrData, string value)
Parameters
Type Name Description
System.String wrData
System.String value
Returns
Type Description
System.String

Implements

ISerialCommand
  • View Source
In This Article
Back to top Generated by DocFX