00001 /*! \file i2ceeprom.h \brief Interface for standard I2C EEPROM memories. */ 00002 //***************************************************************************** 00003 // 00004 // File Name : 'i2ceeprom.h' 00005 // Title : Interface for standard I2C EEPROM memories 00006 // Author : Pascal Stang - Copyright (C) 2003 00007 // Created : 2003.04.23 00008 // Revised : 2003.04.23 00009 // Version : 0.1 00010 // Target MCU : Atmel AVR series 00011 // Editor Tabs : 4 00012 // 00013 // This code is distributed under the GNU Public License 00014 // which can be found at http://www.gnu.org/licenses/gpl.txt 00015 // 00016 //***************************************************************************** 00017 00018 #ifndef I2CEEPROM_H 00019 #define I2CEEPROM_H 00020 00021 #include "global.h" 00022 00023 // functions 00024 00025 //! Initialize I2C EEPROM interface 00026 void i2cInit(void); 00027 00028 //! In the I2C EEPROM at [i2cAddr], read a byte from memory location [memAddr] 00029 u08 i2ceepromReadByte(u08 i2cAddr, u16 memAddr); 00030 00031 //! In the I2C EEPROM at [i2cAddr], write a byte [data] to the memory location [memAddr] 00032 void i2ceepromWriteByte(u08 i2cAddr, u16 memAddr, u08 data); 00033 00034 #endif
1.3-rc2