Defines for the Zigbee Event Logger component, which describes various events that can be recorded and retrieved for user inspection.

License#

Copyright 2021 Silicon Laboratories Inc. www.silabs.com

The licensor of this software is Silicon Laboratories Inc. Your use of this software is governed by the terms of Silicon Labs Master Software License Agreement (MSLA) available at www.silabs.com/about-us/legal/master-software-license-agreement. This software is distributed to you in Source Code format and is governed by the sections of the MSLA applicable to Source Code.

/***************************************************************************/
//
// *** Generated file. Do not edit! ***
// Generated by: generate-zigbee-logger-files.py -y zigbee_logger.yaml

#ifndef _ZIGBEE_EVENT_LOGGER_GEN_H_
#define _ZIGBEE_EVENT_LOGGER_GEN_H_

#include "stack/include/sl_zigbee_types.h"

#define ZIGBEE_EVENT_LOGGER_VERSION 1

#define LOGGER_AREA_BIT_SHIFT 12
#define SL_ZIGBEE_ZIGBEE_LOGGER_AREA (0 << LOGGER_AREA_BIT_SHIFT)

typedef enum {
  SL_ZIGBEE_LOGGER_ZIGBEE_BOOT_EVENT_ID = 0,
  SL_ZIGBEE_LOGGER_ZIGBEE_JOIN_NETWORK_ID = 1,
  SL_ZIGBEE_LOGGER_ZIGBEE_TRUST_CENTER_REJOIN_ID = 2,
  SL_ZIGBEE_LOGGER_ZIGBEE_SECURE_REJOIN_ID = 3,
  SL_ZIGBEE_LOGGER_ZIGBEE_LEAVE_WITHOUT_REJOIN_ID = 4,
  SL_ZIGBEE_LOGGER_ZIGBEE_LEAVE_WITH_REJOIN_ID = 5,
  SL_ZIGBEE_LOGGER_ZIGBEE_TRUST_CENTER_LINK_KEY_CHANGE_ID = 6,
  SL_ZIGBEE_LOGGER_ZIGBEE_NETWORK_KEY_SEQUENCE_NUMBER_CHANGE_ID = 7,
  SL_ZIGBEE_LOGGER_ZIGBEE_RESET_ID = 8,
  SL_ZIGBEE_LOGGER_ZIGBEE_CHANNEL_CHANGE_ID = 9,
  SL_ZIGBEE_LOGGER_ZIGBEE_PARENT_CHANGE_ID = 10,
  SL_ZIGBEE_LOGGER_ZIGBEE_DUTY_CYCLE_CHANGE_ID = 11,
  SL_ZIGBEE_LOGGER_ZIGBEE_CHILD_ADDED_ID = 12,
  SL_ZIGBEE_LOGGER_ZIGBEE_CHILD_REMOVED_ID = 13,
  SL_ZIGBEE_LOGGER_ZIGBEE_CHILD_TIMED_OUT_ID = 14,
  SL_ZIGBEE_LOGGER_ZIGBEE_STACK_STATUS_ID = 15,
  SL_ZIGBEE_LOGGER_ZIGBEE_TIME_SYNC_ID = 16,
  SL_ZIGBEE_LOGGER_ZIGBEE_TRUST_CENTER_JOIN_DECISION_ID = 17,
  // Last value. All event IDs should be less than this
  SL_ZIGBEE_LOGGER_ZIGBEE_NULL_ID = 0xFFFF,
} sl_zigbee_zigbee_logger_event_types_t;

typedef enum {
  SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_BASE = 0,
  SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_MAC = 1,
  SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_NETWORK = 2,
  SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_APS = 3,
  SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_SECURITY = 4,
  SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_ZDO = 5,
  SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_ZCL = 6,
  SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_BDB = 7,
  SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_SMART_ENERGY = 8,
} sl_zigbee_zigbee_logger_facility_types_t;

