19 lines
441 B
C#
19 lines
441 B
C#
|
|
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;
|
|||
|
|
}
|
|||
|
|
}
|