EFM32 Gecko Software Documentation  efm32g-doc-5.1.2
eeprom.h
Go to the documentation of this file.
1 /***************************************************************************/
16 #ifndef __EEPROM_H
17 #define __EEPROM_H
18 
19 #include "em_device.h"
20 
21 /***************************************************************************/
26 /***************************************************************************/
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 /*******************************************************************************
36  ******************************* DEFINES ***********************************
37  ******************************************************************************/
38 
40 #define EEPROM_DVK_ADDR 0xA0
41 
42 
43 /*******************************************************************************
44  ***************************** PROTOTYPES **********************************
45  ******************************************************************************/
46 
47 int EEPROM_Read(I2C_TypeDef *i2c,
48  uint8_t addr,
49  unsigned int offset,
50  uint8_t *data,
51  unsigned int len);
52 int EEPROM_Write(I2C_TypeDef *i2c,
53  uint8_t addr,
54  unsigned int offset,
55  uint8_t *data,
56  unsigned int len);
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
65 #endif /* __EEPROM_H */
int EEPROM_Write(I2C_TypeDef *i2c, uint8_t addr, unsigned int offset, uint8_t *data, unsigned int len)
Write data to EEPROM.
Definition: eeprom.c:191
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
int EEPROM_Read(I2C_TypeDef *i2c, uint8_t addr, unsigned int offset, uint8_t *data, unsigned int len)
Read data from EEPROM.
Definition: eeprom.c:126