#define SL_ZIGBEE_LOGGER_ZIGBEE_BOOT_EVENT_LENGTH 6
#define SL_ZIGBEE_LOGGER_ZIGBEE_JOIN_NETWORK_LENGTH 12
#define SL_ZIGBEE_LOGGER_ZIGBEE_TRUST_CENTER_REJOIN_LENGTH 5
#define SL_ZIGBEE_LOGGER_ZIGBEE_SECURE_REJOIN_LENGTH 5
#define SL_ZIGBEE_LOGGER_ZIGBEE_LEAVE_WITHOUT_REJOIN_LENGTH 3
#define SL_ZIGBEE_LOGGER_ZIGBEE_LEAVE_WITH_REJOIN_LENGTH 3
#define SL_ZIGBEE_LOGGER_ZIGBEE_TRUST_CENTER_LINK_KEY_CHANGE_LENGTH 0
#define SL_ZIGBEE_LOGGER_ZIGBEE_NETWORK_KEY_SEQUENCE_NUMBER_CHANGE_LENGTH 1
#define SL_ZIGBEE_LOGGER_ZIGBEE_RESET_LENGTH 2
#define SL_ZIGBEE_LOGGER_ZIGBEE_CHANNEL_CHANGE_LENGTH 2
#define SL_ZIGBEE_LOGGER_ZIGBEE_PARENT_CHANGE_LENGTH 10
#define SL_ZIGBEE_LOGGER_ZIGBEE_DUTY_CYCLE_CHANGE_LENGTH 7
#define SL_ZIGBEE_LOGGER_ZIGBEE_CHILD_ADDED_LENGTH 10
#define SL_ZIGBEE_LOGGER_ZIGBEE_CHILD_REMOVED_LENGTH 10
#define SL_ZIGBEE_LOGGER_ZIGBEE_CHILD_TIMED_OUT_LENGTH 10
#define SL_ZIGBEE_LOGGER_ZIGBEE_STACK_STATUS_LENGTH 4
#define SL_ZIGBEE_LOGGER_ZIGBEE_TIME_SYNC_LENGTH 8
#define SL_ZIGBEE_LOGGER_ZIGBEE_TRUST_CENTER_JOIN_DECISION_LENGTH 3

void sl_zigbee_af_zig_bee_event_logger_add_boot_event(uint32_t bootCount, uint16_t resetType)
;
void sl_zigbee_af_zig_bee_event_logger_add_join_network(sl_802154_pan_id_t panId, uint8_t channelNumber, uint8_t page, uint8_t *extendedPanId)
;
void sl_zigbee_af_zig_bee_event_logger_add_trust_center_rejoin(uint32_t channelMask, sl_zigbee_rejoin_reason_t reason)
;
void sl_zigbee_af_zig_bee_event_logger_add_secure_rejoin(uint32_t channelMask, sl_zigbee_rejoin_reason_t reason)
;
void sl_zigbee_af_zig_bee_event_logger_add_leave_without_rejoin(sl_802154_short_addr_t sourceNode, sl_zigbee_leave_reason_t reason)
;
void sl_zigbee_af_zig_bee_event_logger_add_leave_with_rejoin(sl_802154_short_addr_t sourceNode, sl_zigbee_leave_reason_t reason)
;
void sl_zigbee_af_zig_bee_event_logger_add_trust_center_link_key_change(void)
;
void sl_zigbee_af_zig_bee_event_logger_add_network_key_sequence_change(uint8_t sequence)
;
void sl_zigbee_af_zig_bee_event_logger_add_reset(uint8_t resetCode, uint8_t extendedReason)
;
void sl_zigbee_af_zig_bee_event_logger_add_channel_change(uint8_t page, uint8_t channel)
;
void sl_zigbee_af_zig_bee_event_logger_add_parent_change(sl_802154_short_addr_t parentNodeId, sl_802154_long_addr_t parentEui64)
;
void sl_zigbee_af_zig_bee_event_logger_add_duty_cycle_change(sl_zigbee_duty_cycle_state_t state, sl_zigbee_duty_cycle_hecto_pct_t limitThreshold, sl_zigbee_duty_cycle_hecto_pct_t criticalThreshold, sl_zigbee_duty_cycle_hecto_pct_t suspendedLimit)
;
void sl_zigbee_af_zig_bee_event_logger_add_child_added(sl_802154_short_addr_t childNodeId, sl_802154_long_addr_t childEui64)
;
void sl_zigbee_af_zig_bee_event_logger_add_child_removed(sl_802154_short_addr_t childNodeId, sl_802154_long_addr_t childEui64)
;
void sl_zigbee_af_zig_bee_event_logger_add_child_timed_out(sl_802154_short_addr_t childNodeId, sl_802154_long_addr_t childEui64)
;
void sl_zigbee_af_zig_bee_event_logger_add_stack_status(sl_status_t status)
;
void sl_zigbee_af_zig_bee_event_logger_add_time_sync(uint32_t utcTime, uint32_t secondsSinceBoot)
;
void sl_zigbee_af_zig_bee_event_logger_add_trust_center_join_decision(sl_802154_short_addr_t nodeId, uint8_t decision)
;

