Zigbee Protocol Controller 1.6.0
zigpc_gateway_int.h File Reference
#include <zigpc_common_zigbee.h>
#include <zigpc_config.h>
#include <zigbee_host.h>
#include "zigpc_gateway_notify.h"

Go to the source code of this file.

Classes

struct  __attribute__
 Network information. More...
 

Macros

#define ZIGPC_GATEWAY_NODEID_LIST_KEY   "zb_nodeid_list"
 
#define ZIGPC_GATEWAY_NODEID_COUNT_KEY   "zb_nodeid_count"
 

Functions

sl_status_t zigpc_gateway_reset_observers (void)
 Clear registered observers. More...
 
void zigpc_gateway_on_ncp_pre_reset (sl_zigbee_ezsp_status_t resetStatus)
 Z3Gatway callback handler to be called before NCP resets. More...
 
void zigpc_gateway_on_ncp_post_reset (void)
 ZigbeeHost callback handler called after NCP resets and is going through initialization. More...
 
sl_status_t zigpc_gateway_load_address_table_info (void)
 Load EUI64 to NodeId device ID mappings. This function loads all perisisted EUI64 to NodeId mappings (retrieved from ZigPC datastore) to-be tracked in EmberAf address-table plugin. More...
 
sl_status_t zigpc_gateway_persist_address_table_info (void)
 Persist EUI64 to NodeId device ID mappings. This function stores all EUI64 to NodeId mappings from the EmberAf address-table plugin into the ZigPC datstore. More...
 
sl_status_t zigpc_gateway_load_from_datastore (void)
 Wrapper function to load information from uic_datastore. More...
 
sl_status_t zigpc_gateway_persist_to_datastore (void)
 Wrapper function to store information to uic_datastore. More...
 
sl_status_t zigpc_gateway_unload_sleepy_messages (const zigbee_eui64_t eui64)
 zigpc_gateway_unload_sleepy_messages A helper function to unload all ZCL frames stored for a given sleepy device, determined by its eui64 More...
 

Variables

static const char LOG_TAG [] = "zigpc_gateway"
 
struct zigbeeHostCallbacks zigpc_gateway_zigbee_host_callbacks
 
struct zigpc_observable zigpc_gateway_observable
 Reference to Registered Gateway Observers. More...
 

Macro Definition Documentation

◆ ZIGPC_GATEWAY_NODEID_COUNT_KEY

#define ZIGPC_GATEWAY_NODEID_COUNT_KEY   "zb_nodeid_count"

◆ ZIGPC_GATEWAY_NODEID_LIST_KEY

#define ZIGPC_GATEWAY_NODEID_LIST_KEY   "zb_nodeid_list"

Function Documentation

◆ zigpc_gateway_load_address_table_info()

sl_status_t zigpc_gateway_load_address_table_info ( void  )

Load EUI64 to NodeId device ID mappings. This function loads all perisisted EUI64 to NodeId mappings (retrieved from ZigPC datastore) to-be tracked in EmberAf address-table plugin.

Returns
sl_status_t SL_STATUS_OK on successfully loading each mapping, error in reading/loading otherwise.

◆ zigpc_gateway_load_from_datastore()

sl_status_t zigpc_gateway_load_from_datastore ( void  )

Wrapper function to load information from uic_datastore.

Plugin information loaded:

  • emberAf Address Table
Returns
sl_status_t SL_STATUS_OK on success, error otherwise.

◆ zigpc_gateway_on_ncp_post_reset()

void zigpc_gateway_on_ncp_post_reset ( void  )

ZigbeeHost callback handler called after NCP resets and is going through initialization.

◆ zigpc_gateway_on_ncp_pre_reset()

void zigpc_gateway_on_ncp_pre_reset ( sl_zigbee_ezsp_status_t  resetStatus)

Z3Gatway callback handler to be called before NCP resets.

Parameters
resetStatusThe EZSP reset reason.

◆ zigpc_gateway_persist_address_table_info()

sl_status_t zigpc_gateway_persist_address_table_info ( void  )

Persist EUI64 to NodeId device ID mappings. This function stores all EUI64 to NodeId mappings from the EmberAf address-table plugin into the ZigPC datstore.

Returns
sl_status_t SL_STATUS_OK on successfully persisting each mapping, error in getting/persisting otherwise.

◆ zigpc_gateway_persist_to_datastore()

sl_status_t zigpc_gateway_persist_to_datastore ( void  )

Wrapper function to store information to uic_datastore.

Plugin information loaded:

  • emberAf Address Table
Returns
sl_status_t SL_STATUS_OK on success, error otherwise.

◆ zigpc_gateway_reset_observers()

sl_status_t zigpc_gateway_reset_observers ( void  )

Clear registered observers.

◆ zigpc_gateway_unload_sleepy_messages()

sl_status_t zigpc_gateway_unload_sleepy_messages ( const zigbee_eui64_t  eui64)

zigpc_gateway_unload_sleepy_messages A helper function to unload all ZCL frames stored for a given sleepy device, determined by its eui64

Parameters
eui64- the eui64 of a given sleepy end device
Returns
SL_STATUS_OK if able to successfully find and send the ZCL frames associated with the eui64. SL_STATUS_FAIL otherwise

Variable Documentation

◆ LOG_TAG

const char LOG_TAG[] = "zigpc_gateway"
static

◆ zigpc_gateway_observable

struct zigpc_observable zigpc_gateway_observable
extern

Reference to Registered Gateway Observers.

Internal API for notify system

◆ zigpc_gateway_zigbee_host_callbacks

struct zigbeeHostCallbacks zigpc_gateway_zigbee_host_callbacks
extern