AIROC™ BTSDK v4.9 - Documentation | ||||
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... | |
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.
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.
tx_pin | - target transmit pin |
rx_pin | - target receive pin |
baudrate | - target baud rate |
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.
void wiced_hal_duart_write | ( | uint8_t * | p_buf, |
uint16_t | len | ||
) |
Transmit data via Debug UART.
p_buf | - data to be sent |
len | - length of data in bytes |