MG32F10x Standard Peripherals Firmware Library
I2C/I2C_24C02/drv_eeprom_24c02.h
1 /* Define to prevent recursive inclusion -------------------------------------*/
2 #ifndef __DRV_EEPROM_24C02_H
3 #define __DRV_EEPROM_24C02_H
4 
5 /* Includes ------------------------------------------------------------------*/
6 #include "mg32f10x.h"
7 
8 /* Exported types ------------------------------------------------------------*/
9 /* Exported constants --------------------------------------------------------*/
10 /* Exported macro ------------------------------------------------------------*/
11 /* Exported functions --------------------------------------------------------*/
12 
13 void eeprom_24c02_init(void);
14 uint32_t eeprom_24c02_random_read(uint8_t addr, uint8_t* pdata);
15 uint32_t eeprom_24c02_sequential_read(uint8_t addr, uint8_t* pbuf, uint32_t len);
16 uint32_t eeprom_24c02_byte_write(uint8_t addr, uint8_t data);
17 uint32_t eeprom_24c02_page_write(uint8_t addr, const uint8_t* pdata, uint8_t len);
18 uint32_t eeprom_24c02_probe(void);
19 
20 #endif /* __DRV_EEPROM_24C02_H */