debug print groups, colors, and control functions More...
#include "zb_common.h"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) |
| get the print group mask | |
| void | tr_enable_print_group (tr_debug_print_group_t group) |
| enable a print group | |
| void | tr_disable_print_group (tr_debug_print_group_t group) |
| disable a print group | |
| zb_bool_t | tr_check_print_group (tr_debug_print_group_t group) |
| check to see if a print group is enabled | |
| 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,...) |
debug print groups, colors, and control functions
SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2025 Trident IoT, LLC https://www.tridentiot.com
| #define DEBUG_BLACK "\033[30m" |
| #define DEBUG_BLUE "\033[34m" |
| #define DEBUG_CYAN "\033[36m" |
| #define DEBUG_DEFAULT "\033[39m" |
| #define DEBUG_GREEN "\033[32m" |
| #define DEBUG_MAGENTA "\033[35m" |
| #define DEBUG_RED "\033[31m" |
| #define DEBUG_RESET "\033[m" |
| #define DEBUG_WHITE "\033[37m" |
| #define DEBUG_YELLOW "\033[33m" |
| #define tr_app_printf | ( | ... | ) |
| #define tr_app_println | ( | ... | ) |
| #define tr_core_printf | ( | ... | ) |
| #define tr_core_println | ( | ... | ) |
| #define tr_rxmsgs_printf | ( | ... | ) |
| #define tr_rxmsgs_println | ( | ... | ) |
| #define tr_stack_printf | ( | ... | ) |
| #define tr_stack_println | ( | ... | ) |
| #define tr_zcl_printf | ( | ... | ) |
| #define tr_zcl_println | ( | ... | ) |
| void tr_debug_printf | ( | tr_debug_print_group_t | group, |
| const char * | color, | ||
| const char * | fmt, | ||
| ... ) |
function prototypes consumed by framework
| void tr_debug_println | ( | tr_debug_print_group_t | group, |
| const char * | color, | ||
| const char * | fmt, | ||
| ... ) |