Class CreateSerialPort
Represents an operator that creates and configures a connection to a system serial port.
public class CreateSerialPort : Source<SerialPort>, INamedElement
- Inheritance
-
CreateSerialPort
- Implements
- Inherited Members
Properties
BaudRate
Gets or sets the serial baud rate.
[TypeConverter(typeof(BaudRateConverter))]
public int BaudRate { get; set; }
Property Value
DataBits
Gets or sets the number of data bits per byte.
public int DataBits { get; set; }
Property Value
DiscardNull
Gets or sets a value indicating whether null bytes are ignored when transmitted between the port and the receive buffer.
public bool DiscardNull { get; set; }
Property Value
DtrEnable
Gets or sets a value indicating whether the Data Terminal Ready (DTR) signal should be enabled during serial communication.
public bool DtrEnable { get; set; }
Property Value
Encoding
Gets or sets the byte encoding used for pre- and post-transmission conversion of text.
[TypeConverter(typeof(SerialPortEncodingConverter))]
public string Encoding { get; set; }
Property Value
Handshake
Gets or sets the handshaking protocol for serial port transmission of data.
public Handshake Handshake { get; set; }
Property Value
Name
Gets or sets the optional alias for the serial port connection.
public string Name { get; set; }
Property Value
NewLine
Gets or sets the new line separator used to delimit reads from the serial port.
public string NewLine { get; set; }
Property Value
Parity
Gets or sets the parity bit for the SerialPort object.
public Parity Parity { get; set; }
Property Value
ParityReplace
Gets or sets the byte that replaces invalid bytes in the data stream when a parity error occurs.
public byte ParityReplace { get; set; }
Property Value
PortName
Gets or sets the name of the serial port.
[TypeConverter(typeof(SerialPortNameConverter))]
public string PortName { get; set; }
Property Value
ReadBufferSize
Gets or sets the size of the read buffer, in bytes. This is the maximum number of read bytes which can be buffered.
public int ReadBufferSize { get; set; }
Property Value
ReceivedBytesThreshold
Gets or sets the number of bytes received into the internal input buffer before the read event is fired.
public int ReceivedBytesThreshold { get; set; }
Property Value
RtsEnable
Gets or sets a value indicating whether the Request to Send (RTS) signal should be enabled during serial communication.
public bool RtsEnable { get; set; }
Property Value
StopBits
Gets or sets the number of stop bits per byte.
public StopBits StopBits { get; set; }
Property Value
WriteBufferSize
Gets or sets the size of the write buffer, in bytes. This is the maximum number of bytes which can be queued for write.
public int WriteBufferSize { get; set; }
Property Value
Methods
Generate()
Generates an observable sequence that contains the serial port connection object.
public override IObservable<SerialPort> Generate()
Returns
- IObservable<SerialPort>
A sequence containing a single instance of the SerialPort class representing the serial connection.