Stack Trace and Debug#
The Trace and Debug component adds tracing capabilities to the stack and stack plugin components. The component provides APIs to configure or filter out the debug traces output.
Functions#
Set the trace level.
Set the trace filter. Indicate which trace group shall be displayed.
Function Documentation#
sl_wisun_set_trace_level#
sl_status_t sl_wisun_set_trace_level (uint8_t group_count, sl_wisun_trace_group_config_t * trace_config)
Set the trace level.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t | [in] | group_count | Number of groups to configure. If 0, enable all levels for all groups. Maximum SL_WISUN_TRACE_GROUP_COUNT |
sl_wisun_trace_group_config_t * | [in] | trace_config | Table with |
Returns
SL_STATUS_NOT_AVAILABLE if the Wi-SUN Debug & Traces component is not installed SL_STATUS_OK if successful, an error code otherwise
sl_wisun_set_trace_filter#
sl_status_t sl_wisun_set_trace_filter (uint8_t filter)
Set the trace filter. Indicate which trace group shall be displayed.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t | [in] | filter | Bitfield. Each 1 indicates the trace group ID corresponding is selected for tracing. 0 means the trace group ID corresponding should be filtered out. It follows enum sl_wisun_trace_group_t filter[0] contains ID 0 to 7 filter[1] contains ID 8 to 15... |
Returns
SL_STATUS_NOT_AVAILABLE if the Wi-SUN Debug & Traces component is not installed SL_STATUS_OK if successful, an error code otherwise