44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
using DTS.Common.Enums;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO.Ports;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DTS.Common.Interface.Sensors
|
|
{
|
|
public interface IUartSettingDefaults
|
|
{
|
|
/// <summary>
|
|
/// uart baud rate
|
|
/// </summary>
|
|
uint BaudRate { get; set; }
|
|
/// <summary>
|
|
/// uart data bits
|
|
/// </summary>
|
|
uint DataBits { get; set; }
|
|
/// <summary>
|
|
/// uart stop bits
|
|
/// </summary>
|
|
StopBits StopBits { get; set; }
|
|
/// <summary>
|
|
/// uart parity
|
|
/// </summary>
|
|
Parity Parity { get; set; }
|
|
/// <summary>
|
|
/// uart flow control FB 30486 remove set
|
|
/// </summary>
|
|
Handshake FlowControl { get; }
|
|
/// <summary>
|
|
/// the data format of incoming data
|
|
/// </summary>
|
|
UartDataFormat DataFormat { get; set; }
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
bool Validate();
|
|
}
|
|
}
|