Hi Girish, I am develping i2c driver for temperature sensor. I guess two methods of available for driver development. legacy method using i2c.h header file & using the legacy functuions like i2c_detect(adapter, &addr_data, detect),i2c_smbus_read_byte_data(client, reg) et. another method is bitwise operations which internally uses the legacy method using i2c-algo-bit.h header file & using the functions like setscl,getscl,setsda,getsda.
I just want to understand the difference of these two, and require some guidelines for develope the driver. thanks suresh Message: 4 Date: Tue, 6 Oct 2009 12:31:27 +0530 From: Girish Venkatachalam <[email protected]> Subject: Re: [Ilugc] I2C Driver development To: ILUG-C <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset=ISO-8859-1 On Tue, Oct 6, 2009 at 12:25 PM, Suresh Kumar <[email protected]> wrote: > Hi All, > > I am just practing the I2c driver development. surfed the net and read some > tutorials and most of them refered i2c.h header file for i2c driver > development. > > But i came to know, there is another method for developing the i2c driver > using i2c-algo-bit.h header file. > > Can some one help to understand the difference in the I2c driver > using i2c.h & i2c-algo-bit.h? > and detailed functionalities of each? Your question is too hard for me. How do you develop using a header file? What is it that you mean? Can you phrase your question better? What do you want to do with i2c bus? You want to develop a driver for what? TV card? -Girish -- Gayatri Hitech web: http://gayatri-hitech.com _______________________________________________ To unsubscribe, email [email protected] with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
