77 #ifndef USART_SERIAL_CONFIG 78 #define USART_SERIAL_CONFIG 175 size_t write(
char c );
192 size_t write(
const char* c );
211 size_t write(
const char* c,
size_t n );
230 size_t write(
const uint8_t* c,
size_t n );
339 virtual size_t write(
char c );
349 virtual size_t write(
const char* str );
360 virtual size_t write(
const char* buffer,
size_t size );
371 virtual size_t write(
const uint8_t* buffer,
size_t size );
378 virtual void flush();
This is an abstract class defining a generic interface to read numbers and strings from a sequential ...
Definition: Reader.h:65
6 data bits, odd parity, 2 stop bits
Definition: USART0.h:113
int read()
Return the next character in the receive buffer, removing it from the buffer.
Definition: Reader.cpp:47
void stop()
Stops buffered serial communications using interrupts on USART0.
void stop()
Stops buffered serial communications using Serial0 on USART0 by deconfiguring the hardware and turnin...
Definition: USART0.h:324
void flush()
Flush transmit buffer.
This file provides a generic interface to incoming data streams of any kind. It is designed around ho...
UsartSerialConfiguration
This enum lists serial configuration in terms of data bits, parity, and stop bits.
Definition: USART0.h:90
6 data bits, odd parity, 1 stop bit
Definition: USART0.h:109
This is an abstract class defining a generic interface to write numbers and strings to a sequential s...
Definition: Writer.h:63
8 data bits, no parity, 1 stop bit
Definition: USART0.h:95
8 data bits, even parity, 1 stop bit
Definition: USART0.h:103
5 data bits, no parity, 2 stop bits
Definition: USART0.h:96
8 data bits, even parity, 2 stop bits
Definition: USART0.h:107
6 data bits, even parity, 1 stop bit
Definition: USART0.h:101
void start(unsigned long baudRate, UsartSerialConfiguration config=kSerial_8N1)
Initialize USART0 for buffered, asynchronous serial communications using interrupts.
7 data bits, odd parity, 1 stop bit
Definition: USART0.h:110
7 data bits, odd parity, 2 stop bits
Definition: USART0.h:114
This namespace bundles a high-level buffered interface to the USART0 hardware. It provides logical co...
Definition: USART0.h:128
7 data bits, even parity, 2 stop bits
Definition: USART0.h:106
5 data bits, even parity, 2 stop bits
Definition: USART0.h:104
5 data bits, odd parity, 2 stop bits
Definition: USART0.h:112
8 data bits, odd parity, 1 stop bit
Definition: USART0.h:111
7 data bits, no parity, 2 stop bits
Definition: USART0.h:98
Provides a high-end interface to serial communications using USART0.
Definition: USART0.h:295
This file provides a generic interface to outgoing data streams of any kind. It is designed around ho...
5 data bits, odd parity, 1 stop bit
Definition: USART0.h:108
int peek()
Examine the next character in the receive buffer without removing it from the buffer.
Definition: Reader.cpp:54
5 data bits, no parity, 1 stop bit
Definition: USART0.h:92
bool available()
Determine if there is data in the receive buffer..
Definition: Reader.cpp:60
size_t write(char c)
Write a single byte to the transmit buffer.
void start(unsigned long baudRate, UsartSerialConfiguration config=kSerial_8N1)
Configure the hardware for two-way serial communications, including turning on associated interrupts...
Definition: USART0.h:311
7 data bits, no parity, 1 stop bit
Definition: USART0.h:94
6 data bits, no parity, 1 stop bit
Definition: USART0.h:93
5 data bits, even parity, 1 stop bit
Definition: USART0.h:100
6 data bits, even parity, 2 stop bits
Definition: USART0.h:105
7 data bits, even parity, 1 stop bit
Definition: USART0.h:102
6 data bits, no parity, 2 stop bits
Definition: USART0.h:97
8 data bits, no parity, 2 stop bits
Definition: USART0.h:99
8 data bits, odd parity, 2 stop bits
Definition: USART0.h:115