mFS file system library for EEPROM memory chips.
Diff: i2c_eeprom.h
- Revision:
- 7:5ac5121bb4e0
- Parent:
- 5:a0fe74dce80d
- Child:
- 9:52c01cb100ac
--- a/i2c_eeprom.h Mon Feb 21 18:34:40 2011 +0000 +++ b/i2c_eeprom.h Mon Feb 21 22:37:00 2011 +0000 @@ -1,22 +1,23 @@ /*H**************************************************************************** -* FILENAME : i2c_eeprom.h * -* * -* DESCRIPTION : * -* Simple library for external I2C EEEPROM. * -* * -* AUTHOR : Olli Vanhoja START DATE : 2011-02-17 * -******************************************************************************* -* -* CHANGES : -* -* VERSION DATE WHO DETAIL -* 0.1 2011-02-21 Olli Vanhoja Initial release version -* 0.2 2011-02-21 Olli Vanhoja *Added possibility change I2C speed -* *Added external reset pin and autoreset -* for read function. Thanks to Jon Ward. -* *Documentational comments added. -* -*H*/ + * FILENAME : i2c_eeprom.h * + * * + * DESCRIPTION : * + * Simple library for external I2C EEEPROM. * + * * + * AUTHOR : Olli Vanhoja START DATE : 2011-02-17 * + ****************************************************************************** + * + * CHANGES : + * + * VERSION DATE WHO DETAIL + * 0.1 2011-02-21 Olli Vanhoja Initial release version + * 0.2 2011-02-21 Olli Vanhoja *Added possibility change I2C speed + * *Added external reset pin and autoreset + * for read function. Thanks to Jon Ward. + * *Documentational comments added. + * 0.3 2011-02-21 Olli Vanhoja *Auto-reset for all error conditions + * + *H*/ #ifndef I2C_EEPROM_H #define I2C_EEPROM_H @@ -30,6 +31,7 @@ class i2c_eeprom { private: int i_i2c_address; // I2C harware address + void autoreset(); public: /** Initialize communication *