初始化CRICS
This commit is contained in:
60
RCUHost/Protocols/AirConditionStatusPacket.cs
Normal file
60
RCUHost/Protocols/AirConditionStatusPacket.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
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 AirConditionStatusPacket
|
||||
{
|
||||
/// <summary>
|
||||
/// 空调标识符,从0开始编号
|
||||
/// </summary>
|
||||
public byte AirConditionID;
|
||||
|
||||
/// <summary>
|
||||
/// 风机状态:0/停止, 1/运行
|
||||
/// </summary>
|
||||
public byte Running;
|
||||
|
||||
/// <summary>
|
||||
/// 当前实际温度
|
||||
/// </summary>
|
||||
public byte CurrentTemp;
|
||||
|
||||
/// <summary>
|
||||
/// 设定温度
|
||||
/// </summary>
|
||||
public byte SettingTemp;
|
||||
|
||||
/// <summary>
|
||||
/// 风速:0/停止, 1/低速, 2/中速, 3/高速, 4/自动
|
||||
/// </summary>
|
||||
public byte Speed;
|
||||
|
||||
/// <summary>
|
||||
/// 季节:0/冷风,1/暖风
|
||||
/// </summary>
|
||||
public byte Season;
|
||||
|
||||
/// <summary>
|
||||
/// 冷阀门:0/关,1/开
|
||||
/// </summary>
|
||||
public byte ColdValve;
|
||||
|
||||
/// <summary>
|
||||
/// 热阀门:0/关,1/开
|
||||
/// </summary>
|
||||
public byte ThermalValve;
|
||||
|
||||
/// <summary>
|
||||
/// CRC16
|
||||
/// </summary>
|
||||
public ushort CRC;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user