|
Ersa Wearable Platform
Embedded smartwatch firmware and application framework
|
#include <console.h>
Public Member Functions | |
| virtual | ~IConsole ()=default |
| virtual void | begin (uint32_t baudRate)=0 |
| virtual bool | isAttached () const =0 |
| virtual size_t | availableForWrite () const =0 |
| virtual size_t | available () const =0 |
| virtual int | read ()=0 |
| virtual size_t | write (const uint8_t *data, size_t length)=0 |
| virtual void | flush ()=0 |
Non-blocking byte console used for diagnostics and the host control bridge.
|
virtualdefault |
|
pure virtual |
Return the number of input bytes ready to consume.
Implemented in ersa::test::MockConsole.
|
pure virtual |
Return the amount of output accepted without blocking.
Implemented in ersa::test::MockConsole.
|
pure virtual |
Configure the selected platform console before emitting logs.
Implemented in ersa::test::MockConsole.
|
pure virtual |
Flush pending output when the caller explicitly requests it.
Implemented in ersa::test::MockConsole.
|
pure virtual |
Report whether a host is attached to the console transport.
Implemented in ersa::test::MockConsole.
|
pure virtual |
Read one byte or return a negative value if none is available.
Implemented in ersa::test::MockConsole.
|
pure virtual |
Write as many bytes as the platform can accept immediately.
Implemented in ersa::test::MockConsole.