#include <inttypes.h>
#include <stdlib.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include "BetterStream.h"
Go to the source code of this file.
Classes |
class | FastSerial |
struct | FastSerial::Buffer |
Defines |
#define | HardwareSerial_h |
#define | FastSerialHandler(_PORT, _RXVECTOR, _TXVECTOR, _UDR, _UCSRB, _TXBITS) |
#define | FastSerialPort(_name, _num) |
#define | FastSerialPort0(_portName) FastSerialPort(_portName, 0) |
#define | FastSerialPort1(_portName) FastSerialPort(_portName, 1) |
#define | FastSerialPort2(_portName) FastSerialPort(_portName, 2) |
#define | FastSerialPort3(_portName) FastSerialPort(_portName, 3) |
Variables |
class FastSerial | Serial |
class FastSerial | Serial1 |
class FastSerial | Serial2 |
class FastSerial | Serial3 |
FastSerial::Buffer | __FastSerial__rxBuffer [] |
FastSerial::Buffer | __FastSerial__txBuffer [] |
Define Documentation
#define FastSerialHandler |
( |
|
_PORT, |
|
|
|
_RXVECTOR, |
|
|
|
_TXVECTOR, |
|
|
|
_UDR, |
|
|
|
_UCSRB, |
|
|
|
_TXBITS | |
|
) |
| | |
#define FastSerialPort |
( |
|
_name, |
|
|
|
_num | |
|
) |
| | |
Value:FastSerial _name(_num, \
&UBRR##_num##H, \
&UBRR##_num##L, \
&UCSR##_num##A, \
&UCSR##_num##B, \
U2X##_num, \
(_BV(RXEN##_num) | _BV(TXEN##_num) | _BV(RXCIE##_num)), \
(_BV(UDRIE##_num))); \
FastSerialHandler(_num, \
USART##_num##_RX_vect, \
USART##_num##_UDRE_vect, \
UDR##_num, \
UCSR##_num##B, \
_BV(UDRIE##_num))
Definition at line 216 of file FastSerial.h.
#define FastSerialPort0 |
( |
|
_portName |
) |
FastSerialPort(_portName, 0) |
#define FastSerialPort1 |
( |
|
_portName |
) |
FastSerialPort(_portName, 1) |
#define FastSerialPort2 |
( |
|
_portName |
) |
FastSerialPort(_portName, 2) |
#define FastSerialPort3 |
( |
|
_portName |
) |
FastSerialPort(_portName, 3) |
Variable Documentation