usart_os_set_mode

Set USART mode.

int32_t usart_os_set_mode(
    struct usart_os_descriptor *const descr,
    const enum usart_mode mode
)

Parameters

descr

Type: struct usart_os_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.

-1

Passed parameters were invalid or the interface is not initialized

0

The flow control action is set successfully