Logo
Developing with ZBOSS for Zigbee
zb_debug.h File Reference

Macros

#define ZB_ASSERT(expr)   ((void)(expr))
 
#define ZB_INLINE_ASSERT_SIMPLE(expr)   -1
 
#define ZB_INLINE_ASSERT(expr)
 
#define ZB_ASSERT_COMPILE_TIME(expr)   ((void)(zb_int_t (*)[(expr) ? 1 : -1])0)
 
#define ZB_ASSERT_COMPILE_TIME_EXPR(expr)   ((zb_int_t)((zb_int_t (*)[(expr) ? 1 : -1])0))
 
#define ZB_ASSERT_COMPILE_DECL(expr)
 
#define ZB_ASSERT_TYPE_SIZE_NOT_GREATER(type, limit)   ZB_ASSERT_COMPILE_DECL(sizeof(type) <= (limit))
 
#define ZB_ASSERT_TYPE_SIZE_NOT_LESS(type, limit)   ZB_ASSERT_COMPILE_DECL(sizeof(type) >= (limit))
 
#define ZB_ASSERT_TYPE_SIZE_EQ(type, limit)   ZB_ASSERT_COMPILE_DECL(sizeof(type) == (limit))
 
#define ZB_CHK_ARR(arr, len)
 
#define ZB_P3_ON()
 
#define ZB_P3_OFF()
 
#define ZB_P4_ON()
 
#define ZB_P4_OFF()
 
#define dump_traf(buf, len)   {ZVUNUSED(buf); ZVUNUSED(len);}
 
#define dump_usb_traf(buf, len)   {ZVUNUSED(buf); ZVUNUSED(len);}
 
#define zb_debug_trace_buffer(buf_id, label)   {ZVUNUSED(buf_id); ZVUNUSED(label);}
 
#define zb_debug_trace_nwk_header(payload_ptr, label)   {ZVUNUSED(payload_ptr); ZVUNUSED(label);}
 
#define DUMP_TRAF(comment, buf, len, total)
 
#define trace_8hex_per_line(ptr, size)   trace_hex_data_func((ptr), (size), ZB_FALSE)
 
#define trace_16hex_per_line(ptr, size)   trace_hex_data_func((ptr), (size), ZB_TRUE)
 

Functions

void dump_hex_data (zb_uint_t trace_mask, zb_uint8_t trace_level, const zb_uint8_t *buf, zb_ushort_t len)
 
void trace_hex_data_func (const zb_uint8_t *ptr, zb_short_t size, zb_bool_t format)
 

Macro Definition Documentation

§ dump_traf

#define dump_traf (   buf,
  len 
)    {ZVUNUSED(buf); ZVUNUSED(len);}

§ DUMP_TRAF

#define DUMP_TRAF (   comment,
  buf,
  len,
  total 
)

§ dump_usb_traf

#define dump_usb_traf (   buf,
  len 
)    {ZVUNUSED(buf); ZVUNUSED(len);}

§ trace_16hex_per_line

#define trace_16hex_per_line (   ptr,
  size 
)    trace_hex_data_func((ptr), (size), ZB_TRUE)

§ trace_8hex_per_line

#define trace_8hex_per_line (   ptr,
  size 
)    trace_hex_data_func((ptr), (size), ZB_FALSE)

§ ZB_CHK_ARR

#define ZB_CHK_ARR (   arr,
  len 
)

§ zb_debug_trace_buffer

#define zb_debug_trace_buffer (   buf_id,
  label 
)    {ZVUNUSED(buf_id); ZVUNUSED(label);}

§ zb_debug_trace_nwk_header

#define zb_debug_trace_nwk_header (   payload_ptr,
  label 
)    {ZVUNUSED(payload_ptr); ZVUNUSED(label);}

§ ZB_P3_OFF

#define ZB_P3_OFF ( )

§ ZB_P3_ON

#define ZB_P3_ON ( )

§ ZB_P4_OFF

#define ZB_P4_OFF ( )

§ ZB_P4_ON

#define ZB_P4_ON ( )

Function Documentation

§ dump_hex_data()

void dump_hex_data ( zb_uint_t  trace_mask,
zb_uint8_t  trace_level,
const zb_uint8_t buf,
zb_ushort_t  len 
)

§ trace_hex_data_func()

void trace_hex_data_func ( const zb_uint8_t ptr,
zb_short_t  size,
zb_bool_t  format 
)