Infineon Logo AIROC BTSDK v4.6 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
AIROC Trace Utilities

Trace Utilities. More...

Macros

#define WICED_BT_TRACE(...)   wiced_printf(NULL, 0, __VA_ARGS__)
 
#define WICED_BT_TRACE_CRIT(...)   wiced_printf(NULL, 0, __VA_ARGS__)
 
#define WICED_BT_TRACE_ARRAY(ptr, len,...)   wiced_printf(NULL, 0, __VA_ARGS__); wiced_trace_array(ptr, len);
 

Enumerations

enum  wiced_debug_uart_types_t {
  WICED_ROUTE_DEBUG_NONE, WICED_ROUTE_DEBUG_TO_WICED_UART, WICED_ROUTE_DEBUG_TO_HCI_UART, WICED_ROUTE_DEBUG_TO_DBG_UART,
  WICED_ROUTE_DEBUG_TO_PUART
}
 Debug trace message destinations. More...
 

Functions

void wiced_trace_array (const uint8_t *p_array, uint16_t len)
 
int wiced_printf (char *buffer, int len,...)
 
void wiced_bt_trace_enable (void)
 Enables the trace messages to UART for the selected wiced_debug_uart_types_t. More...
 
void wiced_set_debug_uart (wiced_debug_uart_types_t uart)
 Specifies the UART to be used for debug traces. More...
 

Detailed Description

Trace Utilities.

Support for applications to send debug or information messages to debug UART destinations.

Enumeration Type Documentation

Debug trace message destinations.

Used when calling wiced_set_debug_uart().

Enumerator
WICED_ROUTE_DEBUG_TO_WICED_UART 

< No Traces

Set to WICED UART to send debug strings over the AIROC debug interface

WICED_ROUTE_DEBUG_TO_HCI_UART 

Use this to direct the debug traces over HCI UART.

WICED_ROUTE_DEBUG_TO_DBG_UART 

Use this to direct the debug traces over debug UART.

WICED_ROUTE_DEBUG_TO_PUART 

Use this to direct the debug traces over peripheral UART.

Function Documentation

void wiced_bt_trace_enable ( void  )

Enables the trace messages to UART for the selected wiced_debug_uart_types_t.

Parameters
[in]void
Returns
void
int wiced_printf ( char *  buffer,
int  len,
  ... 
)
Parameters
[in]buffer: Pointer to character buffer
[in]len: Length of character buffer
Returns
void
void wiced_set_debug_uart ( wiced_debug_uart_types_t  uart)

Specifies the UART to be used for debug traces.

Parameters
[in]uart: The UART to be used.
Returns
void
void wiced_trace_array ( const uint8_t *  p_array,
uint16_t  len 
)
Parameters
[in]array: Pointer to array to be printed
[in]len: Length of array to be printed
Returns
void