usart_sync_set_stopbits

Set USART stop bits.

int32_t usart_sync_set_stopbits(
    struct usart_sync_descriptor *const descr,
    const enum usart_stop_bits stop_bits
)

Parameters

descr

Type: struct usart_sync_descriptor Struct *const

A USART descriptor which is used to communicate via USART

stop_bits

Type: const enum usart_stop_bits

Stop bits to set

Returns

Type: int32_t

The status of stop bits setting.