初始化CRICS
This commit is contained in:
26
RCUHost/Protocols/LightStatusPacket.cs
Normal file
26
RCUHost/Protocols/LightStatusPacket.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace RCUHost.Protocols
|
||||
{
|
||||
/// <summary>
|
||||
/// 灯光状态 Packet RCU -> 服务器
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct LightStatusPacket
|
||||
{
|
||||
/// <summary>
|
||||
/// 灯光状态
|
||||
/// </summary>
|
||||
[MarshalAsAttribute(UnmanagedType.ByValArray, SizeConst = 8)]
|
||||
public byte[] Status;
|
||||
|
||||
/// <summary>
|
||||
/// CRC16
|
||||
/// </summary>
|
||||
public ushort CRC;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user