16#include <ove/console.h>
20#ifdef CONFIG_OVE_CONSOLE
40 return from_rc(ove_console_init());
59 return ove_console_getchar();
68 ove_console_putchar(c);
76inline void write(
const char *data,
unsigned int len)
78 ove_console_write(data, len);
Strong ove::Error type, Result<T> alias, and std::error_code interop for the oveRTOS C++ binding.
Thin C++ wrappers around the oveRTOS console (serial I/O) API.
Definition console.hpp:23
void write(const char *data, unsigned int len)
Writes a buffer of bytes to the console output.
Definition console.hpp:76
int getchar()
Reads one character from the console, blocking until one is available.
Definition console.hpp:57
void putchar(int c)
Writes a single character to the console output.
Definition console.hpp:66
Result< void > init() noexcept
Initialises the console subsystem.
Definition console.hpp:38
Result< void > from_rc(int rc) noexcept
Lifts a substrate rc-code into a Result<void>.
Definition error.hpp:254
std::expected< T, Error > Result
std::expected-based result alias.
Definition error.hpp:139
Common type definitions and concepts for the C++ wrapper layer.