#endif  // #ifndef _ZIGBEE_EVENT_LOGGER_GEN_H_

Macros#

#define

The version of this feature.

#define
SL_ZIGBEE_ZIGBEE_LOGGER_AREA (0 << LOGGER_AREA_BIT_SHIFT)
#define

The length of the Boot Event event data.

#define

The length of the Join Network event data.

#define

The length of the Trust Center Rejoin event data.

#define

The length of the Secure Rejoin event data.

#define

The length of the Leave Without Rejoin event data.

#define

The length of the Leave With Rejoin event data.

#define

The length of the Trust Center Link Key Change event data.

#define

The length of the Network Key Sequence Number Change event data.

#define

The length of the Reset event data.

#define

The length of the Channel Change event data.

#define

The length of the Parent Change event data.

#define

The length of the Duty Cycle Change event data.

#define

The length of the Child Added event data.

#define

The length of the Child Removed event data.

#define

The length of the Child Timed Out event data.

#define

The length of the Stack Status event data.

#define

The length of the Time Sync event data.

#define

The length of the Trust Center Join Decision event data.

Enumerations#

enum
SL_ZIGBEE_LOGGER_ZIGBEE_BOOT_EVENT_ID = 0
SL_ZIGBEE_LOGGER_ZIGBEE_JOIN_NETWORK_ID = 1
SL_ZIGBEE_LOGGER_ZIGBEE_TRUST_CENTER_REJOIN_ID = 2
SL_ZIGBEE_LOGGER_ZIGBEE_SECURE_REJOIN_ID = 3
SL_ZIGBEE_LOGGER_ZIGBEE_LEAVE_WITHOUT_REJOIN_ID = 4
SL_ZIGBEE_LOGGER_ZIGBEE_LEAVE_WITH_REJOIN_ID = 5
SL_ZIGBEE_LOGGER_ZIGBEE_TRUST_CENTER_LINK_KEY_CHANGE_ID = 6
SL_ZIGBEE_LOGGER_ZIGBEE_NETWORK_KEY_SEQUENCE_NUMBER_CHANGE_ID = 7
SL_ZIGBEE_LOGGER_ZIGBEE_RESET_ID = 8
SL_ZIGBEE_LOGGER_ZIGBEE_CHANNEL_CHANGE_ID = 9
SL_ZIGBEE_LOGGER_ZIGBEE_PARENT_CHANGE_ID = 10
SL_ZIGBEE_LOGGER_ZIGBEE_DUTY_CYCLE_CHANGE_ID = 11
SL_ZIGBEE_LOGGER_ZIGBEE_CHILD_ADDED_ID = 12
SL_ZIGBEE_LOGGER_ZIGBEE_CHILD_REMOVED_ID = 13
SL_ZIGBEE_LOGGER_ZIGBEE_CHILD_TIMED_OUT_ID = 14
SL_ZIGBEE_LOGGER_ZIGBEE_STACK_STATUS_ID = 15
SL_ZIGBEE_LOGGER_ZIGBEE_TIME_SYNC_ID = 16
SL_ZIGBEE_LOGGER_ZIGBEE_TRUST_CENTER_JOIN_DECISION_ID = 17
SL_ZIGBEE_LOGGER_ZIGBEE_NULL_ID = 0xFFFF
}

A list of identifiers for system events.

enum
SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_BASE = 0
SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_MAC = 1
SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_NETWORK = 2
SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_APS = 3
SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_SECURITY = 4
SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_ZDO = 5
SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_ZCL = 6
SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_BDB = 7
SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_SMART_ENERGY = 8
}

A list of facilities for system events, identifying which layer they occurred in.

Functions#

void
sl_zigbee_af_zig_bee_event_logger_add_boot_event(uint32_t bootCount, uint16_t resetType)

Record an event indicating that the device has booted.

void
sl_zigbee_af_zig_bee_event_logger_add_join_network(sl_802154_pan_id_t panId, uint8_t channelNumber, uint8_t page, uint8_t *extendedPanId)

Record an event indicating that a network was successfully joined.

void
sl_zigbee_af_zig_bee_event_logger_add_trust_center_rejoin(uint32_t channelMask, sl_zigbee_rejoin_reason_t reason)

Record an event indicating that a trust center rejoin was attempted.

