pub struct GpioWakeupSource {}
Available on crate feature
unstable
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, )
Configures the RTC and applies the wakeup triggers.