Synergia AVR 0.1

Usart Class Reference

#include <usart.h>

List of all members.

Public Member Functions

void push (char c)
unsigned char read ()
bool empty ()
char * readline ()
bool gotLine ()
Usartoperator<< (const unsigned char c)
Usartoperator<< (const char c)
Usartoperator<< (char *string)
Usartoperator<< (const int number)
Usartoperator<< (const long number)
Usartoperator>> (unsigned char &c)
Usartoperator>> (int &c)
virtual void sendByte (unsigned char byte)
void push (char c)
unsigned char read ()
bool empty ()
char * readline ()
Usartoperator<< (const unsigned char c)
Usartoperator<< (const char c)
Usartoperator<< (char *string)
Usartoperator<< (const int number)
Usartoperator<< (const long number)
Usartoperator>> (unsigned char &c)
Usartoperator>> (int &c)
virtual void sendByte (unsigned char byte)
void push (char c)
unsigned char read ()
bool empty ()
char * readline ()
Usartoperator<< (const unsigned char c)
Usartoperator<< (const char c)
Usartoperator<< (char *string)
Usartoperator<< (const int number)
Usartoperator<< (const long number)
Usartoperator>> (unsigned char &c)
Usartoperator>> (int &c)
virtual void sendByte (unsigned char byte)
void push (char c)
unsigned char read ()
bool empty ()
char * readline ()
Usartoperator<< (const unsigned char c)
Usartoperator<< (const char c)
Usartoperator<< (char *string)
Usartoperator<< (const int number)
Usartoperator<< (const long number)
Usartoperator>> (unsigned char &c)
Usartoperator>> (int &c)
virtual void sendByte (unsigned char byte)

Detailed Description

Base class for Usart0 and Usart1

Definition at line 66 of file usart.h.


Member Function Documentation

bool Usart::empty ( )

Checks if Usart input buffer is empty

Returns:
true if there are items in buffer, otherwise false

Definition at line 54 of file usart.cpp.

bool Usart::empty ( )

Checks if Usart input buffer is empty

Returns:
true if there are items in buffer, otherwise false
bool Usart::empty ( )

Checks if Usart input buffer is empty

Returns:
true if there are items in buffer, otherwise false
bool Usart::empty ( )

Checks if Usart input buffer is empty

Returns:
true if there are items in buffer, otherwise false
bool Usart::gotLine ( )

Definition at line 58 of file usart.cpp.

Usart& Usart::operator<< ( const int  number)

Sends number to Usart

Parameters:
number- integer number
Returns:
Usart object
Usart & Usart::operator<< ( char *  string)

Sends string to Usart

Parameters:
string- string (char* pointer)
Returns:
Usart object

Definition at line 94 of file usart.cpp.

Usart& Usart::operator<< ( const char  c)

Sends char to Usart

Parameters:
c- character
Returns:
Usart object
Usart& Usart::operator<< ( const unsigned char  c)

Sends unsigned char to Usart

Parameters:
c- character
Returns:
Usart object
Usart& Usart::operator<< ( char *  string)

Sends string to Usart

Parameters:
string- string (char* pointer)
Returns:
Usart object
Usart& Usart::operator<< ( const int  number)

Sends number to Usart

Parameters:
number- integer number
Returns:
Usart object
Usart& Usart::operator<< ( const long  number)

Sends number to Usart

Parameters:
number- long number
Returns:
Usart object
Usart & Usart::operator<< ( const int  number)

Sends number to Usart

Parameters:
number- integer number
Returns:
Usart object

Definition at line 106 of file usart.cpp.

Usart& Usart::operator<< ( const unsigned char  c)

Sends unsigned char to Usart

Parameters:
c- character
Returns:
Usart object
Usart& Usart::operator<< ( const char  c)

Sends char to Usart

Parameters:
c- character
Returns:
Usart object
Usart & Usart::operator<< ( const long  number)

Sends number to Usart

Parameters:
number- long number
Returns:
Usart object

Definition at line 99 of file usart.cpp.

Usart& Usart::operator<< ( char *  string)

Sends string to Usart

Parameters:
string- string (char* pointer)
Returns:
Usart object
Usart& Usart::operator<< ( const int  number)

Sends number to Usart

