pub struct GpioWakeupSource {}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
Available on crate feature unstable only. 
impl Default for GpioWakeupSource
Available on crate feature 
unstable only.Source§impl WakeSource for GpioWakeupSource
Available on crate feature unstable only. 
impl WakeSource for GpioWakeupSource
Available on crate feature 
unstable only.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.