MG32L003 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 "mg32l003.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_read(uint8_t addr, uint8_t regaddr, uint8_t* pbuf, uint32_t len);
15 uint32_t eeprom_24c02_write(uint8_t addr, uint8_t regaddr, const uint8_t* pdata, uint8_t len);
16 
17 #endif /* __DRV_EEPROM_24C02_H */