eeprom.h

Go to the documentation of this file.
00001 /***************************************************************************/
00016 #ifndef __EEPROM_H
00017 #define __EEPROM_H
00018 
00019 #include "em_device.h"
00020 
00021 /***************************************************************************/
00026 /***************************************************************************/
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034 
00035 /*******************************************************************************
00036  *******************************   DEFINES   ***********************************
00037  ******************************************************************************/
00038 
00040 #define EEPROM_DVK_ADDR    0xA0
00041 
00042 
00043 /*******************************************************************************
00044  *****************************   PROTOTYPES   **********************************
00045  ******************************************************************************/
00046 
00047 int EEPROM_Read(I2C_TypeDef *i2c,
00048                 uint8_t addr,
00049                 unsigned int offset,
00050                 uint8_t *data,
00051                 unsigned int len);
00052 int EEPROM_Write(I2C_TypeDef *i2c,
00053                  uint8_t addr,
00054                  unsigned int offset,
00055                  uint8_t *data,
00056                  unsigned int len);
00057 
00058 #ifdef __cplusplus
00059 }
00060 #endif
00061 
00065 #endif /* __EEPROM_H */