using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace HBLDevice.ICChip { /// /// Dr咖啡机基础协议 /// [StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)] public struct ICChipPackage { /// /// 包头(固定0xAA) /// public byte Header; /// /// 发送方 /// public IC_SENDER Sender; /// /// 命令 /// public IC_CMD Cmd; /// /// 值 /// public byte Value; /// /// 包尾(固定为0xBB) /// public byte End; } }