usart_os_set_parity

Set USART parity.

int32_t usart_os_set_parity(
    struct usart_os_descriptor *const descr,
    const enum usart_parity parity
)

Parameters

descr

Type: struct usart_os_descriptor Struct *const

A USART descriptor which is used to communicate via USART

parity

Type: const enum usart_parity

A parity to set

Returns

Type: int32_t

The status of parity setting.

-1

Passed parameters were invalid or the interface is not initialized

0

The flow control action is set successfully