You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
445 B

#ifndef __EEPROM_H__
#define __EEPROM_H__
#include <stdint.h>
#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