Files

41 lines
667 B
C#
Raw Permalink Normal View History

2025-12-11 09:17:16 +08:00
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 AlarmPacket
{
/// <summary>
/// SOS
/// </summary>
public byte SOS;
/// <summary>
/// 门磁
/// </summary>
public byte Door;
/// <summary>
/// 取电卡类型
/// 1 无卡
/// 2经理卡
/// 3客人卡
/// 4服务卡
/// </summary>
public byte Card;
/// <summary>
/// CRC16
/// </summary>
public ushort CRC;
}
}