VLCB
Loading...
Searching...
No Matches
VLCB::Storage Class Referenceabstract

Interface for persistent storage. Used by Configuration class. More...

#include <Storage.h>

Inheritance diagram for VLCB::Storage:
VLCB::DueEepromEmulationStorage VLCB::EepromExternalStorage VLCB::EepromInternalStorage VLCB::FlashStorage

Public Member Functions

virtual void begin (unsigned int size)=0
 Initialise the storage.
virtual byte read (unsigned int eeaddress)=0
virtual void write (unsigned int eeaddress, byte data)=0
virtual byte readBytes (unsigned int eeaddress, byte nbytes, byte dest[])=0
virtual void writeBytes (unsigned int eeaddress, const byte src[], byte numbytes)=0
virtual void reset ()=0
virtual void commitWriteEEPROM ()

Detailed Description

Interface for persistent storage. Used by Configuration class.

Member Function Documentation

◆ begin()

virtual void VLCB::Storage::begin ( unsigned int size)
pure virtual

Initialise the storage.

Parameters
sizeAmount of persistent storage that will be used by VLCB configuration.

Implemented in VLCB::DueEepromEmulationStorage, VLCB::EepromExternalStorage, VLCB::EepromInternalStorage, and VLCB::FlashStorage.

◆ read()

virtual byte VLCB::Storage::read ( unsigned int eeaddress)
pure virtual

◆ write()

virtual void VLCB::Storage::write ( unsigned int eeaddress,
byte data )
pure virtual

◆ readBytes()

virtual byte VLCB::Storage::readBytes ( unsigned int eeaddress,
byte nbytes,
byte dest[] )
pure virtual

◆ writeBytes()

virtual void VLCB::Storage::writeBytes ( unsigned int eeaddress,
const byte src[],
byte numbytes )
pure virtual

◆ reset()

virtual void VLCB::Storage::reset ( )
pure virtual

◆ commitWriteEEPROM()

virtual void VLCB::Storage::commitWriteEEPROM ( )
inlinevirtual

Reimplemented in VLCB::EepromInternalStorage.


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