using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HDL_ON
{
///
/// a协议命令
///
public enum CommandType_A
{
write,
read,
}
///
/// 功能显示排序方式
///
public enum SortOrder
{
///
/// 无排序方式
///
None,
///
/// 使用次数
///
UsageCount,
///
/// 使用频率
///
UsageFrequency,
///
/// 手动排序
///
FixedSerialNumber,
}
///
/// 场景类型
///
public enum SceneType
{
///
/// 普通场景
///
OrdinaryScenes = 0x01,
///
/// 电影changing
///
MovieScene = 0x02,
}
///
/// 功能类别
///
public enum FunctionType
{
Scene = 0x0A01,
MovieScene = 0x0A02,
Relay = 0x0201,
Dimmer = 0x0202,
///
/// 色温
///
ColorTemperature =0x0203,
RGB = 0x0204,
Curtain = 0x0301,
MotorCurtain = 0x0303,
RollingShutter = 0x0304,
AC = 0x0401,
FloorHeating = 0x0402,
Fan = 0x1001,
TV = 0x1002,
Socket =0x0102,
PM25 = 0x0506,
CO2 = 0x0507,
Temp = 0x0502,
TVOC = 0x0505,
Humidity = 0x0503,
A31Music = 0x0902,
}
///
/// 功能类型
///
public enum FunctionCategory
{
UnKown = int.MaxValue,
///
/// 开关类
///
SwitchDevice = 0x01,
///
/// 场景
///
Scene = 0x0A,
///
/// 照明
///
Light = 0x02,
///
/// 遮阳
///
Curtain = 0x03,
///
/// 恒温器/空调/地热
///
Thermostat = 0x04,
/////
///// 窗帘
/////
//Curtain = 0x05,
/////
///// 空调
/////
//AC = 0x06,
/////
///// 地热
/////
//FloorHeating = 0x07,
/////
///// 新风
/////
//FreshAir = 0x08,
/////
///// 按键
/////
//Key = 0x09,
///
/// 音乐
///
Music = 0x09,
///
/// 传感器
///
Sensor = 0x05,
/////
///// 门锁
/////
//DoorLook = 0x0C,
/////
///// 时间
/////
//Timer = 0x0D,
/////
///// 计数器
/////
//Counter = 0x0E,
/////
///// 地理围栏
/////
//GeographicalFence = 0x0F,
///
/// 电器
///
Electrical = 0x10,
/////
///// 红外
/////
//IR = 0x11,
/////
///// DMX
/////
//DMX = 0x12,
/////
///// 电器
/////
//EelectricAppliance = 0x13,
/////
///// 天气
/////
//Weather = 0x14,
//DoorLock=0x15,
//Electric=0x16,
//EnergyMonitoring = 0x17,
//Environmental = 0x18,
//Panel = 0x19,
//SecurityMonitoring = 0x20,
//VideoIntercom = 0x21,
}
///
/// 功能类型
///
public enum ShowFunction
{
///
/// 场景
///
Scene = 1,
///
/// 逻辑
///
Logic = 2,
///
/// 安防
///
Security = 3,
///
/// 灯光
///
Light = 0x04,
///
/// 窗帘
///
Curtain = 0x05,
///
/// 空调
///
AC = 0x06,
///
/// 地热
///
FloorHeating = 0x07,
///
/// 新风
///
FreshAir = 0x08,
///
/// 按键
///
Key = 0x09,
///
/// 音乐
///
Music = 0x0A,
///
/// 传感器
///
Sensor = 0x0B,
///
/// 门锁
///
DoorLook = 0x0C,
///
/// 时间
///
Timer = 0x0D,
///
/// 计数器
///
Counter = 0x0E,
///
/// 地理围栏
///
GeographicalFence = 0x0F,
///
/// 干接点
///
DryContact = 0x10,
///
/// 红外
///
IR = 0x11,
///
/// DMX
///
DMX = 0x12,
///
/// 电器
///
EelectricAppliance = 0x13,
///
/// 天气
///
Weather = 0x14,
DoorLock = 0x15,
Electric = 0x16,
EnergyMonitoring = 0x17,
Environmental = 0x18,
Panel = 0x19,
SecurityMonitoring = 0x20,
VideoIntercom = 0x21,
}
public enum InfraredCode_TV
{
VolDown = 1,
ChannelUp,//00002=频道+
Menu,//00003=菜单
ChannelDown,//00004=频道-
VolUp,//00005=音量+
Power,//00006=电源键
Mute,//00007=静音
One,//00008=1
Two,//00009=2
Three,//00010=3
Four,//00011=4
Five,//00012=5
Six,//00013=6
Seven,//00014=7
Eight,//00015=8
Nine,//00016=9
Change,//00017=-/--
Zero,//00018=0
AV_TV,//00019=AV/TV
Back,//00020=返回
Confrim,//00021=确定
Up,//00022=上
Left,//00023=左
Right,//00024=右
Down,//00025=下
}
}