UART Callback Events

group group_scb_uart_macros_callback_events

Macros to check UART events passed by cy_cb_scb_uart_handle_events_t callback.

Note that only single event is notified by the callback when it is called.

Defines

CY_SCB_UART_TRANSMIT_IN_FIFO_EVENT

All data elements specified by Cy_SCB_UART_Transmit have been loaded into the TX FIFO.

CY_SCB_UART_TRANSMIT_DONE_EVENT

The transmit operation started by Cy_SCB_UART_Transmit is complete.

CY_SCB_UART_RECEIVE_DONE_EVENT

The receive operation started by Cy_SCB_UART_Receive is complete.

CY_SCB_UART_RB_FULL_EVENT

The ring buffer is full, there is no more space for additional data.

Additional data is stored in the RX FIFO until it becomes full, at which point data is dropped.

CY_SCB_UART_RECEIVE_ERR_EVENT

An error was detected during the receive operation.

This includes overflow, frame error, or parity error. Check Cy_SCB_UART_GetReceiveStatus to determine the source of the error.

CY_SCB_UART_TRANSMIT_ERR_EVENT

An error was detected during the transmit operation.

This includes a NACK or lost arbitration. Check Cy_SCB_UART_GetTransmitStatus to determine the source of the error

CY_SCB_UART_RECEIVE_NOT_EMTPY

The receive fifo is not empty.

To use this event the CY_SCB_RX_INTR_NOT_EMPTY interrupt must be enabled by the user.

CY_SCB_UART_TRANSMIT_EMTPY

The transmit fifo is empty.

To use this event the CY_SCB_UART_TX_EMPTY interrupt must be enabled by the user.