AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/xplained/rs485.c
void rs485_rts_enable(bool enable)
{
    if (enable) {
        /* Turn Tx enable on */
        ioport_set_value(RS485_RE, 1);
        ioport_set_value(RS485_DE, 1);
        led_on(LED_RS485_TX);
        RTS_Status = true;
    } else {
        /* Turn Tx enable off */
        ioport_set_value(RS485_RE, 0);
        ioport_set_value(RS485_DE, 0);
        led_off_delay(LED_RS485_TX, 10);
        RTS_Status = false;
    }
}
/**
 *  enable the transmit-enable line on the RS-485 transceiver
 *
 * @param enable - true to enable RTS, false to disable RTS
 */
enable the transmit-enable line on the RS-485 transceiver
@param enable - true to enable RTS, false to disable RTS
enable the transmit - enable line on the RS - 485 transceiver @param enable - true to enable RTS false to disable RTS
void rs485_rts_enable(bool enable)
{
    if (enable) {
        ioport_set_value(RS485_RE, 1);
        ioport_set_value(RS485_DE, 1);
        led_on(LED_RS485_TX);
        RTS_Status = true;
    } else {
        ioport_set_value(RS485_RE, 0);
        ioport_set_value(RS485_DE, 0);
        led_off_delay(LED_RS485_TX, 10);
        RTS_Status = false;
    }
}
void rs485_rts_enable ( bool enable ) { if ( enable ) { ioport_set_value ( RS485_RE , 1 ) ; ioport_set_value ( RS485_DE , 1 ) ; led_on ( LED_RS485_TX ) ; RTS_Status = true ; } else { ioport_set_value ( RS485_RE , 0 ) ; ioport_set_value ( RS485_DE , 0 ) ; led_off_delay ( LED_RS485_TX , 10 ) ; RTS_Status = false ; } }
enable the transmit-enable line on the RS-485 transceiver
 @param enable - true to enable RTS, false to disable RTS
enable the transmit - enable line on the RS - 485 transceiver @param enable - true to enable RTS false to disable RTS
/* Turn Tx enable on */ /* Turn Tx enable off */