11#ifndef TR_ZCL_ENDPOINT_CONFIG_H
12#define TR_ZCL_ENDPOINT_CONFIG_H
14#include "zb_zcl_common.h"
15#include "zboss_api_internal.h"
20#define TR_DEVICE_MANUFACTURER_ID 0x1570U
21#define TR_GLOBAL_RESPONSE_POLICY ZB_ZCL_DISABLE_DEFAULT_RESPONSE
23#define TR_ZCL_NULL_EP_ID 0xFFU
24#define TR_ZCL_NULL_ID 0xFFFFU
25#define TR_ZCL_NON_MANUFACTURER_SPECIFIC 0xFFFFU
29#define TR_DEVICE_EP1 1
32#define TR_DEVICE_NUM_IN_CLUSTERS_EP1 (0+1+1+1+1+1+1+1+1+1+1+1)
33#define TR_DEVICE_NUM_OUT_CLUSTERS_EP1 (0+1+1+1)
35#if defined ZB_APS_ENCRYPTION_PER_CLUSTER
75 zb_uint8_t manufacturer_name[33];
76 zb_uint8_t model_identifier[33];
221#define BASIC_SERVER_VERSION_DEFAULT_EP1 8
222#define BASIC_SERVER_HW_VERSION_DEFAULT_EP1 1
223#define BASIC_SERVER_MANUFACTURER_NAME_DEFAULT_EP1 "Trident IoT"
224#define BASIC_SERVER_MODEL_IDENTIFIER_DEFAULT_EP1 "Door Lock"
225#define BASIC_SERVER_POWER_SOURCE_DEFAULT_EP1 3
226#define BASIC_SERVER_CLUSTER_REVISION_SERVER_DEFAULT_EP1 3
229#define POWER_CONFIGURATION_SERVER_BATTERY_VOLTAGE_DEFAULT_EP1 60
230#define POWER_CONFIGURATION_SERVER_BATTERY_PERCENTAGE_REMAINING_DEFAULT_EP1 200
231#define POWER_CONFIGURATION_SERVER_BATTERY_SIZE_DEFAULT_EP1 0x03
232#define POWER_CONFIGURATION_SERVER_BATTERY_QUANTITY_DEFAULT_EP1 4
233#define POWER_CONFIGURATION_SERVER_BATTERY_ALARM_MASK_DEFAULT_EP1 0x00
234#define POWER_CONFIGURATION_SERVER_BATTERY_VOLTAGE_MIN_THRESHOLD_DEFAULT_EP1 40
235#define POWER_CONFIGURATION_SERVER_BATTERY_VOLTAGE_THRESHOLD_1_DEFAULT_EP1 41
236#define POWER_CONFIGURATION_SERVER_BATTERY_VOLTAGE_THRESHOLD_2_DEFAULT_EP1 42
237#define POWER_CONFIGURATION_SERVER_BATTERY_VOLTAGE_THRESHOLD_3_DEFAULT_EP1 43
238#define POWER_CONFIGURATION_SERVER_BATTERY_ALARM_STATE_DEFAULT_EP1 0x00000000
239#define POWER_CONFIGURATION_SERVER_CLUSTER_REVISION_SERVER_DEFAULT_EP1 2
242#define IDENTIFY_CLIENT_CLUSTER_REVISION_CLIENT_DEFAULT_EP1 2
245#define IDENTIFY_SERVER_IDENTIFY_TIME_DEFAULT_EP1 0
246#define IDENTIFY_SERVER_CLUSTER_REVISION_SERVER_DEFAULT_EP1 2
249#define GROUPS_SERVER_GROUP_NAME_SUPPORT_DEFAULT_EP1 0
250#define GROUPS_SERVER_CLUSTER_REVISION_SERVER_DEFAULT_EP1 3
253#define SCENES_SERVER_SCENE_COUNT_DEFAULT_EP1 0x00
254#define SCENES_SERVER_CURRENT_SCENE_DEFAULT_EP1 0x00
255#define SCENES_SERVER_CURRENT_GROUP_DEFAULT_EP1 0x0000
256#define SCENES_SERVER_SCENE_VALID_DEFAULT_EP1 0x00
257#define SCENES_SERVER_SCENE_NAME_SUPPORT_DEFAULT_EP1 0
258#define SCENES_SERVER_CLUSTER_REVISION_SERVER_DEFAULT_EP1 3
261#define ALARMS_SERVER_CLUSTER_REVISION_SERVER_DEFAULT_EP1 0x0001
264#define TIME_CLIENT_CLUSTER_REVISION_CLIENT_DEFAULT_EP1 2
267#define OVER_THE_AIR_BOOTLOADING_CLIENT_UPGRADE_SERVER_ID_DEFAULT_EP1 (zb_ieee_addr_t){ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
268#define OVER_THE_AIR_BOOTLOADING_CLIENT_FILE_OFFSET_DEFAULT_EP1 0xffffffff
269#define OVER_THE_AIR_BOOTLOADING_CLIENT_CURRENT_FILE_VERSION_DEFAULT_EP1 0x01020304
270#define OVER_THE_AIR_BOOTLOADING_CLIENT_CURRENT_ZIGBEE_STACK_VERSION_DEFAULT_EP1 0x0002
271#define OVER_THE_AIR_BOOTLOADING_CLIENT_DOWNLOADED_FILE_VERSION_DEFAULT_EP1 0x0
272#define OVER_THE_AIR_BOOTLOADING_CLIENT_DOWNLOADED_ZIGBEE_STACK_VERSION_DEFAULT_EP1 0x0002
273#define OVER_THE_AIR_BOOTLOADING_CLIENT_IMAGE_UPGRADE_STATUS_DEFAULT_EP1 0x00
274#define OVER_THE_AIR_BOOTLOADING_CLIENT_IMAGE_TYPE_ID_DEFAULT_EP1 0x0002
275#define OVER_THE_AIR_BOOTLOADING_CLIENT_MINIMUM_BLOCK_REQUEST_PERIOD_DEFAULT_EP1 0
276#define OVER_THE_AIR_BOOTLOADING_CLIENT_CLUSTER_REVISION_CLIENT_DEFAULT_EP1 4
279#define POLL_CONTROL_SERVER_CHECK_IN_INTERVAL_DEFAULT_EP1 0x00001950
280#define POLL_CONTROL_SERVER_LONG_POLL_INTERVAL_DEFAULT_EP1 0x00000014
281#define POLL_CONTROL_SERVER_SHORT_POLL_INTERVAL_DEFAULT_EP1 0x0002
282#define POLL_CONTROL_SERVER_FAST_POLL_TIMEOUT_DEFAULT_EP1 0x0028
283#define POLL_CONTROL_SERVER_CHECK_IN_INTERVAL_MIN_DEFAULT_EP1 0x000001e0
284#define POLL_CONTROL_SERVER_LONG_POLL_INTERVAL_MIN_DEFAULT_EP1 0x0000000c
285#define POLL_CONTROL_SERVER_FAST_POLL_TIMEOUT_MAX_DEFAULT_EP1 0x0028
286#define POLL_CONTROL_SERVER_CLUSTER_REVISION_SERVER_DEFAULT_EP1 3
289#define DOOR_LOCK_SERVER_LOCK_STATE_DEFAULT_EP1 0
290#define DOOR_LOCK_SERVER_LOCK_TYPE_DEFAULT_EP1 0
291#define DOOR_LOCK_SERVER_ACTUATOR_ENABLED_DEFAULT_EP1 1
292#define DOOR_LOCK_SERVER_NUM_TOTAL_USERS_SUPPORTED_DEFAULT_EP1 0x0008
293#define DOOR_LOCK_SERVER_NUM_PIN_USERS_SUPPORTED_DEFAULT_EP1 0x0008
294#define DOOR_LOCK_SERVER_MAX_PIN_LENGTH_DEFAULT_EP1 0x04
295#define DOOR_LOCK_SERVER_MIN_PIN_LENGTH_DEFAULT_EP1 0x04
296#define DOOR_LOCK_SERVER_AUTO_RELOCK_TIME_DEFAULT_EP1 0x00
297#define DOOR_LOCK_SERVER_OPERATING_MODE_DEFAULT_EP1 0x00
298#define DOOR_LOCK_SERVER_SUPPORTED_OPERATING_MODES_DEFAULT_EP1 0x01
299#define DOOR_LOCK_SERVER_WRONG_CODE_ENTRY_LIMIT_DEFAULT_EP1 3
300#define DOOR_LOCK_SERVER_USER_CODE_TEMPORARY_DISABLE_TIME_DEFAULT_EP1 30
301#define DOOR_LOCK_SERVER_REQUIRE_PIN_FOR_RF_OPERATION_DEFAULT_EP1 0x01
302#define DOOR_LOCK_SERVER_ZIGBEE_SECURITY_LEVEL_DEFAULT_EP1 0x00
303#define DOOR_LOCK_SERVER_KEYPAD_OPERATION_EVENT_MASK_DEFAULT_EP1 0xFFFF
304#define DOOR_LOCK_SERVER_RF_OPERATION_EVENT_MASK_DEFAULT_EP1 0xFFFF
305#define DOOR_LOCK_SERVER_MANUAL_OPERATION_EVENT_MASK_DEFAULT_EP1 0xFFFF
306#define DOOR_LOCK_SERVER_CLUSTER_REVISION_SERVER_DEFAULT_EP1 3
309#define TEMPERATURE_MEASUREMENT_SERVER_TEMP_MEASURED_VALUE_DEFAULT_EP1 0x8000
310#define TEMPERATURE_MEASUREMENT_SERVER_TEMP_MIN_MEASURED_VALUE_DEFAULT_EP1 -2000
311#define TEMPERATURE_MEASUREMENT_SERVER_TEMP_MAX_MEASURED_VALUE_DEFAULT_EP1 5000
312#define TEMPERATURE_MEASUREMENT_SERVER_CLUSTER_REVISION_SERVER_DEFAULT_EP1 3
315#define DIAGNOSTICS_SERVER_NUMBER_OF_RESETS_DEFAULT_EP1 0x0000
316#define DIAGNOSTICS_SERVER_MAC_RX_BCAST_DEFAULT_EP1 0x0000
317#define DIAGNOSTICS_SERVER_MAC_TX_BCAST_DEFAULT_EP1 0x0000
318#define DIAGNOSTICS_SERVER_MAC_RX_UCAST_DEFAULT_EP1 0x0000
319#define DIAGNOSTICS_SERVER_MAC_TX_UCAST_DEFAULT_EP1 0x0000
320#define DIAGNOSTICS_SERVER_MAC_TX_UCAST_RETRY_DEFAULT_EP1 0x0000
321#define DIAGNOSTICS_SERVER_MAC_TX_UCAST_FAIL_DEFAULT_EP1 0x0000
322#define DIAGNOSTICS_SERVER_APS_RX_BCAST_DEFAULT_EP1 0x0000
323#define DIAGNOSTICS_SERVER_APS_TX_BCAST_DEFAULT_EP1 0x0000
324#define DIAGNOSTICS_SERVER_APS_UCAST_SUCCESS_DEFAULT_EP1 0x0000
325#define DIAGNOSTICS_SERVER_APS_TX_UCAST_RETRY_DEFAULT_EP1 0x0000
326#define DIAGNOSTICS_SERVER_APS_TX_UCAST_FAIL_DEFAULT_EP1 0x0000
327#define DIAGNOSTICS_SERVER_ROUTE_DISC_INITIATED_DEFAULT_EP1 0x0000
328#define DIAGNOSTICS_SERVER_NEIGHBOR_ADDED_DEFAULT_EP1 0x0000
329#define DIAGNOSTICS_SERVER_NEIGHBOR_REMOVED_DEFAULT_EP1 0x0000
330#define DIAGNOSTICS_SERVER_NEIGHBOR_STALE_DEFAULT_EP1 0x0000
331#define DIAGNOSTICS_SERVER_JOIN_INDICATION_DEFAULT_EP1 0x0000
332#define DIAGNOSTICS_SERVER_CHILD_MOVED_DEFAULT_EP1 0x0000
333#define DIAGNOSTICS_SERVER_NWK_FC_FAILURE_DEFAULT_EP1 0x0000
334#define DIAGNOSTICS_SERVER_APS_FC_FAILURE_DEFAULT_EP1 0x0000
335#define DIAGNOSTICS_SERVER_APS_UNAUTHORIZED_KEY_DEFAULT_EP1 0x0000
336#define DIAGNOSTICS_SERVER_NWK_DECRYPT_FAILURE_DEFAULT_EP1 0x0000
337#define DIAGNOSTICS_SERVER_APS_DECRYPT_FAILURE_DEFAULT_EP1 0x0000
338#define DIAGNOSTICS_SERVER_PACKET_BUFFER_ALLOC_FAILURES_DEFAULT_EP1 0x0000
339#define DIAGNOSTICS_SERVER_PHY_TO_MAC_QUEUE_LIMIT_REACHED_DEFAULT_EP1 0x0000
340#define DIAGNOSTICS_SERVER_PACKET_VALIDATE_DROP_COUNT_DEFAULT_EP1 0x0000
341#define DIAGNOSTICS_SERVER_AVERAGE_MAC_RETRY_PER_APS_MSG_SENT_DEFAULT_EP1 0x0000
342#define DIAGNOSTICS_SERVER_LAST_MESSAGE_LQI_DEFAULT_EP1 0x0000
343#define DIAGNOSTICS_SERVER_LAST_MESSAGE_RSSI_DEFAULT_EP1 0x0000
344#define DIAGNOSTICS_SERVER_CLUSTER_REVISION_SERVER_DEFAULT_EP1 3
347#define REMOTE_CLI_SERVER_CLI_STATUS_DEFAULT_EP1 0x0000
348#define REMOTE_CLI_SERVER_CLUSTER_REVISION_SERVER_DEFAULT_EP1 0x0001
354#define ALARMS_SERVER_SUPPORTED_COMMANDS_RECEIVE \
355 TR_ZCL_CMD_RESET_ALARM_ID, \
356 TR_ZCL_CMD_RESET_ALL_ALARMS_ID
359#define BASIC_SERVER_SUPPORTED_COMMANDS_RECEIVE \
360 TR_ZCL_CMD_RESET_TO_FACTORY_DEFAULTS_ID
363#define DOOR_LOCK_SERVER_SUPPORTED_COMMANDS_RECEIVE \
364 TR_ZCL_CMD_LOCK_DOOR_ID, \
365 TR_ZCL_CMD_UNLOCK_DOOR_ID, \
366 TR_ZCL_CMD_SET_PIN_ID, \
367 TR_ZCL_CMD_GET_PIN_ID, \
368 TR_ZCL_CMD_CLEAR_PIN_ID, \
369 TR_ZCL_CMD_CLEAR_ALL_PINS_ID, \
370 TR_ZCL_CMD_SET_USER_STATUS_ID, \
371 TR_ZCL_CMD_GET_USER_STATUS_ID, \
372 TR_ZCL_CMD_SET_USER_TYPE_ID, \
373 TR_ZCL_CMD_GET_USER_TYPE_ID
376#define GROUPS_SERVER_SUPPORTED_COMMANDS_RECEIVE \
377 TR_ZCL_CMD_ADD_GROUP_ID, \
378 TR_ZCL_CMD_VIEW_GROUP_ID, \
379 TR_ZCL_CMD_GET_GROUP_MEMBERSHIP_ID, \
380 TR_ZCL_CMD_REMOVE_GROUP_ID, \
381 TR_ZCL_CMD_REMOVE_ALL_GROUPS_ID, \
382 TR_ZCL_CMD_ADD_GROUP_IF_IDENTIFYING_ID
385#define IDENTIFY_CLIENT_SUPPORTED_COMMANDS_RECEIVE \
386 TR_ZCL_CMD_IDENTIFY_QUERY_RESPONSE_ID
389#define IDENTIFY_SERVER_SUPPORTED_COMMANDS_RECEIVE \
390 TR_ZCL_CMD_IDENTIFY_ID, \
391 TR_ZCL_CMD_IDENTIFY_QUERY_ID, \
392 TR_ZCL_CMD_TRIGGER_EFFECT_ID
395#define OVER_THE_AIR_BOOTLOADING_CLIENT_SUPPORTED_COMMANDS_RECEIVE \
396 TR_ZCL_CMD_IMAGE_NOTIFY_ID, \
397 TR_ZCL_CMD_QUERY_NEXT_IMAGE_RESPONSE_ID, \
398 TR_ZCL_CMD_IMAGE_BLOCK_RESPONSE_ID, \
399 TR_ZCL_CMD_UPGRADE_END_RESPONSE_ID
402#define POLL_CONTROL_SERVER_SUPPORTED_COMMANDS_RECEIVE \
403 TR_ZCL_CMD_CHECK_IN_RESPONSE_ID, \
404 TR_ZCL_CMD_FAST_POLL_STOP_ID, \
405 TR_ZCL_CMD_SET_LONG_POLL_INTERVAL_ID, \
406 TR_ZCL_CMD_SET_SHORT_POLL_INTERVAL_ID
409#define REMOTE_CLI_SERVER_SUPPORTED_COMMANDS_RECEIVE \
410 TR_ZCL_CMD_CLI_COMMAND_ID, \
411 TR_ZCL_CMD_ENABLE_REMOTE_CLI_ID
414#define SCENES_SERVER_SUPPORTED_COMMANDS_RECEIVE \
415 TR_ZCL_CMD_ADD_SCENE_ID, \
416 TR_ZCL_CMD_VIEW_SCENE_ID, \
417 TR_ZCL_CMD_REMOVE_SCENE_ID, \
418 TR_ZCL_CMD_REMOVE_ALL_SCENES_ID, \
419 TR_ZCL_CMD_STORE_SCENE_ID, \
420 TR_ZCL_CMD_RECALL_SCENE_ID, \
421 TR_ZCL_CMD_GET_SCENE_MEMBERSHIP_ID
424#define ALARMS_SERVER_SUPPORTED_COMMANDS_SEND \
428#define DOOR_LOCK_SERVER_SUPPORTED_COMMANDS_SEND \
429 TR_ZCL_CMD_LOCK_DOOR_RESPONSE_ID, \
430 TR_ZCL_CMD_UNLOCK_DOOR_RESPONSE_ID, \
431 TR_ZCL_CMD_SET_PIN_RESPONSE_ID, \
432 TR_ZCL_CMD_GET_PIN_RESPONSE_ID, \
433 TR_ZCL_CMD_CLEAR_PIN_RESPONSE_ID, \
434 TR_ZCL_CMD_CLEAR_ALL_PINS_RESPONSE_ID, \
435 TR_ZCL_CMD_SET_USER_STATUS_RESPONSE_ID, \
436 TR_ZCL_CMD_GET_USER_STATUS_RESPONSE_ID, \
437 TR_ZCL_CMD_SET_USER_TYPE_RESPONSE_ID, \
438 TR_ZCL_CMD_GET_USER_TYPE_RESPONSE_ID, \
439 TR_ZCL_CMD_OPERATION_EVENT_NOTIFICATION_ID
442#define GROUPS_SERVER_SUPPORTED_COMMANDS_SEND \
443 TR_ZCL_CMD_ADD_GROUP_RESPONSE_ID, \
444 TR_ZCL_CMD_VIEW_GROUP_RESPONSE_ID, \
445 TR_ZCL_CMD_GET_GROUP_MEMBERSHIP_RESPONSE_ID, \
446 TR_ZCL_CMD_REMOVE_GROUP_RESPONSE_ID
449#define IDENTIFY_CLIENT_SUPPORTED_COMMANDS_SEND \
450 TR_ZCL_CMD_IDENTIFY_ID, \
451 TR_ZCL_CMD_IDENTIFY_QUERY_ID, \
452 TR_ZCL_CMD_TRIGGER_EFFECT_ID
455#define IDENTIFY_SERVER_SUPPORTED_COMMANDS_SEND \
456 TR_ZCL_CMD_IDENTIFY_QUERY_RESPONSE_ID
459#define OVER_THE_AIR_BOOTLOADING_CLIENT_SUPPORTED_COMMANDS_SEND \
460 TR_ZCL_CMD_QUERY_NEXT_IMAGE_REQUEST_ID, \
461 TR_ZCL_CMD_IMAGE_BLOCK_REQUEST_ID, \
462 TR_ZCL_CMD_UPGRADE_END_REQUEST_ID
465#define POLL_CONTROL_SERVER_SUPPORTED_COMMANDS_SEND \
466 TR_ZCL_CMD_CHECK_IN_ID
469#define REMOTE_CLI_SERVER_SUPPORTED_COMMANDS_SEND \
470 TR_ZCL_CMD_CLI_COMMAND_RESPONSE_ID
473#define SCENES_SERVER_SUPPORTED_COMMANDS_SEND \
474 TR_ZCL_CMD_ADD_SCENE_RESPONSE_ID, \
475 TR_ZCL_CMD_VIEW_SCENE_RESPONSE_ID, \
476 TR_ZCL_CMD_REMOVE_SCENE_RESPONSE_ID, \
477 TR_ZCL_CMD_REMOVE_ALL_SCENES_RESPONSE_ID, \
478 TR_ZCL_CMD_STORE_SCENE_RESPONSE_ID, \
479 TR_ZCL_CMD_GET_SCENE_MEMBERSHIP_RESPONSE_ID
484#define TR_NUM_NVRAM_ATTR (0+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1)
486#define TR_NVRAM_ATTR_STORAGE_CONFIG \
488 { TR_DEVICE_EP1,TR_ZCL_CLUSTER_POWER_CONFIGURATION_ID,TR_ZCL_ATTR_POWER_CONFIGURATION_BATTERY_ALARM_MASK_ID, \
489 TR_ZCL_CLUSTER_SERVER_ROLE,TR_ZCL_NON_MANUFACTURER_SPECIFIC,TR_ZCL_BITMAP8_ATTR_TYPE }, \
490 { TR_DEVICE_EP1,TR_ZCL_CLUSTER_POWER_CONFIGURATION_ID,TR_ZCL_ATTR_POWER_CONFIGURATION_BATTERY_VOLTAGE_MIN_THRESHOLD_ID, \
491 TR_ZCL_CLUSTER_SERVER_ROLE,TR_ZCL_NON_MANUFACTURER_SPECIFIC,TR_ZCL_INT8U_ATTR_TYPE }, \
492 { TR_DEVICE_EP1,TR_ZCL_CLUSTER_POWER_CONFIGURATION_ID,TR_ZCL_ATTR_POWER_CONFIGURATION_BATTERY_VOLTAGE_THRESHOLD_1_ID, \
493 TR_ZCL_CLUSTER_SERVER_ROLE,TR_ZCL_NON_MANUFACTURER_SPECIFIC,TR_ZCL_INT8U_ATTR_TYPE }, \
494 { TR_DEVICE_EP1,TR_ZCL_CLUSTER_POWER_CONFIGURATION_ID,TR_ZCL_ATTR_POWER_CONFIGURATION_BATTERY_VOLTAGE_THRESHOLD_2_ID, \
495 TR_ZCL_CLUSTER_SERVER_ROLE,TR_ZCL_NON_MANUFACTURER_SPECIFIC,TR_ZCL_INT8U_ATTR_TYPE }, \
496 { TR_DEVICE_EP1,TR_ZCL_CLUSTER_POWER_CONFIGURATION_ID,TR_ZCL_ATTR_POWER_CONFIGURATION_BATTERY_VOLTAGE_THRESHOLD_3_ID, \
497 TR_ZCL_CLUSTER_SERVER_ROLE,TR_ZCL_NON_MANUFACTURER_SPECIFIC,TR_ZCL_INT8U_ATTR_TYPE }, \
498 { TR_DEVICE_EP1,TR_ZCL_CLUSTER_OVER_THE_AIR_BOOTLOADING_ID,TR_ZCL_ATTR_OVER_THE_AIR_BOOTLOADING_FILE_OFFSET_ID, \
499 TR_ZCL_CLUSTER_CLIENT_ROLE,TR_ZCL_NON_MANUFACTURER_SPECIFIC,TR_ZCL_INT32U_ATTR_TYPE }, \
500 { TR_DEVICE_EP1,TR_ZCL_CLUSTER_OVER_THE_AIR_BOOTLOADING_ID,TR_ZCL_ATTR_OVER_THE_AIR_BOOTLOADING_IMAGE_UPGRADE_STATUS_ID, \
501 TR_ZCL_CLUSTER_CLIENT_ROLE,TR_ZCL_NON_MANUFACTURER_SPECIFIC,TR_ZCL_ENUM8_ATTR_TYPE }, \
502 { TR_DEVICE_EP1,TR_ZCL_CLUSTER_POLL_CONTROL_ID,TR_ZCL_ATTR_POLL_CONTROL_CHECK_IN_INTERVAL_ID, \
503 TR_ZCL_CLUSTER_SERVER_ROLE,TR_ZCL_NON_MANUFACTURER_SPECIFIC,TR_ZCL_INT32U_ATTR_TYPE }, \
504 { TR_DEVICE_EP1,TR_ZCL_CLUSTER_POLL_CONTROL_ID,TR_ZCL_ATTR_POLL_CONTROL_LONG_POLL_INTERVAL_ID, \
505 TR_ZCL_CLUSTER_SERVER_ROLE,TR_ZCL_NON_MANUFACTURER_SPECIFIC,TR_ZCL_INT32U_ATTR_TYPE }, \
506 { TR_DEVICE_EP1,TR_ZCL_CLUSTER_POLL_CONTROL_ID,TR_ZCL_ATTR_POLL_CONTROL_SHORT_POLL_INTERVAL_ID, \
507 TR_ZCL_CLUSTER_SERVER_ROLE,TR_ZCL_NON_MANUFACTURER_SPECIFIC,TR_ZCL_INT16U_ATTR_TYPE }, \
508 { TR_DEVICE_EP1,TR_ZCL_CLUSTER_POLL_CONTROL_ID,TR_ZCL_ATTR_POLL_CONTROL_FAST_POLL_TIMEOUT_ID, \
509 TR_ZCL_CLUSTER_SERVER_ROLE,TR_ZCL_NON_MANUFACTURER_SPECIFIC,TR_ZCL_INT16U_ATTR_TYPE }, \
510 { TR_DEVICE_EP1,TR_ZCL_CLUSTER_DOOR_LOCK_ID,TR_ZCL_ATTR_DOOR_LOCK_AUTO_RELOCK_TIME_ID, \
511 TR_ZCL_CLUSTER_SERVER_ROLE,TR_ZCL_NON_MANUFACTURER_SPECIFIC,TR_ZCL_INT32U_ATTR_TYPE }, \
512 { TR_DEVICE_EP1,TR_ZCL_CLUSTER_DOOR_LOCK_ID,TR_ZCL_ATTR_DOOR_LOCK_WRONG_CODE_ENTRY_LIMIT_ID, \
513 TR_ZCL_CLUSTER_SERVER_ROLE,TR_ZCL_NON_MANUFACTURER_SPECIFIC,TR_ZCL_INT8U_ATTR_TYPE }, \
514 { TR_DEVICE_EP1,TR_ZCL_CLUSTER_DOOR_LOCK_ID,TR_ZCL_ATTR_DOOR_LOCK_USER_CODE_TEMPORARY_DISABLE_TIME_ID, \
515 TR_ZCL_CLUSTER_SERVER_ROLE,TR_ZCL_NON_MANUFACTURER_SPECIFIC,TR_ZCL_INT8U_ATTR_TYPE }, \
516 { TR_DEVICE_EP1,TR_ZCL_CLUSTER_DOOR_LOCK_ID,TR_ZCL_ATTR_DOOR_LOCK_REQUIRE_PIN_FOR_RF_OPERATION_ID, \
517 TR_ZCL_CLUSTER_SERVER_ROLE,TR_ZCL_NON_MANUFACTURER_SPECIFIC,TR_ZCL_BOOLEAN_ATTR_TYPE }, \
518 { TR_DEVICE_EP1,TR_ZCL_CLUSTER_DOOR_LOCK_ID,TR_ZCL_ATTR_DOOR_LOCK_ZIGBEE_SECURITY_LEVEL_ID, \
519 TR_ZCL_CLUSTER_SERVER_ROLE,TR_ZCL_NON_MANUFACTURER_SPECIFIC,TR_ZCL_ENUM8_ATTR_TYPE }, \
520 { TR_DEVICE_EP1,TR_ZCL_CLUSTER_DOOR_LOCK_ID,TR_ZCL_ATTR_DOOR_LOCK_KEYPAD_OPERATION_EVENT_MASK_ID, \
521 TR_ZCL_CLUSTER_SERVER_ROLE,TR_ZCL_NON_MANUFACTURER_SPECIFIC,TR_ZCL_BITMAP16_ATTR_TYPE }, \
522 { TR_DEVICE_EP1,TR_ZCL_CLUSTER_DOOR_LOCK_ID,TR_ZCL_ATTR_DOOR_LOCK_RF_OPERATION_EVENT_MASK_ID, \
523 TR_ZCL_CLUSTER_SERVER_ROLE,TR_ZCL_NON_MANUFACTURER_SPECIFIC,TR_ZCL_BITMAP16_ATTR_TYPE }, \
524 { TR_DEVICE_EP1,TR_ZCL_CLUSTER_DOOR_LOCK_ID,TR_ZCL_ATTR_DOOR_LOCK_MANUAL_OPERATION_EVENT_MASK_ID, \
525 TR_ZCL_CLUSTER_SERVER_ROLE,TR_ZCL_NON_MANUFACTURER_SPECIFIC,TR_ZCL_BITMAP16_ATTR_TYPE }, \
545#ifdef TR_PLUGIN_ATTR_REPORT_TABLE_SIZE
546#define TR_ATTR_REPORT_TABLE_SIZE TR_PLUGIN_ATTR_REPORT_TABLE_SIZE
548#define TR_ATTR_REPORT_TABLE_SIZE 16
551#define TR_DEVICE_NUM_DEFAULT_REPORTABLE_ATTRS 14
554#define TR_DEVICE_REPORTING_CONFIG_DEFAULTS \
556 { ZB_ZCL_CONFIGURE_REPORTING_SEND_REPORT,0x01,0x0001,TR_ZCL_CLUSTER_SERVER_ROLE,0x0021, \
557 0x0104,TR_ZCL_NON_MANUFACTURER_SPECIFIC,1,0,TR_ZCL_INT8U_ATTR_TYPE,0 }, \
558 { ZB_ZCL_CONFIGURE_REPORTING_SEND_REPORT,0x01,0x0001,TR_ZCL_CLUSTER_SERVER_ROLE,0x003E, \
559 0x0104,TR_ZCL_NON_MANUFACTURER_SPECIFIC,1,0,TR_ZCL_BITMAP32_ATTR_TYPE,0 }, \
560 { ZB_ZCL_CONFIGURE_REPORTING_SEND_REPORT,0x01,0x0003,TR_ZCL_CLUSTER_SERVER_ROLE,0x0000, \
561 0x0104,TR_ZCL_NON_MANUFACTURER_SPECIFIC,1,900,TR_ZCL_INT16U_ATTR_TYPE,5 }, \
562 { ZB_ZCL_CONFIGURE_REPORTING_SEND_REPORT,0x01,0x0101,TR_ZCL_CLUSTER_SERVER_ROLE,0x0000, \
563 0x0104,TR_ZCL_NON_MANUFACTURER_SPECIFIC,1,0,TR_ZCL_ENUM8_ATTR_TYPE,0 }, \
564 { ZB_ZCL_CONFIGURE_REPORTING_SEND_REPORT,0x01,0x0101,TR_ZCL_CLUSTER_SERVER_ROLE,0x0023, \
565 0x0104,TR_ZCL_NON_MANUFACTURER_SPECIFIC,1,0,TR_ZCL_INT32U_ATTR_TYPE,0 }, \
566 { ZB_ZCL_CONFIGURE_REPORTING_SEND_REPORT,0x01,0x0101,TR_ZCL_CLUSTER_SERVER_ROLE,0x0025, \
567 0x0104,TR_ZCL_NON_MANUFACTURER_SPECIFIC,1,0,TR_ZCL_ENUM8_ATTR_TYPE,0 }, \
568 { ZB_ZCL_CONFIGURE_REPORTING_SEND_REPORT,0x01,0x0101,TR_ZCL_CLUSTER_SERVER_ROLE,0x0030, \
569 0x0104,TR_ZCL_NON_MANUFACTURER_SPECIFIC,1,0,TR_ZCL_INT8U_ATTR_TYPE,0 }, \
570 { ZB_ZCL_CONFIGURE_REPORTING_SEND_REPORT,0x01,0x0101,TR_ZCL_CLUSTER_SERVER_ROLE,0x0031, \
571 0x0104,TR_ZCL_NON_MANUFACTURER_SPECIFIC,1,0,TR_ZCL_INT8U_ATTR_TYPE,0 }, \
572 { ZB_ZCL_CONFIGURE_REPORTING_SEND_REPORT,0x01,0x0101,TR_ZCL_CLUSTER_SERVER_ROLE,0x0033, \
573 0x0104,TR_ZCL_NON_MANUFACTURER_SPECIFIC,1,0,TR_ZCL_BOOLEAN_ATTR_TYPE,0 }, \
574 { ZB_ZCL_CONFIGURE_REPORTING_SEND_REPORT,0x01,0x0101,TR_ZCL_CLUSTER_SERVER_ROLE,0x0034, \
575 0x0104,TR_ZCL_NON_MANUFACTURER_SPECIFIC,1,0,TR_ZCL_ENUM8_ATTR_TYPE,0 }, \
576 { ZB_ZCL_CONFIGURE_REPORTING_SEND_REPORT,0x01,0x0101,TR_ZCL_CLUSTER_SERVER_ROLE,0x0041, \
577 0x0104,TR_ZCL_NON_MANUFACTURER_SPECIFIC,1,0,TR_ZCL_BITMAP16_ATTR_TYPE,0 }, \
578 { ZB_ZCL_CONFIGURE_REPORTING_SEND_REPORT,0x01,0x0101,TR_ZCL_CLUSTER_SERVER_ROLE,0x0042, \
579 0x0104,TR_ZCL_NON_MANUFACTURER_SPECIFIC,1,0,TR_ZCL_BITMAP16_ATTR_TYPE,0 }, \
580 { ZB_ZCL_CONFIGURE_REPORTING_SEND_REPORT,0x01,0x0101,TR_ZCL_CLUSTER_SERVER_ROLE,0x0043, \
581 0x0104,TR_ZCL_NON_MANUFACTURER_SPECIFIC,1,0,TR_ZCL_BITMAP16_ATTR_TYPE,0 }, \
582 { ZB_ZCL_CONFIGURE_REPORTING_SEND_REPORT,0x01,0x0402,TR_ZCL_CLUSTER_SERVER_ROLE,0x0000, \
583 0x0104,TR_ZCL_NON_MANUFACTURER_SPECIFIC,1,0,TR_ZCL_INT16S_ATTR_TYPE,50 }, \
586#define TR_TOTAL_ATTR_REPORT_TABLE_SIZE (TR_ATTR_REPORT_TABLE_SIZE + TR_DEVICE_NUM_DEFAULT_REPORTABLE_ATTRS)
ZB_PACKED_PRE struct tr_af_simple_desc_ep1_s tr_af_simple_desc_ep1_t
includes Trident ZCL plugin header files or creates stubs that can be consumed by the end user.
ZCL definitions for types, enums, and data structures.
#define TR_TOTAL_ATTR_REPORT_TABLE_SIZE
Definition tr_zcl_endpoint_config.h:69
zb_af_device_ctx_t tr_device_ctx
tr_cluster_names_t tr_cluster_names[]
void tr_zcl_endpoint_config_reporting_init(void)
zb_zcl_diagnostics_ctx_t diagnostics_ctx_zcl
void tr_zcl_endpoint_config_attr_init(uint8_t endpoint)
void tr_zcl_endpoint_config_init(void)
zb_zcl_reporting_info_t tr_device_reporting_info[TR_TOTAL_ATTR_REPORT_TABLE_SIZE]
zb_af_endpoint_desc_t tr_endpoint_desc_ep1
#define TR_DEVICE_NUM_IN_CLUSTERS_EP1
Definition tr_zcl_endpoint_config.h:32
#define TR_DEVICE_NUM_OUT_CLUSTERS_EP1
Definition tr_zcl_endpoint_config.h:33
Definition tr_zcl_endpoint_config.h:124
zb_uint16_t cluster_revision_server
Definition tr_zcl_endpoint_config.h:125
Definition tr_zcl_endpoint_config.h:72
zb_uint8_t power_source
Definition tr_zcl_endpoint_config.h:77
zb_uint16_t cluster_revision_server
Definition tr_zcl_endpoint_config.h:78
zb_uint8_t version
Definition tr_zcl_endpoint_config.h:73
zb_uint8_t hw_version
Definition tr_zcl_endpoint_config.h:74
Definition tr_zcl_endpoint_config.h:201
time_client_attr_ep1_t time_client
Definition tr_zcl_endpoint_config.h:209
basic_server_attr_ep1_t basic_server
Definition tr_zcl_endpoint_config.h:202
identify_server_attr_ep1_t identify_server
Definition tr_zcl_endpoint_config.h:205
over_the_air_bootloading_client_attr_ep1_t over_the_air_bootloading_client
Definition tr_zcl_endpoint_config.h:210
temperature_measurement_server_attr_ep1_t temperature_measurement_server
Definition tr_zcl_endpoint_config.h:213
power_configuration_server_attr_ep1_t power_configuration_server
Definition tr_zcl_endpoint_config.h:203
alarms_server_attr_ep1_t alarms_server
Definition tr_zcl_endpoint_config.h:208
diagnostics_server_attr_ep1_t diagnostics_server
Definition tr_zcl_endpoint_config.h:214
identify_client_attr_ep1_t identify_client
Definition tr_zcl_endpoint_config.h:204
door_lock_server_attr_ep1_t door_lock_server
Definition tr_zcl_endpoint_config.h:212
poll_control_server_attr_ep1_t poll_control_server
Definition tr_zcl_endpoint_config.h:211
remote_cli_server_attr_ep1_t remote_cli_server
Definition tr_zcl_endpoint_config.h:215
groups_server_attr_ep1_t groups_server
Definition tr_zcl_endpoint_config.h:206
scenes_server_attr_ep1_t scenes_server
Definition tr_zcl_endpoint_config.h:207
Definition tr_zcl_endpoint_config.h:190
zb_uint16_t cluster_revision_server
Definition tr_zcl_endpoint_config.h:191
Definition tr_zcl_endpoint_config.h:160
zb_uint16_t manual_operation_event_mask
Definition tr_zcl_endpoint_config.h:177
zb_uint8_t actuator_enabled
Definition tr_zcl_endpoint_config.h:163
zb_uint32_t auto_relock_time
Definition tr_zcl_endpoint_config.h:168
zb_uint8_t user_code_temporary_disable_time
Definition tr_zcl_endpoint_config.h:172
zb_uint16_t supported_operating_modes
Definition tr_zcl_endpoint_config.h:170
zb_uint16_t num_pin_users_supported
Definition tr_zcl_endpoint_config.h:165
zb_uint8_t lock_state
Definition tr_zcl_endpoint_config.h:161
zb_uint8_t zigbee_security_level
Definition tr_zcl_endpoint_config.h:174
zb_uint16_t rf_operation_event_mask
Definition tr_zcl_endpoint_config.h:176
zb_uint8_t max_pin_length
Definition tr_zcl_endpoint_config.h:166
zb_uint16_t num_total_users_supported
Definition tr_zcl_endpoint_config.h:164
zb_uint8_t operating_mode
Definition tr_zcl_endpoint_config.h:169
zb_uint8_t min_pin_length
Definition tr_zcl_endpoint_config.h:167
zb_uint8_t require_pin_for_rf_operation
Definition tr_zcl_endpoint_config.h:173
zb_uint8_t lock_type
Definition tr_zcl_endpoint_config.h:162
zb_uint16_t cluster_revision_server
Definition tr_zcl_endpoint_config.h:178
zb_uint16_t keypad_operation_event_mask
Definition tr_zcl_endpoint_config.h:175
zb_uint8_t wrong_code_entry_limit
Definition tr_zcl_endpoint_config.h:171
Definition tr_zcl_endpoint_config.h:108
zb_uint16_t cluster_revision_server
Definition tr_zcl_endpoint_config.h:110
zb_uint8_t group_name_support
Definition tr_zcl_endpoint_config.h:109
Definition tr_zcl_endpoint_config.h:97
zb_uint16_t cluster_revision_client
Definition tr_zcl_endpoint_config.h:98
Definition tr_zcl_endpoint_config.h:102
zb_uint16_t cluster_revision_server
Definition tr_zcl_endpoint_config.h:104
zb_uint16_t identify_time
Definition tr_zcl_endpoint_config.h:103
Definition tr_zcl_endpoint_config.h:134
zb_uint16_t image_type_id
Definition tr_zcl_endpoint_config.h:142
zb_uint16_t minimum_block_request_period
Definition tr_zcl_endpoint_config.h:143
zb_uint16_t current_zigbee_stack_version
Definition tr_zcl_endpoint_config.h:138
zb_uint16_t downloaded_zigbee_stack_version
Definition tr_zcl_endpoint_config.h:140
zb_ieee_addr_t upgrade_server_id
Definition tr_zcl_endpoint_config.h:135
zb_uint8_t image_upgrade_status
Definition tr_zcl_endpoint_config.h:141
zb_uint32_t current_file_version
Definition tr_zcl_endpoint_config.h:137
zb_uint32_t file_offset
Definition tr_zcl_endpoint_config.h:136
zb_uint32_t downloaded_file_version
Definition tr_zcl_endpoint_config.h:139
zb_uint16_t cluster_revision_client
Definition tr_zcl_endpoint_config.h:144
Definition tr_zcl_endpoint_config.h:148
zb_uint16_t fast_poll_timeout
Definition tr_zcl_endpoint_config.h:152
zb_uint32_t check_in_interval
Definition tr_zcl_endpoint_config.h:149
zb_uint32_t check_in_interval_min
Definition tr_zcl_endpoint_config.h:153
zb_uint32_t long_poll_interval
Definition tr_zcl_endpoint_config.h:150
zb_uint16_t short_poll_interval
Definition tr_zcl_endpoint_config.h:151
zb_uint16_t cluster_revision_server
Definition tr_zcl_endpoint_config.h:156
zb_uint32_t long_poll_interval_min
Definition tr_zcl_endpoint_config.h:154
zb_uint16_t fast_poll_timeout_max
Definition tr_zcl_endpoint_config.h:155
Definition tr_zcl_endpoint_config.h:82
zb_uint8_t battery_size
Definition tr_zcl_endpoint_config.h:85
zb_uint8_t battery_alarm_mask
Definition tr_zcl_endpoint_config.h:87
zb_uint8_t battery_voltage_threshold_2
Definition tr_zcl_endpoint_config.h:90
zb_uint8_t battery_quantity
Definition tr_zcl_endpoint_config.h:86
zb_uint8_t battery_voltage_threshold_3
Definition tr_zcl_endpoint_config.h:91
zb_uint8_t battery_voltage
Definition tr_zcl_endpoint_config.h:83
zb_uint8_t battery_voltage_threshold_1
Definition tr_zcl_endpoint_config.h:89
zb_uint8_t battery_voltage_min_threshold
Definition tr_zcl_endpoint_config.h:88
zb_uint8_t battery_percentage_remaining
Definition tr_zcl_endpoint_config.h:84
zb_uint32_t battery_alarm_state
Definition tr_zcl_endpoint_config.h:92
zb_uint16_t cluster_revision_server
Definition tr_zcl_endpoint_config.h:93
Definition tr_zcl_endpoint_config.h:195
zb_uint8_t cli_status
Definition tr_zcl_endpoint_config.h:196
zb_uint16_t cluster_revision_server
Definition tr_zcl_endpoint_config.h:197
Definition tr_zcl_endpoint_config.h:114
zb_uint8_t scene_name_support
Definition tr_zcl_endpoint_config.h:119
zb_uint8_t scene_count
Definition tr_zcl_endpoint_config.h:115
zb_uint16_t current_group
Definition tr_zcl_endpoint_config.h:117
zb_uint8_t scene_valid
Definition tr_zcl_endpoint_config.h:118
zb_uint8_t current_scene
Definition tr_zcl_endpoint_config.h:116
zb_uint16_t cluster_revision_server
Definition tr_zcl_endpoint_config.h:120
Definition tr_zcl_endpoint_config.h:182
zb_int16_t temp_measured_value
Definition tr_zcl_endpoint_config.h:183
zb_int16_t temp_min_measured_value
Definition tr_zcl_endpoint_config.h:184
zb_uint16_t cluster_revision_server
Definition tr_zcl_endpoint_config.h:186
zb_int16_t temp_max_measured_value
Definition tr_zcl_endpoint_config.h:185
Definition tr_zcl_endpoint_config.h:129
zb_uint16_t cluster_revision_client
Definition tr_zcl_endpoint_config.h:130
Definition tr_zcl_endpoint_config.h:54
zb_uint16_t app_profile_id
Definition tr_zcl_endpoint_config.h:56
zb_uint8_t app_output_cluster_count
Definition tr_zcl_endpoint_config.h:61
zb_uint16_t app_cluster_list[(TR_DEVICE_NUM_IN_CLUSTERS_EP1)+(TR_DEVICE_NUM_OUT_CLUSTERS_EP1)]
Definition tr_zcl_endpoint_config.h:63
zb_uint8_t app_input_cluster_count
Definition tr_zcl_endpoint_config.h:60
zb_uint16_t reserved
Definition tr_zcl_endpoint_config.h:59
zb_uint8_t endpoint
Definition tr_zcl_endpoint_config.h:55
zb_uint16_t app_device_version
Definition tr_zcl_endpoint_config.h:58
zb_uint16_t app_device_id
Definition tr_zcl_endpoint_config.h:57
Definition tr_zcl_endpoint_config.h:531
zb_uint16_t cluster_id
Definition tr_zcl_endpoint_config.h:534
zb_uint8_t endpoint
Definition tr_zcl_endpoint_config.h:533
zb_uint16_t profile_id
Definition tr_zcl_endpoint_config.h:537
zb_uint32_t reportable_change
Definition tr_zcl_endpoint_config.h:542
zb_uint16_t max_interval
Definition tr_zcl_endpoint_config.h:540
zb_uint8_t cluster_role
Definition tr_zcl_endpoint_config.h:535
zb_uint8_t data_type
Definition tr_zcl_endpoint_config.h:541
zb_uint16_t attr_id
Definition tr_zcl_endpoint_config.h:536
zb_uint16_t manuf_code
Definition tr_zcl_endpoint_config.h:538
zb_uint8_t direction
Definition tr_zcl_endpoint_config.h:532
zb_uint16_t min_interval
Definition tr_zcl_endpoint_config.h:539
Definition tr_zcl_endpoint_config.h:590
zb_uint16_t cluster_id
Definition tr_zcl_endpoint_config.h:591
zb_char_t * cluster_name
Definition tr_zcl_endpoint_config.h:592
zb_uint8_t endpoint
Definition tr_nvram_attr.h:23