Trident IoT Zigbee SDK
Loading...
Searching...
No Matches
tr_cli_zcl_common.h File Reference

Common utilities needed for ZCL CLI commands. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TR_CLI_ZCL_CLIENT_ENABLED(CLUSTER)
 macro to check if client side ZCL CLI is enabled
#define TR_CLI_ZCL_SERVER_ENABLED(CLUSTER)
 macro to check if server side ZCL CLI is enabled

Functions

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

Detailed Description

Common utilities needed for ZCL CLI commands.


SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2025 Trident IoT, LLC https://www.tridentiot.com


Macro Definition Documentation

◆ 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
CLUSTERcluster 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
CLUSTERcluster name (e.g., ALARMS, BASIC, GROUPS)

Function Documentation

◆ 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_idZCL cluster ID
cmd_idCommand ID to send
directionTR_ZCL_FRAME_DIRECTION_TO_SERVER or TR_ZCL_FRAME_DIRECTION_TO_CLIENT