using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; namespace RCUHost.Protocols { [StructLayoutAttribute(LayoutKind.Sequential, Pack = 1)] public struct DeviceHeader { /// 目标模块设备, 0是主控器,其它的模块按地址拨码开关 public byte NodeAddr; /// 命令类型 public ushort CmdType; /// unsigned char public byte AskAck; public HostNumber RoomNumber; } }