初始化CRICS
This commit is contained in:
40
RCUHost/Protocols/PowerSupplyPacketReply.cs
Normal file
40
RCUHost/Protocols/PowerSupplyPacketReply.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user