Shellminator
V1.2.0
Simple Terminal
|
Shellminator channel class. More...
#include <Shellminator-IO.hpp>
Public Member Functions | |
int | available () |
Available bytes in the channel. More... | |
int | read () |
Read one byte form the channel. More... | |
int | peek () |
Peek the firsts byte from the channel. More... | |
void | flush () |
Flush the channel. More... | |
size_t | write (uint8_t b) |
Write one byte to the channel. More... | |
size_t | print (char c) |
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) |
Print c-string to the channel. More... | |
size_t | print (const char *str) |
Print c-string to the channel. More... | |
Shellminator channel class.
Shellminator uses channels to communicate with external peripherals like Serial port or WiFi Client. To make it easy to change the communication source, virtual functions are used. This is the base class for these virtual functions, and they don't do anything usefully. To make them work, every function in this class has to be override to every peripheral, where it has to be used.
Definition at line 73 of file Shellminator-IO.hpp.
|
inline |
Available bytes in the channel.
Definition at line 80 of file Shellminator-IO.hpp.
|
inline |
Flush the channel.
Definition at line 93 of file Shellminator-IO.hpp.
|
inline |
Peek the firsts byte from the channel.
Definition at line 90 of file Shellminator-IO.hpp.
|
inline |
Print c-string to the channel.
str | The string that has to be printed to the channel. |
Definition at line 117 of file Shellminator-IO.hpp.
|
inline |
Print one character to the channel.
c | The character that has to be printed to the channel. |
Definition at line 105 of file Shellminator-IO.hpp.
|
inline |
Print c-string to the channel.
str | The string that has to be printed to the channel. |
Definition at line 123 of file Shellminator-IO.hpp.
|
inline |
Print one byte to the channel.
b | The value that has to be printed to the channel. |
Definition at line 111 of file Shellminator-IO.hpp.
|
inline |
Read one byte form the channel.
Definition at line 85 of file Shellminator-IO.hpp.
|
inline |
Write one byte to the channel.
b | The value that has to be written to the channel. |
Definition at line 99 of file Shellminator-IO.hpp.