EEPROM-Storage Library
The EEPROM Storage library provides the ability to access variables stored in EEPROM just as if they were stored in RAM.
 
Loading...
Searching...
No Matches
EEPROMUtilClass Class Reference

Provides the ability to clear the EEPROM memory. More...

#include <EEPROM-Util.h>

Public Member Functions

void clearEEPROM (uint value=UNSET_VALUE)
 Resets the contents of EEPROM to the value specified.
 
void updateEEPROM (uint address, byte value)
 Provides a unified method od writing to the EEPROM on multiple platforms.alignas.
 

Detailed Description

Provides the ability to clear the EEPROM memory.

Definition at line 44 of file EEPROM-Util.h.

Member Function Documentation

◆ clearEEPROM()

void EEPROMUtilClass::clearEEPROM ( uint  value = UNSET_VALUE)
inline

Resets the contents of EEPROM to the value specified.

Writes the byte specified by the parameter value to every memory location in EEPROM. If value is not specified then UNSET_VALUE is used which is defined s 0xFF.

Parameters
valueThe value to write to the EEPROM.
Returns
A reference to the EEPROMStorage<T> variable.

Definition at line 55 of file EEPROM-Util.h.

◆ updateEEPROM()

void EEPROMUtilClass::updateEEPROM ( uint  address,
byte  value 
)
inline

Provides a unified method od writing to the EEPROM on multiple platforms.alignas.

This method prefers usage of EEPROM.update() over EEPROM.write() to reduce the number of writes to EEPROM memory.

Parameters
addressThe address in EEPROM to write the value in.
valueThe value to write to the EEPROM.

Definition at line 71 of file EEPROM-Util.h.


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