Collaboration diagram for UART Control Macros:
![]() |
Defines | |
#define | SER0_RS232_MODE() (PORTB |= _BV(0)) |
#define | SER0_RS485_MODE() (PORTB &= ~_BV(0)) |
#define | SER0_RS485_DRV_ON() (PORTB |= _BV(1)) |
#define | SER0_RS485_DRV_OFF() (PORTB &= ~_BV(1)) |
#define | SER1_RS232_MODE() (PORTB |= _BV(2)) |
#define | SER1_RS485_MODE() (PORTB &= ~_BV(2)) |
#define | SER1_RS485_DRV_ON() (PORTB |= _BV(3)) |
#define | SER1_RS485_DRV_OFF() (PORTB &= ~_BV(3)) |
#define | SER0_GET_CD() bit_is_set(PINB, 6) |
#define | SER0_GET_RI() bit_is_clear(PINB, 7) |
#define | SER0_GET_CTS() bit_is_clear(PINE, 6) |
#define | SER0_GET_DSR() bit_is_clear(PINE, 4) |
#define | SER0_SET_RTS() (PORTB &= ~_BV(4)) |
#define | SER0_CLR_RTS() (PORTB |= _BV(4)) |
#define | SER0_SET_DTR() (PORTB &= ~_BV(5)) |
#define | SER0_CLR_DTR() (PORTB |= _BV(5)) |
#define SER0_RS232_MODE | ( | ) | (PORTB |= _BV(0)) |
#define SER0_RS485_MODE | ( | ) | (PORTB &= ~_BV(0)) |
#define SER0_RS485_DRV_ON | ( | ) | (PORTB |= _BV(1)) |
#define SER0_RS485_DRV_OFF | ( | ) | (PORTB &= ~_BV(1)) |
#define SER1_RS232_MODE | ( | ) | (PORTB |= _BV(2)) |
#define SER1_RS485_MODE | ( | ) | (PORTB &= ~_BV(2)) |
#define SER1_RS485_DRV_ON | ( | ) | (PORTB |= _BV(3)) |
#define SER1_RS485_DRV_OFF | ( | ) | (PORTB &= ~_BV(3)) |
#define SER0_GET_CD | ( | ) | bit_is_set(PINB, 6) |
#define SER0_GET_RI | ( | ) | bit_is_clear(PINB, 7) |
#define SER0_GET_CTS | ( | ) | bit_is_clear(PINE, 6) |
#define SER0_GET_DSR | ( | ) | bit_is_clear(PINE, 4) |
#define SER0_SET_RTS | ( | ) | (PORTB &= ~_BV(4)) |
#define SER0_CLR_RTS | ( | ) | (PORTB |= _BV(4)) |
#define SER0_SET_DTR | ( | ) | (PORTB &= ~_BV(5)) |
#define SER0_CLR_DTR | ( | ) | (PORTB |= _BV(5)) |