void
sl_zigbee_af_zig_bee_event_logger_add_secure_rejoin(uint32_t channelMask, sl_zigbee_rejoin_reason_t reason)

Record an event indicating that a secure rejoin was attempted.

void
sl_zigbee_af_zig_bee_event_logger_add_leave_without_rejoin(sl_802154_short_addr_t sourceNode, sl_zigbee_leave_reason_t reason)

Record an event indicating that a device has left-without-rejoin.

void
sl_zigbee_af_zig_bee_event_logger_add_leave_with_rejoin(sl_802154_short_addr_t sourceNode, sl_zigbee_leave_reason_t reason)

Record an event indicating that a device has left-with-rejoin.

void

Record an event indicating that an attempt was made to update the trust center link key.

void

Record an event indicating that the network key sequence number has changed.

void
sl_zigbee_af_zig_bee_event_logger_add_reset(uint8_t resetCode, uint8_t extendedReason)

Record an event indicating that the local device has reset.

void

Record an event indicating that the network's channel has changed.

void
sl_zigbee_af_zig_bee_event_logger_add_parent_change(sl_802154_short_addr_t parentNodeId, sl_802154_long_addr_t parentEui64)

Record an event indicating that the local device's parent has changed.

void
sl_zigbee_af_zig_bee_event_logger_add_duty_cycle_change(sl_zigbee_duty_cycle_state_t state, sl_zigbee_duty_cycle_hecto_pct_t limitThreshold, sl_zigbee_duty_cycle_hecto_pct_t criticalThreshold, sl_zigbee_duty_cycle_hecto_pct_t suspendedLimit)

Record an event indicating that the duty cycle has changed.

void
sl_zigbee_af_zig_bee_event_logger_add_child_added(sl_802154_short_addr_t childNodeId, sl_802154_long_addr_t childEui64)

Record an event indicating that a child device has joined the local device.

void
sl_zigbee_af_zig_bee_event_logger_add_child_removed(sl_802154_short_addr_t childNodeId, sl_802154_long_addr_t childEui64)

Record an event indicating that a child device has been removed from the local device.

void
sl_zigbee_af_zig_bee_event_logger_add_child_timed_out(sl_802154_short_addr_t childNodeId, sl_802154_long_addr_t childEui64)

Record an event indicating that a child device has been timed out by the local device.

void

Record an event indicating that the stack status has changed.

void
sl_zigbee_af_zig_bee_event_logger_add_time_sync(uint32_t utcTime, uint32_t secondsSinceBoot)

Record an event indicating that the clock time has been synchronized.

void
sl_zigbee_af_zig_bee_event_logger_add_trust_center_join_decision(sl_802154_short_addr_t nodeId, uint8_t decision)

Record an event indicating that a device has attempted to join or rejoin the network.

Macro Definition Documentation#

ZIGBEE_EVENT_LOGGER_VERSION#

#define ZIGBEE_EVENT_LOGGER_VERSION
Value:
1

The version of this feature.


Definition at line 40 of file stack/include/zigbee-event-logger-gen.h

LOGGER_AREA_BIT_SHIFT#

#define LOGGER_AREA_BIT_SHIFT
Value:
12

Definition at line 42 of file stack/include/zigbee-event-logger-gen.h

SL_ZIGBEE_ZIGBEE_LOGGER_AREA#

#define SL_ZIGBEE_ZIGBEE_LOGGER_AREA
Value:
(0 << LOGGER_AREA_BIT_SHIFT)

Definition at line 43 of file stack/include/zigbee-event-logger-gen.h

SL_ZIGBEE_LOGGER_ZIGBEE_BOOT_EVENT_LENGTH#

#define SL_ZIGBEE_LOGGER_ZIGBEE_BOOT_EVENT_LENGTH
Value:
6

The length of the Boot Event event data.


Definition at line 87 of file stack/include/zigbee-event-logger-gen.h

SL_ZIGBEE_LOGGER_ZIGBEE_JOIN_NETWORK_LENGTH#

#define SL_ZIGBEE_LOGGER_ZIGBEE_JOIN_NETWORK_LENGTH
Value:
12

The length of the Join Network event data.


Definition at line 89 of file stack/include/zigbee-event-logger-gen.h

SL_ZIGBEE_LOGGER_ZIGBEE_TRUST_CENTER_REJOIN_LENGTH#

#define SL_ZIGBEE_LOGGER_ZIGBEE_TRUST_CENTER_REJOIN_LENGTH
Value:
5

