Struct esp32c3_hal::rtc_cntl::sleep::RtcioWakeupSource
source · pub struct RtcioWakeupSource<'a, 'b> { /* private fields */ }
Expand description
RTC_IO wakeup source
RTC_IO wakeup allows configuring any combination of RTC_IO pins with arbitrary wakeup levels to wake up the chip from sleep. This wakeup source can be used to wake up from both light and deep sleep.
Implementations§
source§impl<'a, 'b> RtcioWakeupSource<'a, 'b>
impl<'a, 'b> RtcioWakeupSource<'a, 'b>
pub fn new( pins: &'a mut [(&'b mut dyn RTCPinWithResistors, WakeupLevel)] ) -> RtcioWakeupSource<'a, 'b>
Trait Implementations§
source§impl WakeSource for RtcioWakeupSource<'_, '_>
impl WakeSource for RtcioWakeupSource<'_, '_>
fn apply( &self, _rtc: &Rtc<'_>, triggers: &mut WakeTriggers, sleep_config: &mut RtcSleepConfig )
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for RtcioWakeupSource<'a, 'b>
impl<'a, 'b> !Send for RtcioWakeupSource<'a, 'b>
impl<'a, 'b> !Sync for RtcioWakeupSource<'a, 'b>
impl<'a, 'b> Unpin for RtcioWakeupSource<'a, 'b>
impl<'a, 'b> !UnwindSafe for RtcioWakeupSource<'a, 'b>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more