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 AirConditionStatusPacket
{
///
/// 空调标识符,从0开始编号
///
public byte AirConditionID;
///
/// 风机状态:0/停止, 1/运行
///
public byte Running;
///
/// 当前实际温度
///
public byte CurrentTemp;
///
/// 设定温度
///
public byte SettingTemp;
///
/// 风速:0/停止, 1/低速, 2/中速, 3/高速, 4/自动
///
public byte Speed;
///
/// 季节:0/冷风,1/暖风
///
public byte Season;
///
/// 冷阀门:0/关,1/开
///
public byte ColdValve;
///
/// 热阀门:0/关,1/开
///
public byte ThermalValve;
///
/// CRC16
///
public ushort CRC;
}
}