ESP8266
Public Member Functions | Protected Attributes | List of all members
EEPROMClass Class Reference

Public Member Functions

 EEPROMClass (uint32_t sector)
 
void begin (size_t size)
 
uint8_t read (int address)
 
void write (int address, uint8_t val)
 
bool commit ()
 
void end ()
 
uint8_t * getDataPtr ()
 
template<typename T >
T & get (int address, T &t)
 
template<typename T >
const T & put (int address, const T &t)
 

Protected Attributes

uint32_t _sector
 
uint8_t * _data
 
size_t _size
 
bool _dirty
 

Constructor & Destructor Documentation

EEPROMClass::EEPROMClass ( uint32_t  sector)

Member Function Documentation

void EEPROMClass::begin ( size_t  size)
bool EEPROMClass::commit ( )
void EEPROMClass::end ( )
template<typename T >
T& EEPROMClass::get ( int  address,
T &  t 
)
uint8_t * EEPROMClass::getDataPtr ( )
template<typename T >
const T& EEPROMClass::put ( int  address,
const T &  t 
)
uint8_t EEPROMClass::read ( int  address)
void EEPROMClass::write ( int  address,
uint8_t  val 
)

Member Data Documentation

uint8_t* EEPROMClass::_data
protected
bool EEPROMClass::_dirty
protected
uint32_t EEPROMClass::_sector
protected
size_t EEPROMClass::_size
protected