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.
- 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§
- DG_
WRAP_ POWERUP_ CYCLES - Power-up cycles for the digital wrap components.
- DG_
WRAP_ WAIT_ CYCLES - Wait cycles for the digital wrap components.
- ROM_
RAM_ POWERUP_ CYCLES - Power-up cycles for ROM and RAM.
- ROM_
RAM_ WAIT_ CYCLES - Wait cycles for ROM and RAM.
- RTC_
CK8M_ ENABLE_ WAIT_ DEFAULT - Default wait cycles to enable the 8MHz clock.
- RTC_
CNTL_ CK8M_ WAIT_ DEFAULT - Default wait cycles for the 8MHz clock.
- RTC_
CNTL_ CK8M_ WAIT_ SLP_ CYCLES - Cycles to wait for the 8MHz 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 - Wait 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 - Wait cycles for RTC memory.
- RTC_
POWERUP_ CYCLES - Power-up cycles for RTC components.
- RTC_
WAIT_ CYCLES - Wait cycles for RTC components.
- WIFI_
POWERUP_ CYCLES - Power-up cycles for Wi-Fi.
- WIFI_
WAIT_ CYCLES - Wait cycles for Wi-Fi.
Traits§
- Wake
Source - Trait representing a wakeup source.