WakeSource

Trait WakeSource 

Source
pub trait WakeSource {
    // Required method
    fn apply(
        &self,
        rtc: &Rtc<'_>,
        triggers: &mut WakeTriggers,
        sleep_config: &mut RtcSleepConfig,
    );
}
Available on crate feature unstable and (esp32 or esp32s2 or esp32s3 or esp32c3 or esp32c6 or esp32c2) only.
Expand description

Trait representing a wakeup source.

Required Methods§

Source

fn apply( &self, rtc: &Rtc<'_>, triggers: &mut WakeTriggers, sleep_config: &mut RtcSleepConfig, )

Configures the RTC and applies the wakeup triggers.

Implementors§