|
oveRTOS C++ API
C++20 RAII wrappers for the oveRTOS C API
|
Thin C++ wrappers around the oveRTOS interactive shell API. More...
Functions | |
| int | init () |
| Initialises the shell subsystem. | |
| int | register_cmd (const struct ove_shell_cmd *cmd) |
| Registers a shell command. | |
| void | process_char (int c) |
| Feeds a single character into the shell input processor. | |
| void | process_line (const char *line) |
| Process a complete input line through the shell. | |
| void | set_output_hook (ove_shell_output_hook_t hook) |
| Set a hook to capture shell output. | |
Thin C++ wrappers around the oveRTOS interactive shell API.
Available when CONFIG_OVE_SHELL is enabled.
|
inline |
Initialises the shell subsystem.
OVE_OK on success, or a negative error code.
|
inline |
Registers a shell command.
| [in] | cmd | Pointer to the command descriptor structure. |
OVE_OK on success, or a negative error code.
|
inline |
Feeds a single character into the shell input processor.
Typically called from the console receive path.
| [in] | c | The character received from the console. |
|
inline |
Process a complete input line through the shell.
| [in] | line | NUL-terminated command line. |
|
inline |
Set a hook to capture shell output.
| [in] | hook | Output hook function (nullptr to remove). |