eeprom.h

Go to the documentation of this file.
00001 /***************************************************************************/
00036 #ifndef __EEPROM_H
00037 #define __EEPROM_H
00038 
00039 #include "em_device.h"
00040 
00041 /***************************************************************************/
00046 /***************************************************************************/
00051 #ifdef __cplusplus
00052 extern "C" {
00053 #endif
00054 
00055 /*******************************************************************************
00056  *******************************   DEFINES   ***********************************
00057  ******************************************************************************/
00058 
00060 #define EEPROM_DVK_ADDR    0xA0
00061 
00062 
00063 /*******************************************************************************
00064  *****************************   PROTOTYPES   **********************************
00065  ******************************************************************************/
00066 
00067 int EEPROM_Read(I2C_TypeDef *i2c,
00068                 uint8_t addr,
00069                 unsigned int offset,
00070                 uint8_t *data,
00071                 unsigned int len);
00072 int EEPROM_Write(I2C_TypeDef *i2c,
00073                  uint8_t addr,
00074                  unsigned int offset,
00075                  uint8_t *data,
00076                  unsigned int len);
00077 
00078 #ifdef __cplusplus
00079 }
00080 #endif
00081 
00085 #endif /* __EEPROM_H */