24#ifndef ZIGPC_ZCL_UTIL_H
25#define ZIGPC_ZCL_UTIL_H
81 uint8_t frame_control);
140 const size_t command_arg_count,
#define data
Definition: ctimer.c:49
uint32_t sl_status_t
Definition: sl_status.h:139
#define ZCL_FRAME_CONTROL_DIRECTION_CLIENT_TO_SERVER
ZCL frame will be sent as a client to server message.
Definition: zigpc_common_zigbee.h:180
#define ZCL_FRAME_CONTROL_FRAME_TYPE_CLUSTER
ZCL frame will be set as being a cluster frame type.
Definition: zigpc_common_zigbee.h:174
uint16_t zcl_cluster_id_t
A representation of the endpoint cluster id used in ZCL.
Definition: zigpc_common_zigbee.h:254
#define ZCL_FRAME_CONTROL_FRAME_TYPE_GLOBAL_COMMAND
ZCL frame will be set as being a ZCL global command frame type.
Definition: zigpc_common_zigbee.h:168
uint8_t zcl_command_id_t
Definition: zigpc_common_zigbee.h:265
zigpc_zcl_data_type_t
ZCL data types.
Definition: zcl_definitions.h:40
sl_status_t zigpc_zcl_frame_fill_data(zcl_frame_t *const frame, zigpc_zcl_data_type_t type, const void *data)
Populate the given ZCL frame with data. The data copied is dictated by the type passed in....
size_t zigpc_zcl_get_type_size(zigpc_zcl_data_type_t type)
zigpc_zcl_get_type_size - retrieve the size (in bytes) of a given ZCL type
size_t zigpc_zcl_get_data_type_size(zigpc_zcl_data_type_t type)
Get data size of ZCL type passed in.
const uint16_t * zigpc_zcl_get_supported_cluster_list()
zigpc_zcl_get_supported_cluster_list
sl_status_t zigpc_zcl_frame_fill_data_array(zcl_frame_t *const frame, zigpc_zcl_data_type_t type, size_t type_count, const void *data)
Populate the ZCL frame with an array of the given ZCL data type. Once successfully copied into the fr...
zigpc_zcl_frame_type_t
ZCL frame control types.
Definition: zcl_util.h:39
sl_status_t zigpc_zcl_frame_init_command(zcl_frame_t *const frame, zcl_command_id_t command_id, uint8_t frame_control)
Initialize the ZCL Frame for sending ZCL command.
sl_status_t zigpc_zcl_build_command_frame(zcl_frame_t *const frame, const zigpc_zcl_frame_type_t frame_type, const zcl_cluster_id_t cluster_id, const zcl_command_id_t command_id, const size_t command_arg_count, const zigpc_zcl_frame_data_t *const command_arg_list)
Build a ZCL command frame to be sent on the Zigbee network.
size_t zigpc_zcl_get_number_supported_clusters()
zigpc_zcl_get_number_supported_clusters
@ ZIGPC_ZCL_FRAME_TYPE_GLOBAL_CMD_TO_SERVER
Definition: zcl_util.h:44
@ ZIGPC_ZCL_FRAME_TYPE_CMD_TO_SERVER
Definition: zcl_util.h:41
Definition: zigpc_common_zigbee.h:293
Structure used to pass data for ZCL frame build helpers.
Definition: zcl_util.h:56
const void * data
Definition: zcl_util.h:58
zigpc_zcl_data_type_t type
Definition: zcl_util.h:57