The data is stored in RAM. In a ESP32 when PSRAM has been activated we store it is PSRAM.
More...
#include <RamIO.h>
|
|
| RamIO (int sectorCount, int sectorSize=FF_MAX_SS) |
| |
| FRESULT | mount (FatFs &fs) override |
| | mount the file system - implementation at end of header to avoid recursive include
|
| |
| DSTATUS | disk_initialize (BYTE pdrv) override |
| |
| DSTATUS | disk_status (BYTE pdrv) override |
| |
| DRESULT | disk_read (BYTE pdrv, BYTE *buffer, LBA_t sectorNo, UINT sectorCount) override |
| |
| DRESULT | disk_write (BYTE pdrv, const BYTE *buffer, LBA_t sectorNo, UINT sectorCount) override |
| |
| DRESULT | disk_ioctl (BYTE pdrv, ioctl_cmd_t cmd, void *buffer) override |
| |
| virtual FRESULT | un_mount (FatFs &fs) |
| | unmount the file system - implementation at end of header to avoid recursive include
|
| |
|
|
std::vector< uint8_t * > | sectors |
| |
|
DSTATUS | status = STA_NOINIT |
| |
|
int | sector_size = 512 |
| |
|
size_t | sector_count = 0 |
| |
|
uint8_t * | work_buffer = nullptr |
| |
The data is stored in RAM. In a ESP32 when PSRAM has been activated we store it is PSRAM.
◆ disk_initialize()
| DSTATUS fatfs::RamIO::disk_initialize |
( |
BYTE |
pdrv | ) |
|
|
inlineoverridevirtual |
◆ disk_ioctl()
| DRESULT fatfs::RamIO::disk_ioctl |
( |
BYTE |
pdrv, |
|
|
ioctl_cmd_t |
cmd, |
|
|
void * |
buffer |
|
) |
| |
|
inlineoverridevirtual |
◆ disk_read()
| DRESULT fatfs::RamIO::disk_read |
( |
BYTE |
pdrv, |
|
|
BYTE * |
buffer, |
|
|
LBA_t |
sectorNo, |
|
|
UINT |
sectorCount |
|
) |
| |
|
inlineoverridevirtual |
◆ disk_status()
| DSTATUS fatfs::RamIO::disk_status |
( |
BYTE |
pdrv | ) |
|
|
inlineoverridevirtual |
◆ disk_write()
| DRESULT fatfs::RamIO::disk_write |
( |
BYTE |
pdrv, |
|
|
const BYTE * |
buffer, |
|
|
LBA_t |
sectorNo, |
|
|
UINT |
sectorCount |
|
) |
| |
|
inlineoverridevirtual |
◆ mount()
| FRESULT fatfs::RamIO::mount |
( |
FatFs & |
fs | ) |
|
|
inlineoverridevirtual |
mount the file system - implementation at end of header to avoid recursive include
Reimplemented from fatfs::IO.
◆ un_mount()
| FRESULT fatfs::IO::un_mount |
( |
FatFs & |
fs | ) |
|
|
inlinevirtualinherited |
unmount the file system - implementation at end of header to avoid recursive include
Reimplemented in fatfs::MultiIO.
The documentation for this class was generated from the following file: