ESP8266
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
SPIFFSImpl Class Reference
Inheritance diagram for SPIFFSImpl:
fs::FSImpl

Public Member Functions

 SPIFFSImpl (uint32_t start, uint32_t size, uint32_t pageSize, uint32_t blockSize, uint32_t maxOpenFds)
 
FileImplPtr open (const char *path, OpenMode openMode, AccessMode accessMode) override
 
bool exists (const char *path) override
 
DirImplPtr openDir (const char *path) override
 
bool rename (const char *pathFrom, const char *pathTo) override
 
bool info (FSInfo &info) override
 
bool remove (const char *path) override
 
bool begin () override
 
bool format () override
 

Protected Member Functions

spiffsgetFs ()
 
bool _tryMount ()
 

Static Protected Member Functions

static void _check_cb (spiffs_check_type type, spiffs_check_report report, uint32_t arg1, uint32_t arg2)
 

Protected Attributes

spiffs _fs
 
uint32_t _start
 
uint32_t _size
 
uint32_t _pageSize
 
uint32_t _blockSize
 
uint32_t _maxOpenFds
 
std::unique_ptr< uint8_t[]> _workBuf
 
std::unique_ptr< uint8_t[]> _fdsBuf
 
std::unique_ptr< uint8_t[]> _cacheBuf
 

Constructor & Destructor Documentation

SPIFFSImpl::SPIFFSImpl ( uint32_t  start,
uint32_t  size,
uint32_t  pageSize,
uint32_t  blockSize,
uint32_t  maxOpenFds 
)

Member Function Documentation

static void SPIFFSImpl::_check_cb ( spiffs_check_type  type,
spiffs_check_report  report,
uint32_t  arg1,
uint32_t  arg2 
)
staticprotected
bool SPIFFSImpl::_tryMount ( )
protected
bool SPIFFSImpl::begin ( void  )
overridevirtual

Implements fs::FSImpl.

bool SPIFFSImpl::exists ( const char *  path)
overridevirtual

Implements fs::FSImpl.

bool SPIFFSImpl::format ( )
overridevirtual

Implements fs::FSImpl.

spiffs* SPIFFSImpl::getFs ( )
protected
bool SPIFFSImpl::info ( FSInfo info)
overridevirtual

Implements fs::FSImpl.

FileImplPtr SPIFFSImpl::open ( const char *  path,
OpenMode  openMode,
AccessMode  accessMode 
)
overridevirtual

Implements fs::FSImpl.

DirImplPtr SPIFFSImpl::openDir ( const char *  path)
overridevirtual

Implements fs::FSImpl.

bool SPIFFSImpl::remove ( const char *  path)
overridevirtual

Implements fs::FSImpl.

bool SPIFFSImpl::rename ( const char *  pathFrom,
const char *  pathTo 
)
overridevirtual

Implements fs::FSImpl.

Member Data Documentation

uint32_t SPIFFSImpl::_blockSize
protected
std::unique_ptr<uint8_t[]> SPIFFSImpl::_cacheBuf
protected
std::unique_ptr<uint8_t[]> SPIFFSImpl::_fdsBuf
protected
spiffs SPIFFSImpl::_fs
protected
uint32_t SPIFFSImpl::_maxOpenFds
protected
uint32_t SPIFFSImpl::_pageSize
protected
uint32_t SPIFFSImpl::_size
protected
uint32_t SPIFFSImpl::_start
protected
std::unique_ptr<uint8_t[]> SPIFFSImpl::_workBuf
protected