WakeSource

Trait WakeSource 

Source
pub trait WakeSource {
    // Required method
    fn apply(
        &self,
        rtc: &Rtc<'_>,
        triggers: &mut WakeTriggers,
        sleep_config: &mut RtcSleepConfig,
    );
}
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§

Source§

impl WakeSource for Ext1WakeupSource<'_, '_>

Available on crate feature unstable only.
Source§

impl WakeSource for GpioWakeupSource

Available on crate feature unstable only.
Source§

impl WakeSource for TimerWakeupSource

Available on crate feature unstable only.
Source§

impl WakeSource for Uart0WakeupSource

Available on crate feature unstable only.
Source§

impl WakeSource for Uart1WakeupSource

Available on crate feature unstable only.
Source§

impl WakeSource for WakeFromLpCoreWakeupSource

Available on crate feature unstable only.