PSoC 6 Peripheral Driver Library

General Description

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.

Macros

#define CY_SCB_UART_TRANSMIT_IN_FIFO_EVENT   (0x01UL)
 All data elements specified by Cy_SCB_UART_Transmit have been loaded into the TX FIFO.
 
#define CY_SCB_UART_TRANSMIT_DONE_EVENT   (0x02UL)
 The transmit operation started by Cy_SCB_UART_Transmit is complete.
 
#define CY_SCB_UART_RECEIVE_DONE_EVENT   (0x04UL)
 The receive operation started by Cy_SCB_UART_Receive is complete.
 
#define CY_SCB_UART_RB_FULL_EVENT   (0x08UL)
 The ring buffer is full, there is no more space for additional data. More...
 
#define CY_SCB_UART_RECEIVE_ERR_EVENT   (0x10UL)
 An error was detected during the receive operation. More...
 
#define CY_SCB_UART_TRANSMIT_ERR_EVENT   (0x20UL)
 An error was detected during the transmit operation. More...
 
#define CY_SCB_UART_RECEIVE_NOT_EMTPY   (0x40UL)
 The receive fifo is not empty. More...
 
#define CY_SCB_UART_TRANSMIT_EMTPY   (0x80UL)
 The transmit fifo is empty. More...
 

Macro Definition Documentation

◆ CY_SCB_UART_RB_FULL_EVENT

#define CY_SCB_UART_RB_FULL_EVENT   (0x08UL)

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

#define CY_SCB_UART_RECEIVE_ERR_EVENT   (0x10UL)

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

#define CY_SCB_UART_TRANSMIT_ERR_EVENT   (0x20UL)

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

#define CY_SCB_UART_RECEIVE_NOT_EMTPY   (0x40UL)

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

#define CY_SCB_UART_TRANSMIT_EMTPY   (0x80UL)

The transmit fifo is empty.

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