24 #ifndef HardwareSerial_h
25 #define HardwareSerial_h
50 #if !defined(SERIAL_RX_BUFFER_SIZE)
51 #if ((RAMEND - RAMSTART) < 1023)
52 #define SERIAL_RX_BUFFER_SIZE 16
54 #define SERIAL_RX_BUFFER_SIZE 64
62 #if (SERIAL_RX_BUFFER_SIZE>256)
72 #define SERIAL_8N1 0x06
120 volatile uint8_t *ubrrh,
volatile uint8_t *ubrrl,
121 volatile uint8_t *ucsra,
volatile uint8_t *ucsrb,
122 volatile uint8_t *ucsrc,
volatile uint8_t *udr);
124 void begin(
unsigned long, uint8_t);
127 virtual int peek(
void);
128 virtual int read(
void);
130 virtual void flush(
void);
132 size_t write(uint8_t);
133 inline size_t write(
unsigned long n) {
return write((uint8_t)n); }
138 operator bool() {
return true; }
147 #define HAVE_HWSERIAL0
bool _written
Definition: HardwareSerial.h:105
#define SERIAL_8N1
Definition: HardwareSerial.h:72
virtual int available(void)
Definition: HardwareSerial.cpp:167
size_t write(uint8_t)
Definition: HardwareSerial.cpp:230
volatile rx_buffer_index_t _rx_buffer_head
Definition: HardwareSerial.h:107
void end()
Definition: HardwareSerial.cpp:153
size_t write(uint8_t buffer)
Definition: Print.h:53
virtual int peek(void)
Definition: HardwareSerial.cpp:172
uint8_t rx_buffer_index_t
Definition: HardwareSerial.h:65
#define bool
Definition: stdbool.h:31
HardwareSerial(volatile uint8_t *ubrrh, volatile uint8_t *ubrrl, volatile uint8_t *ucsra, volatile uint8_t *ucsrb, volatile uint8_t *ucsrc, volatile uint8_t *udr)
volatile rx_buffer_index_t _rx_buffer_tail
Definition: HardwareSerial.h:108
void _rx_complete_irq(void)
size_t write(unsigned long n)
Definition: HardwareSerial.h:133
virtual int read(void)
Definition: HardwareSerial.cpp:183
#define SERIAL_RX_BUFFER_SIZE
Definition: HardwareSerial.h:52
virtual int availableForWrite(void)
Definition: HardwareSerial.cpp:195
Definition: HardwareSerial.h:95
size_t write(int n)
Definition: HardwareSerial.h:136
size_t write(long n)
Definition: HardwareSerial.h:134
unsigned char _rx_buffer[SERIAL_RX_BUFFER_SIZE]
Definition: HardwareSerial.h:115
float n
Definition: OWGeneric_SensorStation.ino:147
size_t write(unsigned int n)
Definition: HardwareSerial.h:135
void begin(unsigned long baud)
Definition: HardwareSerial.h:123
virtual void flush(void)
Definition: HardwareSerial.cpp:210