Select one of the symbols to view example projects that use it.
 
Outline
#include "esp_err.h"
#include "sdkconfig.h"
#define PSRAM_SIZE_2MB
#define PSRAM_SIZE_4MB
#define PSRAM_SIZE_8MB
#define PSRAM_SIZE_16MB
#define PSRAM_SIZE_32MB
#define PSRAM_SIZE_64MB
esp_psram_impl_get_physical_size(uint32_t *);
esp_psram_impl_get_available_size(uint32_t *);
esp_psram_impl_enable();
esp_psram_impl_get_cs_io();
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/esp_psram/esp_psram_impl.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #pragma once #include "esp_err.h" #include "sdkconfig.h" #ifdef __cplusplus extern "C" { #endif #define PSRAM_SIZE_2MB (2 * 1024 * 1024) #define PSRAM_SIZE_4MB (4 * 1024 * 1024) #define PSRAM_SIZE_8MB (8 * 1024 * 1024) #define PSRAM_SIZE_16MB (16 * 1024 * 1024) #define PSRAM_SIZE_32MB (32 * 1024 * 1024) #define PSRAM_SIZE_64MB (64 * 1024 * 1024)6 defines /** * @brief To get the physical psram size in bytes. * * @param[out] out_size_bytes physical psram size in bytes. *//* ... */ esp_err_t esp_psram_impl_get_physical_size(uint32_t *out_size_bytes); /** * @brief To get the available physical psram size in bytes. * * @param[out] out_size_bytes availabe physical psram size in bytes. *//* ... */ esp_err_t esp_psram_impl_get_available_size(uint32_t *out_size_bytes); /** * @brief Enable psram and configure it to a ready state * * @return * - ESP_OK: On success * - ESP_ERR_NOT_SUPPORTED: PSRAM ID / vendor ID check fail * - ESP_ERR_INVALID_STATE: On esp32, when VSPI peripheral is needed but cannot be claimed *//* ... */ esp_err_t esp_psram_impl_enable(void); /** * @brief get psram CS IO * * @return psram CS IO *//* ... */ uint8_t esp_psram_impl_get_cs_io(void); #ifdef __cplusplus }{...} #endif
Details