|
ESP32 PSRAM Library
|
Class for managing files stored in ESP32's PSRAM. More...
#include <PSRAM.h>
Public Member Functions | |
| bool | begin () override |
| Initialize the PSRAM 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 PSRAM) 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... | |
| FilePSRAM | 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 PSRAM) More... | |
Protected Attributes | |
| std::map< std::string, VectorPSRAM< uint8_t > > | fileData |
| bool | initialized |
Class for managing files stored in ESP32's PSRAM.
This class provides an interface similar to SD.h for managing files that are stored in PSRAM memory rather than on an SD card.
|
inlineoverridevirtual |
Initialize the PSRAM filesystem.
Implements esp32_psram::InMemoryFS< VectorPSRAM< uint8_t >, FilePSRAM >.
|
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 PSRAM)
Implements esp32_psram::InMemoryFS< VectorPSRAM< uint8_t >, FilePSRAM >.
|
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 PSRAM)
Implements esp32_psram::InMemoryFS< VectorPSRAM< uint8_t >, FilePSRAM >.