The length of the Trust Center Rejoin event data.


Definition at line 91 of file stack/include/zigbee-event-logger-gen.h

SL_ZIGBEE_LOGGER_ZIGBEE_SECURE_REJOIN_LENGTH#

#define SL_ZIGBEE_LOGGER_ZIGBEE_SECURE_REJOIN_LENGTH
Value:
5

The length of the Secure Rejoin event data.


Definition at line 93 of file stack/include/zigbee-event-logger-gen.h

SL_ZIGBEE_LOGGER_ZIGBEE_LEAVE_WITHOUT_REJOIN_LENGTH#

#define SL_ZIGBEE_LOGGER_ZIGBEE_LEAVE_WITHOUT_REJOIN_LENGTH
Value:
3

The length of the Leave Without Rejoin event data.


Definition at line 95 of file stack/include/zigbee-event-logger-gen.h

SL_ZIGBEE_LOGGER_ZIGBEE_LEAVE_WITH_REJOIN_LENGTH#

#define SL_ZIGBEE_LOGGER_ZIGBEE_LEAVE_WITH_REJOIN_LENGTH
Value:
3

The length of the Leave With Rejoin event data.


Definition at line 97 of file stack/include/zigbee-event-logger-gen.h

SL_ZIGBEE_LOGGER_ZIGBEE_TRUST_CENTER_LINK_KEY_CHANGE_LENGTH#

#define SL_ZIGBEE_LOGGER_ZIGBEE_TRUST_CENTER_LINK_KEY_CHANGE_LENGTH
Value:
0

The length of the Trust Center Link Key Change event data.


Definition at line 99 of file stack/include/zigbee-event-logger-gen.h

SL_ZIGBEE_LOGGER_ZIGBEE_NETWORK_KEY_SEQUENCE_NUMBER_CHANGE_LENGTH#

#define SL_ZIGBEE_LOGGER_ZIGBEE_NETWORK_KEY_SEQUENCE_NUMBER_CHANGE_LENGTH
Value:
1

The length of the Network Key Sequence Number Change event data.


Definition at line 101 of file stack/include/zigbee-event-logger-gen.h

SL_ZIGBEE_LOGGER_ZIGBEE_RESET_LENGTH#

#define SL_ZIGBEE_LOGGER_ZIGBEE_RESET_LENGTH
Value:
2

The length of the Reset event data.


Definition at line 103 of file stack/include/zigbee-event-logger-gen.h

SL_ZIGBEE_LOGGER_ZIGBEE_CHANNEL_CHANGE_LENGTH#

#define SL_ZIGBEE_LOGGER_ZIGBEE_CHANNEL_CHANGE_LENGTH
Value:
2

The length of the Channel Change event data.


Definition at line 105 of file stack/include/zigbee-event-logger-gen.h

SL_ZIGBEE_LOGGER_ZIGBEE_PARENT_CHANGE_LENGTH#

#define SL_ZIGBEE_LOGGER_ZIGBEE_PARENT_CHANGE_LENGTH
Value:
10

The length of the Parent Change event data.


Definition at line 107 of file stack/include/zigbee-event-logger-gen.h

SL_ZIGBEE_LOGGER_ZIGBEE_DUTY_CYCLE_CHANGE_LENGTH#

#define SL_ZIGBEE_LOGGER_ZIGBEE_DUTY_CYCLE_CHANGE_LENGTH
Value:
7

The length of the Duty Cycle Change event data.


Definition at line 109 of file stack/include/zigbee-event-logger-gen.h

SL_ZIGBEE_LOGGER_ZIGBEE_CHILD_ADDED_LENGTH#

#define SL_ZIGBEE_LOGGER_ZIGBEE_CHILD_ADDED_LENGTH
Value:
10

The length of the Child Added event data.


Definition at line 111 of file stack/include/zigbee-event-logger-gen.h

SL_ZIGBEE_LOGGER_ZIGBEE_CHILD_REMOVED_LENGTH#

#define SL_ZIGBEE_LOGGER_ZIGBEE_CHILD_REMOVED_LENGTH
Value:
10

The length of the Child Removed event data.


Definition at line 113 of file stack/include/zigbee-event-logger-gen.h

SL_ZIGBEE_LOGGER_ZIGBEE_CHILD_TIMED_OUT_LENGTH#

#define SL_ZIGBEE_LOGGER_ZIGBEE_CHILD_TIMED_OUT_LENGTH
Value:
10

