idfxx 1.0.0
Modern C++23 components for ESP-IDF
Loading...
Searching...
No Matches
idfxx::sleep::wake_spec Concept Reference

A wake-up source specification accepted by the sleep functions. More...

Concept definition

template<typename T>
concept idfxx::sleep::wake_spec = requires(const std::remove_cvref_t<T>& source) {
{ detail::arm(source) } -> std::same_as<result<void>>;
detail::disarm(source);
}
A wake-up source specification accepted by the sleep functions.
Definition sleep.hpp:322
std::expected< T, std::error_code > result
result type wrapping a value or error code.
Definition error.hpp:120

Detailed Description

A wake-up source specification accepted by the sleep functions.

Satisfied by timer_wake, gpio_wake, and — on chips that support them — ext0_wake, ext1_wake, and deep_sleep_gpio_wake.

Definition at line 322 of file sleep.hpp.