[En-Nut-Discussion] I2C (twi)

Bernard Fouché bernard.fouche at kuantic.com
Wed Sep 14 17:40:33 CEST 2005

Hi all.

I need to use I2C on a Ethernut 2.1b. I've had a look at twif.c and it 
seems that:

- I need to compile & link twif.c in my project.
- I need to call TwInit(v) once (with v= some unused valeur if I'm 
always master)
- I need to call TwIOCtl(int,void *) once to set the bus speed.
- I need to call TwMasterTransact() when needed.

And that is all. Can someone confirm? Is there any example code around 
using these?



More information about the En-Nut-Discussion mailing list