Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
Print Class Referenceabstract

#include <Print.h>

Inheritance diagram for Print:
Inheritance graph
[legend]

Public Member Functions

virtual int availableForWrite ()
 
void clearWriteError ()
 
virtual void flush ()
 
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)
 
virtual size_t write (uint8_t)=0
 
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 Member Functions

void setWriteError (int err=1)
 

Private Member Functions

size_t printFloat (double, uint8_t)
 
size_t printNumber (unsigned long, uint8_t)
 

Private Attributes

int write_error
 

Detailed Description

Definition at line 37 of file Print.h.

Constructor & Destructor Documentation

Print::Print ( )
inline

Definition at line 46 of file Print.h.

Member Function Documentation

virtual int Print::availableForWrite ( void  )
inlinevirtual

Reimplemented in HardwareSerial.

Definition at line 63 of file Print.h.

void Print::clearWriteError ( )
inline

Definition at line 49 of file Print.h.

virtual void Print::flush ( void  )
inlinevirtual

Reimplemented in HardwareSerial, UDP, TwoWire, and Client.

Definition at line 90 of file Print.h.

int Print::getWriteError ( )
inline

Definition at line 48 of file Print.h.

size_t Print::print ( const __FlashStringHelper *  ifsh)

Definition at line 44 of file Print.cpp.

size_t Print::print ( const String &  s)

Definition at line 57 of file Print.cpp.

size_t Print::print ( const char  str[])

Definition at line 62 of file Print.cpp.

size_t Print::print ( char  c)

Definition at line 67 of file Print.cpp.

size_t Print::print ( unsigned char  b,
int  base = DEC 
)

Definition at line 72 of file Print.cpp.

size_t Print::print ( int  n,
int  base = DEC 
)

Definition at line 77 of file Print.cpp.

size_t Print::print ( unsigned int  n,
int  base = DEC 
)

Definition at line 82 of file Print.cpp.

size_t Print::print ( long  n,
int  base = DEC 
)

Definition at line 87 of file Print.cpp.

size_t Print::print ( unsigned long  n,
int  base = DEC 
)

Definition at line 103 of file Print.cpp.

size_t Print::print ( double  n,
int  digits = 2 
)

Definition at line 109 of file Print.cpp.

size_t Print::print ( const Printable x)

Definition at line 121 of file Print.cpp.

size_t Print::printFloat ( double  number,
uint8_t  digits 
)
private

Definition at line 223 of file Print.cpp.

size_t Print::println ( const __FlashStringHelper *  ifsh)

Definition at line 114 of file Print.cpp.

size_t Print::println ( const String &  s)

Definition at line 131 of file Print.cpp.

size_t Print::println ( const char  c[])

Definition at line 138 of file Print.cpp.

size_t Print::println ( char  c)

Definition at line 145 of file Print.cpp.

size_t Print::println ( unsigned char  b,
int  base = DEC 
)

Definition at line 152 of file Print.cpp.

size_t Print::println ( int  num,
int  base = DEC 
)

Definition at line 159 of file Print.cpp.

size_t Print::println ( unsigned int  num,
int  base = DEC 
)

Definition at line 166 of file Print.cpp.

size_t Print::println ( long  num,
int  base = DEC 
)

Definition at line 173 of file Print.cpp.

size_t Print::println ( unsigned long  num,
int  base = DEC 
)

Definition at line 180 of file Print.cpp.

size_t Print::println ( double  num,
int  digits = 2 
)

Definition at line 187 of file Print.cpp.

size_t Print::println ( const Printable x)

Definition at line 194 of file Print.cpp.

size_t Print::println ( void  )

Definition at line 126 of file Print.cpp.

size_t Print::printNumber ( unsigned long  n,
uint8_t  base 
)
private

Definition at line 203 of file Print.cpp.

void Print::setWriteError ( int  err = 1)
inlineprotected

Definition at line 44 of file Print.h.

virtual size_t Print::write ( uint8_t  )
pure virtual

Implemented in HardwareSerial, TwoWire, UDP, and Client.

size_t Print::write ( const char *  str)
inline

Definition at line 52 of file Print.h.

size_t Print::write ( const uint8_t *  buffer,
size_t  size 
)
virtual

Reimplemented in TwoWire, UDP, and Client.

Definition at line 34 of file Print.cpp.

size_t Print::write ( const char *  buffer,
size_t  size 
)
inline

Definition at line 57 of file Print.h.

Member Data Documentation

int Print::write_error
private

Definition at line 40 of file Print.h.


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


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