38.3.2.8 usart_os_set_data_order
Set USART data order.
int32_t usart_os_set_data_order(
struct usart_os_descriptor *const descr,
const enum usart_data_order data_order
)
Parameters
- descr
-
Type: struct usart_os_descriptor Struct *const
A USART descriptor which is used to communicate via USART
- data_order
-
Type: const enum usart_data_order
A data order to set
Returns
Type: int32_t
The status of data order setting.
- -1
-
Passed parameters were invalid or the interface is not initialized
- 0
-
The flow control action is set successfully