pub struct DeepSleep { /* private fields */ }Available on
sleep_light_sleep and sleep_deep_sleep only.Expand description
A handle you can use to enter deep sleep.
Implementations§
Source§impl DeepSleep
impl DeepSleep
Sourcepub fn deep_sleep(&mut self) -> !
pub fn deep_sleep(&mut self) -> !
Puts the system into deep sleep.
The sleep ends when one of the wakeup sources that the drivers enabled becomes active. The wake from deep sleep resets the chip, so this function does not return.
§Panics
Panics if no wakeup source is enabled, because nothing could end the sleep.