Trident IoT Zigbee SDK
 
Loading...
Searching...
No Matches
tr_af.h File Reference

Trident application framework include. More...

#include "zb_common.h"
#include "tr_debug_print.h"
#include "tr_zcl_common.h"
#include "tr_mfg_tokens.h"
#include "tr_zcl_endpoint_config.h"
+ Include dependency graph for tr_af.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TR_PRIMARY_CHANNEL_MASK   0x02108800
 
#define TR_SECONDARY_CHANNEL_MASK   0x05EF7000
 

Enumerations

enum  tr_conn_state_e {
  TR_CONN_STATE_NO_NETWORK ,
  TR_CONN_STATE_NWK_STEERING_ATTEMPT_SUCCESS ,
  TR_CONN_STATE_NWK_STEERING_ATTEMPT_FAILURE ,
  TR_CONN_STATE_JOINED_NETWORK ,
  TR_CONN_STATE_JOINED_NETWORK_NO_PARENT ,
  TR_CONN_STATE_UNKNOWN = 0xFF
}
 

Functions

zb_uint8_t * tr_zcl_external_attribute_read_cb (zb_uint8_t endpoint, zb_uint16_t cluster_id, zb_uint8_t cluster_role, zb_uint16_t attr_id, zb_uint16_t manuf_code)
 Callback that the user can declare to handle external attribute storage.
 
void tr_app_init_cb (void)
 Callback that fires when ZBOSS framework (scheduler, buffer pool, etc.) has started, but no join / rejoin / formation / BDB initialization has been done yet.
 
void tr_connection_state_cb (tr_conn_state_e conn_state)
 Callback that fires when network connection state changes.
 
zb_bool_t tr_eui64_user_override_cb (zb_uint8_t *eui64)
 Callback that can be defined in the user application to set the EUI64.
 
void tr_af_init (void)
 Initialize Trident application framework.
 
tr_conn_state_e tr_get_connection_state (void)
 Function for getting the last known connection state of the device. Optional callback tr_connection_state_cb() is fired when state changes.
 
void tr_network_rejoin (zb_uint32_t channel_mask, zb_bool_t secure)
 Function for initiating network rejoin attempts.
 

Detailed Description

Trident application framework include.


SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2025 Trident IoT, LLC https://www.tridentiot.com


Macro Definition Documentation

◆ TR_PRIMARY_CHANNEL_MASK

#define TR_PRIMARY_CHANNEL_MASK   0x02108800

◆ TR_SECONDARY_CHANNEL_MASK

#define TR_SECONDARY_CHANNEL_MASK   0x05EF7000

Enumeration Type Documentation

◆ tr_conn_state_e

Enumerator
TR_CONN_STATE_NO_NETWORK 
TR_CONN_STATE_NWK_STEERING_ATTEMPT_SUCCESS 
TR_CONN_STATE_NWK_STEERING_ATTEMPT_FAILURE 
TR_CONN_STATE_JOINED_NETWORK 
TR_CONN_STATE_JOINED_NETWORK_NO_PARENT 
TR_CONN_STATE_UNKNOWN