Developing with ZBOSS for Zigbee
|
Macros | |
#define | ZB_SET_TRACE_LEVEL(l) g_trace_level = (l) |
#define | ZB_SET_TRACE_OFF() g_o_trace_level = g_trace_level, g_trace_level = 0U |
#define | ZB_SET_TRACE_ON() g_trace_level = g_o_trace_level |
#define | ZB_SET_TRACE_MASK(m) g_trace_mask = (m) |
#define | TRACE_SUBSYSTEM_APP 0x0800U |
#define | TRACE_SUBSYSTEM_ZGP 0x4000U |
#define | TRACE_SUBSYSTEM_INFO ((zb_uint_t)-1) |
#define TRACE_SUBSYSTEM_APP 0x0800U |
User Application
#define TRACE_SUBSYSTEM_INFO ((zb_uint_t)-1) |
Common subsystem
#define TRACE_SUBSYSTEM_ZGP 0x4000U |
ZGP subsystem
#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.
l | - new trace level. |
#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.
m | - new trace mask. |
#define ZB_SET_TRACE_OFF | ( | ) | g_o_trace_level = g_trace_level, g_trace_level = 0U |
Switch off all trace at runtime
#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().