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 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§