|
ESP32 PSRAM Library
|
Class for managing files stored in ESP32's High Memory (HIMEM) More...
#include <HIMEM.h>
Public Member Functions | |
| bool | begin () override |
| Initialize the HIMEM filesystem. More... | |
| bool | exists (const char *filename) |
| Check if a file exists. More... | |
| size_t | fileCount () const |
| Get the total number of files. More... | |
| uint64_t | freeBytes () override |
| Get free space (returns free HIMEM) More... | |
| String | getFirstFileName () |
| Get the first file in the filesystem. More... | |
| String | getNextFileName (const char *currentFileName) |
| Get the name of the next file after the specified file. More... | |
| bool | mkdir (const char *dirname) |
| Create a directory (no-op for compatibility) More... | |
| FileHIMEM | open (const char *filename, uint8_t mode) |
| Open a file. More... | |
| bool | remove (const char *filename) |
| Remove a file. More... | |
| bool | rmdir (const char *dirname) |
| Remove a directory (no-op for compatibility) More... | |
| uint64_t | totalBytes () override |
| Get total space (returns available HIMEM) More... | |
Protected Attributes | |
| std::map< std::string, VectorHIMEM< uint8_t > > | fileData |
| bool | initialized |
Class for managing files stored in ESP32's High Memory (HIMEM)
This class provides an interface similar to SD.h for managing files that are stored in HIMEM memory (beyond the 4MB boundary) rather than on an SD card. HIMEM offers larger storage capacity but slightly slower access than regular PSRAM.
|
inlineoverridevirtual |
Initialize the HIMEM filesystem.
Implements esp32_psram::InMemoryFS< VectorHIMEM< uint8_t >, FileHIMEM >.
|
inlineinherited |
Check if a file exists.
| filename | Name of the file to check |
|
inlineinherited |
Get the total number of files.
|
inlineoverridevirtual |
Get free space (returns free HIMEM)
Implements esp32_psram::InMemoryFS< VectorHIMEM< uint8_t >, FileHIMEM >.
|
inlineinherited |
Get the first file in the filesystem.
|
inlineinherited |
Get the name of the next file after the specified file.
| currentFileName | Name of the current file |
|
inlineinherited |
Create a directory (no-op for compatibility)
| dirname | Name of the directory |
|
inlineinherited |
Open a file.
| filename | Name of the file to open |
| mode | Mode to open the file in (FILE_READ, FILE_WRITE, etc.) |
|
inlineinherited |
Remove a file.
| filename | Name of the file to remove |
|
inlineinherited |
Remove a directory (no-op for compatibility)
| dirname | Name of the directory |
|
inlineoverridevirtual |
Get total space (returns available HIMEM)
Implements esp32_psram::InMemoryFS< VectorHIMEM< uint8_t >, FileHIMEM >.