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;

	}
}
