初始化CRICS
This commit is contained in:
35
RCUHost/Protocols/InsertCardPacket.cs
Normal file
35
RCUHost/Protocols/InsertCardPacket.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
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 InsertCardPacket
|
||||
{
|
||||
/// <summary>
|
||||
/// 是否插卡
|
||||
/// </summary>
|
||||
public byte InsertCard;
|
||||
|
||||
/// <summary>
|
||||
/// 取电卡类型:0无人,1有人,2客人,3服务员,4管理员,5总管,6工程维修
|
||||
/// </summary>
|
||||
public byte CardType;
|
||||
|
||||
/// <summary>
|
||||
/// 取电卡编号
|
||||
/// </summary>
|
||||
public uint CardNumber;
|
||||
|
||||
/// <summary>
|
||||
/// CRC16
|
||||
/// </summary>
|
||||
public ushort CRC;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user