![](/media/cache/profiles/a7921ea22e084f4c3f660b30749325c3.jpg.50x50_q85.jpg)
mille-feuille board base MCU program
EEPROM24LC01.h@0:9dc31a0e43ac, 23 months ago (annotated)
- Committer:
- Info
- Date:
- Tue Sep 06 04:42:04 2022 +0000
- Revision:
- 0:9dc31a0e43ac
open
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Info | 0:9dc31a0e43ac | 1 | /* |
Info | 0:9dc31a0e43ac | 2 | *************************************************************************** |
Info | 0:9dc31a0e43ac | 3 | * File Name : EEPROM24LC01.h |
Info | 0:9dc31a0e43ac | 4 | * |
Info | 0:9dc31a0e43ac | 5 | * Revision : 1.0 |
Info | 0:9dc31a0e43ac | 6 | * Notes : |
Info | 0:9dc31a0e43ac | 7 | * Target Board : mbed LPC824 |
Info | 0:9dc31a0e43ac | 8 | * |
Info | 0:9dc31a0e43ac | 9 | * Revision History: |
Info | 0:9dc31a0e43ac | 10 | *************************************************************************** |
Info | 0:9dc31a0e43ac | 11 | */ |
Info | 0:9dc31a0e43ac | 12 | |
Info | 0:9dc31a0e43ac | 13 | #ifndef _EEPROM24LC01_H_ |
Info | 0:9dc31a0e43ac | 14 | #define _EEPROM24LC01_H_ |
Info | 0:9dc31a0e43ac | 15 | |
Info | 0:9dc31a0e43ac | 16 | #include "mbed.h" |
Info | 0:9dc31a0e43ac | 17 | #define I2C_ADDR_EEPROM24LC01 0x50 |
Info | 0:9dc31a0e43ac | 18 | |
Info | 0:9dc31a0e43ac | 19 | class EEPROM24LC01 |
Info | 0:9dc31a0e43ac | 20 | { |
Info | 0:9dc31a0e43ac | 21 | private: |
Info | 0:9dc31a0e43ac | 22 | int _i2c_address; |
Info | 0:9dc31a0e43ac | 23 | I2C *_i2c; |
Info | 0:9dc31a0e43ac | 24 | |
Info | 0:9dc31a0e43ac | 25 | public: |
Info | 0:9dc31a0e43ac | 26 | EEPROM24LC01(I2C *i2c, const int address=I2C_ADDR_EEPROM24LC01 ); |
Info | 0:9dc31a0e43ac | 27 | int byte8_write( char *data ); |
Info | 0:9dc31a0e43ac | 28 | int readAll( char *data, int size ); |
Info | 0:9dc31a0e43ac | 29 | }; |
Info | 0:9dc31a0e43ac | 30 | |
Info | 0:9dc31a0e43ac | 31 | #endif /* _EEPROM24LC01_H_ */ |