Logo
Developing with ZBOSS for Zigbee
zboss_api_se.h File Reference

Data Structures

struct  zb_zcl_kec_attrs_s
 Key Establishment cluster attributes. More...
 

Macros

#define ZB_ZCL_ATTR_KEY_ESTABLISHMENT_SUITE_ID   0x0000U
 Key Establishment cluster's attributes IDs. More...
 
#define ZB_ZCL_KEY_ESTABLISHMENT_CLUSTER_REVISION_DEFAULT   ((zb_uint16_t)0x0002u)
 Default value for Key Establishment cluster revision global attribute. More...
 
#define ZB_KEC_SUPPORTED_CRYPTO_ATTR   (KEC_CS1 | KEC_CS2)
 Attribute value const (supported CryptoSuites) More...
 
#define ZB_ZCL_DECLARE_KEC_ATTR_LIST(attr_list, attrs)   ZB_ZCL_DECLARE_KEC_ATTRIB_LIST(attr_list, &attrs.kec_suite)
 Declare attribute list for Key Establishment cluster. More...
 
KeyEstablishmentSuite attribute values

Table Values of the KeyEstablishmentSuite Attribute (Table C-4)

#define KEC_CS1   (1U << 0)
 
#define KEC_CS2   (1U << 1)
 

Typedefs

typedef zb_uint8_t zb_kec_key_suite_t
 Type for KeyEstablishmentSuite attribute values. More...
 
typedef struct zb_zcl_kec_attrs_s zb_zcl_kec_attrs_t
 Key Establishment cluster attributes. More...
 

Functions

zb_ret_t zb_se_load_ecc_cert (zb_uint16_t suite, zb_uint8_t *ca_public_key, zb_uint8_t *certificate, zb_uint8_t *private_key)
 Loads device's certificate to NVRAM. More...
 
zb_ret_t zb_se_erase_ecc_cert (zb_uint8_t suite_no, zb_uint8_t *issuer, zb_uint8_t *subject)
 Erases device's certificate from NVRAM. More...
 
zb_bool_t zb_se_has_valid_key (zb_uint16_t addr)
 Checks availability of valid keypair for the specified remote device using its short address. More...
 
zb_bool_t zb_se_has_valid_key_by_ieee (zb_ieee_addr_t addr)
 Checks availability of valid keypair for the specified remote device using its address as a keypair established between a pair of devices. More...
 
zb_ret_t zb_se_debug_get_link_key (zb_uint16_t addr, zb_uint8_t link_key[ZB_CCM_KEY_SIZE])
 Retrieves APS link key or TCLK for the remote device. More...
 
zb_ret_t zb_se_debug_get_link_key_by_long (zb_ieee_addr_t ieee, zb_uint8_t link_key[ZB_CCM_KEY_SIZE])
 Retrieves APS link key or TCLK for the remote device using it's long address. More...
 
zb_ret_t zb_se_debug_get_nwk_key (zb_uint8_t key[ZB_CCM_KEY_SIZE])
 Retrieves current NWK key. More...
 
zb_ret_t zb_se_debug_get_ic_key (zb_uint8_t key[ZB_CCM_KEY_SIZE])
 Retrieves APS link key generated from the current installcode. More...
 
void zb_se_start_aps_key_establishment (zb_uint8_t param, zb_uint16_t addr)
 Starts procedure of partner APS link key establishment with the specified device. More...
 
zb_ret_t zb_se_service_discovery_start (zb_uint8_t endpoint)
 Puts device into the Service Discovery state. More...
 
void zb_se_service_discovery_stop ()
 Stops Service Discovery process started with zb_se_service_discovery_start(). More...
 
void zb_se_service_discovery_set_multiple_commodity_enabled (zb_uint8_t enabled)
 Allows enabling or disabling support for multiple commodity networks. More...
 
void zb_se_service_discovery_bind_req (zb_uint8_t param, zb_ieee_addr_t dst_ieee, zb_uint16_t dst_ep)
 Sends Bind Request command to the discovered SE device. More...