简体   繁体   中英

How can I read streaming data from a camera connected to I2C on Linux?

I've looked for ways of reading camera data connected to I2C on Linux.

What is the normal way to achieve the goal?

Could you please show me a skeleton code or running code?

You need to write a userspace program to talk to the i2c-driver . There are some SMbus functions defined to do the data read/write from the userspace to the device driver.

Read here for more: https://www.kernel.org/doc/Documentation/i2c/dev-interface

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM