AT example.cydsn/Generated_Source/PSoC5/UART.c
uint8 UART_ReadRxStatus(void) 
    {
        uint8 status;

        status = UART_RXSTATUS_REG & UART_RX_HW_MASK;

        #if(UART_RXBUFFERSIZE > UART_FIFO_LENGTH)
            if( UART_rxBufferOverflow != 0u )
            {
                status |= UART_RX_STS_SOFT_BUFF_OVER;
                UART_rxBufferOverflow = 0u;
            }
        #endif /* UART_RXBUFFERSIZE */

        return(status);
    }
/*******************************************************************************
    * Function Name: UART_ReadRxStatus
    ********************************************************************************
    *
    * Summary:
    *  Read the current state of the status register
    *  And detect software buffer overflow.
    *
    * Parameters:
    *  None.
    *
    * Return:
    *  Current state of the status register.
    *
    * Global Variables:
    *  UART_rxBufferOverflow - used to indicate overload condition.
    *   It set to one in RX interrupt when there isn?t free space in
    *   UART_rxBufferRead to write new data. This condition returned
    *   and cleared to zero by this API as an
    *   UART_RX_STS_SOFT_BUFF_OVER bit along with RX Status register
    *   bits.
    *
    *******************************************************************************/
Function Name: UART_ReadRxStatus
Summary:
Read the current state of the status register
And detect software buffer overflow.

None.

Current state of the status register.

Global Variables:
UART_rxBufferOverflow - used to indicate overload condition.
It set to one in RX interrupt when there isn?t free space in
UART_rxBufferRead to write new data. This condition returned
and cleared to zero by this API as an
UART_RX_STS_SOFT_BUFF_OVER bit along with RX Status register
bits.
Function Name : UART_ReadRxStatus Summary : Read the current state of the status register And detect software buffer overflow . None . Current state of the status register . Global Variables : UART_rxBufferOverflow - used to indicate overload condition . It set to one in RX interrupt when there isn?t free space in UART_rxBufferRead to write new data . This condition returned and cleared to zero by this API as an UART_RX_STS_SOFT_BUFF_OVER bit along with RX Status register bits .
uint8 UART_ReadRxStatus(void) 
    {
        uint8 status;
        status = UART_RXSTATUS_REG & UART_RX_HW_MASK;
        #if(UART_RXBUFFERSIZE > UART_FIFO_LENGTH)
            if( UART_rxBufferOverflow != 0u )
            {
                status |= UART_RX_STS_SOFT_BUFF_OVER;
                UART_rxBufferOverflow = 0u;
            }
        #endif 
        return(status);
    }
uint8 UART_ReadRxStatus ( void ) { uint8 status ; status = UART_RXSTATUS_REG & UART_RX_HW_MASK ; #if ( UART_RXBUFFERSIZE > UART_FIFO_LENGTH ) if ( UART_rxBufferOverflow != 0u ) { status |= UART_RX_STS_SOFT_BUFF_OVER ; UART_rxBufferOverflow = 0u ; } #endif return ( status ) ; }
Function Name: UART_ReadRxStatus
 Summary:
  Read the current state of the status register
  And detect software buffer overflow.
Function Name : UART_ReadRxStatus Summary : Read the current state of the status register And detect software buffer overflow .
/* UART_RXBUFFERSIZE */