usart_async_is_rx_not_empty

Check if the USART receiver is not empty.

int32_t usart_async_is_rx_not_empty(
    const struct usart_async_descriptor *const descr
)

Parameters

descr

Type: const struct usart_async_descriptor Struct *const

A USART descriptor which is used to communicate via USART

Returns

Type: int32_t

The status of the USART RX empty checking.

1

The USART receiver is not empty

0

The USART receiver is empty