mFS file system library for EEPROM memory chips.

Committer:
HBP
Date:
Mon Feb 21 07:35:16 2011 +0000
Revision:
0:cbf45dde2b49
Child:
5:a0fe74dce80d
Initial release

Who changed what in which revision?

UserRevisionLine numberNew contents of line
HBP 0:cbf45dde2b49 1 /*H****************************************************************************
HBP 0:cbf45dde2b49 2 * FILENAME : i2c_eeprom.h *
HBP 0:cbf45dde2b49 3 * *
HBP 0:cbf45dde2b49 4 * DESCRIPTION : *
HBP 0:cbf45dde2b49 5 * Simple library for external I2C EEEPROM. *
HBP 0:cbf45dde2b49 6 * *
HBP 0:cbf45dde2b49 7 * AUTHOR : Olli Vanhoja START DATE : 2011-02-17 *
HBP 0:cbf45dde2b49 8 *******************************************************************************
HBP 0:cbf45dde2b49 9 *
HBP 0:cbf45dde2b49 10 * CHANGES :
HBP 0:cbf45dde2b49 11 *
HBP 0:cbf45dde2b49 12 * VERSION DATE WHO DETAIL
HBP 0:cbf45dde2b49 13 * 0.1 2011-02-21 Olli Vanhoja Initial release version
HBP 0:cbf45dde2b49 14 *
HBP 0:cbf45dde2b49 15 *H*/
HBP 0:cbf45dde2b49 16
HBP 0:cbf45dde2b49 17 #ifndef I2C_EEPROM_H
HBP 0:cbf45dde2b49 18 #define I2C_EEPROM_H
HBP 0:cbf45dde2b49 19
HBP 0:cbf45dde2b49 20 typedef unsigned short int uint16;
HBP 0:cbf45dde2b49 21
HBP 0:cbf45dde2b49 22 class i2c_eeprom {
HBP 0:cbf45dde2b49 23 private:
HBP 0:cbf45dde2b49 24 int i_i2c_address; // I2C harware address
HBP 0:cbf45dde2b49 25 public:
HBP 0:cbf45dde2b49 26 i2c_eeprom();
HBP 0:cbf45dde2b49 27 i2c_eeprom(int);
HBP 0:cbf45dde2b49 28 void write(char *, uint16, unsigned int n); // Write any length of bytes to external EEPROM
HBP 0:cbf45dde2b49 29 void read(uint16, uint16, char *); // Read any length of bytes from external EEPROM
HBP 0:cbf45dde2b49 30 };
HBP 0:cbf45dde2b49 31
HBP 0:cbf45dde2b49 32 #endif