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 SyncTimePacket
	{
		/// <summary>
		/// 年
		/// </summary>
		public ushort Year;

		/// <summary>
		/// 月
		/// </summary>
		public byte Month;

		/// <summary>
		/// 日
		/// </summary>
		public byte Day;

		/// <summary>
		/// 星期(1~7)，7代表星期日
		/// </summary>
		public byte Week;

		/// <summary>
		/// 时
		/// </summary>
		public byte Hour;

		/// <summary>
		/// 分
		/// </summary>
		public byte Minute;
        /// <summary>
        /// 秒
        /// </summary>
        public byte Second;

		/// <summary>
		/// 白天开始时间
		/// </summary>
        public byte StartDayTime;

        /// <summary>
        /// 白天截止时间
        /// </summary>
        public byte EndDayTime;

		/// <summary>
		/// CRC16
		/// </summary>
		public ushort CRC;
	}
}
