MTB CAT1 Peripheral driver library

General Description

Macros to check UART TX FIFO status returned by Cy_SCB_UART_GetTxFifoStatus function or assign mask for Cy_SCB_UART_ClearTxFifoStatus function.

Each UART TX FIFO status is encoded in a separate bit, therefore multiple bits may be set to indicate the current status.

Macros

#define CY_SCB_UART_TX_TRIGGER   (SCB_INTR_TX_TRIGGER_Msk)
 The number of entries in the TX FIFO is less than the TX FIFO trigger level value.
 
#define CY_SCB_UART_TX_NOT_FULL   (SCB_INTR_TX_NOT_FULL_Msk)
 The TX FIFO is not full, there is a space for more data.
 
#define CY_SCB_UART_TX_EMPTY   (SCB_INTR_TX_EMPTY_Msk)
 The TX FIFO is empty, note there may still be data in the shift register. More...
 
#define CY_SCB_UART_TX_OVERFLOW   (SCB_INTR_TX_OVERFLOW_Msk)
 An attempt to write to the full TX FIFO.
 
#define CY_SCB_UART_TX_UNDERFLOW   (SCB_INTR_TX_UNDERFLOW_Msk)
 An attempt to read from an empty transmitter FIFO (hardware reads). More...
 
#define CY_SCB_UART_TX_DONE   (SCB_INTR_TX_UART_DONE_Msk)
 All data has been transmitted out of the FIFO, including shifter.
 
#define CY_SCB_UART_TX_NACK   (SCB_INTR_TX_UART_NACK_Msk)
 SmartCard only: the transmitter received a NACK.
 
#define CY_SCB_UART_TX_ARB_LOST   (SCB_INTR_TX_UART_ARB_LOST_Msk)
 SmartCard only: the transmitter lost arbitration.
 

Macro Definition Documentation

◆ CY_SCB_UART_TX_EMPTY

#define CY_SCB_UART_TX_EMPTY   (SCB_INTR_TX_EMPTY_Msk)

The TX FIFO is empty, note there may still be data in the shift register.

◆ CY_SCB_UART_TX_UNDERFLOW

#define CY_SCB_UART_TX_UNDERFLOW   (SCB_INTR_TX_UNDERFLOW_Msk)

An attempt to read from an empty transmitter FIFO (hardware reads).