The length of the Child Timed Out event data.


Definition at line 115 of file stack/include/zigbee-event-logger-gen.h

SL_ZIGBEE_LOGGER_ZIGBEE_STACK_STATUS_LENGTH#

#define SL_ZIGBEE_LOGGER_ZIGBEE_STACK_STATUS_LENGTH
Value:
4

The length of the Stack Status event data.


Definition at line 117 of file stack/include/zigbee-event-logger-gen.h

SL_ZIGBEE_LOGGER_ZIGBEE_TIME_SYNC_LENGTH#

#define SL_ZIGBEE_LOGGER_ZIGBEE_TIME_SYNC_LENGTH
Value:
8

The length of the Time Sync event data.


Definition at line 119 of file stack/include/zigbee-event-logger-gen.h

SL_ZIGBEE_LOGGER_ZIGBEE_TRUST_CENTER_JOIN_DECISION_LENGTH#

#define SL_ZIGBEE_LOGGER_ZIGBEE_TRUST_CENTER_JOIN_DECISION_LENGTH
Value:
3

The length of the Trust Center Join Decision event data.


Definition at line 121 of file stack/include/zigbee-event-logger-gen.h

Enumeration Documentation#

sl_zigbee_zigbee_logger_event_types_t#

sl_zigbee_zigbee_logger_event_types_t

A list of identifiers for system events.

Enumerator
SL_ZIGBEE_LOGGER_ZIGBEE_BOOT_EVENT_ID
SL_ZIGBEE_LOGGER_ZIGBEE_JOIN_NETWORK_ID
SL_ZIGBEE_LOGGER_ZIGBEE_TRUST_CENTER_REJOIN_ID
SL_ZIGBEE_LOGGER_ZIGBEE_SECURE_REJOIN_ID
SL_ZIGBEE_LOGGER_ZIGBEE_LEAVE_WITHOUT_REJOIN_ID
SL_ZIGBEE_LOGGER_ZIGBEE_LEAVE_WITH_REJOIN_ID
SL_ZIGBEE_LOGGER_ZIGBEE_TRUST_CENTER_LINK_KEY_CHANGE_ID
SL_ZIGBEE_LOGGER_ZIGBEE_NETWORK_KEY_SEQUENCE_NUMBER_CHANGE_ID
SL_ZIGBEE_LOGGER_ZIGBEE_RESET_ID
SL_ZIGBEE_LOGGER_ZIGBEE_CHANNEL_CHANGE_ID
SL_ZIGBEE_LOGGER_ZIGBEE_PARENT_CHANGE_ID
SL_ZIGBEE_LOGGER_ZIGBEE_DUTY_CYCLE_CHANGE_ID
SL_ZIGBEE_LOGGER_ZIGBEE_CHILD_ADDED_ID
SL_ZIGBEE_LOGGER_ZIGBEE_CHILD_REMOVED_ID
SL_ZIGBEE_LOGGER_ZIGBEE_CHILD_TIMED_OUT_ID
SL_ZIGBEE_LOGGER_ZIGBEE_STACK_STATUS_ID
SL_ZIGBEE_LOGGER_ZIGBEE_TIME_SYNC_ID
SL_ZIGBEE_LOGGER_ZIGBEE_TRUST_CENTER_JOIN_DECISION_ID
SL_ZIGBEE_LOGGER_ZIGBEE_NULL_ID

Definition at line 48 of file stack/include/zigbee-event-logger-gen.h

sl_zigbee_zigbee_logger_facility_types_t#

sl_zigbee_zigbee_logger_facility_types_t

A list of facilities for system events, identifying which layer they occurred in.

Enumerator
SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_BASE
SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_MAC
SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_NETWORK
SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_APS
SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_SECURITY
SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_ZDO
SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_ZCL
SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_BDB
SL_ZIGBEE_LOGGER_ZIGBEE_FACILITY_SMART_ENERGY

Definition at line 74 of file stack/include/zigbee-event-logger-gen.h

Function Documentation#

sl_zigbee_af_zig_bee_event_logger_add_boot_event#

void sl_zigbee_af_zig_bee_event_logger_add_boot_event (uint32_t bootCount, uint16_t resetType)

Record an event indicating that the device has booted.

Parameters
N/AbootCount

The number of times the device has booted.

N/AresetType

A reset cause. See micro.h and reset-def.h.

Note

  • This API only works on SoC. It does not work on host or NCP.


