Debug Print#

API and Callbacks for the Debug Print Component.

API#

sl_zigbee_debug_print_enable_group(uint32_t group_type, bool enable)

Enable or disable groups in debug prints.

bool
sl_zigbee_debug_print_enabled(uint32_t group_type)

Check if debug print is enabled.

void
sli_zigbee_debug_print_buffer(uint32_t group_type, const uint8_t *buffer, uint16_t buffer_length, bool with_space, const char *format_string)

Enable or disable groups in debug prints.

Enumerations#

enum
SL_ZIGBEE_DEBUG_PRINT_TYPE_STACK = 0x01
SL_ZIGBEE_DEBUG_PRINT_TYPE_CORE = 0x02
SL_ZIGBEE_DEBUG_PRINT_TYPE_APP = 0x04
SL_ZIGBEE_DEBUG_PRINT_TYPE_ZCL = 0x08
SL_ZIGBEE_DEBUG_PRINT_TYPE_LEGACY_AF_DEBUG = 0x10
}

Macros#

#define
local_printf printf
#define
local_vprintf vprintf
#define
LIMIT_ATTR_STR_LENGTH (str)
#define
sl_zigbee_stack_debug_print (...)
#define
sl_zigbee_stack_debug_println (...)
#define
sl_zigbee_stack_debug_print_buffer (...)
#define
sl_zigbee_stack_debug_print_string (...)
#define
sl_zigbee_stack_debug_print_long_string (...)
#define
sl_zigbee_core_debug_print (...)
#define
sl_zigbee_core_debug_println (...)
#define
sl_zigbee_core_debug_print_buffer (...)
#define
sl_zigbee_core_debug_print_string (...)
#define
sl_zigbee_core_debug_print_long_string (...)
#define
sl_zigbee_app_debug_print (...)
#define
sl_zigbee_app_debug_println (...)
#define
sl_zigbee_app_debug_print_buffer (...)
#define
sl_zigbee_app_debug_print_string (...)
#define
sl_zigbee_app_debug_print_long_string (...)
#define
sl_zigbee_zcl_debug_print (...)
#define
sl_zigbee_zcl_debug_println (...)
#define
sl_zigbee_zcl_debug_print_buffer (...)
#define
sl_zigbee_zcl_debug_print_string (...)
#define
sl_zigbee_zcl_debug_print_long_string (...)
#define
sl_zigbee_legacy_af_debug_print (...)
#define
sl_zigbee_legacy_af_debug_println (...)
#define
sl_zigbee_legacy_af_debug_print_buffer (...)
#define
sl_zigbee_legacy_af_debug_print_string (...)
#define
sl_zigbee_legacy_af_debug_print_long_string (...)

API Documentation#

sl_zigbee_debug_print_enable_group#

sl_status_t sl_zigbee_debug_print_enable_group (uint32_t group_type, bool enable)

Enable or disable groups in debug prints.

Parameters
TypeDirectionArgument NameDescription
uint32_t[in]group_type

An sl_zigbee_debug_print_type debug print group.

bool[in]enable

Enable or disable group.

Returns


sl_zigbee_debug_print_enabled#

bool sl_zigbee_debug_print_enabled (uint32_t group_type)

Check if debug print is enabled.

Parameters
TypeDirectionArgument NameDescription
uint32_t[in]group_type

Group to verify (see sl_zigbee_debug_print_type).

Returns

  • True if debugging print are enabled, else false.


sli_zigbee_debug_print_buffer#

void sli_zigbee_debug_print_buffer (uint32_t group_type, const uint8_t * buffer, uint16_t buffer_length, bool with_space, const char * format_string)

Enable or disable groups in debug prints.

Parameters
TypeDirectionArgument NameDescription
uint32_t[in]group_type

An sl_zigbee_debug_print_type debug print group.

const uint8_t *[in]buffer

Enable or disable group.

uint16_tN/Abuffer_length
boolN/Awith_space
const char *N/Aformat_string

Returns


Enumeration Documentation#

sl_zigbee_debug_print_type#

sl_zigbee_debug_print_type
Enumerator
SL_ZIGBEE_DEBUG_PRINT_TYPE_STACK
SL_ZIGBEE_DEBUG_PRINT_TYPE_CORE
SL_ZIGBEE_DEBUG_PRINT_TYPE_APP
SL_ZIGBEE_DEBUG_PRINT_TYPE_ZCL
SL_ZIGBEE_DEBUG_PRINT_TYPE_LEGACY_AF_DEBUG