You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
853 B
C#
42 lines
853 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Sln.Iot.Config
|
|
{
|
|
public class SerialPortConfig
|
|
{
|
|
/// <summary>
|
|
/// 串口名称
|
|
/// </summary>
|
|
public string PortName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 波特率
|
|
/// </summary>
|
|
public int BaudRate { get; set; }
|
|
|
|
/// <summary>
|
|
/// 奇偶校验
|
|
/// </summary>
|
|
public int Parity { get; set; }
|
|
|
|
/// <summary>
|
|
/// 停止位
|
|
/// </summary>
|
|
public int StopBits { get; set; }
|
|
|
|
/// <summary>
|
|
/// 数据位
|
|
/// </summary>
|
|
public int DataBits { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public int Handshake { get; set; }
|
|
}
|
|
}
|