wxr
2020-03-31 002a3f2e9d2f9579c01f88af12bd8a320003569f
HDL_ON/Entity/Enumerative/MyEnum.cs
@@ -6,16 +6,11 @@
namespace HDL_ON
{
    /// <summary>
    /// 设备模块类型
    /// 控制命令类型
    /// </summary>
    public enum ModuleType
    public enum CommandType
    {
        UnKown = int.MaxValue,
        /// <summary>
        /// 面板设备
        /// </summary>
        YIPanel = 0x0001,
    }
    /// <summary>
@@ -34,9 +29,26 @@
    }
    /// <summary>
    /// 功能类型
    /// 功能类别
    /// </summary>
    public enum FunctionType
    {
        Scene = 0x0001,
        MovieScene = 0x0002,
        Relay = 0x0101,
        Dimmer = 0x0102,
        RGB = 0x0103,
        Curtain = 0x0201,
        MotorCurtain = 0x0202,
        RollingShutter = 0x0203,
        AC = 0x0301,
        FloorHeating = 0x0401,
    }
    /// <summary>
    /// 功能类型
    /// </summary>
    public enum FunctionCategory
    {
        UnKown = int.MaxValue,
@@ -122,319 +134,21 @@
        /// </summary>
        Weather = 0x14,
    }
    /// <summary>
    /// 设备类型
    /// </summary>
    public enum DeviceType
    {
        //新加
        SonosMusic = 0x1111,
        DoorLock=0x15,
        Electric=0x16,
        MechanicalSwitch = 0x1200,
        AutomaticSwitch = 0x1201,
        DoorLockID = 0x1202,
        EnergyMonitoring = 0x17,
        Environmental = 0x18,
        UnKown = int.MaxValue,
        Panel = 0x19,
        /// <summary>
        /// 窗帘模块
        /// </summary>
        CurtainModel = 0x0202,
        /// <summary>
        /// 开合帘电机
        /// </summary>
        CurtainTrietex = 0x0200,
        /// <summary>
        /// 卷帘
        /// </summary>
        CurtainRoller = 0x0201,
        /// <summary>
        /// 调光灯
        /// </summary>
        LightDimming = 0x0100,
        /// <summary>
        /// 开关灯
        /// </summary>
        LightSwitch = 0x0101,
        LightCCT = 0x0102,
        LightRGB = 0x0103,
        LightRGBW = 0x0104,
        LightRGBandCCT = 0x0105,
        LightDALI = 0x0107,
        LightLogic = 0x0108,
        LightMixDimming = 0x0109,
        LightMixSwitch = 0x010A,
        LightEnergySwitch = 0x010B,//能源开关,带功率的继电器
        LightSwitchSocket = 0x0188,//自定义特殊的继电器,作插座使用
        /// <summary>
        /// 窗帘
        /// </summary>
        //Curtain = 0x0200,
        /// <summary>
        /// The AC device.
        /// </summary>
        ACDevice = 0x07FF,
        /// <summary>
        /// AC模块
        /// </summary>
        HVAC = 0x0700,
        /// <summary>
        /// 通用空调面板
        /// </summary>
        ACPanel = 0x0703,
        /// <summary>
        /// 红外空调
        /// </summary>
        ACInfrared = 0x0702,
        /// <summary>
        /// The AC coolmaster控制模块
        /// </summary>
        ACCoolmaster = 0x0701,
        /// <summary>
        /// 地热
        /// </summary>
        FoolHeat = 0x0800,
        /// <summary>
        /// 常规地热面板
        /// </summary>
        FoolHeatPanel = 0x0801,
        /// <summary>
        /// 新风系统
        /// </summary>
        FreshAir = 0x1300,
        SecurityMonitoring = 0x20,
        /// <summary>
        /// 无线网关
        /// </summary>
        OnePortWirelessFR = 0xFE01,
        OnePortBus = 0xFE00,
        RCU = 0xFE04,
        SuperWireless = 0xFE05,
        DMX48 = 0xFD04,
        /// <summary>
        /// 按键面板
        /// </summary>
        ButtonPanel = 0x0401,
        /// <summary>
        /// 干接点
        /// </summary>
        DryContact = 0x0400,
        /// <summary>
        /// 毛细血管空调
        /// </summary>
        Thermostat = 0x0705,
        //WirelessNetManage = 0x1D34,
        MusicModel = 0x0900,
        MusicPanel = 0x0902,
        MusicA31 = 0x0903,
        InfraredMode = 0x0300,
        A31MusicModel = 0x0901,
        InfraredTV = 0x0305,
        InfraredSTB = 0x0303,
        InfraredProjetor = 0x0301,
        /// <summary>
        /// 安防模块
        /// </summary>
        SecurityModule = 0x0A00,
        /// <summary>
        /// 安防面板
        /// </summary>
        SecurityPanel = 0x0A02,
        /// <summary>
        /// 风扇模块
        /// </summary>
        FanModule = 0x1000,
        /// <summary>
        /// 逻辑控制模块
        /// </summary>
        LogicModule = 0x0C00,
        /// <summary>
        /// 通用开关
        /// </summary>
        UniversalDevice = 0x6400,
        DoorLock = 0x1203,
        /// <summary>
        /// The sensor.
        /// </summary>
        Sensor = 0x0500,
        /// <summary>
        /// 移动探测(01)
        /// </summary>
        SensorMobileDetection = 0x0501,
        /// <summary>
        /// 温度
        /// </summary>
        SensorTemperature = 0x0502,
        /// <summary>
        /// 湿度
        /// </summary>
        SensorHumidity = 0x0503,
        /// <summary>
        /// 光照
        /// </summary>
        SensorIllumination =0x0504,
        /// <summary>
        /// VOC(05)
        /// </summary>
        SensorTVOC = 0x0505,
        /// <summary>
        /// The sensor PM 25.
        /// </summary>
        SensorPM25 = 0x0506,
        /// <summary>
        /// The sensor CO2.
        /// </summary>
        SensorCO2 = 0x0507,
        /// <summary>
        /// 液化石油气(LPG)(08)
        /// </summary>
        SensorLPG = 0x0508,
        /// <summary>
        /// 人工煤气(CO,H2)(09)
        /// </summary>
        SensorCOH2 = 0x0509,
        /// <summary>
        /// 天然气(CH4)(10)
        /// </summary>
        SensorCH4 = 0x0510,
        /// <summary>
        /// 烟雾(11)
        /// </summary>
        SensorSmoke = 0x0511,
        /// <summary>
        /// 风速(12)
        /// </summary>
        SensorWindSpeed = 0x0512,
        /// <summary>
        /// 风压(13)
        /// </summary>
        SensorWindPressure = 0x0513,
        /// <summary>
        /// 液体流量(14)
        /// </summary>
        SensorLiquidFlow = 0x0514,
        /// <summary>
        /// 液体压力(15)
        /// </summary>
        SensorLiquidPressure = 0x0515,
        /// <summary>
        /// 液体深度(16)
        /// </summary>
        SensorLiquidDepth = 0x0516,
        /// <summary>
        /// 雨量(17)
        /// </summary>
        SensorRainfall = 0x0517,
        /// <summary>
        /// 重量
        /// </summary>
        SensorWeight = 0x0518,
        /// <summary>
        /// 高度/长度
        /// </summary>
        SensorHeightLength  = 0x0519,
        /// <summary>
        /// 物体速度(20)
        /// </summary>
        SensorVelocity = 0x0520,
        /// <summary>
        /// 震动(21)
        /// </summary>
        SensorVibration = 0x0521,
        /// <summary>
        /// 电压
        /// </summary>
        SensorVoltage = 0x0522,
        /// <summary>
        /// 电流
        /// </summary>
        SensorCurrent = 0x0523,
        /// <summary>
        /// 功率
        /// </summary>
        SensorPower = 0x0524,
        /// <summary>
        /// 水浸(25)
        /// </summary>
        SensorWater = 0x0525,
        /// <summary>
        /// 门磁、窗磁(26)
        /// </summary>
        SensorMenciAndwindowMagnetic = 0x0526,
        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=下
    }
    public enum InfraredCode_STB
    {
        Standby = 1,
        One,
        Two,
        Three,
        Four,
        Five,
        Six,
        Seven,
        Eight,
        Nine,
        //Change,
        HomePage,
        Zero,
        Back,
        Up,
        Left,
        Confrim,
        Right,
        Down,
        VolUp,
        VolDown,
        ChannelUp,
        ChannelDown,
        Menu,
    }
}