Debug Print#
API and Callbacks for the Debug Print Component.
API#
Enable or disable groups in debug prints.
Check if debug print is enabled.
Enable or disable groups in debug prints.
Enumerations#
Macros#
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.
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| uint32_t | [in] | group_type | An sl_zigbee_debug_print_type debug print group. |
| bool | [in] | enable | Enable or disable group. |
Returns
An sl_status_t value that indicates the success or failure of the API call.
SL_STATUS_OK if the call is successful.
SL_STATUS_INVALID_PARAMETER if the group_type is not valid or defined.
sl_zigbee_debug_print_enabled#
bool sl_zigbee_debug_print_enabled (uint32_t group_type)
Check if debug print is enabled.
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| 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.
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| uint32_t | [in] | group_type | An sl_zigbee_debug_print_type debug print group. |
| const uint8_t * | [in] | buffer | Enable or disable group. |
| uint16_t | N/A | buffer_length | |
| bool | N/A | with_space | |
| const char * | N/A | format_string |
Returns
An sl_status_t value that indicates the success or failure of the API call.
SL_STATUS_OK if the call is successful.
SL_STATUS_INVALID_PARAMETER if the group_type is not valid or defined.
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 | |