Public Member Functions | Protected Attributes | List of all members
HardwareSerial Class Reference

#include <HardwareSerial.h>

Inheritance diagram for HardwareSerial:
Inheritance graph
[legend]

Public Member Functions

void _rx_complete_irq (void)
 
void _tx_udr_empty_irq (void)
 
virtual int available (void)
 
virtual int availableForWrite (void)
 
void begin (unsigned long baud)
 
void begin (unsigned long, uint8_t)
 
void end ()
 
virtual void flush (void)
 
 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)
 
 operator bool ()
 
virtual int peek (void)
 
virtual int read (void)
 
virtual 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)
 
- Public Member Functions inherited from Stream
bool find (char *target)
 
bool find (uint8_t *target)
 
bool find (char *target, size_t length)
 
bool find (uint8_t *target, size_t length)
 
bool find (char target)
 
bool findUntil (char *target, char *terminator)
 
bool findUntil (uint8_t *target, char *terminator)
 
bool findUntil (char *target, size_t targetLen, char *terminate, size_t termLen)
 
bool findUntil (uint8_t *target, size_t targetLen, char *terminate, size_t termLen)
 
unsigned long getTimeout (void)
 
float parseFloat (LookaheadMode lookahead=SKIP_ALL, char ignore=NO_IGNORE_CHAR)
 
long parseInt (LookaheadMode lookahead=SKIP_ALL, char ignore=NO_IGNORE_CHAR)
 
size_t readBytes (char *buffer, size_t length)
 
size_t readBytes (uint8_t *buffer, size_t length)
 
size_t readBytesUntil (char terminator, char *buffer, size_t length)
 
size_t readBytesUntil (char terminator, uint8_t *buffer, size_t length)
 
String readString ()
 
String readStringUntil (char terminator)
 
void setTimeout (unsigned long timeout)
 
 Stream ()
 
- Public Member Functions inherited from Print
void clearWriteError ()
 
int getWriteError ()
 
 Print ()
 
size_t print (const __FlashStringHelper *)
 
size_t print (const String &)
 
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 print (const Printable &)
 
size_t println (const __FlashStringHelper *)
 
size_t println (const String &s)
 
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 (const Printable &)
 
size_t println (void)
 
size_t write (const char *str)
 
virtual size_t write (const uint8_t *buffer, size_t size)
 
size_t write (const char *buffer, size_t size)
 

Protected Attributes

unsigned char _rx_buffer [SERIAL_RX_BUFFER_SIZE]
 
volatile rx_buffer_index_t _rx_buffer_head
 
volatile rx_buffer_index_t _rx_buffer_tail
 
unsigned char _tx_buffer [SERIAL_TX_BUFFER_SIZE]
 
volatile tx_buffer_index_t _tx_buffer_head
 
volatile tx_buffer_index_t _tx_buffer_tail
 
volatile uint8_t *const _ubrrh
 
volatile uint8_t *const _ubrrl
 
volatile uint8_t *const _ucsra
 
volatile uint8_t *const _ucsrb
 
volatile uint8_t *const _ucsrc
 
volatile uint8_t *const _udr
 
bool _written
 
- Protected Attributes inherited from Stream
unsigned long _startMillis
 
unsigned long _timeout
 

Additional Inherited Members

- Protected Member Functions inherited from Stream
int findMulti (struct MultiTarget *targets, int tCount)
 
float parseFloat (char ignore)
 
long parseInt (char ignore)
 
int peekNextDigit (LookaheadMode lookahead, bool detectDecimal)
 
int timedPeek ()
 
int timedRead ()
 
- Protected Member Functions inherited from Print
void setWriteError (int err=1)
 

Detailed Description

Definition at line 93 of file HardwareSerial.h.

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
void HardwareSerial::_tx_udr_empty_irq ( void  )
virtual int HardwareSerial::available ( void  )
virtual

Implements Stream.

virtual int HardwareSerial::availableForWrite ( void  )
virtual

Reimplemented from Print.

void HardwareSerial::begin ( unsigned long  baud)
inline

Definition at line 121 of file HardwareSerial.h.

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

Reimplemented from Print.

HardwareSerial::operator bool ( )
inline

Definition at line 135 of file HardwareSerial.h.

virtual int HardwareSerial::peek ( void  )
virtual

Implements Stream.

virtual int HardwareSerial::read ( void  )
virtual

Implements Stream.

virtual size_t HardwareSerial::write ( uint8_t  )
virtual

Implements Print.

size_t HardwareSerial::write ( unsigned long  n)
inline

Definition at line 130 of file HardwareSerial.h.

size_t HardwareSerial::write ( long  n)
inline

Definition at line 131 of file HardwareSerial.h.

size_t HardwareSerial::write ( unsigned int  n)
inline

Definition at line 132 of file HardwareSerial.h.

size_t HardwareSerial::write ( int  n)
inline

Definition at line 133 of file HardwareSerial.h.

Member Data Documentation

unsigned char HardwareSerial::_rx_buffer[SERIAL_RX_BUFFER_SIZE]
protected

Definition at line 113 of file HardwareSerial.h.

volatile rx_buffer_index_t HardwareSerial::_rx_buffer_head
protected

Definition at line 105 of file HardwareSerial.h.

volatile rx_buffer_index_t HardwareSerial::_rx_buffer_tail
protected

Definition at line 106 of file HardwareSerial.h.

unsigned char HardwareSerial::_tx_buffer[SERIAL_TX_BUFFER_SIZE]
protected

Definition at line 114 of file HardwareSerial.h.

volatile tx_buffer_index_t HardwareSerial::_tx_buffer_head
protected

Definition at line 107 of file HardwareSerial.h.

volatile tx_buffer_index_t HardwareSerial::_tx_buffer_tail
protected

Definition at line 108 of file HardwareSerial.h.

volatile uint8_t* const HardwareSerial::_ubrrh
protected

Definition at line 96 of file HardwareSerial.h.

volatile uint8_t* const HardwareSerial::_ubrrl
protected

Definition at line 97 of file HardwareSerial.h.

volatile uint8_t* const HardwareSerial::_ucsra
protected

Definition at line 98 of file HardwareSerial.h.

volatile uint8_t* const HardwareSerial::_ucsrb
protected

Definition at line 99 of file HardwareSerial.h.

volatile uint8_t* const HardwareSerial::_ucsrc
protected

Definition at line 100 of file HardwareSerial.h.

volatile uint8_t* const HardwareSerial::_udr
protected

Definition at line 101 of file HardwareSerial.h.

bool HardwareSerial::_written
protected

Definition at line 103 of file HardwareSerial.h.


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


arduino_daq
Author(s):
autogenerated on Mon Jun 10 2019 12:46:03