Developing with ZBOSS

Data Structures

struct  zb_af_node_desc_s
 
struct  zb_af_node_power_desc_s
 
struct  zb_af_endpoint_desc_s
 Endpoint descriptor. More...
 

Macros

#define ZB_AF_SIMPLE_DESC_TYPE(in_num, out_num)   __CAT__(zb_af_simple_desc_,in_num,_,out_num,_t)
 
#define ZB_DECLARE_SIMPLE_DESC(in_clusters_count, out_clusters_count)
 

Typedefs

typedef struct zb_af_node_desc_s zb_af_node_desc_t
 
typedef zb_nwk_device_type_t zb_logical_type_t
 
typedef struct zb_af_node_power_desc_s zb_af_node_power_desc_t
 
typedef struct zb_af_endpoint_desc_s zb_af_endpoint_desc_t
 Endpoint descriptor. More...
 

Detailed Description

Macro Definition Documentation

◆ ZB_AF_SIMPLE_DESC_TYPE

#define ZB_AF_SIMPLE_DESC_TYPE (   in_num,
  out_num 
)    __CAT__(zb_af_simple_desc_,in_num,_,out_num,_t)

Generate simple descriptor type name

◆ ZB_DECLARE_SIMPLE_DESC

#define ZB_DECLARE_SIMPLE_DESC (   in_clusters_count,
  out_clusters_count 
)
Value:
typedef ZB_PACKED_PRE struct zb_af_simple_desc_ ## in_clusters_count ## _ ## out_clusters_count ## _s \
{ \
zb_uint8_t endpoint; /* Endpoint */ \
zb_uint16_t app_profile_id; /* Application profile identifier */ \
zb_uint16_t app_device_id; /* Application device identifier */ \
zb_bitfield_t app_device_version:4; /* Application device version */ \
zb_bitfield_t reserved:4; /* Reserved */ \
zb_uint8_t app_input_cluster_count; /* Application input cluster count */ \
zb_uint8_t app_output_cluster_count; /* Application output cluster count */ \
/* Application input and output cluster list */ \
zb_uint16_t app_cluster_list[in_clusters_count + out_clusters_count]; \
} ZB_PACKED_STRUCT \
zb_af_simple_desc_ ## in_clusters_count ## _ ## out_clusters_count ## _t

Declares Simple descriptor type

Parameters
in_clusters_count- number of input clusters in descriptor
out_clusters_count- number of output clusters in descriptor

Example:

Typedef Documentation

◆ zb_af_endpoint_desc_t

Endpoint descriptor.

Endpoint description for user applications.

◆ zb_af_node_desc_t

Node descriptor

◆ zb_af_node_power_desc_t

Node power descriptor