Select one of the symbols to view example projects that use it.
 
Outline
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include "esp_err.h"
esp_psram_init();
esp_psram_is_initialized();
esp_psram_get_size();
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/esp_psram/include/esp_psram.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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #pragma once #include <stddef.h> #include <stdint.h> #include <stdbool.h> #include "esp_err.h" #ifdef __cplusplus extern "C" { #endif /** * @brief Initialize PSRAM interface/hardware. * * @return * - ESP_OK: On success * - ESP_FAIL: PSRAM isn't initialized successfully, potential reason would be: wrong VDDSDIO, invalid chip ID, etc. * - ESP_ERR_INVALID_STATE: PSRAM is initialized already *//* ... */ esp_err_t esp_psram_init(void); /** * @brief If PSRAM has been initialized * * @return * - true: PSRAM has been initialized successfully * - false: PSRAM hasn't been initialized or initialized failed *//* ... */ bool esp_psram_is_initialized(void); /** * @brief Get the available size of the attached PSRAM chip * * @return Size in bytes, or 0 if PSRAM isn't successfully initialized *//* ... */ size_t esp_psram_get_size(void); #ifdef __cplusplus }{...} #endif
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.