using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; namespace RCUHost.Protocols { /// /// 插卡取电 Packet RCU -> 服务器 /// [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct InsertCardPacket { /// /// 是否插卡 /// public byte InsertCard; /// /// 取电卡类型:0无人,1有人,2客人,3服务员,4管理员,5总管,6工程维修 /// public byte CardType; /// /// 取电卡编号 /// public uint CardNumber; /// /// CRC16 /// public ushort CRC; } }