using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;

namespace RCUHost.Protocols
{
    /// <summary>
    /// 控制电源回复 Packet RCU -> 服务器
    /// </summary>
    [StructLayoutAttribute(LayoutKind.Sequential, Pack = 1)]
    public struct PowerSupplyPacketReply
    {
        #region Status Const

        /// <summary>
        /// 电源开启
        /// </summary>
        public const byte Open = 0x00;

        /// <summary>
        /// 电源关闭
        /// </summary>
        public const byte Close = 0x01;

        #endregion


        /// <summary>
        /// 状态
        /// </summary>
        public byte Status;

        /// <summary>
        /// CRC16
        /// </summary>
        public ushort CRC;
    }
}
