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

65 lines
1.1 KiB
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 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;
}
}