pub struct GpioWakeupSource {}Available on crate feature
unstable and (esp32 or esp32s2 or esp32s3 or esp32c3 or esp32c6 or esp32c2) only.Expand description
GPIO wakeup source
Wake up from GPIO high or low level. Any pin can be used with this wake up source. Configure the pin for wake up via crate::gpio::Input::wakeup_enable.
This wakeup source can be used to wake up from light sleep only.
Implementations§
Source§impl GpioWakeupSource
impl GpioWakeupSource
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new instance of GpioWakeupSource
Trait Implementations§
Source§impl Default for GpioWakeupSource
impl Default for GpioWakeupSource
Source§impl WakeSource for GpioWakeupSource
impl WakeSource for GpioWakeupSource
Source§fn apply(
&self,
_rtc: &Rtc<'_>,
triggers: &mut WakeTriggers,
_sleep_config: &mut RtcSleepConfig,
)
fn apply( &self, _rtc: &Rtc<'_>, triggers: &mut WakeTriggers, _sleep_config: &mut RtcSleepConfig, )
Available on
esp32 or esp32s2 or esp32s3 or esp32c3 or esp32c6 or esp32c2 only.Configures the RTC and applies the wakeup triggers.