📄 profile.h
字号:
//------------------------------------------------------------------------------
// This file is part of the ZigBee DK package
// Copyright (c) 2007 RadioPulse Inc.
//------------------------------------------------------------------------------
// Profile.h : This code is generated by ZProfileBuilder.
// Generated Time (2007::10::03 19-29-14)
//
//------------------------------------------------------------------------------
//==========================================================================
//==========================================================================
//==========================================================================
#define ProfileZDP 0x0000
#define EndpointZDO 0x00
//==========================================================================
//==========================================================================
//==========================================================================
//-----------------------------------------------------------------------
// ZCL : STATUS
//-----------------------------------------------------------------------
#define zclSTA_SUCCESS 0x00 // Success
#define zclSTA_FAIL 0x01 // Fail
#define zclSTA_MALFORM_CMD 0x80 // Malformed Cmd
#define zclSTA_UNSUP_CCMD 0x81 // Unsupported Cluster Command
#define zclSTA_UNSUP_GCMD 0x82 // Unsupported General Command
#define zclSTA_UNSUP_MANU_CID 0x83 // Unsupported Manufacturer Cluster Command
#define zclSTA_UNSUP_MANU_GCMD 0x84 // Unsupported Manufacturer General Command
#define zclSTA_INV_FIELD 0x85 // Invalid Field
#define zclSTA_UNSUP_ATT 0x86 // Unsupported Attribute
#define zclSTA_INV_VALUE 0x87 // Invalid Attribute Value
#define zclSTA_READ_ONLY 0x88 // Read Only Attribute
#define zclSTA_INSUFF_SPACE 0x89 // Insufficient Space
#define zclSTA_DUPLE_EXISTS 0x8A // Entry is not created due to duplication(entry is already present)
#define zclSTA_NOT_FOUND 0x8B // Requested information is not found
#define zclSTA_UNREPORT_ATT 0x8C // Unreportable Attribute
#define zclSTA_INV_DTYPE 0x8D // Invalid Data Type
#define zclSTA_HW_FAIL 0xC0 // HW Fail
#define zclSTA_SW_FAIL 0xC1 // SW Fail
#define zclSTA_CALIB_ERROR 0xC2 // Calibration Error
//-----------------------------------------------------------------------
// ZCL : DATA TYPE
//-----------------------------------------------------------------------
#define ZCL_DTYPE_Null 0x00
#define ZCL_DTYPE_1Byte 0x08
#define ZCL_DTYPE_2Byte 0x09
#define ZCL_DTYPE_3Byte 0x0A
#define ZCL_DTYPE_4Byte 0x0B
#define ZCL_DTYPE_Bool 0x10
#define ZCL_DTYPE_8bit 0x18
#define ZCL_DTYPE_16bit 0x19
#define ZCL_DTYPE_24bit 0x1A
#define ZCL_DTYPE_32bit 0x1B
#define ZCL_DTYPE_UINT8 0x20
#define ZCL_DTYPE_UINT16 0x21
#define ZCL_DTYPE_UINT24 0x22
#define ZCL_DTYPE_UINT32 0x23
#define ZCL_DTYPE_INT8 0x28
#define ZCL_DTYPE_INT16 0x29
#define ZCL_DTYPE_INT24 0x2A
#define ZCL_DTYPE_INT32 0x2B
#define ZCL_DTYPE_Enum1B 0x30
#define ZCL_DTYPE_Enum2B 0x31
#define ZCL_DTYPE_Float2B 0x38
#define ZCL_DTYPE_Float4B 0x39
#define ZCL_DTYPE_Float8B 0x3A
#define ZCL_DTYPE_StrOctet 0x41 // length is defined in 1st octet
#define ZCL_DTYPE_StrChar 0x42 // length is defined in 1st octet
#define ZCL_DTYPE_Time 0xE0 // Len = 4Byte
#define ZCL_DTYPE_Date 0xE1 // Len = 4Byte
#define ZCL_DTYPE_CID 0xE8 // Len = 2Byte
#define ZCL_DTYPE_AttID 0xE9 // Len = 2Byte
#define ZCL_DTYPE_BAC 0xEA // Len = 4Byte, BACnet OID
#define ZCL_DTYPE_IEEE 0xF0 // Len = 8Byte
#define ZCL_DTYPE_Unknown 0xFF // Len = 0Byte
//-----------------------------------------------------------------------
// ZCL : Command
//-----------------------------------------------------------------------
#define ZCL_CMD_READ 0x00
#define ZCL_CMD_READ_RESPONSE 0x01
#define ZCL_CMD_WRITE 0x02
#define ZCL_CMD_WRITE_UNDIVIDE 0x03
#define ZCL_CMD_WRITE_RESPONSE 0x04
#define ZCL_CMD_WRITE_NORESPONSE 0x05
#define ZCL_CMD_CONFIG_REPORT 0x06
#define ZCL_CMD_CONFIG_REPORT_RSP 0x07
#define ZCL_CMD_READ_REPORT_CONFIG 0x08
#define ZCL_CMD_READ_REPORT_CONFIG_RSP 0x09
#define ZCL_CMD_REPORT 0x0A
#define ZCL_CMD_DEFAULT_RSP 0x0B
#define ZCL_CMD_DISCOVER_ATTRIBUTE 0x0C
#define ZCL_CMD_DISCOVER_ATTRIBUTE_RSP 0x0D
//-----------------------------------------------------------------------
// ZCL : Cluster
//-----------------------------------------------------------------------
// Function Domain : General
#define ZCL_ClusBasic 0x0000
#define ZCL_ClusPwrCfg 0x0001
#define ZCL_ClusTempCfg 0x0002
#define ZCL_ClusIdentify 0x0003
#define ZCL_ClusGroups 0x0004
#define ZCL_ClusScenes 0x0005
#define ZCL_ClusOnOff 0x0006
#define ZCL_ClusOnOff_AttOnOff 0x0000
#define ZCL_ClusOnOff_AttOnOff_DTYPE ZCL_DTYPE_Bool
#define ZCL_ClusOnOff_CmdOff 0x00
#define ZCL_ClusOnOff_CmdOn 0x01
#define ZCL_ClusOnOff_CmdTogg 0x02
#define ZCL_ClusOnOffSwCfg 0x0007
#define ZCL_ClusOnOffSwCfg_AttSwTyp 0x0000
#define ZCL_ClusOnOffSwCfg_AttSwTyp_DTYPE ZCL_DTYPE_Enum1B
#define ZCL_ClusOnOffSwCfg_AttSwTyp_Togg 0x00
#define ZCL_ClusOnOffSwCfg_AttSwTyp_Momen 0x01
#define ZCL_ClusOnOffSwCfg_AttSwAct 0x0010
#define ZCL_ClusOnOffSwCfg_AttSwAct_DTYPE ZCL_DTYPE_Enum1B
#define ZCL_ClusOnOffSwCfg_AttSwAct_On2Off 0x00
#define ZCL_ClusOnOffSwCfg_AttSwAct_Off2On 0x01
#define ZCL_ClusOnOffSwCfg_AttSwAct_Togg 0x02
#define ZCL_ClusLevelCtrl 0x0008
#define ZCL_ClusAlarms 0x0009
#define ZCL_ClusTime 0x000A
#define ZCL_ClusRssiLocate 0x000B
// Function Domain : Closures
#define ZCL_ClusShadeCfg 0x0100
// Function Domain : HVAC
#define ZCL_ClusPumpCtrl 0x0200
#define ZCL_ClusThermostat 0x0201
#define ZCL_ClusFanCtrl 0x0202
#define ZCL_ClusDehumiCtrl 0x0203
#define ZCL_ClusTherUsrCtrl 0x0204
// Function Domain : Lighting
#define ZCL_ClusColorCtrl 0x0300
#define ZCL_ClusBallastCtrl 0x0301
// Function Domain : Measurement and Sensing
#define ZCL_ClusIlluMeas 0x0400
#define ZCL_ClusIlluLvlSen 0x0401
#define ZCL_ClusTempMeas 0x0402
#define ZCL_ClusPressMeas 0x0403
#define ZCL_ClusFlowMeas 0x0404
#define ZCL_ClusReHumMeas 0x0405
#define ZCL_ClusOccuSen 0x0406
// Function Domain : Security and Safety
#define ZCL_ClusIASZone 0x0500
#define ZCL_ClusIASAce 0x0501
#define ZCL_ClusIASWD 0x0502
//==========================================================================
//==========================================================================
//==========================================================================
//-----------------------------------------------------------------------
//
// DEVICEs defined in Home-Automation(HA) Profile
//
//-----------------------------------------------------------------------
// Home-Automation : Generic
#define ProfileHA_DeviceID_OnOffSwitch 0x0000
#define ProfileHA_DeviceID_LevelCtrlSwitch 0x0001
#define ProfileHA_DeviceID_OnOffOutput 0x0002
#define ProfileHA_DeviceID_LevelCtrlOutput 0x0003
#define ProfileHA_DeviceID_SceneSelector 0x0004
#define ProfileHA_DeviceID_ConfigureTool 0x0005
#define ProfileHA_DeviceID_RemoteCtrl 0x0006
#define ProfileHA_DeviceID_CombInterface 0x0007
#define ProfileHA_DeviceID_RangeExtender 0x0008
#define ProfileHA_DeviceID_MainsPwrOutlet 0x0009
// Home-Automation : Lighting
#define ProfileHA_DeviceID_OnOffLight 0x0100
#define ProfileHA_DeviceID_DimmLight 0x0101
#define ProfileHA_DeviceID_ColorDimmLight 0x0102
#define ProfileHA_DeviceID_OnOffLightSwitch 0x0103
#define ProfileHA_DeviceID_DimmSwitch 0x0104
#define ProfileHA_DeviceID_ColorDimmSwitch 0x0105
#define ProfileHA_DeviceID_LightSensor 0x0106
#define ProfileHA_DeviceID_OccupySensor 0x0107
// Home-Automation : Closure
#define ProfileHA_DeviceID_Shade 0x0200
#define ProfileHA_DeviceID_ShadeController 0x0201
// Home-Automation : HVAC
#define ProfileHA_DeviceID_HeatCoolUnit 0x0300
#define ProfileHA_DeviceID_Thermostat 0x0301
#define ProfileHA_DeviceID_TempSensor 0x0302
#define ProfileHA_DeviceID_Pump 0x0303
#define ProfileHA_DeviceID_PumpController 0x0304
#define ProfileHA_DeviceID_PressureSensor 0x0305
#define ProfileHA_DeviceID_FlowSensor 0x0306
// Home-Automation : Intruder Alarm System
#define ProfileHA_DeviceID_IAS_Ctrl_Equip 0x0400
#define ProfileHA_DeviceID_IAS_AncilCtrller 0x0401
#define ProfileHA_DeviceID_IAS_Zone 0x0402
#define ProfileHA_DeviceID_IAS_WarnDevice 0x0403
//
//-----------------------------------------------------------------------
//
// ZigBee 2006
//
//-----------------------------------------------------------------------
#define ProfileHA 0x0104 // Profile : HA
#define ProfileHA_DevDoorLock_EP_01 0x01 // defined by user
#define ProfileHA_DevDoorLock_ID 0x1010 // defined by HA Profile
#define ProfileHA_DevDoorLock_ClusOnOff 0x0006
#define ProfileHA_DevDoorLock_ClusOnOff_AttOnOff 0x0000
#define ProfileHA_DevDoorLock_ClusOnOff_AttOnOff_DTYPE ZCL_DTYPE_Bool
//==========================================================================
//==========================================================================
//==========================================================================
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -