init
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
using DTS.Common.Enums;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.IO.Ports;
|
||||
|
||||
namespace DTS.Common.Interface.Sensors
|
||||
{
|
||||
public interface IUARTRecord
|
||||
{
|
||||
/// <summary>
|
||||
/// the database id of the sensor
|
||||
/// </summary>
|
||||
[Key]
|
||||
int Id { get; set; }
|
||||
/// <summary>
|
||||
/// Serial number of sensor
|
||||
/// [required to be unique]
|
||||
/// </summary>
|
||||
[Required]
|
||||
[StringLength(50)]
|
||||
string SerialNumber { get; set; }
|
||||
uint UartBaudRate { get; set; }
|
||||
uint UartDataBits { get; set; }
|
||||
[StringLength(50)]
|
||||
StopBits UartStopBits { get; set; }
|
||||
//FB 30486 removed set
|
||||
Handshake UartFlowControl { get;}
|
||||
[StringLength(50)]
|
||||
UartDataFormat UartDataFormat { get; set; }
|
||||
Parity UartParity { get; set; }
|
||||
DateTime LastModified { get; set; }
|
||||
string LastUpdatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// bytes representing a delimited string of tag ids
|
||||
/// </summary>
|
||||
byte[] TagsBlobBytes { get; set; }
|
||||
bool DoNotUse { get; set; }
|
||||
bool Broken { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user