Re: Newbie: accessing i2c features through kernel functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
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




[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux