TTY communication backend. More...
#include <comm.h>
Inherits Sink< Buffer< uint8_t > >, and Source< Buffer< uint8_t > >.
Inherited by IFACE.
Public Member Functions | |
| TTY (const char *path) | |
| open given path | |
| bool | full () override |
| check if sink is full | |
| void | push (Buffer< uint8_t > &&b) override |
| move semantics does not check for space. guard by using 'if (!full) { ... }' | |
| bool | empty () override |
| check if source is empty | |
| Buffer< uint8_t > | pop () override |
| pull object from source does not check for data. guard by using 'if (!empty) { ... }' | |
| virtual void | push (const T &t) |
| copy semantics does not check for space. guard by using 'if (!full) { ... }' | |
| virtual void | push (T &&)=0 |
| move semantics does not check for space. guard by using 'if (!full) { ... }' | |
| virtual void | push (const Buffer< uint8_t > &t) |
| copy semantics does not check for space. guard by using 'if (!full) { ... }' | |
| void | trypush (Buffer< uint8_t > &&t) |
| use this if you don't care if it's going to be successful. data gets discarded if sink is full. | |
TTY communication backend.