1.1.4.12 WDRV_WINC_DebugUARTSet

Function

WDRV_WINC_STATUS WDRV_WINC_DebugUARTSet
(
DRV_HANDLE handle,
WDRV_WINC_DEBUG_UART uartPort,
uint32_t uartBaudRate
)

Summary

Configures the debug UART on the WINC device.

Description

Sets the debug UART and baud rate on the WINC device.

Precondition

WDRV_WINC_Initialize should have been called. WDRV_WINC_Open should have been called to obtain a valid handle.

Parameters

handle - Client handle obtained by a call to WDRV_WINC_Open.

uartPort - UART port selection.

uartBaudRate - UART baud rate.

Returns

WDRV_WINC_STATUS_OK - The information has been returned.

WDRV_WINC_STATUS_NOT_OPEN - The driver instance is not open.

WDRV_WINC_STATUS_INVALID_ARG - The parameters were incorrect.

WDRV_WINC_STATUS_RETRY_REQUEST - Version information not available, try again.

Remarks

Setting uartPort to WDRV_WINC_DEBUG_UART_OFF will turn off the debug UART. Setting uartBaudRate to zero will result in the previous baud rate being used.