Logo
Developing with ZBOSS for Zigbee
zb_zcl_direct_configuration.h File Reference

Data Structures

struct  zb_zcl_direct_configuration_configure_interface_req_s
 Configure Interface Request parameters. More...
 
struct  zb_zcl_direct_configuration_configure_interface_resp_s
 Configure Interface Response parameters. More...
 
struct  zb_zcl_direct_configuration_configure_anonymous_join_timeout_req_s
 Configure Anonymous Join Timeout Request parameters. More...
 

Functions

void zb_zcl_direct_configuration_write_attr_hook (zb_uint8_t endpoint, zb_uint16_t attr_id, zb_uint8_t *new_value)
 Hook on Write attribute. More...
 

Zigbee Direct Configuration cluster attributes

#define ZB_ZCL_DIRECT_CONFIGURATION_INTERFACE_STATE_EMPTY_VALUE   0x00
 Empty value of Interface State attribute. More...
 
#define ZB_ZCL_DIRECT_CONFIGURATION_INTERFACE_STATE_GET_CURRENT_STATE(state_bitmap)   ZB_CHECK_BIT_IN_BIT_VECTOR((&(state_bitmap)), ZB_ZCL_DIRECT_CONFIGURATION_INTERFACE_STATE_CURRENT_STATE)
 Get Current State from the Interface State Bitmap. More...
 
#define ZB_ZCL_DIRECT_CONFIGURATION_INTERFACE_STATE_SET_CURRENT_STATE(state_bitmap, current_state)   ZB_ASSIGN_BIT_IN_BIT_VECTOR((&(state_bitmap)), ZB_ZCL_DIRECT_CONFIGURATION_INTERFACE_STATE_CURRENT_STATE, current_state)
 Set Current State from the Interface State Bitmap. More...
 
#define ZB_ZCL_DIRECT_CONFIGURATION_ANONYMOUS_JOIN_TIMEOUT_EMPTY_VALUE   60U
 Empty value of Anonymous Join Timeout, 13.3.5.3.2. More...
 
#define ZB_ZCL_DIRECT_CONFIGURATION_ANONYMOUS_JOIN_TIMEOUT_GET_CURRENT_VALUE_U32(attr_p)   ZB_GET_UINT32_FROM_UINT24(*((zb_uint24_t *)(attr_p)->data_p))
 Get Current Anonymous Join Timeout value as zb_uint32_t. More...
 
#define ZB_ZCL_DIRECT_CONFIGURATION_ANONYMOUS_JOIN_TIMEOUT_SET_CURRENT_VALUE_U32(attr_p, value_u32)
 Set Current Anonymous Join Timeout value. More...
 
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_DIRECT_CONFIGURATION_INTERFACE_STATE_ID(data_ptr)
 
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_DIRECT_CONFIGURATION_ANONYMOUS_JOIN_TIMEOUT_ID(data_ptr)
 
#define ZB_ZCL_DIRECT_CONFIGURATION_REPORT_ATTR_COUNT   0
 
#define ZB_ZCL_DECLARE_DIRECT_CONFIGURATION_INFORMATION_ATTRIB_LIST(attr_list, interface_state, anonymous_join_timeout)
 Declare attribute list for Zigbee Direct Configuration cluster - server side (Information Attribute set) More...
 
enum  zb_zcl_direct_configuration_attr_e { ZB_ZCL_ATTR_DIRECT_CONFIGURATION_INTERFACE_STATE_ID = 0x0000, ZB_ZCL_ATTR_DIRECT_CONFIGURATION_ANONYMOUS_JOIN_TIMEOUT_ID = 0x0001 }
 Zigbee Direct Configuration cluster attribute identifiers. More...
 
enum  zb_zcl_direct_configuration_interface_state_bits_e { ZB_ZCL_DIRECT_CONFIGURATION_INTERFACE_STATE_CURRENT_STATE = 0 }
 Interface State Bitmap definition. Bitmap part. More...
 
typedef enum zb_zcl_direct_configuration_interface_state_bits_e zb_zcl_direct_configuration_interface_state_bits_t
 Interface State Bitmap definition. Bitmap part. More...
 
typedef zb_uint8_t zb_zcl_direct_configuration_interface_state_attr_t
 Interface State Bitmap definition. More...
 
typedef zb_uint24_t zb_zcl_direct_configuration_anonymous_join_timeout_attr_t
 Anonymous Join Timeout definition. More...
 

Zigbee Direct Configuration cluster commands

#define ZB_ZCL_CLUSTER_ID_DIRECT_CONFIGURATION_SERVER_ROLE_GENERATED_CMD_LIST   ZB_ZCL_CMD_DIRECT_CONFIGURATION_CONFIGURE_ZBD_INTERFACE_RESP_ID
 
#define ZB_ZCL_CLUSTER_ID_DIRECT_CONFIGURATION_CLIENT_ROLE_RECEIVED_CMD_LIST   ZB_ZCL_CLUSTER_ID_DIRECT_CONFIGURATION_SERVER_ROLE_GENERATED_CMD_LIST
 
#define ZB_ZCL_CLUSTER_ID_DIRECT_CONFIGURATION_CLIENT_ROLE_GENERATED_CMD_LIST
 
