38.4.2.15 usart_sync_is_rx_not_empty
Check if the USART receiver is not empty.
int32_t usart_sync_is_rx_not_empty(
const struct usart_sync_descriptor *const descr
)
Parameters
- descr
-
Type: const struct usart_sync_descriptor Struct *const
A USART descriptor which is used to communicate via USART
Returns
Type: int32_t
The status of USART RX empty checking.
- 1
-
The USART receiver is not empty
- 0
-
The USART receiver is empty