Files
Web_CRICS_Server_VS2010_Prod/RCUHost/Protocols/EnergySavingModePacket.cs
2025-12-11 09:17:16 +08:00

85 lines
1.8 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 EnergySavingModePacket
{
/// 温度修正值
public byte CorrectedTemp;
/// 到达温度后风机是否保持低速运行
public byte FanRunStatus;
//排风扇状态
/// 012定时
public byte ExhaustFanStatus;
/// 定时时长(分钟/每小时)
public byte ExhaustFanTime;
/// 红外延时断电时间(分)
public byte InfraredDelayPO;
/// 门磁延时断电时间(秒)
public ushort DoorDelayPO;
/// 拔卡延时断电时间(秒)
public ushort PullCardDelayPO;
/// 风机状态
/// fengji_status[0]; 插卡时状态
/// fengji_status[1]; 拔卡时状态
/// fengji_status[2]; 待租时状态
/// fengji_status[3]; 停租时状态
[MarshalAsAttribute(UnmanagedType.ByValArray, SizeConst = 4, ArraySubType = UnmanagedType.Struct)]
public FengJiStatus[] FengJiStatus;
/// <summary>
/// CRC16
/// </summary>
public ushort CRC;
}
/// <summary>
/// 风机状态
/// </summary>
[StructLayoutAttribute(LayoutKind.Sequential)]
public struct FengJiStatus
{
/// 01
public byte OnOff;
/// 0手动1自动
public byte Type;
/// 0停止1低速2中速3高速
public byte Speed;
/// 夏季温度
public byte SummerTemp;
/// 冬季温度
public byte WinterTemp;
/// 定时控制01
public byte TimingControl;
/// 定时时长(分钟/每小时)
public byte Timer;
/// 允许用电01
public byte AllowElectric;
}
}