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

# i2c.h

    00001 /*! \file i2c.h \brief I2C Interface Driver for Atmel AT91. */
    00002 //*****************************************************************************
    00003 //
    00004 // File Name    : 'i2c.h'
    00005 // Title        : I2C Interface Driver for Atmel AT91
    00006 // Author       : Pascal Stang - Copyright (C) 2005-2006
    00007 // Created      : 12/10/2005
    00008 // Revised      : 3/22/2006
    00009 // Version      : 0.1
    00010 // Target MCU   : Atmel AT91 series
    00011 // Editor Tabs  : 4
    00012 //
    00013 /// \ingroup driver_arm_at91
    00014 /// \defgroup i2c_at91 I2C Interface Driver for Atmel AT91 (armlib/arch/at91/i2c.c)
    00015 /// \code #include "i2c.h" \endcode
    00016 /// \par Overview
    00017 ///     To be written...
    00018 //
    00019 // This code is distributed under the GNU Public License
    00020 //      which can be found at http://www.gnu.org/licenses/gpl.txt
    00021 //
    00022 //*****************************************************************************
    00023 //@{
    00024
    00025 #ifndef ARMLIB_I2C_H
    00026 #define ARMLIB_I2C_H
    00027
    00028 #include "global.h"
    00029
    00030 // return values
    00031 #define I2C_OK              0x00
    00032 #define I2C_ERROR_NODEV     0x01
    00033
    00034
    00035 void i2cInit(void);
    00036 int i2cMasterSend(u08 deviceAddr, u08 length, u08 *data);
    00037 int i2cMasterReceive(u08 deviceAddr, u08 length, u08 *data);
    00038 void i2cScanBus(void);
    00039
    00040 #endif
    00041 //@}