[i2c] I2C functionality bits

Till Harbaum till at harbaum.org
Sat Nov 4 00:13:09 CET 2006


Hi,

On Friday 03 November 2006 02:38, Mark M. Hoffman wrote:
> Jean: as I understand it, Till is shipping whole I2C transfers over USB to
> some microcontroller... the firmware for that micro handles the actual bit
> banging.
Yes, that's it.

> Till: if you already specify I2C_FUNC_I2C, then just go ahead and add
> I2C_FUNC_SMBUS_EMUL.  The latter is a strict subset of the former and the
> I2C core will just take care of it.  Then sensors-detect (and many more
> chip drivers) will work as you expect.  For an example of an existing bus
> driver that does this, see drivers/i2c/busses/i2c-ibm_iic.c.
Ok i'll do that. Since it's the device that's reporting t's capabilities 
directly instead of the driver knowing about different device versions i'd
like to get this clarified before i distribute the firmware and driver.

> When do we get to see some code? ;)
I transformed my old lcd2usb into a test device. But since i don't need
such a "big" cpu as the atmega8 i have started to build a smaller version
based upon the attiny45 (hence the name i2c-tiny-usb). Once that
one is working i'll put a first version of the whole setup online.

Till

-- 
Dr.Ing. Till Harbaum <till at harbaum.org>
http://www.harbaum.org/till



More information about the i2c mailing list