Arduino FatFS
|
The data is stored in RAM. In a ESP32 when PSRAM has been activated we store it is PSRAM. More...
#include <RamIO.h>
Public Member Functions | |
RamIO (int sectorCount, int sectorSize=FF_MAX_SS) | |
FRESULT | mount (FatFs &fs) override |
mount the file system | |
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 | |
Public Attributes | |
FATFS | fatfs |
Protected Attributes | |
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.