Trident IoT Zigbee SDK
 
Loading...
Searching...
No Matches
tr_debug_print.h File Reference

debug print groups, colors, and control functions More...

#include "zb_common.h"
#include "tr_plugin_config.h"
+ Include dependency graph for tr_debug_print.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEBUG_BLACK   "\033[30m"
 
#define DEBUG_RED   "\033[31m"
 
#define DEBUG_GREEN   "\033[32m"
 
#define DEBUG_YELLOW   "\033[33m"
 
#define DEBUG_BLUE   "\033[34m"
 
#define DEBUG_MAGENTA   "\033[35m"
 
#define DEBUG_CYAN   "\033[36m"
 
#define DEBUG_WHITE   "\033[37m"
 
#define DEBUG_DEFAULT   "\033[39m"
 
#define DEBUG_RESET   "\033[m"
 
#define tr_stack_printf(...)
 
#define tr_stack_println(...)
 
#define tr_core_printf(...)
 
#define tr_core_println(...)
 
#define tr_app_printf(...)
 
#define tr_app_println(...)
 
#define tr_zcl_printf(...)
 
#define tr_zcl_println(...)
 
#define tr_rxmsgs_printf(...)
 
#define tr_rxmsgs_println(...)
 

Enumerations

enum  tr_debug_print_group_t {
  TR_DEBUG_PRINT_STACK = 0x01 ,
  TR_DEBUG_PRINT_CORE = 0x02 ,
  TR_DEBUG_PRINT_APP = 0x04 ,
  TR_DEBUG_PRINT_ZCL = 0x08 ,
  TR_DEBUG_PRINT_RX_MSGS = 0x10 ,
  TR_DEBUG_PRINT_ALL = 0x1F
}
 

Functions

zb_uint32_t tr_get_print_group_mask (void)
 TODO - documentation.
 
void tr_enable_print_group (tr_debug_print_group_t group)
 TODO - documentation.
 
void tr_disable_print_group (tr_debug_print_group_t group)
 TODO - documentation.
 
zb_bool_t tr_check_print_group (tr_debug_print_group_t group)
 TODO - documentation.
 
void tr_debug_printf (tr_debug_print_group_t group, const char *color, const char *fmt,...)
 
void tr_debug_println (tr_debug_print_group_t group, const char *color, const char *fmt,...)
 
char * tr_find_cluster_name (zb_uint16_t cluster_id)
 

Detailed Description

debug print groups, colors, and control functions


SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2025 Trident IoT, LLC https://www.tridentiot.com


Macro Definition Documentation

◆ DEBUG_BLACK

#define DEBUG_BLACK   "\033[30m"

◆ DEBUG_BLUE

#define DEBUG_BLUE   "\033[34m"

◆ DEBUG_CYAN

#define DEBUG_CYAN   "\033[36m"

◆ DEBUG_DEFAULT

#define DEBUG_DEFAULT   "\033[39m"

◆ DEBUG_GREEN

#define DEBUG_GREEN   "\033[32m"

◆ DEBUG_MAGENTA

#define DEBUG_MAGENTA   "\033[35m"

◆ DEBUG_RED

#define DEBUG_RED   "\033[31m"

◆ DEBUG_RESET

#define DEBUG_RESET   "\033[m"

◆ DEBUG_WHITE

#define DEBUG_WHITE   "\033[37m"

◆ DEBUG_YELLOW

#define DEBUG_YELLOW   "\033[33m"

◆ tr_app_printf

#define tr_app_printf ( ...)

◆ tr_app_println

#define tr_app_println ( ...)

◆ tr_core_printf

#define tr_core_printf ( ...)

◆ tr_core_println

#define tr_core_println ( ...)

◆ tr_rxmsgs_printf

#define tr_rxmsgs_printf ( ...)

◆ tr_rxmsgs_println

#define tr_rxmsgs_println ( ...)

◆ tr_stack_printf

#define tr_stack_printf ( ...)

◆ tr_stack_println

#define tr_stack_println ( ...)

◆ tr_zcl_printf

#define tr_zcl_printf ( ...)

◆ tr_zcl_println

#define tr_zcl_println ( ...)

Enumeration Type Documentation

◆ tr_debug_print_group_t

Enumerator
TR_DEBUG_PRINT_STACK 
TR_DEBUG_PRINT_CORE 
TR_DEBUG_PRINT_APP 
TR_DEBUG_PRINT_ZCL 
TR_DEBUG_PRINT_RX_MSGS 
TR_DEBUG_PRINT_ALL 

Function Documentation

◆ tr_debug_printf()

void tr_debug_printf ( tr_debug_print_group_t group,
const char * color,
const char * fmt,
... )

function prototypes consumed by framework


◆ tr_debug_println()

void tr_debug_println ( tr_debug_print_group_t group,
const char * color,
const char * fmt,
... )

◆ tr_find_cluster_name()

char * tr_find_cluster_name ( zb_uint16_t cluster_id)