using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; namespace RCUHost.Protocols { /// /// 控制电源回复 Packet RCU -> 服务器 /// [StructLayoutAttribute(LayoutKind.Sequential, Pack = 1)] public struct PowerSupplyPacketReply { #region Status Const /// /// 电源开启 /// public const byte Open = 0x00; /// /// 电源关闭 /// public const byte Close = 0x01; #endregion /// /// 状态 /// public byte Status; /// /// CRC16 /// public ushort CRC; } }