Arduino FatFS
Public Member Functions | Public Attributes | Protected Attributes | List of all members
fatfs::RamIO Class Reference
Main » IO

The data is stored in RAM. In a ESP32 when PSRAM has been activated we store it is PSRAM. More...

#include <RamIO.h>

Inheritance diagram for fatfs::RamIO:
Inheritance graph
[legend]
Collaboration diagram for fatfs::RamIO:
Collaboration graph
[legend]

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
 

Detailed Description

The data is stored in RAM. In a ESP32 when PSRAM has been activated we store it is PSRAM.


The documentation for this class was generated from the following files: