Looking for I2C code w/ interrupt callbacks

Hi,

I would like to use I2C as a master. The Wire library seems to use busy-wait polling when transmitting or receiving as master. The same library has callback functions that are invoked by interrupt when working as a slave.

The question is: has anyone ever adapted the library to work with interrupt-driven callback for the master operations? How complex would this be?

Dror

I've looked into that too, but no luck with the Wire lib. I implemented my own functions for I2C from scratch for a specific purpose. I don't really know how to implement this functionality effectively in a generic way, so it can be reused ...