20211010_CZPM_upperpc/Chen.Communication/SerialInfo.cs

19 lines
441 B
C#
Raw Permalink Normal View History

2023-07-27 03:01:29 +00:00
using System;
using System.IO.Ports;
namespace Chen.Communication
{
public class SerialInfo
{
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2>
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
public string PortName { get; set; } = "COM1";
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
public int BaudRate { get; set; } = 9600;
public int DataBit { get; set; } = 8;
public Parity Parity { get; set; } = Parity.None;
public StopBits StopBits { get; set; } = StopBits.One;
}
}