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:
GPIO
pins - light sleep only- timers
SDIO (Secure Digital Input/Output) - light sleep only
MAC (Media Access Control)
wake - light sleep onlyUART0
- light sleep onlyUART1
- light sleep onlytouch
ULP (Ultra-Low Power)
wakeBT (Bluetooth) wake
- light sleep only
Structs§
- Ext0
Wakeup Source - External wake-up source (Ext0).
- Ext1
Wakeup Source - External wake-up source (Ext1).
- Gpio
Wakeup Source - GPIO wakeup source
- RtcSleep
Config - Configuration for the RTC sleep behavior.
- Rtcio
Wakeup Source - RTC_IO wakeup source
- Timer
Wakeup Source - Represents a timer wake-up source, triggering an event after a specified duration.
- Uart0
Wakeup Source - UART0 wakeup source
- Uart1
Wakeup Source - UART1 wakeup source
- Wake
Triggers - Represents the wakeup triggers.
Enums§
- Error
- Errors that can occur when configuring RTC wake-up sources.
- Wakeup
Level - Level at which a wake-up event is triggered
Constants§
- BT_
POWERUP_ CYCLES - Bluetooth power-up cycles.
- BT_
WAIT_ CYCLES - Bluetooth wait cycles.
- CPU_
TOP_ POWERUP_ CYCLES - CPU top power-up cycles.
- CPU_
TOP_ WAIT_ CYCLES - CPU top wait cycles.
- DG_
PERI_ POWERUP_ CYCLES - DG peripheral power-up cycles.
- DG_
PERI_ WAIT_ CYCLES - DG peripheral wait cycles.
- DG_
WRAP_ POWERUP_ CYCLES - DG wrap power-up cycles.
- DG_
WRAP_ WAIT_ CYCLES - DG wrap wait cycles.
- OTHER_
BLOCKS_ POWERUP - Power-up setting for other blocks.
- OTHER_
BLOCKS_ WAIT - Wait cycles for other blocks.
- RTC_
CNTL_ CK8M_ WAIT_ DEFAULT - Default wait time for CK8M during startup.
- RTC_
CNTL_ DBG_ ATTEN_ DEEPSLEEP_ ULTRA_ LOW - Deep sleep debug attenuation setting for ultra-low power mode.
- RTC_
CNTL_ DBG_ ATTEN_ MONITOR_ DEFAULT - Default monitor debug attenuation value.
- RTC_
CNTL_ DBIAS_ 0V90 - Digital bias setting for 0.90V.
- RTC_
CNTL_ DBIAS_ 0V95 - Digital bias setting for 0.95V.
- RTC_
CNTL_ DBIAS_ 1V00 - Digital bias setting for 1.00V.
- RTC_
CNTL_ DBIAS_ 1V05 - Digital bias setting for 1.05V.
- RTC_
CNTL_ DBIAS_ 1V10 - Digital bias setting for 1.10V.
- RTC_
CNTL_ DBIAS_ 1V15 - Digital bias setting for 1.15V.
- RTC_
CNTL_ DBIAS_ 1V20 - Digital bias setting for 1.20V.
- RTC_
CNTL_ DBIAS_ 1V25 - Digital bias setting for 1.25V.
- RTC_
CNTL_ DBIAS_ 1V30 - Digital bias setting for 1.30V. Voltage is approximately 1.34V in practice.
- RTC_
CNTL_ MIN_ SLP_ VAL_ MIN - Minimum sleep value.
- RTC_
CNTL_ PLL_ BUF_ WAIT_ DEFAULT - Default wait time for PLL buffer during startup.
- RTC_
CNTL_ ULPCP_ TOUCH_ START_ WAIT_ DEFAULT - ULP co-processor touch start wait time default value.
- RTC_
CNTL_ ULPCP_ TOUCH_ START_ WAIT_ IN_ SLEEP - ULP co-processor touch start wait time during sleep, set to maximum.
- RTC_
MEM_ POWERUP_ CYCLES - RTC memory power-up cycles.
- RTC_
MEM_ WAIT_ CYCLES - RTC memory wait cycles.
- RTC_
POWERUP_ CYCLES - RTC power-up cycles.
- RTC_
WAIT_ CYCLES - RTC wait cycles.
- WIFI_
POWERUP_ CYCLES - WiFi power-up cycles.
- WIFI_
WAIT_ CYCLES - WiFi wait cycles.
Traits§
- Wake
Source - Trait representing a wakeup source.