Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

# i2ceeprom.h

Go to the documentation of this file.

    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 /// \ingroup driver_hw
    00014 /// \defgroup i2ceeprom Interface for standard I2C EEPROM memories (i2ceeprom.c)
    00015 /// \code #include "i2ceeprom.h" \endcode
    00016 /// \par Overview
    00017 ///     This library provides functions for reading and writing standard
    00018 /// 24Cxxx/24LCxxx I2C EEPROM memories.  Memory sizes up to 64Kbytes are
    00019 /// supported.  Future revisions may include page-write support.
    00020 //
    00021 // This code is distributed under the GNU Public License
    00022 //      which can be found at http://www.gnu.org/licenses/gpl.txt
    00023 //
    00024 //*****************************************************************************
    00025
    00026 #ifndef I2CEEPROM_H
    00027 #define I2CEEPROM_H
    00028
    00029 #include "global.h"
    00030
    00031 // functions
    00032
    00033 //! Initialize I2C EEPROM interface
    00034 void i2ceepromInit(void);
    00035
    00036 //! In the I2C EEPROM at [i2cAddr], read a byte from memory location [memAddr]
    00037 u08 i2ceepromReadByte(u08 i2cAddr, u32 memAddr);
    00038
    00039 //! In the I2C EEPROM at [i2cAddr], write a byte [data] to the memory location [memAddr]
    00040 void i2ceepromWriteByte(u08 i2cAddr, u32 memAddr, u08 data);
    00041
    00042 #endif