MySensors Library & Examples  2.3.2
Public Types | Public Member Functions | List of all members
extEEPROM Class Reference

Detailed Description

extEEPROM class

Definition at line 87 of file extEEPROM.h.

#include <extEEPROM.h>

+ Inheritance diagram for extEEPROM:
+ Collaboration diagram for extEEPROM:

Public Types

enum  twiClockFreq_t { twiClock100kHz = 100000, twiClock400kHz = 400000 }
 

Public Member Functions

 extEEPROM (eeprom_size_t deviceCapacity, byte nDevice, unsigned int pageSize, byte eepromAddr=0x50)
 Constructor. More...
 
byte begin (twiClockFreq_t twiFreq=twiClock100kHz, TwoWire *_comm=&Wire)
 begin()
 
byte write (unsigned long addr, byte *values, unsigned int nBytes)
 write()
 
byte write (unsigned long addr, byte value)
 write()
 
byte read (unsigned long addr, byte *values, unsigned int nBytes)
 read()
 
int read (unsigned long addr)
 read()
 
byte update (unsigned long addr, byte *values, unsigned int nBytes)
 update()
 
byte update (unsigned long addr, byte value)
 update()
 
unsigned long length ()
 length()
 

Member Enumeration Documentation

◆ twiClockFreq_t

I2C clock frequencies

Enumerator
twiClock100kHz 

twiClock100kHz

twiClock400kHz 

twiClock400kHz

Definition at line 97 of file extEEPROM.h.

Constructor & Destructor Documentation

◆ extEEPROM()

extEEPROM::extEEPROM ( eeprom_size_t  deviceCapacity,
byte  nDevice,
unsigned int  pageSize,
byte  eepromAddr = 0x50 
)

Constructor.

Parameters
deviceCapacity
nDevice
pageSize
eepromAddr

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