zba.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. /**************************************************************************************************
  2. Filename: zba.h
  3. Revised: $Date: 2011-05-31 10:03:43 -0700 (Tue, 31 May 2011) $
  4. Revision: $Revision: 26156 $
  5. Description: This file contains the ZigBee Building Automation (ZBA)
  6. Profile definitions.
  7. Copyright 2011 Texas Instruments Incorporated. All rights reserved.
  8. IMPORTANT: Your use of this Software is limited to those specific rights
  9. granted under the terms of a software license agreement between the user
  10. who downloaded the software, his/her employer (which must be your employer)
  11. and Texas Instruments Incorporated (the "License"). You may not use this
  12. Software unless you agree to abide by the terms of the License. The License
  13. limits your use, and you acknowledge, that the Software may not be modified,
  14. copied or distributed unless embedded on a Texas Instruments microcontroller
  15. or used solely and exclusively in conjunction with a Texas Instruments radio
  16. frequency transceiver, which is integrated into your product. Other than for
  17. the foregoing purpose, you may not use, reproduce, copy, prepare derivative
  18. works of, modify, distribute, perform, display or sell this Software and/or
  19. its documentation for any purpose.
  20. YOU FURTHER ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE
  21. PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,
  22. INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE,
  23. NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL
  24. TEXAS INSTRUMENTS OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT,
  25. NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER
  26. LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
  27. INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE
  28. OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT
  29. OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
  30. (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
  31. Should you have any questions regarding your right to use this Software,
  32. contact Texas Instruments Incorporated at www.TI.com.
  33. **************************************************************************************************/
  34. #ifndef ZBA_H
  35. #define ZBA_H
  36. #ifdef __cplusplus
  37. extern "C"
  38. {
  39. #endif
  40. /*********************************************************************
  41. * INCLUDES
  42. */
  43. /*********************************************************************
  44. * CONSTANTS
  45. */
  46. // Zigbee Building Automation Profile Identification
  47. #define ZBA_PROFILE_ID 0x0105
  48. // Generic Device IDs
  49. #define ZBA_DEVICEID_ON_OFF_SWITCH 0x0000
  50. #define ZBA_DEVICEID_LEVEL_CONTROL_SWITCH 0x0001
  51. #define ZBA_DEVICEID_ON_OFF_OUTPUT 0x0002
  52. #define ZBA_DEVICEID_LEVEL_CONTROLLABLE_OUTPUT 0x0003
  53. #define ZBA_DEVICEID_SCENE_SELECTOR 0x0004
  54. #define ZBA_DEVICEID_CONFIGURATION_TOOL 0x0005
  55. #define ZBA_DEVICEID_REMOTE_CONTROL 0x0006
  56. #define ZBA_DEVICEID_COMBINED_INTERFACE 0x0007
  57. #define ZBA_DEVICEID_RANGE_EXTENDER 0x0008
  58. #define ZBA_DEVICEID_MAINS_POWER_OUTLET 0x0009
  59. #define ZBA_DEVICEID_CONST_BACNET_DEVICE 0x000A
  60. #define ZBA_DEVICEID_BACNET_TUNNEL_DEVICE 0x000B
  61. // Lighting Device IDs
  62. #define ZBA_DEVICEID_ON_OFF_LIGHT 0x0100
  63. #define ZBA_DEVICEID_DIMMABLE_LIGHT 0x0101
  64. #define ZBA_DEVICEID_COLORED_DIMMABLE_LIGHT 0x0102
  65. #define ZBA_DEVICEID_ON_OFF_LIGHT_SWITCH 0x0103
  66. #define ZBA_DEVICEID_DIMMER_SWITCH 0x0104
  67. #define ZBA_DEVICEID_COLOR_DIMMER_SWITCH 0x0105
  68. #define ZBA_DEVICEID_LIGHT_SENSOR 0x0106
  69. #define ZBA_DEVICEID_OCCUPANCY_SENSOR 0x0107
  70. #define ZBA_DEVICEID_ON_OFF_BALLAST 0x0108
  71. #define ZBA_DEVICEID_DIMMABLE_BALLAST 0x0109
  72. // Closures Device IDs
  73. #define ZBA_DEVICEID_SHADE 0x0200
  74. #define ZBA_DEVICEID_SHADE_CONTROLLER 0x0201
  75. // HVAC Device IDs
  76. #define ZBA_DEVICEID_HEATING_COOLING_UNIT 0x0300
  77. #define ZBA_DEVICEID_THERMOSTAT 0x0301
  78. #define ZBA_DEVICEID_TEMPERATURE_SENSOR 0x0302
  79. #define ZBA_DEVICEID_PUMP 0x0303
  80. #define ZBA_DEVICEID_PUMP_CONTROLLER 0x0304
  81. #define ZBA_DEVICEID_PRESSURE_SENSOR 0x0305
  82. #define ZBA_DEVICEID_FLOW_SENSOR 0x0306
  83. #define ZBA_DEVICEID_HUMIDITY_SENSOR 0x0307
  84. // Intruder Alarm Systems (IAS) Device IDs
  85. #define ZBA_DEVICEID_IAS_CONTROL_INDICATING_EQUIPMENT 0x0400
  86. #define ZBA_DEVICEID_IAS_ANCILLARY_CONTROL_EQUIPMENT 0x0401
  87. #define ZBA_DEVICEID_IAS_ZONE 0x0402
  88. #define ZBA_DEVICEID_IAS_WARNING_DEVICE 0x0403
  89. // Profile-specific APS Fragmentation configuration.
  90. #define ZBA_APSF_FRAME_DELAY 12
  91. #define ZBA_APSF_WINDOW_SIZE 3
  92. /*********************************************************************
  93. * MACROS
  94. */
  95. /*********************************************************************
  96. * TYPEDEFS
  97. */
  98. /*********************************************************************
  99. * VARIABLES
  100. */
  101. extern const uint8 zbaGlobalCommissioningEPID[];
  102. /*********************************************************************
  103. * FUNCTIONS
  104. */
  105. /*
  106. * ZBA Profile initialization function
  107. */
  108. extern void zba_Init( SimpleDescriptionFormat_t *simpleDesc );
  109. /*********************************************************************
  110. *********************************************************************/
  111. #ifdef __cplusplus
  112. }
  113. #endif
  114. #endif /* ZBA_H */