#ifndef __EEPROM_H__ #define __EEPROM_H__ #include #include "iic.h" #include "i2c.h" int eeprom_init(iic_t , uint8_t addr, int is_16bits_address); int eeprom_init_with_io(uint32_t scl, uint32_t sda, uint8_t addr, int is_16bits_address); int eeprom_init_with_i2c(i2c_t i2c, uint8_t addr, int is_16bits_address); int eeprom_write(uint16_t addr, uint8_t data); uint8_t eeprom_read(uint16_t addr); void eeprom_close(void); #endif