#define ZB_ZCL_CLUSTER_ID_DIRECT_CONFIGURATION_SERVER_ROLE_RECEIVED_CMD_LIST   ZB_ZCL_CLUSTER_ID_DIRECT_CONFIGURATION_CLIENT_ROLE_GENERATED_CMD_LIST
 
#define ZB_ZCL_DIRECT_CONFIGURATION_INTERFACE_STATE_OFF   0u
 Disable BLE interface. More...
 
#define ZB_ZCL_DIRECT_CONFIGURATION_INTERFACE_STATE_ON   1u
 Enable BLE interface. More...
 
#define ZB_ZCL_DIRECT_CONFIGURATION_ANONYMOUS_JOIN_TIMEOUT_MIN_VALUE   0x000000U
 
#define ZB_ZCL_DIRECT_CONFIGURATION_ANONYMOUS_JOIN_TIMEOUT_MAX_VALUE   0x100000U
 
#define ZB_ZCL_DIRECT_CONFIGURATION_SEND_CONFIGURE_ZBD_INTERFACE_REQ(buffer, dst_addr, dst_addr_mode, dst_ep, ep, prof_id, dis_default_resp, callback, interface_state)
 Send Configure Zigbee Direct Interface command The command can be sent only with unicast addressing mode. More...
 
#define ZB_ZCL_DIRECT_CONFIGURATION_SEND_CONFIGURE_ZBD_INTERFACE_RES( buffer, seq_num, dst_addr, dst_ep, ep, prof_id, callback, status, interface_state)
 Send Configure Zigbee Direct Interface Response command. More...
 
#define ZB_ZCL_DIRECT_CONFIGURATION_GET_CONFIGURE_INTERFACE_REQ(data_ptr, buffer, status)
 Macro for getting Configure Zigbee Direct Interface command payload, see ZB Direct spec 13.3.5.4.2. More...
 
#define ZB_ZCL_DIRECT_CONFIGURATION_GET_CONFIGURE_INTERFACE_RESP(data_ptr, buffer, parse_status)
 Macro for getting Configure Zigbee Direct Interface Response command payload, see ZB Direct spec 13.3.5.5.1. More...
 
#define ZB_ZCL_DIRECT_CONFIGURATION_SEND_CONFIGURE_ANONYMOUS_JOIN_TIMEOUT_REQ( buffer, dst_addr, dst_addr_mode, dst_ep, ep, prof_id, dis_default_resp, callback, anonymous_join_timeout)
 Send Configure Zigbee Direct Anonymous Join Timeout command The command can be sent only with unicast addressing mode. More...
 
#define ZB_ZCL_DIRECT_CONFIGURATION_GET_CONFIGURE_ANONYMOUS_JOIN_TIMEOUT_REQ(data_ptr, buffer, status)
 Macro for getting Configure Zigbee Direct Anonymous Join Timeout command payload, see ZB Direct spec 13.3.5.4.4. More...
 
#define ZB_ZCL_CLUSTER_ID_DIRECT_CONFIGURATION_SERVER_ROLE_INIT   zb_zcl_direct_configuration_init_server
 
#define ZB_ZCL_CLUSTER_ID_DIRECT_CONFIGURATION_CLIENT_ROLE_INIT   zb_zcl_direct_configuration_init_client
 
enum  zb_zcl_direct_configuration_cmd_e { ZB_ZCL_CMD_DIRECT_CONFIGURATION_CONFIGURE_ZBD_INTERFACE_ID = 0x00, ZB_ZCL_CMD_DIRECT_CONFIGURATION_CONFIGURE_ZBD_ANONYMOUS_TIMEOUT_JOIN_ID = 0x01 }
 Command identifiers for Zigbee Direct Configuration cluster. More...
 
enum  zb_zcl_direct_configuration_cmd_resp_e { ZB_ZCL_CMD_DIRECT_CONFIGURATION_CONFIGURE_ZBD_INTERFACE_RESP_ID = 0x00 }
 Command response identifiers for Zigbee Direct Configuration cluster. More...
 
typedef struct zb_zcl_direct_configuration_configure_interface_req_s zb_zcl_direct_configuration_configure_interface_req_t
 Configure Interface Request parameters. More...
 
typedef struct zb_zcl_direct_configuration_configure_interface_resp_s zb_zcl_direct_configuration_configure_interface_resp_t
 Configure Interface Response parameters. More...
 
typedef struct zb_zcl_direct_configuration_configure_anonymous_join_timeout_req_s zb_zcl_direct_configuration_configure_anonymous_join_timeout_req_t
 Configure Anonymous Join Timeout Request parameters. More...
 
void zb_zcl_direct_configuration_init_server (void)
 
void zb_zcl_direct_configuration_init_client (void)
 
void zb_zcl_direct_configuration_anonymous_join_timer_start (zb_uint8_t endpoint)
 Start or restart Anonymous Join timer from Anonymous Join Timeout value. More...
 
zb_bool_t zb_zcl_direct_configuration_anonymous_join_enabled (void)
 Check if current value of Anonymous Join timer is bigger than 0. More...
 
zb_bool_t zb_zcl_direct_configuration_is_client_authorized (zb_uint16_t client_short_addr)