namespace EC.Utils.SerialPortHelper
{
///
/// 串口参数类
///
public class SerialCustomer
{
public SerialCustomer()
{
BaudRate = 9600;
Parity = 0;
DataBits = 8;
StopBits = 1;
ReceivedBytesThreshold = 64;
}
///
/// 串口名称
///
public string ComName { get; set; }
///
///波特率
///
public int BaudRate { get; set; }
///
/// 奇偶校验0-4=no,odd,even,mark,space
///
public int Parity { get; set; }
/////
///// 校验位对应值
/////
//public int ParityValue { get; set; }//
///
///数据位 默认
///
public int DataBits { get; set; }
///
/// 停止位
///
public int StopBits { get; set; }
public int ReceivedBytesThreshold { get; set; }
}
}