usart_async_set_mode

Set USART mode.

int32_t usart_async_set_mode(
    struct usart_async_descriptor *const descr,
    const enum usart_mode mode
)

Parameters

descr

Type: struct usart_async_descriptor Struct *const

A USART descriptor which is used to communicate via USART

mode

Type: const enum usart_mode

A mode to set

Returns

Type: int32_t

The status of mode setting.