eeprom.h

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