Commander-API  V2.0.2
Simple Command Parser
Loading...
Searching...
No Matches
commandResponseArduinoSerial Class Reference

Arduino Hardware serial response subclass. More...

#include <Commander-IO.hpp>

Inheritance diagram for commandResponseArduinoSerial:
[legend]
Collaboration diagram for commandResponseArduinoSerial:
[legend]

Public Member Functions

void select (HardwareSerial *serialPort_p)
 
int available () override
 
int read () override
 
int peek () override
 
size_t readBytes (uint8_t *buff, uint32_t size) override
 
void flush () override
 
size_t write (uint8_t b) override
 
size_t print (char c) override
 
size_t print (char *str) override
 
size_t print (const char *str) override
 
size_t print (int8_t b) override
 
size_t print (uint8_t b) override
 
size_t print (int16_t b) override
 
size_t print (uint16_t b) override
 
size_t print (int32_t b) override
 
size_t print (uint32_t b) override
 
size_t print (float f) override
 
size_t print (double f) override
 
size_t println () override
 
size_t println (char c) override
 
size_t println (char *str) override
 
size_t println (const char *str) override
 
size_t println (int8_t b) override
 
size_t println (uint8_t b) override
 
size_t println (int16_t b) override
 
size_t println (uint16_t b) override
 
size_t println (int32_t b) override
 
size_t println (uint32_t b) override
 
size_t println (float f) override
 
size_t println (double f) override
 
int printf (const char *fmt,...) override
 
virtual int available ()
 
virtual int read ()
 
virtual int peek ()
 
virtual size_t readBytes (uint8_t *buff, uint32_t size)
 
virtual void flush ()
 
virtual size_t write (uint8_t b)
 
virtual size_t print (char c)
 
virtual size_t print (char *str)
 
virtual size_t print (const char *str)
 
virtual size_t print (int8_t b)
 
virtual size_t print (uint8_t b)
 
virtual size_t print (int16_t b)
 
virtual size_t print (uint16_t b)
 
virtual size_t print (int32_t b)
 
virtual size_t print (uint32_t b)
 
virtual size_t print (float f)
 
virtual size_t print (double f)
 
virtual size_t println ()
 
virtual size_t println (char c)
 
virtual size_t println (char *str)
 
virtual size_t println (const char *str)
 
virtual size_t println (int8_t b)
 
virtual size_t println (uint8_t b)
 
virtual size_t println (int16_t b)
 
virtual size_t println (uint16_t b)
 
virtual size_t println (int32_t b)
 
virtual size_t println (uint32_t b)
 
virtual size_t println (float f)
 
virtual size_t println (double f)
 
virtual int printf (const char *fmt,...)
 

Detailed Description

Arduino Hardware serial response subclass.

This subclass is overrides the communication functions in the commandResponse class to make it work with a HardwareSerial like class in Arduino environment.

Definition at line 178 of file Commander-IO.hpp.

Member Function Documentation

◆ available()

int commandResponseArduinoSerial::available ( )
overridevirtual

Reimplemented from commandResponse.

Definition at line 293 of file Commander-IO.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ flush()

void commandResponseArduinoSerial::flush ( )
overridevirtual

Reimplemented from commandResponse.

Definition at line 321 of file Commander-IO.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ peek()

int commandResponseArduinoSerial::peek ( )
overridevirtual

Reimplemented from commandResponse.

Definition at line 307 of file Commander-IO.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print() [1/11]

size_t commandResponseArduinoSerial::print ( char *  str)
overridevirtual

Reimplemented from commandResponse.

Definition at line 342 of file Commander-IO.cpp.

Here is the call graph for this function:

◆ print() [2/11]

size_t commandResponseArduinoSerial::print ( char  c)
overridevirtual

Reimplemented from commandResponse.

Definition at line 335 of file Commander-IO.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print() [3/11]

size_t commandResponseArduinoSerial::print ( const char *  str)
overridevirtual

Reimplemented from commandResponse.

Definition at line 349 of file Commander-IO.cpp.

Here is the call graph for this function:

◆ print() [4/11]

size_t commandResponseArduinoSerial::print ( double  f)
overridevirtual

Reimplemented from commandResponse.

Definition at line 405 of file Commander-IO.cpp.

Here is the call graph for this function:

◆ print() [5/11]

size_t commandResponseArduinoSerial::print ( float  f)
overridevirtual

Reimplemented from commandResponse.

Definition at line 398 of file Commander-IO.cpp.

Here is the call graph for this function:

◆ print() [6/11]

size_t commandResponseArduinoSerial::print ( int16_t  b)
overridevirtual

Reimplemented from commandResponse.

Definition at line 370 of file Commander-IO.cpp.

Here is the call graph for this function:

◆ print() [7/11]

size_t commandResponseArduinoSerial::print ( int32_t  b)
overridevirtual

