initial commit
This commit is contained in:
27
cVMS.NET_CS/Modbus/Configures/RtuConfigure.cs
Normal file
27
cVMS.NET_CS/Modbus/Configures/RtuConfigure.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO.Ports;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace vmsnet.Configures
|
||||
{
|
||||
public class RtuConfigure
|
||||
{
|
||||
public int BaudRate { get; set; } = 9600;
|
||||
public Parity Parity { get; set; } = Parity.None;
|
||||
public StopBits StopBits { get; set; } = StopBits.One;
|
||||
public int DataBits { get; set; } = 8;
|
||||
|
||||
public RtuConfigure() { }
|
||||
|
||||
public RtuConfigure(int baudRate, Parity parity, StopBits stopBits, int dataBits)
|
||||
{
|
||||
BaudRate = baudRate;
|
||||
Parity = parity;
|
||||
StopBits = stopBits;
|
||||
DataBits = dataBits;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user