AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/xplained/rs485.c
static uint16_t rs485_turnaround_time(void)
{
    /* delay after reception before transmitting - per MS/TP spec */
    /* wait a minimum  40 bit times since reception */
    /* at least 2 ms for errors: rounding, clock tick */
    return (2 + ((Tturnaround * 1000) / Baud_Rate));
}
/**
 * Baud rate determines turnaround time.
 * The minimum time after the end of the stop bit of the final octet of a
 * received frame before a node may enable its EIA-485 driver: 40 bit times.
 * At 9600 baud, 40 bit times would be about 4.166 milliseconds
 * At 19200 baud, 40 bit times would be about 2.083 milliseconds
 * At 38400 baud, 40 bit times would be about 1.041 milliseconds
 * At 57600 baud, 40 bit times would be about 0.694 milliseconds
 * At 76800 baud, 40 bit times would be about 0.520 milliseconds
 * At 115200 baud, 40 bit times would be about 0.347 milliseconds
 * 40 bits is 4 octets including a start and stop bit with each octet
 *
 * @return: amount of milliseconds to wait
 */
Baud rate determines turnaround time.
The minimum time after the end of the stop bit of the final octet of a
received frame before a node may enable its EIA-485 driver: 40 bit times.
At 9600 baud, 40 bit times would be about 4.166 milliseconds
At 19200 baud, 40 bit times would be about 2.083 milliseconds
At 38400 baud, 40 bit times would be about 1.041 milliseconds
At 57600 baud, 40 bit times would be about 0.694 milliseconds
At 76800 baud, 40 bit times would be about 0.520 milliseconds
At 115200 baud, 40 bit times would be about 0.347 milliseconds
40 bits is 4 octets including a start and stop bit with each octet

@return: amount of milliseconds to wait
Baud rate determines turnaround time . The minimum time after the end of the stop bit of the final octet of a received frame before a node may enable its EIA - 485 driver : 40 bit times . At 9600 baud 40 bit times would be about 4 . 166 milliseconds At 19200 baud 40 bit times would be about 2 . 083 milliseconds At 38400 baud 40 bit times would be about 1 . 041 milliseconds At 57600 baud 40 bit times would be about 0 . 694 milliseconds At 76800 baud 40 bit times would be about 0 . 520 milliseconds At 115200 baud 40 bit times would be about 0 . 347 milliseconds 40 bits is 4 octets including a start and stop bit with each octet @return : amount of milliseconds to wait
static uint16_t rs485_turnaround_time(void)
{
    return (2 + ((Tturnaround * 1000) / Baud_Rate));
}
static uint16_t rs485_turnaround_time ( void ) { return ( 2 + ( ( Tturnaround * 1000 ) / Baud_Rate ) ) ; }
Baud rate determines turnaround time.
Baud rate determines turnaround time .
/* delay after reception before transmitting - per MS/TP spec */ /* wait a minimum  40 bit times since reception */ /* at least 2 ms for errors: rounding, clock tick */