|
oveRTOS C++ API
C++20 RAII wrappers for the oveRTOS C API
|
Thin C++ wrappers around the oveRTOS console (serial I/O) API. More...
Functions | |
| int | init () |
| Initialises the console subsystem. | |
| int | getchar () |
| Reads one character from the console, blocking until one is available. | |
| void | putchar (int c) |
| Writes a single character to the console output. | |
| void | write (const char *data, unsigned int len) |
| Writes a buffer of bytes to the console output. | |
Thin C++ wrappers around the oveRTOS console (serial I/O) API.
Available when CONFIG_OVE_CONSOLE is enabled. All functions delegate directly to the corresponding ove_console_* C functions.
|
inline |
Initialises the console subsystem.
OVE_OK on success, or a negative error code.
|
inline |
Reads one character from the console, blocking until one is available.
unsigned char value cast to int, or -1 on error.
|
inline |
Writes a single character to the console output.
| [in] | c | The character to write. |
|
inline |
Writes a buffer of bytes to the console output.
| [in] | data | Pointer to the data to write. |
| [in] | len | Number of bytes to write. |