mFS file system library for EEPROM memory chips.

i2c_eeprom.h

Committer:
HBP
Date:
2011-02-21
Revision:
0:cbf45dde2b49
Child:
5:a0fe74dce80d

File content as of revision 0:cbf45dde2b49:

/*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