Zigbee Protocol Controller 1.6.0
zcl_util.h File Reference

Go to the source code of this file.

Classes

struct  zigpc_zcl_frame_data_t
 Structure used to pass data for ZCL frame build helpers. More...
 

Enumerations

enum  zigpc_zcl_frame_type_t { ZIGPC_ZCL_FRAME_TYPE_CMD_TO_SERVER , ZIGPC_ZCL_FRAME_TYPE_GLOBAL_CMD_TO_SERVER }
 ZCL frame control types. More...
 

Functions

size_t zigpc_zcl_get_data_type_size (zigpc_zcl_data_type_t type)
 Get data size of ZCL type passed in. More...
 
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. More...
 
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. Once successfully copied into the frame, the buffer size is incremented based on the size of the data type passed in. More...
 
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 frame, the buffer size is incremented based on the size of the data type and array count passed in. More...
 
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. More...
 
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 More...
 
size_t zigpc_zcl_get_number_supported_clusters ()
 zigpc_zcl_get_number_supported_clusters More...
 
const uint16_t * zigpc_zcl_get_supported_cluster_list ()
 zigpc_zcl_get_supported_cluster_list More...