Logo
Developing with ZBOSS for Zigbee
Trace configuration

Macros

#define TRACE_ENABLED(m)   TRACE_ENABLED_(m)
 Check that trace is enabled for provided level. To be used in constructions like: More...
 
#define ZB_TRACE_FILE_ID   12345U
 

Functions

zb_bool_t zb_trace_level_mask_enabled (zb_uint8_t level, zb_uint32_t mask)
 Check that trace is enabled for provided level and mask. More...
 

Detailed Description

Macro Definition Documentation

§ TRACE_ENABLED

#define TRACE_ENABLED (   m)    TRACE_ENABLED_(m)

#include </conan-data/ti_zigbee/9.14.00.04/library-lprf/ga/build/f6d18801b7b469a709ae7e8290b03ecdc7a7ad4c/zboss_r23/include/zb_trace.h>

Check that trace is enabled for provided level. To be used in constructions like:

if (TRACE_ENABLED(TRACE_APS3))
{
call_some_complex_trace();
}
Parameters
m- trace level macro.
Returns
1 if enabled, 0 if disabled.

§ ZB_TRACE_FILE_ID

#define ZB_TRACE_FILE_ID   12345U

#include </conan-data/ti_zigbee/9.14.00.04/library-lprf/ga/build/f6d18801b7b469a709ae7e8290b03ecdc7a7ad4c/zboss_r23/include/zb_trace.h>

Trace file ID used by win_com_dump to identify source file.

Must be first define in the .c file, just before first include directive.

Example
#define ZB_TRACE_FILE_ID 40136
#include "bulb.h"

Function Documentation

§ zb_trace_level_mask_enabled()

zb_bool_t zb_trace_level_mask_enabled ( zb_uint8_t  level,
zb_uint32_t  mask 
)

#include </conan-data/ti_zigbee/9.14.00.04/library-lprf/ga/build/f6d18801b7b469a709ae7e8290b03ecdc7a7ad4c/zboss_r23/include/zb_trace.h>

Check that trace is enabled for provided level and mask.

Parameters
level- trace level.
mask- trace mask.
Returns
ZB_TRUE if enabled, ZB_FALSE if disabled.