|
|
|
|
|
|
|
|
void serial_end(void); |
|
|
void serial_end(void); |
|
|
void serial_set_transmit_pin(uint8_t pin); |
|
|
void serial_set_transmit_pin(uint8_t pin); |
|
|
void serial_set_rx(uint8_t pin); |
|
|
void serial_set_rx(uint8_t pin); |
|
|
void serial_set_tx(uint8_t pin); |
|
|
|
|
|
|
|
|
void serial_set_tx(uint8_t pin, uint8_t opendrain); |
|
|
int serial_set_rts(uint8_t pin); |
|
|
int serial_set_rts(uint8_t pin); |
|
|
int serial_set_cts(uint8_t pin); |
|
|
int serial_set_cts(uint8_t pin); |
|
|
void serial_putchar(uint32_t c); |
|
|
void serial_putchar(uint32_t c); |
|
|
|
|
|
|
|
|
void serial2_end(void); |
|
|
void serial2_end(void); |
|
|
void serial2_set_transmit_pin(uint8_t pin); |
|
|
void serial2_set_transmit_pin(uint8_t pin); |
|
|
void serial2_set_rx(uint8_t pin); |
|
|
void serial2_set_rx(uint8_t pin); |
|
|
void serial2_set_tx(uint8_t pin); |
|
|
|
|
|
|
|
|
void serial2_set_tx(uint8_t pin, uint8_t opendrain); |
|
|
int serial2_set_rts(uint8_t pin); |
|
|
int serial2_set_rts(uint8_t pin); |
|
|
int serial2_set_cts(uint8_t pin); |
|
|
int serial2_set_cts(uint8_t pin); |
|
|
void serial2_putchar(uint32_t c); |
|
|
void serial2_putchar(uint32_t c); |
|
|
|
|
|
|
|
|
void serial3_end(void); |
|
|
void serial3_end(void); |
|
|
void serial3_set_transmit_pin(uint8_t pin); |
|
|
void serial3_set_transmit_pin(uint8_t pin); |
|
|
void serial3_set_rx(uint8_t pin); |
|
|
void serial3_set_rx(uint8_t pin); |
|
|
void serial3_set_tx(uint8_t pin); |
|
|
|
|
|
|
|
|
void serial3_set_tx(uint8_t pin, uint8_t opendrain); |
|
|
int serial3_set_rts(uint8_t pin); |
|
|
int serial3_set_rts(uint8_t pin); |
|
|
int serial3_set_cts(uint8_t pin); |
|
|
int serial3_set_cts(uint8_t pin); |
|
|
void serial3_putchar(uint32_t c); |
|
|
void serial3_putchar(uint32_t c); |
|
|
|
|
|
|
|
|
virtual void end(void) { serial_end(); } |
|
|
virtual void end(void) { serial_end(); } |
|
|
virtual void transmitterEnable(uint8_t pin) { serial_set_transmit_pin(pin); } |
|
|
virtual void transmitterEnable(uint8_t pin) { serial_set_transmit_pin(pin); } |
|
|
virtual void setRX(uint8_t pin) { serial_set_rx(pin); } |
|
|
virtual void setRX(uint8_t pin) { serial_set_rx(pin); } |
|
|
virtual void setTX(uint8_t pin) { serial_set_tx(pin); } |
|
|
|
|
|
|
|
|
virtual void setTX(uint8_t pin, bool opendrain=false) { serial_set_tx(pin, opendrain); } |
|
|
virtual bool attachRts(uint8_t pin) { return serial_set_rts(pin); } |
|
|
virtual bool attachRts(uint8_t pin) { return serial_set_rts(pin); } |
|
|
virtual bool attachCts(uint8_t pin) { return serial_set_cts(pin); } |
|
|
virtual bool attachCts(uint8_t pin) { return serial_set_cts(pin); } |
|
|
virtual int available(void) { return serial_available(); } |
|
|
virtual int available(void) { return serial_available(); } |
|
|
|
|
|
|
|
|
virtual void end(void) { serial2_end(); } |
|
|
virtual void end(void) { serial2_end(); } |
|
|
virtual void transmitterEnable(uint8_t pin) { serial2_set_transmit_pin(pin); } |
|
|
virtual void transmitterEnable(uint8_t pin) { serial2_set_transmit_pin(pin); } |
|
|
virtual void setRX(uint8_t pin) { serial2_set_rx(pin); } |
|
|
virtual void setRX(uint8_t pin) { serial2_set_rx(pin); } |
|
|
virtual void setTX(uint8_t pin) { serial2_set_tx(pin); } |
|
|
|
|
|
|
|
|
virtual void setTX(uint8_t pin, bool opendrain=false) { serial2_set_tx(pin, opendrain); } |
|
|
virtual bool attachRts(uint8_t pin) { return serial2_set_rts(pin); } |
|
|
virtual bool attachRts(uint8_t pin) { return serial2_set_rts(pin); } |
|
|
virtual bool attachCts(uint8_t pin) { return serial2_set_cts(pin); } |
|
|
virtual bool attachCts(uint8_t pin) { return serial2_set_cts(pin); } |
|
|
virtual int available(void) { return serial2_available(); } |
|
|
virtual int available(void) { return serial2_available(); } |
|
|
|
|
|
|
|
|
virtual void end(void) { serial3_end(); } |
|
|
virtual void end(void) { serial3_end(); } |
|
|
virtual void transmitterEnable(uint8_t pin) { serial3_set_transmit_pin(pin); } |
|
|
virtual void transmitterEnable(uint8_t pin) { serial3_set_transmit_pin(pin); } |
|
|
virtual void setRX(uint8_t pin) { serial3_set_rx(pin); } |
|
|
virtual void setRX(uint8_t pin) { serial3_set_rx(pin); } |
|
|
virtual void setTX(uint8_t pin) { serial3_set_tx(pin); } |
|
|
|
|
|
|
|
|
virtual void setTX(uint8_t pin, bool opendrain=false) { serial3_set_tx(pin, opendrain); } |
|
|
virtual bool attachRts(uint8_t pin) { return serial3_set_rts(pin); } |
|
|
virtual bool attachRts(uint8_t pin) { return serial3_set_rts(pin); } |
|
|
virtual bool attachCts(uint8_t pin) { return serial3_set_cts(pin); } |
|
|
virtual bool attachCts(uint8_t pin) { return serial3_set_cts(pin); } |
|
|
virtual int available(void) { return serial3_available(); } |
|
|
virtual int available(void) { return serial3_available(); } |