
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... | |
| #define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_DIRECT_CONFIGURATION_ANONYMOUS_JOIN_TIMEOUT_ID | ( | data_ptr | ) |
| #define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_DIRECT_CONFIGURATION_INTERFACE_STATE_ID | ( | data_ptr | ) |
| #define ZB_ZCL_CLUSTER_ID_DIRECT_CONFIGURATION_CLIENT_ROLE_GENERATED_CMD_LIST |
| #define ZB_ZCL_CLUSTER_ID_DIRECT_CONFIGURATION_CLIENT_ROLE_INIT zb_zcl_direct_configuration_init_client |
| #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_SERVER_ROLE_GENERATED_CMD_LIST ZB_ZCL_CMD_DIRECT_CONFIGURATION_CONFIGURE_ZBD_INTERFACE_RESP_ID |
| #define ZB_ZCL_CLUSTER_ID_DIRECT_CONFIGURATION_SERVER_ROLE_INIT zb_zcl_direct_configuration_init_server |
| #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_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)
| attr_list | - attribute list name |
| interface_state | - pointer to variable to store Interface State attribute |
| anonymous_join_timeout | - pointer to variable to store Anonymous Join Timeout |
| #define ZB_ZCL_DIRECT_CONFIGURATION_ANONYMOUS_JOIN_TIMEOUT_EMPTY_VALUE 60U |
Empty value of Anonymous Join Timeout, 13.3.5.3.2.
| #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.
| attr_p | pointer to zb_zcl_direct_configuration_anonymous_join_timeout_attr_t |
| #define ZB_ZCL_DIRECT_CONFIGURATION_ANONYMOUS_JOIN_TIMEOUT_MAX_VALUE 0x100000U |
| #define ZB_ZCL_DIRECT_CONFIGURATION_ANONYMOUS_JOIN_TIMEOUT_MIN_VALUE 0x000000U |
| #define ZB_ZCL_DIRECT_CONFIGURATION_ANONYMOUS_JOIN_TIMEOUT_SET_CURRENT_VALUE_U32 | ( | attr_p, | |
| value_u32 | |||
| ) |
Set Current Anonymous Join Timeout value.
| attr_p | attribute pointer |
| value_u32 | desired value to be set |
| #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.
| data_ptr | - pointer to a variable of type zb_zcl_direct_configuration_configure_anonymous_join_timeout_req_t. |
| buffer | containing the packet (by pointer). |
| status | - variable to put parse status to (see zb_zcl_parse_status_t). |
| #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.
| data_ptr | - pointer to a variable of type zb_zcl_direct_configuration_configure_interface_req_t. |
| buffer | containing the packet (by pointer). |
| status | - variable to put parse status to (see zb_zcl_parse_status_t). |
| #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.
| data_ptr | - pointer to a variable of type zb_zcl_direct_configuration_configure_interface_resp_t. |
| buffer | containing the packet (by pointer). |
| parse_status | - variable to put parse status to (see zb_zcl_parse_status_t). |
| #define ZB_ZCL_DIRECT_CONFIGURATION_INTERFACE_STATE_EMPTY_VALUE 0x00 |
Empty value of Interface State attribute.
| #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.
| state_bitmap | - zb_zcl_direct_configuration_interface_state_attr_t value. |
| #define ZB_ZCL_DIRECT_CONFIGURATION_INTERFACE_STATE_OFF 0u |
Disable BLE interface.
| #define ZB_ZCL_DIRECT_CONFIGURATION_INTERFACE_STATE_ON 1u |
Enable BLE interface.
| #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.
| state_bitmap | - zb_zcl_direct_configuration_interface_state_attr_t value. |
| current_state | Current interface state (1U = enabled, 0U = disabled) |
| #define ZB_ZCL_DIRECT_CONFIGURATION_REPORT_ATTR_COUNT 0 |
| #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.
| buffer | to put packet to |
| dst_addr | - address to send packet to |
| dst_addr_mode | - addressing mode. ZB_APS_ADDR_MODE_16_ENDP_PRESENT will fit |
| dst_ep | - destination endpoint |
| ep | - sending endpoint |
| prof_id | - profile identifier |
| dis_default_resp | - enable/disable default response |
| callback | for getting command send status |
| anonymous_join_timeout | - requested state of ZBD interface |
| #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.
| buffer | to put packet to |
| dst_addr | - address to send packet to |
| dst_addr_mode | - addressing mode. ZB_APS_ADDR_MODE_16_ENDP_PRESENT will fit |
| dst_ep | - destination endpoint |
| ep | - sending endpoint |
| prof_id | - profile identifier |
| dis_default_resp | - enable/disable default response |
| callback | for getting command send status |
| interface_state | - requested state of ZBD interface |
| #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.
| buffer | to put packet to |
| seq_num | - ZCL sequence number |
| dst_addr | - address to send packet to |
| dst_ep | - destination endpoint |
| ep | - sending endpoint |
| prof_id | - profile identifier |
| callback | for getting command send status |
| status | of the corresponding Configure Zigbee Direct Interface command execution. Appropriate values (defined in zcl_status enumeration)are:
|
| interface_state | - current state of ZBD interface |
| typedef zb_uint24_t zb_zcl_direct_configuration_anonymous_join_timeout_attr_t |
Anonymous Join Timeout definition.
| 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.
| typedef struct zb_zcl_direct_configuration_configure_interface_req_s zb_zcl_direct_configuration_configure_interface_req_t |
Configure Interface Request parameters.
| typedef struct zb_zcl_direct_configuration_configure_interface_resp_s zb_zcl_direct_configuration_configure_interface_resp_t |
Configure Interface Response parameters.
Interface State Bitmap definition.
Bit 0 specifies the current state of the Zigbee Direct interface as follows: 1 = enabled, 0 = disabled. All other bits are reserved.
| typedef enum zb_zcl_direct_configuration_interface_state_bits_e zb_zcl_direct_configuration_interface_state_bits_t |
Interface State Bitmap definition. Bitmap part.
Zigbee Direct Configuration cluster attribute identifiers.
Interface State Bitmap definition. Bitmap part.
| Enumerator | |
|---|---|
| ZB_ZCL_DIRECT_CONFIGURATION_INTERFACE_STATE_CURRENT_STATE | Bit 0 specifies the current state of the Zigbee Direct interface as follows: 1 = enabled, 0 = disabled. |
| zb_bool_t zb_zcl_direct_configuration_anonymous_join_enabled | ( | void | ) |
Check if current value of Anonymous Join timer is bigger than 0.
| void zb_zcl_direct_configuration_anonymous_join_timer_start | ( | zb_uint8_t | endpoint | ) |
Start or restart Anonymous Join timer from Anonymous Join Timeout value.
| endpoint | endpoint of Zigbee Direct Configuration cluster |
| void zb_zcl_direct_configuration_init_client | ( | void | ) |
| void zb_zcl_direct_configuration_init_server | ( | void | ) |
| zb_bool_t zb_zcl_direct_configuration_is_client_authorized | ( | zb_uint16_t | client_short_addr | ) |
| 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.
| endpoint | - endpoint number |
| attr_id | - ID of attribute being written |
| new_value | - pointer to new value of attribute |