Files
2025-12-11 09:17:16 +08:00

36 lines
709 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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;
}
}