usart_async_set_flow_control

Specify action for flow control pins.

int32_t usart_async_set_flow_control(
    struct usart_async_descriptor *const descr,
    const union usart_flow_control_state state
)

This function sets action (or state) for flow control pins if the flow control is enabled. It sets state of flow control pins only if automatic support of the flow control is not supported by the hardware.

Parameters

descr

Type: struct usart_async_descriptor Struct *const

A USART descriptor which is used to communicate via USART

state

Type: const union usart_flow_control_state

A state to set the flow control pins

Returns

Type: int32_t

The status of flow control action setup.