Definition at line 128 of file stack/include/zigbee-event-logger-gen.h

sl_zigbee_af_zig_bee_event_logger_add_join_network#

void sl_zigbee_af_zig_bee_event_logger_add_join_network (sl_802154_pan_id_t panId, uint8_t channelNumber, uint8_t page, uint8_t * extendedPanId)

Record an event indicating that a network was successfully joined.

Parameters
N/ApanId

The PAN ID of the network.

N/AchannelNumber

The channel of the network.

N/Apage

The page of the network joined.

N/AextendedPanId

The extended PAN ID of the network.


Definition at line 136 of file stack/include/zigbee-event-logger-gen.h

sl_zigbee_af_zig_bee_event_logger_add_trust_center_rejoin#

void sl_zigbee_af_zig_bee_event_logger_add_trust_center_rejoin (uint32_t channelMask, sl_zigbee_rejoin_reason_t reason)

Record an event indicating that a trust center rejoin was attempted.

Parameters
N/AchannelMask

The channel mask used when searching for the network.

N/Areason

An sl_zigbee_rejoin_reason_t enumeration, indicating why the rejoin was initiated.

Note

  • This event only indicates that a rejoin was attempted, not that it was successful. A Join Network event, following this event, indicates success.


Definition at line 142 of file stack/include/zigbee-event-logger-gen.h

sl_zigbee_af_zig_bee_event_logger_add_secure_rejoin#

void sl_zigbee_af_zig_bee_event_logger_add_secure_rejoin (uint32_t channelMask, sl_zigbee_rejoin_reason_t reason)

Record an event indicating that a secure rejoin was attempted.

Parameters
N/AchannelMask

The channel mask used when searching for the network.

N/Areason

An sl_zigbee_rejoin_reason_t enumeration, indicating why the rejoin was initiated.

Note

  • This event only indicates that a rejoin was attempted, not that it was successful. A Join Network event, following this event, indicates success.


Definition at line 148 of file stack/include/zigbee-event-logger-gen.h

sl_zigbee_af_zig_bee_event_logger_add_leave_without_rejoin#

void sl_zigbee_af_zig_bee_event_logger_add_leave_without_rejoin (sl_802154_short_addr_t sourceNode, sl_zigbee_leave_reason_t reason)

Record an event indicating that a device has left-without-rejoin.

Parameters
N/AsourceNode

The node ID of the device leaving.

N/Areason

An sl_zigbee_leave_reason_t enumeration, indicating why the device left.


Definition at line 154 of file stack/include/zigbee-event-logger-gen.h

sl_zigbee_af_zig_bee_event_logger_add_leave_with_rejoin#

void sl_zigbee_af_zig_bee_event_logger_add_leave_with_rejoin (sl_802154_short_addr_t sourceNode, sl_zigbee_leave_reason_t reason)

Record an event indicating that a device has left-with-rejoin.

Parameters
N/AsourceNode

The node ID of the device leaving-and-rejoining.

N/Areason

An sl_zigbee_leave_reason_t enumeration, indicating why the device left.


Definition at line 160 of file stack/include/zigbee-event-logger-gen.h

sl_zigbee_af_zig_bee_event_logger_add_trust_center_link_key_change#

void sl_zigbee_af_zig_bee_event_logger_add_trust_center_link_key_change (void )

Record an event indicating that an attempt was made to update the trust center link key.

Parameters
N/A

Definition at line 164 of file stack/include/zigbee-event-logger-gen.h

sl_zigbee_af_zig_bee_event_logger_add_network_key_sequence_change#

void sl_zigbee_af_zig_bee_event_logger_add_network_key_sequence_change (uint8_t sequence)

Record an event indicating that the network key sequence number has changed.

Parameters
N/Asequence

The new network key sequence number.


Definition at line 169 of file stack/include/zigbee-event-logger-gen.h

sl_zigbee_af_zig_bee_event_logger_add_reset#

void sl_zigbee_af_zig_bee_event_logger_add_reset (uint8_t resetCode, uint8_t extendedReason)

Record an event indicating that the local device has reset.

Parameters
N/AresetCode

The reset code. See reset-def.h.

N/AextendedReason

The extended reset reason. See reset-def.h.


Definition at line 175 of file stack/include/zigbee-event-logger-gen.h

sl_zigbee_af_zig_bee_event_logger_add_channel_change#

void sl_zigbee_af_zig_bee_event_logger_add_channel_change (uint8_t page, uint8_t channel)

