AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/xplained/rs485.c
bool rs485_byte_available(uint8_t * data_register)
{
    bool data_available = false;        /* return value */

    if (FIFO_Empty(&Receive_Queue)) {
        led_off_delay(LED_RS485_RX, 2);
    } else {
        led_on(LED_RS485_RX);
        if (data_register) {
            *data_register = FIFO_Get(&Receive_Queue);
        }
        data_available = true;
    }

    return data_available;
}
/**
 * Checks for data on the receive UART, and handles errors
 *
 * @param data register to store the byte, if available (can be NULL)
 *
 * @return true if a byte is available
 */
Checks for data on the receive UART, and handles errors
@param data register to store the byte, if available (can be NULL)

@return true if a byte is available
Checks for data on the receive UART and handles errors @param data register to store the byte if available ( can be NULL ) @return true if a byte is available
bool rs485_byte_available(uint8_t * data_register)
{
    bool data_available = false;        
    if (FIFO_Empty(&Receive_Queue)) {
        led_off_delay(LED_RS485_RX, 2);
    } else {
        led_on(LED_RS485_RX);
        if (data_register) {
            *data_register = FIFO_Get(&Receive_Queue);
        }
        data_available = true;
    }
    return data_available;
}
bool rs485_byte_available ( uint8_t * data_register ) { bool data_available = false ; if ( FIFO_Empty ( & Receive_Queue ) ) { led_off_delay ( LED_RS485_RX , 2 ) ; } else { led_on ( LED_RS485_RX ) ; if ( data_register ) { * data_register = FIFO_Get ( & Receive_Queue ) ; } data_available = true ; } return data_available ; }
Checks for data on the receive UART, and handles errors
 @param data register to store the byte, if available (can be NULL)
Checks for data on the receive UART and handles errors @param data register to store the byte if available ( can be NULL )
/* return value */