Class PvSerialPortConfiguration
Serial port configuration container holding baud rate, parity, byte size, and stop bits.
Implements
Inherited Members
Namespace: eBUSDotNetReceive
Assembly: eBUSDotNetReceive.dll
Syntax
public class PvSerialPortConfiguration : IDisposable
Constructors
View SourcePvSerialPortConfiguration()
Declaration
public PvSerialPortConfiguration()
PvSerialPortConfiguration(uint, PvParity, uint, uint)
Creates a serial port configuration with the specified settings.
Declaration
public PvSerialPortConfiguration(uint aBaudRate, PvParity aParity, uint aByteSize, uint aStopBits)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | aBaudRate | The baud rate for serial communication. |
| PvParity | aParity | The parity setting (none, even, or odd). |
| uint | aByteSize | The number of data bits per byte. |
| uint | aStopBits | The number of stop bits. |
Fields
View SourceswigCMemOwn
Declaration
protected bool swigCMemOwn
Field Value
| Type | Description |
|---|---|
| bool |
Properties
View SourceIsValid
Gets whether the serial port configuration is valid.
Declaration
public bool IsValid { get; }
Property Value
| Type | Description |
|---|---|
| bool |
mBaudRate
The baud rate for serial communication.
Declaration
public uint mBaudRate { get; set; }
Property Value
| Type | Description |
|---|---|
| uint |
mByteSize
The number of data bits per byte.
Declaration
public uint mByteSize { get; set; }
Property Value
| Type | Description |
|---|---|
| uint |
mParity
The parity setting for serial communication.
Declaration
public PvParity mParity { get; set; }
Property Value
| Type | Description |
|---|---|
| PvParity |
mStopBits
The number of stop bits.
Declaration
public uint mStopBits { get; set; }
Property Value
| Type | Description |
|---|---|
| uint |
Methods
View SourceDispose()
Dispose.
Declaration
public void Dispose()
Dispose(bool)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
~PvSerialPortConfiguration()
Destructor.
Declaration
protected ~PvSerialPortConfiguration()
MakeInvalid()
Marks this configuration as invalid.
Declaration
public void MakeInvalid()