sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
HardwareSerial Class Reference

#include <HardwareSerial.h>

Inheritance diagram for HardwareSerial:
Print

Public Member Functions

 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)
 
void begin (unsigned long baud)
 
void begin (unsigned long, uint8_t)
 
void end ()
 
virtual int available (void)
 
virtual int peek (void)
 
virtual int read (void)
 
virtual int availableForWrite (void)
 
virtual void flush (void)
 
size_t write (uint8_t)
 
size_t write (unsigned long n)
 
size_t write (long n)
 
size_t write (unsigned int n)
 
size_t write (int n)
 
 operator bool ()
 
void _rx_complete_irq (void)
 
- Public Member Functions inherited from Print
 Print ()
 
int getWriteError ()
 
void clearWriteError ()
 
size_t write (uint8_t buffer)
 
size_t write (const char *str)
 
size_t write (const uint8_t *buffer, size_t size)
 
size_t write (const char *buffer, size_t size)
 
size_t print (const char[])
 
size_t print (char)
 
size_t print (unsigned char, int=DEC)
 
size_t print (int, int=DEC)
 
size_t print (unsigned int, int=DEC)
 
size_t print (long, int=DEC)
 
size_t print (unsigned long, int=DEC)
 
size_t print (double, int=2)
 
size_t println (const char[])
 
size_t println (char)
 
size_t println (unsigned char, int=DEC)
 
size_t println (int, int=DEC)
 
size_t println (unsigned int, int=DEC)
 
size_t println (long, int=DEC)
 
size_t println (unsigned long, int=DEC)
 
size_t println (double, int=2)
 
size_t println (void)
 

Protected Attributes

bool _written
 
volatile rx_buffer_index_t _rx_buffer_head
 
volatile rx_buffer_index_t _rx_buffer_tail
 
unsigned char _rx_buffer [SERIAL_RX_BUFFER_SIZE]
 

Additional Inherited Members

- Protected Member Functions inherited from Print
void setWriteError (int err=1)
 

Constructor & Destructor Documentation

HardwareSerial::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 
)
inline

Member Function Documentation

void HardwareSerial::_rx_complete_irq ( void  )
inline
int HardwareSerial::available ( void  )
virtual
int HardwareSerial::availableForWrite ( void  )
virtual

Reimplemented from Print.

void HardwareSerial::begin ( unsigned long  baud)
inline
void HardwareSerial::begin ( unsigned long  baud,
uint8_t  config 
)
void HardwareSerial::end ( )
void HardwareSerial::flush ( void  )
virtual

Reimplemented from Print.

HardwareSerial::operator bool ( )
inline
int HardwareSerial::peek ( void  )
virtual
int HardwareSerial::read ( void  )
virtual
size_t HardwareSerial::write ( uint8_t  c)
size_t HardwareSerial::write ( unsigned long  n)
inline
size_t HardwareSerial::write ( long  n)
inline
size_t HardwareSerial::write ( unsigned int  n)
inline
size_t HardwareSerial::write ( int  n)
inline

Member Data Documentation

unsigned char HardwareSerial::_rx_buffer[SERIAL_RX_BUFFER_SIZE]
protected
volatile rx_buffer_index_t HardwareSerial::_rx_buffer_head
protected
volatile rx_buffer_index_t HardwareSerial::_rx_buffer_tail
protected
bool HardwareSerial::_written
protected

The documentation for this class was generated from the following files: