EasyManuals Logo

Espressif ESP32-S2 User Manual

Espressif ESP32-S2
1695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1046 background imageLoading...
Page #1046 background image
Chapter 2. API Reference
This function must not be called from an ISR. If esp_pm_lock_acquire/release are called while this function
is running, inconsistent results may be reported.
Return
ESP_OK on success
ESP_ERR_NOT_SUPPORTED if CONFIG_PM_ENABLE is not enabled in sdkconfig
Parameters
stream: stream to print information to; use stdout or stderr to print to the console; use fmemo-
pen/open_memstream to print to a string buffer.
Type Definitions
typedef struct esp_pm_lock *esp_pm_lock_handle_t
Opaque handle to the power management lock.
Enumerations
enum esp_pm_lock_type_t
Power management constraints.
Values:
ESP_PM_CPU_FREQ_MAX
Require CPU frequency to be at the maximum value set via esp_pm_configure. Argument is unused and
should be set to 0.
ESP_PM_APB_FREQ_MAX
Require APB frequency to be at the maximum value supported by the chip. Argument is unused and
should be set to 0.
ESP_PM_NO_LIGHT_SLEEP
Prevent the system from going into light sleep. Argument is unused and should be set to 0.
Header File
components/esp_pm/include/esp32s2/pm.h
Structures
struct esp_pm_config_esp32s2_t
Power management config for ESP32.
Pass a pointer to this structure as an argument to esp_pm_configure function.
Public Members
int max_freq_mhz
Maximum CPU frequency, in MHz
int min_freq_mhz
Minimum CPU frequency to use when no locks are taken, in MHz
bool light_sleep_enable
Enter light sleep when no locks are taken
2.6.22 Random Number Generation
ESP32-S2 contains a hardware random number generator, values from it can be obtained using the APIs
esp_random() and esp_fill_random().
The hardware RNG produces true random numbers under any of the following conditions:
Espressif Systems 1035
Submit Document Feedback
Release v4.4

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Espressif ESP32-S2 and is the answer not in the manual?

Espressif ESP32-S2 Specifications

General IconGeneral
BrandEspressif
ModelESP32-S2
CategorySingle board computers
LanguageEnglish