Fix typo.
[Rockbox.git] / firmware / export / i2c.h
blobed9a5e678d3acbf879318f70f3c047d18b46a9e1
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 by Linus Nielsen Feltzing
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #ifndef I2C_H
20 #define I2C_H
22 extern void i2c_init(void);
23 extern void i2c_begin(void);
24 extern void i2c_end(void);
25 extern int i2c_write(int device, unsigned char* buf, int count );
26 extern int i2c_read(int device, unsigned char* buf, int count );
27 extern int i2c_readmem(int device, int address, unsigned char* buf, int count );
28 extern void i2c_outb(unsigned char byte);
29 extern unsigned char i2c_inb(int ack);
30 extern void i2c_start(void);
31 extern void i2c_stop(void);
32 extern void i2c_ack(int bit);
33 extern int i2c_getack(void);
35 #endif