using ivf_tl_Entity.GlobalEnums; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ivf_tl_Entity.ComEntitys { /// /// 自定义的协议数据包 /// public class CustomProtocol { /// /// 发送字节流 /// public byte[] sendBuffer { get; set; } /// /// 指令类型 /// public Enums commandType; /// /// 接收串口的字节流长度 /// public int lenght { get; set; } /// /// 接收字节流 /// public byte[] receivedBuffer { get; set; } ///// ///// 接收字节流串 ///// //public string receiveBufferText { get { return StringHelper.ByteToHexStr(this.receivedBuffer); } } /// /// 标签 /// public object tag; /// /// 当前串口 /// public string comName { get; set; } /// /// 当前well的编号:1至16 /// public int well { get; set; } = 0; /// /// 当前焦距编号:1至11 /// public int focal { get; set; } = 0; /// /// 日志时间 /// public DateTime logDateTime { get; set; } /// /// 记录当前指令的编号 /// public double commandNumber { get; set; } /// /// 图片编号 /// public int pictureId { get; set; } /// /// 垂直电机零点 /// public int VerticalMotorZero { get; set; } = 0; /// /// 垂直电机高度 /// public int VerticalMotorPulse { get; set; } = 0; /// /// 水平电机零点 /// public int HorizontalMotorZero { get; set; } = 0; /// /// 水平电机位置 /// public int HorizontalMotorPulse { get; set; } = 0; /// /// 指令以后等待时间 /// public int WaitTime { get; set; } = 0; /// /// 是否阻塞等待指令返回 /// public bool IsWaitOne { get; set; } = true; /// /// 是否成功拿到返回指令 /// public bool IsSuccess { get; set; } = true; } }