1.1.12.4 WDRV_WINC_DebugUARTSet

C

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

Description

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

Precondition

WDRV_WINC_Initialize must have been called.

WDRV_WINC_Open must have been called to obtain a valid handle.

Parameters

ParametersDescription
handleClient handle obtained by a call to WDRV_WINC_Open.
uartPortUART port selection.
uartBaudRateUART 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.