38.3.2.11 usart_os_set_stopbits
Set USART stop bits.
int32_t usart_os_set_stopbits(
struct usart_os_descriptor *const descr,
const enum usart_stop_bits stop_bits
)
Parameters
- descr
-
Type: struct usart_os_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.
- -1
-
Passed parameters were invalid or the interface is not initialized
- 0
-
The flow control action is set successfully