PLANET-Q EEPROM Library

Dependents:   IZU2020_AVIONICS IZU2020_POST_PROCESS IZU2020_AVIONICS

PQEEPROM.h

Committer:
tanahashi
Date:
2019-12-17
Revision:
0:559c23c5884c
Child:
1:fccbd0a70492

File content as of revision 0:559c23c5884c:

#ifndef PQEEPROM_H_
#define PQEEPROM_H_

class EEPROM
{
private:
    I2C *_i2c;
    int _addr;
    char cmd[130];
    char buff[128];
public:
    EEPROM(I2C &i2c);
    void write(int addr, char *data, int size);
    void read(int addr, char *data, int size);
};

#endif