Reimplemented from commandResponse.

Definition at line 384 of file Commander-IO.cpp.

Here is the call graph for this function:

◆ print() [8/11]

size_t commandResponseArduinoSerial::print ( int8_t  b)
overridevirtual

Reimplemented from commandResponse.

Definition at line 356 of file Commander-IO.cpp.

Here is the call graph for this function:

◆ print() [9/11]

size_t commandResponseArduinoSerial::print ( uint16_t  b)
overridevirtual

Reimplemented from commandResponse.

Definition at line 377 of file Commander-IO.cpp.

Here is the call graph for this function:

◆ print() [10/11]

size_t commandResponseArduinoSerial::print ( uint32_t  b)
overridevirtual

Reimplemented from commandResponse.

Definition at line 391 of file Commander-IO.cpp.

Here is the call graph for this function:

◆ print() [11/11]

size_t commandResponseArduinoSerial::print ( uint8_t  b)
overridevirtual

Reimplemented from commandResponse.

Definition at line 363 of file Commander-IO.cpp.

Here is the call graph for this function:

◆ printf()

int commandResponseArduinoSerial::printf ( const char *  fmt,
  ... 
)
overridevirtual

Reimplemented from commandResponse.

Definition at line 498 of file Commander-IO.cpp.

Here is the call graph for this function:

◆ println() [1/12]

size_t commandResponseArduinoSerial::println ( )
overridevirtual

Reimplemented from commandResponse.

Definition at line 414 of file Commander-IO.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ println() [2/12]

size_t commandResponseArduinoSerial::println ( char *  str)
overridevirtual

Reimplemented from commandResponse.

Definition at line 428 of file Commander-IO.cpp.

Here is the call graph for this function:

◆ println() [3/12]

size_t commandResponseArduinoSerial::println ( char  c)
overridevirtual

Reimplemented from commandResponse.

Definition at line 421 of file Commander-IO.cpp.

Here is the call graph for this function:

◆ println() [4/12]

size_t commandResponseArduinoSerial::println ( const char *  str)
overridevirtual

Reimplemented from commandResponse.

Definition at line 435 of file Commander-IO.cpp.

Here is the call graph for this function:

◆ println() [5/12]

size_t commandResponseArduinoSerial::println ( double  f)
overridevirtual

Reimplemented from commandResponse.

Definition at line 491 of file Commander-IO.cpp.

Here is the call graph for this function:

◆ println() [6/12]

size_t commandResponseArduinoSerial::println ( float  f)
overridevirtual

Reimplemented from commandResponse.

Definition at line 484 of file Commander-IO.cpp.

Here is the call graph for this function:

◆ println() [7/12]

size_t commandResponseArduinoSerial::println ( int16_t  b)
overridevirtual

Reimplemented from commandResponse.

Definition at line 456 of file Commander-IO.cpp.

Here is the call graph for this function:

◆ println() [8/12]

size_t commandResponseArduinoSerial::println ( int32_t  b)
overridevirtual

Reimplemented from commandResponse.

Definition at line 470 of file Commander-IO.cpp.

Here is the call graph for this function:

◆ println() [9/12]

size_t commandResponseArduinoSerial::println ( int8_t  b)
overridevirtual

Reimplemented from commandResponse.

Definition at line 442 of file Commander-IO.cpp.

Here is the call graph for this function:

◆ println() [10/12]

size_t commandResponseArduinoSerial::println ( uint16_t  b)
overridevirtual

Reimplemented from commandResponse.

Definition at line 463 of file Commander-IO.cpp.

Here is the call graph for this function:

◆ println() [11/12]

size_t commandResponseArduinoSerial::println ( uint32_t  b)
overridevirtual

Reimplemented from commandResponse.

Definition at line 477 of file Commander-IO.cpp.

Here is the call graph for this function:

◆ println() [12/12]

size_t commandResponseArduinoSerial::println ( uint8_t  b)
overridevirtual

Reimplemented from commandResponse.

Definition at line 449 of file Commander-IO.cpp.

Here is the call graph for this function:

◆ read()

int commandResponseArduinoSerial::read ( )
overridevirtual

Reimplemented from commandResponse.

Definition at line 300 of file Commander-IO.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readBytes()

size_t commandResponseArduinoSerial::readBytes ( uint8_t *  buff,
uint32_t  size 
)
overridevirtual

Reimplemented from commandResponse.

Definition at line 314 of file Commander-IO.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ select()

void commandResponseArduinoSerial::select ( HardwareSerial *  serialPort_p)

Definition at line 287 of file Commander-IO.cpp.

Here is the caller graph for this function:

◆ write()

size_t commandResponseArduinoSerial::write ( uint8_t  b)
overridevirtual

Reimplemented from commandResponse.

Definition at line 327 of file Commander-IO.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: