Common utilities needed for ZCL CLI commands.
More...
Go to the source code of this file.
Common utilities needed for ZCL CLI commands.
SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2025 Trident IoT, LLC https://www.tridentiot.com
◆ TR_CLI_ZCL_CLIENT_ENABLED
| #define TR_CLI_ZCL_CLIENT_ENABLED |
( |
| CLUSTER | ) |
|
Value: (defined(TR_ZCL_CLUSTER_##CLUSTER##_CLIENT_EP_COUNT) && \
!defined(TR_##CLUSTER##_CLIENT_ZCL_CLI_DISABLE))
macro to check if client side ZCL CLI is enabled
- Parameters
-
| CLUSTER | cluster name (e.g., ALARMS, BASIC, GROUPS) |
◆ TR_CLI_ZCL_SERVER_ENABLED
| #define TR_CLI_ZCL_SERVER_ENABLED |
( |
| CLUSTER | ) |
|
Value: (defined(TR_ZCL_CLUSTER_##CLUSTER##_SERVER_EP_COUNT) && \
!defined(TR_##CLUSTER##_SERVER_ZCL_CLI_DISABLE))
macro to check if server side ZCL CLI is enabled
- Parameters
-
| CLUSTER | cluster name (e.g., ALARMS, BASIC, GROUPS) |
◆ tr_zcl_prepare_cli_send_buffer()
| void tr_zcl_prepare_cli_send_buffer |
( |
zb_uint16_t | cluster_id, |
|
|
zb_uint8_t | cmd_id, |
|
|
zb_uint8_t | direction ) |
common code that prepares the send buffer for a ZCL CLI command
- Parameters
-
| cluster_id | ZCL cluster ID |
| cmd_id | Command ID to send |
| direction | TR_ZCL_FRAME_DIRECTION_TO_SERVER or TR_ZCL_FRAME_DIRECTION_TO_CLIENT |