Record an event indicating that the network's channel has changed.

Parameters
N/Apage

The new page number.

N/Achannel

The new channel number.


Definition at line 181 of file stack/include/zigbee-event-logger-gen.h

sl_zigbee_af_zig_bee_event_logger_add_parent_change#

void sl_zigbee_af_zig_bee_event_logger_add_parent_change (sl_802154_short_addr_t parentNodeId, sl_802154_long_addr_t parentEui64)

Record an event indicating that the local device's parent has changed.

Parameters
N/AparentNodeId

The new parent's short address.

N/AparentEui64

The new parent's long address.


Definition at line 187 of file stack/include/zigbee-event-logger-gen.h

sl_zigbee_af_zig_bee_event_logger_add_duty_cycle_change#

void sl_zigbee_af_zig_bee_event_logger_add_duty_cycle_change (sl_zigbee_duty_cycle_state_t state, sl_zigbee_duty_cycle_hecto_pct_t limitThreshold, sl_zigbee_duty_cycle_hecto_pct_t criticalThreshold, sl_zigbee_duty_cycle_hecto_pct_t suspendedLimit)

Record an event indicating that the duty cycle has changed.

Parameters
N/Astate

An sl_zigbee_duty_cycle_state_t state.

N/AlimitThreshold

An sl_zigbee_duty_cycle_hecto_pct_t limit.

N/AcriticalThreshold

An sl_zigbee_duty_cycle_hecto_pct_t critical threshold.

N/AsuspendedLimit

An sl_zigbee_duty_cycle_hecto_pct_t suspend limit.


Definition at line 195 of file stack/include/zigbee-event-logger-gen.h

sl_zigbee_af_zig_bee_event_logger_add_child_added#

void sl_zigbee_af_zig_bee_event_logger_add_child_added (sl_802154_short_addr_t childNodeId, sl_802154_long_addr_t childEui64)

Record an event indicating that a child device has joined the local device.

Parameters
N/AchildNodeId

The child's short address.

N/AchildEui64

The child's long address.


Definition at line 201 of file stack/include/zigbee-event-logger-gen.h

sl_zigbee_af_zig_bee_event_logger_add_child_removed#

void sl_zigbee_af_zig_bee_event_logger_add_child_removed (sl_802154_short_addr_t childNodeId, sl_802154_long_addr_t childEui64)

Record an event indicating that a child device has been removed from the local device.

Parameters
N/AchildNodeId

The child's short address.

N/AchildEui64

The child's long address.


Definition at line 207 of file stack/include/zigbee-event-logger-gen.h

sl_zigbee_af_zig_bee_event_logger_add_child_timed_out#

void sl_zigbee_af_zig_bee_event_logger_add_child_timed_out (sl_802154_short_addr_t childNodeId, sl_802154_long_addr_t childEui64)

Record an event indicating that a child device has been timed out by the local device.

Parameters
N/AchildNodeId

The child's short address.

N/AchildEui64

The child's long address.


Definition at line 213 of file stack/include/zigbee-event-logger-gen.h

sl_zigbee_af_zig_bee_event_logger_add_stack_status#

void sl_zigbee_af_zig_bee_event_logger_add_stack_status (sl_status_t status)

Record an event indicating that the stack status has changed.

Parameters
N/Astatus

An sl_status_t value indicating the change.


Definition at line 218 of file stack/include/zigbee-event-logger-gen.h

sl_zigbee_af_zig_bee_event_logger_add_time_sync#

void sl_zigbee_af_zig_bee_event_logger_add_time_sync (uint32_t utcTime, uint32_t secondsSinceBoot)

Record an event indicating that the clock time has been synchronized.

Parameters
N/AutcTime

The updated UTC time.

N/AsecondsSinceBoot

The number of seconds that have elapsed since boot.


Definition at line 224 of file stack/include/zigbee-event-logger-gen.h

sl_zigbee_af_zig_bee_event_logger_add_trust_center_join_decision#

void sl_zigbee_af_zig_bee_event_logger_add_trust_center_join_decision (sl_802154_short_addr_t nodeId, uint8_t decision)

Record an event indicating that a device has attempted to join or rejoin the network.

Parameters
N/AnodeId

The short address of the device attempting to join or rejoin.

N/Adecision

The join or rejoin decision taken by the local device.

Note

  • This event is only recorded on a trust center device.


Definition at line 230 of file stack/include/zigbee-event-logger-gen.h