Recycle example.cydsn/Generated_Source/PSoC5/XBEE.c
uint8_t XBEE_RxBufferRead() {
    uint8_t readData;
    
    /* Check for buffer underrun */
    if(XBEE_rxBufferRead == XBEE_rxBufferTail) {
        /* Assert UNDERRUN status bits */
        XBEE_RX_STATUS_REG |=  XBEE_RX_STATUS_UNDERRUN;
        return 0;
    }
    
    /* Read data from buffer */
    readData = XBEE_rxBuffer[XBEE_rxBufferRead];
    
    /* Increment pointer */
    XBEE_rxBufferRead = (XBEE_rxBufferRead +1) % XBEE_RX_BUFFER_SIZE;
        
    return readData;
}
/**
* Read the next byte from XBEE_rxBuffer.
*
* @return Byte from XBEE_rxBuffer.
*/
Read the next byte from XBEE_rxBuffer.
Read the next byte from XBEE_rxBuffer .
uint8_t XBEE_RxBufferRead() {
    uint8_t readData;
    if(XBEE_rxBufferRead == XBEE_rxBufferTail) {
        XBEE_RX_STATUS_REG |=  XBEE_RX_STATUS_UNDERRUN;
        return 0;
    }
    readData = XBEE_rxBuffer[XBEE_rxBufferRead];
    XBEE_rxBufferRead = (XBEE_rxBufferRead +1) % XBEE_RX_BUFFER_SIZE;
    return readData;
}
uint8_t XBEE_RxBufferRead ( ) { uint8_t readData ; if ( XBEE_rxBufferRead == XBEE_rxBufferTail ) { XBEE_RX_STATUS_REG |= XBEE_RX_STATUS_UNDERRUN ; return 0 ; } readData = XBEE_rxBuffer [ XBEE_rxBufferRead ] ; XBEE_rxBufferRead = ( XBEE_rxBufferRead + 1 ) % XBEE_RX_BUFFER_SIZE ; return readData ; }
Read the next byte from XBEE_rxBuffer.
Read the next byte from XBEE_rxBuffer .
/* Check for buffer underrun */ /* Assert UNDERRUN status bits */ /* Read data from buffer */ /* Increment pointer */