Available on crate feature
unstable only.Expand description
§RTC Control Sleep Module
§Overview
The sleep module allows configuring various wakeup sources and setting up
the sleep behavior based on those sources. The supported wakeup sources
include:
GPIOpins - light sleep only- timers
SDIO (Secure Digital Input/Output) - light sleep onlyMAC (Media Access Control)wake - light sleep onlyUART0- light sleep onlyUART1- light sleep onlytouchULP (Ultra-Low Power)wakeBT (Bluetooth) wake- light sleep only
Structs§
- LowPower
- Low-power management.
- RtcSleep
Config - Configuration for the RTC sleep behavior.
- Wrapped
Sleep Config - The sleep configuration, as the entry hook of a wakeup source can see it.
Enums§
- Light
Sleep - The result of a light sleep.
Constants§
- DG_
WRAP_ POWERUP_ CYCLES - Power-up cycles for the digital wrap components.
- DG_
WRAP_ WAIT_ CYCLES - Waits cycles for the digital wrap components.
- ROM_
RAM_ POWERUP_ CYCLES - Power-up cycles for ROM and RAM.
- ROM_
RAM_ WAIT_ CYCLES - Waits cycles for ROM and RAM.
- RTC_
CK8M_ ENABLE_ WAIT_ DEFAULT - Default wait cycles to enable the 8 MHz clock.
- RTC_
CNTL_ CK8M_ WAIT_ DEFAULT - Default wait cycles for the 8 MHz clock.
- RTC_
CNTL_ CK8M_ WAIT_ SLP_ CYCLES - Cycles to wait for the 8 MHz clock to stabilize.
- RTC_
CNTL_ DBG_ ATTEN_ DEFAULT - Default debug attenuation value.
- RTC_
CNTL_ DBIAS_ 0V90 - RTC digital bias setting corresponding to 0.90V.
- RTC_
CNTL_ DBIAS_ 0V95 - RTC digital bias setting corresponding to 0.95V.
- RTC_
CNTL_ DBIAS_ 1V00 - RTC digital bias setting corresponding to 1.00V.
- RTC_
CNTL_ DBIAS_ 1V05 - RTC digital bias setting corresponding to 1.05V.
- RTC_
CNTL_ DBIAS_ 1V10 - RTC digital bias setting corresponding to 1.10V.
- RTC_
CNTL_ DBIAS_ 1V15 - RTC digital bias setting corresponding to 1.15V.
- RTC_
CNTL_ DBIAS_ 1V20 - RTC digital bias setting corresponding to 1.20V.
- RTC_
CNTL_ DBIAS_ 1V25 - RTC digital bias setting corresponding to 1.25V.
- RTC_
CNTL_ MIN_ SLP_ VAL_ MIN - Minimum sleep value (in cycles).
- RTC_
CNTL_ OTHER_ BLOCKS_ POWERUP_ CYCLES - Power-up cycles for other blocks.
- RTC_
CNTL_ OTHER_ BLOCKS_ WAIT_ CYCLES - Waits cycles for other blocks.
- RTC_
CNTL_ PLL_ BUF_ WAIT_ SLP_ CYCLES - Cycles to wait for PLL buffer stabilization.
- RTC_
CNTL_ WAKEUP_ DELAY_ CYCLES - Delay in cycles for wakeup signal to be applied.
- RTC_
CNTL_ XTL_ BUF_ WAIT_ SLP_ US - Time (in microseconds) for waiting the XTL buffer to stabilize during sleep.
- RTC_
MEM_ POWERUP_ CYCLES - Power-up cycles for RTC memory.
- RTC_
MEM_ WAIT_ CYCLES - Waits cycles for RTC memory.
- RTC_
POWERUP_ CYCLES - Power-up cycles for RTC components.
- RTC_
WAIT_ CYCLES - Waits cycles for RTC components.
- WIFI_
POWERUP_ CYCLES - Power-up cycles for Wi-Fi.
- WIFI_
WAIT_ CYCLES - Waits cycles for Wi-Fi.
Type Aliases§
- Sleep
Entry Hook - Runs at sleep entry, before the sleep configuration reaches hardware.
- Sleep
Exit Hook - Runs after a light sleep.