Line No. | Rev | Author | Line |
---|---|---|---|
1 | 6 | kaklik | /*! \file i2ceeprom.h \brief Interface for standard I2C EEPROM memories. */ |
2 | //***************************************************************************** |
||
3 | // |
||
4 | // File Name : 'i2ceeprom.h' |
||
5 | // Title : Interface for standard I2C EEPROM memories |
||
6 | // Author : Pascal Stang - Copyright (C) 2003 |
||
7 | // Created : 2003.04.23 |
||
8 | // Revised : 2003.04.23 |
||
9 | // Version : 0.1 |
||
10 | // Target MCU : Atmel AVR series |
||
11 | // Editor Tabs : 4 |
||
12 | // |
||
13 | /// \ingroup driver_hw |
||
14 | /// \defgroup i2ceeprom Interface for standard I2C EEPROM memories (i2ceeprom.c) |
||
15 | /// \code #include "i2ceeprom.h" \endcode |
||
16 | /// \par Overview |
||
17 | /// This library provides functions for reading and writing standard |
||
18 | /// 24Cxxx/24LCxxx I2C EEPROM memories. Memory sizes up to 64Kbytes are |
||
19 | /// supported. Future revisions may include page-write support. |
||
20 | // |
||
21 | // This code is distributed under the GNU Public License |
||
22 | // which can be found at http://www.gnu.org/licenses/gpl.txt |
||
23 | // |
||
24 | //***************************************************************************** |
||
25 | |||
26 | #ifndef I2CEEPROM_H |
||
27 | #define I2CEEPROM_H |
||
28 | |||
29 | #include "global.h" |
||
30 | |||
31 | // functions |
||
32 | |||
33 | //! Initialize I2C EEPROM interface |
||
34 | void i2ceepromInit(void); |
||
35 | |||
36 | //! In the I2C EEPROM at [i2cAddr], read a byte from memory location [memAddr] |
||
37 | u08 i2ceepromReadByte(u08 i2cAddr, u32 memAddr); |
||
38 | |||
39 | //! In the I2C EEPROM at [i2cAddr], write a byte [data] to the memory location [memAddr] |
||
40 | void i2ceepromWriteByte(u08 i2cAddr, u32 memAddr, u08 data); |
||
41 | |||
42 | #endif |
Powered by WebSVN v2.8.3