You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ESP_SLEEP_RTC_USE_RC_FAST_MODE, //!< The mode requested by RTC peripherals to keep RC_FAST clock on during sleep (both HP_SLEEP and LP_SLEEP mode). (Will override the RC_FAST domain config by esp_sleep_pd_config)
36
+
ESP_SLEEP_DIG_USE_RC_FAST_MODE, //!< The mode requested by digital peripherals to keep RC_FAST clock on during sleep (both HP_SLEEP and LP_SLEEP mode). (!!! Only valid for lightsleep, will override the RC_FAST domain config by esp_sleep_pd_config)
37
+
ESP_SLEEP_USE_ADC_TSEN_MONITOR_MODE, //!< Will enables the use of ADC and temperature sensor in monitor (ULP) mode.
38
+
ESP_SLEEP_ULTRA_LOW_MODE, //!< In ultra low mode, 2uA is saved, but RTC memory can't use at high temperature, and RTCIO can't be used as INPUT.
39
+
ESP_SLEEP_RTC_FAST_USE_XTAL_MODE, //!< The mode in which the crystal is used as the RTC_FAST clock source, need keep XTAL on in HP_SLEEP mode when ULP is working.
40
+
ESP_SLEEP_DIG_USE_XTAL_MODE, //!< The mode requested by digital peripherals to keep XTAL clock on during sleep (both HP_SLEEP and LP_SLEEP mode). (!!! Only valid for lightsleep, will override the XTAL domain config by esp_sleep_pd_config)
41
+
ESP_SLEEP_MODE_MAX,
42
+
} esp_sleep_sub_mode_t;
43
+
34
44
/**
35
-
* @brief Enables the use of ADC and temperature sensor in monitor (ULP) mode
45
+
* @brief Set sub-sleep power mode in sleep, mode enabled status is maintained by reference count.
46
+
* This submode configuration will kept after deep sleep wakeup.
36
47
*
37
-
* @note This state is kept in RTC memory and will keep its value after a deep sleep wakeup
48
+
* @param mode sub-sleep mode type
49
+
* @param activate Activate or deactivate the sleep sub mode
38
50
*
51
+
* @return
52
+
* - ESP_OK on success
53
+
* - ESP_ERR_INVALID_ARG if either of the arguments is out of range
0 commit comments