Developing with ZBOSS SDK for Zigbee

Macros

#define ZB_SET_TRACE_LEVEL(l)   g_trace_level = (l);
 
#define ZB_SET_TRACE_MASK(m)   g_trace_mask = (m);
 
#define ZB_SET_TRACE_OFF()   g_o_trace_level = g_trace_level, g_trace_level = 0
 
#define ZB_SET_TRACE_ON()   g_trace_level = g_o_trace_level
 
#define TRACE_SUBSYSTEM_APP   0x0800
 
#define TRACE_SUBSYSTEM_ZGP   0x4000
 
#define TRACE_SUBSYSTEM_INFO   (zb_uint_t)(-1)
 
#define TRACE_SUBSYSTEM_OTA   TRACE_SUBSYSTEM_ZGP
 
#define TRACE_SUBSYSTEM_ZSE   TRACE_SUBSYSTEM_CLOUD
 

Detailed Description

Macro Definition Documentation

◆ TRACE_SUBSYSTEM_APP

#define TRACE_SUBSYSTEM_APP   0x0800

User Application

◆ TRACE_SUBSYSTEM_INFO

#define TRACE_SUBSYSTEM_INFO   (zb_uint_t)(-1)

Common subsystem

◆ TRACE_SUBSYSTEM_OTA

#define TRACE_SUBSYSTEM_OTA   TRACE_SUBSYSTEM_ZGP

OTA subsystem

◆ TRACE_SUBSYSTEM_ZGP

#define TRACE_SUBSYSTEM_ZGP   0x4000

ZGP subsystem

◆ TRACE_SUBSYSTEM_ZSE

#define TRACE_SUBSYSTEM_ZSE   TRACE_SUBSYSTEM_CLOUD

ZSE subsystem. Not conflicting with cloud, let's use it

◆ ZB_SET_TRACE_LEVEL

#define ZB_SET_TRACE_LEVEL (   l)    g_trace_level = (l);

Set trace level at runtime

That macro can switch trace level on and off. Trace level must be included into build at compile time by setting ZB_TRACE_LEVEL compiler time define.

Parameters
l- new trace level.
Example
/* Configure trace */

◆ ZB_SET_TRACE_MASK

#define ZB_SET_TRACE_MASK (   m)    g_trace_mask = (m);

Set trace mask at runtime

That macro can switch trace mask on and off. Trace mask must be included into build at compile time by setting ZB_TRACE_MASK compiler time define.

Parameters
m- new trace mask.
Example
/* Configure trace */

◆ ZB_SET_TRACE_OFF

#define ZB_SET_TRACE_OFF ( )    g_o_trace_level = g_trace_level, g_trace_level = 0

Switch off all trace at runtime

◆ ZB_SET_TRACE_ON

#define ZB_SET_TRACE_ON ( )    g_trace_level = g_o_trace_level

Switch on trace at runtime

That macro enables trace which was active before call to ZB_SET_TRACE_OFF().

ZB_SET_TRACE_LEVEL
#define ZB_SET_TRACE_LEVEL(l)
Definition: zb_trace.h:57
ZB_SET_TRACE_ON
#define ZB_SET_TRACE_ON()
Definition: zb_trace.h:84
ZB_SET_TRACE_MASK
#define ZB_SET_TRACE_MASK(m)
Definition: zb_trace.h:71