![]() |
Shellminator
V1.1.1
Simple Terminal
|
Shellminator channel class for Arduino Serial objects. More...
#include <Shellminator-IO.hpp>
Public Member Functions | |
void | select (HardwareSerial *serialPort_p) |
Select Serial Port. More... | |
int | available () override |
Available bytes in the channel. More... | |
int | read () override |
Read one byte form the channel. More... | |
int | peek () override |
Peek the firtst byte from the channel. More... | |
void | flush () override |
Flush the channel. More... | |
size_t | write (uint8_t b) override |
Write one byte to the channel. More... | |
size_t | print (char c) override |
Print one character to the channel. More... | |
size_t | print (uint8_t b) |
Print one byte to the channel. More... | |
size_t | print (char *str) override |
Print c-string to the channel. More... | |
size_t | print (const char *str) override |
Print c-string to the channel. More... | |
HardwareSerial * | getSerialObject () |
Get the address of the chosen Serial Port. More... | |
virtual int | available () |
Available bytes in the channel. More... | |
virtual int | read () |
Read one byte form the channel. More... | |
virtual int | peek () |
Peek the firtst byte from the channel. More... | |
virtual void | flush () |
Flush the channel. More... | |
virtual size_t | write (uint8_t b) |
Write one byte to the channel. More... | |
virtual size_t | print (char c) |
Print one character to the channel. More... | |
virtual size_t | print (uint8_t b) |
Print one byte to the channel. More... | |
virtual size_t | print (char *str) |
Print c-string to the channel. More... | |
virtual size_t | print (const char *str) |
Print c-string to the channel. More... | |
Shellminator channel class for Arduino Serial objects.
Definition at line 120 of file Shellminator-IO.hpp.
|
overridevirtual |
Available bytes in the channel.
Reimplemented from shellminatorChannel.
Definition at line 46 of file Shellminator-IO.cpp.
|
overridevirtual |
Flush the channel.
Reimplemented from shellminatorChannel.
Definition at line 67 of file Shellminator-IO.cpp.
HardwareSerial * shellminatorArduinoSerialChannel::getSerialObject | ( | ) |
Get the address of the chosen Serial Port.
Definition at line 110 of file Shellminator-IO.cpp.
|
overridevirtual |
Peek the firtst byte from the channel.
Reimplemented from shellminatorChannel.
Definition at line 60 of file Shellminator-IO.cpp.
|
overridevirtual |
Print c-string to the channel.
str | The string that has to be printed to the channel. |
Reimplemented from shellminatorChannel.
Definition at line 96 of file Shellminator-IO.cpp.
|
overridevirtual |
Print one character to the channel.
c | The character that has to be printed to the channel. |
Reimplemented from shellminatorChannel.
Definition at line 89 of file Shellminator-IO.cpp.
|
overridevirtual |
Print c-string to the channel.
str | The string that has to be printed to the channel. |
Reimplemented from shellminatorChannel.
Definition at line 103 of file Shellminator-IO.cpp.
|
virtual |
Print one byte to the channel.
b | The value that has to be printed to the channel. |
Reimplemented from shellminatorChannel.
Definition at line 81 of file Shellminator-IO.cpp.
|
overridevirtual |
Read one byte form the channel.
Reimplemented from shellminatorChannel.
Definition at line 53 of file Shellminator-IO.cpp.
void shellminatorArduinoSerialChannel::select | ( | HardwareSerial * | serialPort_p | ) |
Select Serial Port.
Select a serial port to communicate with.
Definition at line 40 of file Shellminator-IO.cpp.
|
overridevirtual |
Write one byte to the channel.
b | The value that has to be written to the channel. |
Reimplemented from shellminatorChannel.
Definition at line 73 of file Shellminator-IO.cpp.