VLCB
Loading...
Searching...
No Matches
VLCB::EepromExternalStorage Class Reference

#include <EepromExternalStorage.h>

Inheritance diagram for VLCB::EepromExternalStorage:
VLCB::Storage

Public Member Functions

 EepromExternalStorage (byte address)
 EepromExternalStorage (byte address, TwoWire *bus)
virtual void begin (unsigned int size) override
 Initialise the storage.
virtual byte read (unsigned int eeaddress) override
 read a single byte from EEPROM
virtual byte readBytes (unsigned int eeaddress, byte nbytes, byte dest[]) override
virtual void write (unsigned int eeaddress, byte data) override
 write a byte
virtual void writeBytes (unsigned int eeaddress, const byte src[], byte numbytes) override
virtual void reset () override
 clear all event data in external EEPROM chip
Public Member Functions inherited from VLCB::Storage
virtual void commitWriteEEPROM ()

Constructor & Destructor Documentation

◆ EepromExternalStorage() [1/2]

VLCB::EepromExternalStorage::EepromExternalStorage ( byte address)

◆ EepromExternalStorage() [2/2]

VLCB::EepromExternalStorage::EepromExternalStorage ( byte address,
TwoWire * bus )

Member Function Documentation

◆ begin()

void VLCB::EepromExternalStorage::begin ( unsigned int size)
overridevirtual

Initialise the storage.

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

Implements VLCB::Storage.

◆ read()

byte VLCB::EepromExternalStorage::read ( unsigned int eeaddress)
overridevirtual

read a single byte from EEPROM

Implements VLCB::Storage.

◆ readBytes()

byte VLCB::EepromExternalStorage::readBytes ( unsigned int eeaddress,
byte nbytes,
byte dest[] )
overridevirtual

read a number of bytes from EEPROM external EEPROM must use 16-bit addresses !!

Implements VLCB::Storage.

◆ write()

void VLCB::EepromExternalStorage::write ( unsigned int eeaddress,
byte data )
overridevirtual

write a byte

Implements VLCB::Storage.

◆ writeBytes()

void VLCB::EepromExternalStorage::writeBytes ( unsigned int eeaddress,
const byte src[],
byte numbytes )
overridevirtual

write a number of bytes to EEPROM external EEPROM must use 16-bit addresses !!

Implements VLCB::Storage.

◆ reset()

void VLCB::EepromExternalStorage::reset ( )
overridevirtual

clear all event data in external EEPROM chip

Implements VLCB::Storage.


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