40 const int rc = ove_time_get_us(&out);
50 ove_time_delay_ms(ms);
59 ove_time_delay_us(us);
Strong ove::Error type, Result<T> alias, and std::error_code interop for the oveRTOS C++ binding.
Thin C++ wrappers around the oveRTOS time and delay API.
Definition time.hpp:23
void delay_us(uint32_t us)
Blocks the calling task for at least the specified number of microseconds.
Definition time.hpp:57
void delay_ms(uint32_t ms)
Blocks the calling task for at least the specified number of milliseconds.
Definition time.hpp:48
Result< uint64_t > get_us() noexcept
Returns the current system time in microseconds.
Definition time.hpp:37
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.