|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
Typed event base template. More...
Public Types | |
| using | id_type = IdEnum |
| The enum type for event IDs. | |
Public Member Functions | |
| constexpr | event_base (esp_event_base_t base) noexcept |
| Constructs from an ESP-IDF event base pointer. | |
| constexpr esp_event_base_t | idf_base () const noexcept |
| Returns the underlying ESP-IDF event base. | |
| constexpr event_type< IdEnum > | operator() (IdEnum id) const |
| Creates an event_type combining this base with a specific ID. | |
Typed event base template.
Represents a category of related events, parameterized by an enum type that defines the specific event IDs within that category. This ensures type safety when registering listeners and posting events.
| IdEnum | The enum type for event IDs within this base. |
| using idfxx::event_base< IdEnum >::id_type = IdEnum |
|
inlineconstexprnoexcept |
Constructs from an ESP-IDF event base pointer.
| base | The event base pointer (must have static storage duration). |
Only use this constructor directly when wrapping existing ESP-IDF system event bases (e.g., WIFI_EVENT, IP_EVENT):
|
inlineconstexprnoexcept |
Returns the underlying ESP-IDF event base.
Definition at line 118 of file event.hpp.
Referenced by idfxx::event_loop::try_listener_add(), idfxx::event_loop::try_listener_add(), idfxx::event_loop::try_post(), and idfxx::event_loop::try_post().