software:firmware
MakAir Firmware
eeprom.cpp File Reference

I2C eeprom management. More...

Go to the source code of this file.

Detailed Description

I2C eeprom management.

Author
Makers For Life

The EEPROM share the I2C bus with massflowmeter: Time to read or write could reach 200ms, up to structure size The eeprom release the bus during 7 ms every 16 bytes read or written. The massflowmeter will get some values in between. So, the error on the flow measurement will be invisible, and the error on the volume measurement will have a very very slight error.

Reading: The EEProm_Content is updated with EEPROM actual content. When the EEPROM is virgin, the EEProm_Content structure is overriden When the I2C fails, the EEProm_Content structure is overriden When the EEPROM is corrupted, the EEProm_Content will contain some corrupted data.

Writing: The EEProm_Content is copied to EEPROM.

Definition in file eeprom.cpp.