Infineon Logo AIROC BTSDK v4.0 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Debug UART (DUART)

Defines a driver to facilitate interfacing with the Debug UART hardware to send bytes or a stream of bytes over the Debug UART hardware. More...

Functions

wiced_bool_t wiced_hal_duart_init (wiced_bt_gpio_numbers_t tx_pin, wiced_bt_gpio_numbers_t rx_pin, uint32_t baudrate)
 Initialize the Debug UART interface. More...
 
void wiced_hal_duart_write (uint8_t *p_buf, uint16_t len)
 Transmit data via Debug UART. More...
 

Detailed Description

Defines a driver to facilitate interfacing with the Debug UART hardware to send bytes or a stream of bytes over the Debug UART hardware.

Typical use-cases involve printing messages over UART/RS-232.

Function Documentation

wiced_bool_t wiced_hal_duart_init ( wiced_bt_gpio_numbers_t  tx_pin,
wiced_bt_gpio_numbers_t  rx_pin,
uint32_t  baudrate 
)

Initialize the Debug UART interface.

Parameters
tx_pin- target transmit pin
rx_pin- target receive pin
baudrate- target baud rate
Returns
WICED_TRUE if Success

Notices: 1. If the tx_pin belongs to the LHL GPIO (<= WICED_P39), the ARM GPIO 6 (WICED_GPIO_06) cannot be set to other purpose.

  1. If the rx_pin belongs to the LHL GPIO (<= WICED_P39), the ARM GPIO 7 (WICED_GPIO_07) cannot be set to other purpose.
  2. The receive function is not supported now.
void wiced_hal_duart_write ( uint8_t *  p_buf,
uint16_t  len 
)

Transmit data via Debug UART.

Parameters
p_buf- data to be sent
len- length of data in bytes
Returns
none