Parameters:
number- integer number
Returns:
Usart object
Usart& Usart::operator<< ( const long  number)

Sends number to Usart

Parameters:
number- long number
Returns:
Usart object
Usart& Usart::operator<< ( const char  c)

Sends char to Usart

Parameters:
c- character
Returns:
Usart object
Usart& Usart::operator<< ( char *  string)

Sends string to Usart

Parameters:
string- string (char* pointer)
Returns:
Usart object
Usart& Usart::operator<< ( const long  number)

Sends number to Usart

Parameters:
number- long number
Returns:
Usart object
Usart & Usart::operator<< ( const unsigned char  c)

Sends unsigned char to Usart

Parameters:
c- character
Returns:
Usart object

Definition at line 84 of file usart.cpp.

Usart & Usart::operator<< ( const char  c)

Sends char to Usart

Parameters:
c- character
Returns:
Usart object

Definition at line 89 of file usart.cpp.

Usart& Usart::operator<< ( const unsigned char  c)

Sends unsigned char to Usart

Parameters:
c- character
Returns:
Usart object
Usart& Usart::operator>> ( unsigned char &  c)

Reads char from Usart

Parameters:
c- char variable to write to
Returns:
Usart object
Usart & Usart::operator>> ( unsigned char &  c)

Reads char from Usart

Parameters:
c- char variable to write to
Returns:
Usart object

Definition at line 111 of file usart.cpp.

Usart& Usart::operator>> ( unsigned char &  c)

Reads char from Usart

Parameters:
c- char variable to write to
Returns:
Usart object
Usart& Usart::operator>> ( int &  c)

Reads number from Usart

Parameters:
c- int variable to write to
Returns:
Usart object
Usart & Usart::operator>> ( int &  c)

Reads number from Usart

Parameters:
c- int variable to write to
Returns:
Usart object

Definition at line 116 of file usart.cpp.

Usart& Usart::operator>> ( int &  c)

Reads number from Usart

Parameters:
c- int variable to write to
Returns:
Usart object
Usart& Usart::operator>> ( int &  c)

Reads number from Usart

Parameters:
c- int variable to write to
Returns:
Usart object
Usart& Usart::operator>> ( unsigned char &  c)

Reads char from Usart

Parameters:
c- char variable to write to
Returns:
Usart object
void Usart::push ( char  c)

Pushes character into input buffer

Parameters:
c- character to push

Definition at line 46 of file usart.cpp.

void Usart::push ( char  c)

Pushes character into input buffer

Parameters:
c- character to push
void Usart::push ( char  c)

Pushes character into input buffer

Parameters:
c- character to push
void Usart::push ( char  c)

Pushes character into input buffer

Parameters:
c- character to push
unsigned char Usart::read ( )

Reads single character from Usart input buffer

Returns:
character
unsigned char Usart::read ( )

Reads single character from Usart input buffer

Returns:
character
unsigned char Usart::read ( )

Reads single character from Usart input buffer

Returns:
character

Definition at line 50 of file usart.cpp.

unsigned char Usart::read ( )

Reads single character from Usart input buffer

Returns:
character
char* Usart::readline ( )

Reads line from buffer Waits until
is present

Returns:
line of characters (without
)
char* Usart::readline ( )

Reads line from buffer Waits until
is present

Returns:
line of characters (without
)
char * Usart::readline ( )

Reads line from buffer Waits until
is present

Returns:
line of characters (without
)

Definition at line 67 of file usart.cpp.

char* Usart::readline ( )

Reads line from buffer Waits until
is present

Returns:
line of characters (without
)
virtual void Usart::sendByte ( unsigned char  byte) [inline, virtual]

Sends byte to Usart

Parameters:
byte- character

Definition at line 160 of file usart.h.

virtual void Usart::sendByte ( unsigned char  byte) [inline, virtual]

Sends byte to Usart

Parameters:
byte- character

Definition at line 160 of file usart.h.

virtual void Usart::sendByte ( unsigned char  byte) [inline, virtual]

Sends byte to Usart

Parameters:
byte- character

Definition at line 160 of file usart.h.

virtual void Usart::sendByte ( unsigned char  byte) [inline, virtual]

Sends byte to Usart

Parameters:
byte- character

Definition at line 162 of file usart.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Defines