Le 31/05/2013 16:56, Anatolij Gustschin a écrit :
On Fri, 31 May 2013 11:49:41 +0200
CF <cfoissac@xxxxxxx> wrote:
I'm requesting help. I am currently successfully using i2c-dev module.
But i'm unable to drive i2c busses from kernel space as i'd do from
userspace (with the use of open, read, write, ioctl functions). I can't
logically acces glibc.
Can somebody point me how i could do from kernel space ?
you need to get the I2C adapter for your bus using i2c_get_adapter()
and then send the I2C messages by i2c_transfer().
Anatolij
Thank you for your help. I'll feedback as soon as i got something working.
CF
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html