IoAbstraction
Classes | Enumerations | Functions
EepromAbstractionWire.h File Reference

Contains the i2c variants of the EepromAbstraction. More...

Go to the source code of this file.

Classes

class  I2cAt24Eeprom
 

Enumerations

enum  At24EepromType {
  PAGESIZE_AT24C01 , PAGESIZE_AT24C02 , PAGESIZE_AT24C04 , PAGESIZE_AT24C08 ,
  PAGESIZE_AT24C16 , PAGESIZE_AT24C32 , PAGESIZE_AT24C64 , PAGESIZE_AT24C128 ,
  PAGESIZE_AT24C256 , PAGESIZE_AT24C512
}
 

Functions

size_t at24ActualSizeFromRomSize (At24EepromType size)
 
uint8_t at24PageFromRomSize (At24EepromType size)
 

Detailed Description

Contains the i2c variants of the EepromAbstraction.

Enumeration Type Documentation

◆ At24EepromType

Defines all the variants of the chip that we can pass to the I2cAt24Eeprom constructor. From this we can determine both the size and page size of a given EEPROM.

Function Documentation

◆ at24ActualSizeFromRomSize()

size_t at24ActualSizeFromRomSize ( At24EepromType  size)

Given an eeprom type enum value this returns the actual size of the rom in bytes

Parameters
sizethe eeprom type
Returns
the size of the rom

◆ at24PageFromRomSize()

uint8_t at24PageFromRomSize ( At24EepromType  size)

Given the eeprom type enum value this returns the page size to use for the device.

Parameters
sizethe eeprom type
Returns
the page size