Fraise  2.1
FRAmework for Interfacing Software and Electronics
 All Classes Files Functions Typedefs Groups
i2c.h
1 /*
2 ** Made by fabien le mentec <texane@gmail.com>
3 **
4 ** Started on Sun Jan 31 09:03:43 2010 texane
5 ** Last update Sun Jan 31 09:04:52 2010 texane
6 */
7 
8 
9 
10 #ifndef I2C_H_INCLUDED
11 # define I2C_H_INCLUDED
12 
13 
14 
15 typedef unsigned int i2c_addr_t;
16 
17 
18 int i2c_setup(void);
19 unsigned int i2c_write(i2c_addr_t, unsigned char*, unsigned int);
20 unsigned int i2c_read(unsigned char*, unsigned int);
21 void i2c_handle_interrupt(void);
22 
23 
24 
25 #endif /* ! I2C_H_INCLUDED */