Zigbee Protocol Controller 1.6.0

This header contains functions for accessing information relating to attributes, such as number of attributes, attribute names and more. More...

Macros

#define ZCL_WRITE_MAX_DATA_SIZE   16
 

Functions

sl_status_t zigpc_zcl_profiles_init (void)
 init_cluster_attributes - the API for instantiating cluster attributes Required to set up all attributes on supported clusters. More...
 
size_t zigpc_zclprofiles_get_cluster_attribute_count (const zcl_cluster_id_t cluster_id)
 Retrieve number of attributes of a given cluster. More...
 
sl_status_t zigpc_zclprofiles_get_cluster_attribute_list (const zcl_cluster_id_t cluster_id, zcl_attribute_t *attribute_list)
 zigpc_zclprofiles_get_cluster_attribute_list - Retrieve the attributes of a given cluster ID. Expected to be called after zigpc_zclprofiles_get_cluster_attribute_count. More...
 

Detailed Description

This header contains functions for accessing information relating to attributes, such as number of attributes, attribute names and more.

Macro Definition Documentation

◆ ZCL_WRITE_MAX_DATA_SIZE

#define ZCL_WRITE_MAX_DATA_SIZE   16

Function Documentation

◆ zigpc_zcl_profiles_init()

sl_status_t zigpc_zcl_profiles_init ( void  )

init_cluster_attributes - the API for instantiating cluster attributes Required to set up all attributes on supported clusters.

Returns
SL_STATUS_OK if able to initialize attributes for clusters. SL_STATUS_FAIL otherwise

◆ zigpc_zclprofiles_get_cluster_attribute_count()

size_t zigpc_zclprofiles_get_cluster_attribute_count ( const zcl_cluster_id_t  cluster_id)

Retrieve number of attributes of a given cluster.

Parameters
cluster_idZCL Cluster ID
Returns
size_t Number of supported attributes found for cluster

◆ zigpc_zclprofiles_get_cluster_attribute_list()

sl_status_t zigpc_zclprofiles_get_cluster_attribute_list ( const zcl_cluster_id_t  cluster_id,
zcl_attribute_t attribute_list 
)

zigpc_zclprofiles_get_cluster_attribute_list - Retrieve the attributes of a given cluster ID. Expected to be called after zigpc_zclprofiles_get_cluster_attribute_count.

Parameters
cluster_id- the cluster id of the attributes desired
attribute_list- the pointer where the attributes will be stored
Returns
SL_STATUS_OK if the operation succeeded, otherwise SL_STATUS_FAIL if a null pointer was supplied or the cluster is not supported