Zigbee Protocol Controller 1.6.0
zigpc_net_mgmt_notify.h
Go to the documentation of this file.
1/******************************************************************************
2 * # License
3 * <b>Copyright 2020 Silicon Laboratories Inc. www.silabs.com</b>
4 ******************************************************************************
5 * The licensor of this software is Silicon Laboratories Inc. Your use of this
6 * software is governed by the terms of Silicon Labs Master Software License
7 * Agreement (MSLA) available at
8 * www.silabs.com/about-us/legal/master-software-license-agreement. This
9 * software is distributed to you in Source Code format and is governed by the
10 * sections of the MSLA applicable to Source Code.
11 *
12 *****************************************************************************/
13
26#ifndef ZIGPC_NET_MGMT_NOTIFY_H
27#define ZIGPC_NET_MGMT_NOTIFY_H
28
29/* Contiki includes */
30#include "sl_status.h"
31#include "zigpc_net_mgmt.h"
33#include "zigpc_common_zigbee.h"
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39#define ZIGPC_NET_MGMT_REQUESTED_STATE_PARAMS_MAX 10
40
52};
53
61
74
83
90 const char
94
102
103typedef struct {
107
112typedef struct {
115
127
139
140#ifdef __cplusplus
141}
142#endif
143
144#endif //ZIGPC_NET_MGMT_NOTIFY_H
145
uint32_t sl_status_t
Definition: sl_status.h:139
void(* zigpc_observer_callback_t)(void *data)
Observer callback that is called by subjects when notifying observers of new events.
Definition: zigpc_common_observable.h:136
uint8_t zigbee_eui64_t[ZIGBEE_EUI64_SIZE]
Zigbee Device EUI64 ID.
Definition: zigpc_common_zigbee.h:193
sl_status_t zigpc_net_mgmt_unregister_observer(enum zigpc_net_mgmt_notify_event event, zigpc_observer_callback_t callback)
Unregister observer from Net Mgmt updates If the observer is not found, nothing will be done.
Definition: zigpc_net_mgmt_notify.c:43
zigpc_net_mgmt_notify_event
Notify event types.
Definition: zigpc_net_mgmt_notify.h:45
#define ZIGPC_NET_MGMT_REQUESTED_STATE_PARAMS_MAX
Definition: zigpc_net_mgmt_notify.h:39
struct zigpc_net_mgmt_on_node_added zigpc_net_mgmt_on_node_added_t
Event data on node added to the network.
struct zigpc_net_mgmt_on_network_state_update zigpc_net_mgmt_on_network_state_update_t
Event data on network state update. These fields will be used to publish the new state as well as any...
struct zigpc_net_mgmt_on_network_init zigpc_net_mgmt_on_network_init_t
Event data on network state update.
sl_status_t zigpc_net_mgmt_register_observer(enum zigpc_net_mgmt_notify_event event, zigpc_observer_callback_t callback)
Register observer to be informed of Net Mgmt updates If the observer is already registered,...
Definition: zigpc_net_mgmt_notify.c:37
@ ZIGPC_NET_MGMT_NOTIFY_STATE_UPDATE
Definition: zigpc_net_mgmt_notify.h:47
@ ZIGPC_NET_MGMT_NOTIFY_NETWORK_INIT
Definition: zigpc_net_mgmt_notify.h:46
@ ZIGPC_NET_MGMT_NOTIFY_MAX
Definition: zigpc_net_mgmt_notify.h:51
@ ZIGPC_NET_MGMT_NOTIFY_NODE_REMOVED
Definition: zigpc_net_mgmt_notify.h:50
@ ZIGPC_NET_MGMT_NOTIFY_NODE_INTERVIEW_STATUS
Definition: zigpc_net_mgmt_notify.h:49
@ ZIGPC_NET_MGMT_NOTIFY_NODE_ADDED
Definition: zigpc_net_mgmt_notify.h:48
zigpc_net_mgmt_fsm_state
Network Management FSM States.
Definition: zigpc_net_mgmt.h:41
@ ZIGPC_NET_MGMT_FSM_STATE_MAX_VAL
Definition: zigpc_net_mgmt.h:49
SL Status Codes.
Event data on network state update.
Definition: zigpc_net_mgmt_notify.h:58
zigbee_eui64_t pc_eui64
Definition: zigpc_net_mgmt_notify.h:59
Event data on network state update. These fields will be used to publish the new state as well as any...
Definition: zigpc_net_mgmt_notify.h:68
uint8_t requested_state_parameter_count
Definition: zigpc_net_mgmt_notify.h:92
uint8_t next_supported_states_count
Definition: zigpc_net_mgmt_notify.h:82
enum zigpc_net_mgmt_fsm_state new_state
The new network management state.
Definition: zigpc_net_mgmt_notify.h:73
enum zigpc_net_mgmt_fsm_state next_supported_states_list[ZIGPC_NET_MGMT_FSM_STATE_MAX_VAL]
The next possible states in network management based on the new state that is supplied.
Definition: zigpc_net_mgmt_notify.h:80
const char * requested_state_parameter_list[ZIGPC_NET_MGMT_REQUESTED_STATE_PARAMS_MAX]
List of requested state parameters needed to perform network management action (add node,...
Definition: zigpc_net_mgmt_notify.h:91
Event data on node added to the network.
Definition: zigpc_net_mgmt_notify.h:99
zigbee_eui64_t eui64
Definition: zigpc_net_mgmt_notify.h:100
Definition: zigpc_net_mgmt_notify.h:103
bool success
Definition: zigpc_net_mgmt_notify.h:104
zigbee_eui64_t eui64
Definition: zigpc_net_mgmt_notify.h:105
Event data on node removed from the network.
Definition: zigpc_net_mgmt_notify.h:112
zigbee_eui64_t eui64
Definition: zigpc_net_mgmt_notify.h:113