Classes | Defines | Variables

/home/jgoppert/Projects/ap/libraries/FastSerial/FastSerial.h File Reference

#include <inttypes.h>
#include <stdlib.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include "BetterStream.h"
Include dependency graph for FastSerial.h:
This graph shows which files directly or indirectly include this file:

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 
)

Definition at line 144 of file FastSerial.h.

#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)

Definition at line 240 of file FastSerial.h.

#define FastSerialPort1 (   _portName  )     FastSerialPort(_portName, 1)

Definition at line 241 of file FastSerial.h.

#define FastSerialPort2 (   _portName  )     FastSerialPort(_portName, 2)

Definition at line 242 of file FastSerial.h.

#define FastSerialPort3 (   _portName  )     FastSerialPort(_portName, 3)

Definition at line 243 of file FastSerial.h.

#define HardwareSerial_h

Definition at line 49 of file FastSerial.h.


Variable Documentation

Definition at line 46 of file FastSerial.cpp.

Definition at line 47 of file FastSerial.cpp.