mFS file system library for EEPROM memory chips.
Diff: i2c_eeprom.h
- Revision:
- 0:cbf45dde2b49
- Child:
- 5:a0fe74dce80d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/i2c_eeprom.h Mon Feb 21 07:35:16 2011 +0000 @@ -0,0 +1,32 @@ +/*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 +* +*H*/ + +#ifndef I2C_EEPROM_H +#define I2C_EEPROM_H + +typedef unsigned short int uint16; + +class i2c_eeprom { +private: + int i_i2c_address; // I2C harware address +public: + i2c_eeprom(); + i2c_eeprom(int); + void write(char *, uint16, unsigned int n); // Write any length of bytes to external EEPROM + void read(uint16, uint16, char *); // Read any length of bytes from external EEPROM +}; + +#endif