ESPHome 2026.5.0b1
Loading...
Searching...
No Matches
wake_host.h File Reference

Go to the source code of this file.

Namespaces

namespace  esphome
 
namespace  esphome::internal
 RP2040 wakeable delay uses file-scope state (alarm callback + flag) — defined in wake_rp2040.cpp.
 

Functions

void esphome::wake_loop_threadsafe ()
 Non-ISR: always inline.
 
bool esphome::wake_register_fd (int fd)
 Register a socket file descriptor with the host select() loop.
 
void esphome::wake_unregister_fd (int fd)
 Unregister a socket file descriptor. Not thread-safe — main loop only.
 
void esphome::wake_setup ()
 One-time setup of the loopback wake socket. Called from Application::setup().
 
void IRAM_ATTR esphome::wake_loop_any_context ()
 IRAM_ATTR entry point for ISR callers — defined in wake_esp8266.cpp.
 
void ESPHOME_ALWAYS_INLINE esphome::internal::wakeable_delay (uint32_t ms)
 Host wakeable_delay uses select() over the registered fds — defined in wake_host.cpp.
 
bool ESPHOME_ALWAYS_INLINE esphome::wake_fd_ready (int fd)
 
void ESPHOME_ALWAYS_INLINE esphome::wake_drain_notifications ()
 

Variables

constexpr size_t esphome::WAKE_NOTIFY_DRAIN_BUFFER_SIZE = 16