AceUtils  0.5.0
Useful Arduino utilties which are too small as separate libraries, but complex enough to be shared among multiple projects, and often have external dependencies to other libraries.
Public Member Functions | List of all members
ace_utils::crc_eeprom::AvrEepromAdapter< E > Class Template Reference

A wrapper class around an EEPROM class that follows the AVR-style API. More...

#include <CrcEeprom.h>

Inheritance diagram for ace_utils::crc_eeprom::AvrEepromAdapter< E >:
Inheritance graph
[legend]
Collaboration diagram for ace_utils::crc_eeprom::AvrEepromAdapter< E >:
Collaboration graph
[legend]

Public Member Functions

 AvrEepromAdapter (E &eeprom)
 Wrap around an AVR-flavored EEPROM object.
 
virtual void begin (size_t size)
 Initialize the size of the EEPROM space. More...
 
virtual void write (size_t address, uint8_t val)
 Write thte byte at address, potentially buffered.
 
virtual uint8_t read (size_t address) const
 Return the byte at address.
 
virtual bool commit ()
 Flush the buffer if it is used.
 

Detailed Description

template<typename E>
class ace_utils::crc_eeprom::AvrEepromAdapter< E >

A wrapper class around an EEPROM class that follows the AVR-style API.

Template Parameters
Etype of the EEPROM class

Definition at line 47 of file CrcEeprom.h.

Member Function Documentation

◆ begin()

template<typename E >
virtual void ace_utils::crc_eeprom::AvrEepromAdapter< E >::begin ( size_t  size)
inlinevirtual

Initialize the size of the EEPROM space.

On AVR-flavored EEPROM, this does nothing.

Implements ace_utils::crc_eeprom::IEepromAdapter.

Definition at line 54 of file CrcEeprom.h.


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