using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; namespace RCUHost.Protocols { /// /// 同步时间 Packet 服务器 -> RCU /// [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct SyncTimePacket { /// /// 年 /// public ushort Year; /// /// 月 /// public byte Month; /// /// 日 /// public byte Day; /// /// 星期(1~7),7代表星期日 /// public byte Week; /// /// 时 /// public byte Hour; /// /// 分 /// public byte Minute; /// /// 秒 /// public byte Second; /// /// 白天开始时间 /// public byte StartDayTime; /// /// 白天截止时间 /// public byte EndDayTime; /// /// CRC16 /// public ushort CRC; } }