Changes between Version 2 and Version 3 of linux/i2c
- Timestamp:
- 10/12/2021 06:33:02 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
linux/i2c
v2 v3 6 6 The Linux kernel API for i2c devices can be found here: 7 7 * https://lxr.missinglinkelectronics.com/linux/include/uapi/linux/i2c-dev.h - ioctl API 8 * https:// lxr.missinglinkelectronics.com/linux/Documentation/i2c/dev-interface - documentation8 * https://www.kernel.org/doc/Documentation/i2c/dev-interface - documentation 9 9 10 10 For example code take a look at the i2cget source from the [https://github.com/suapapa/i2c-tools/blob/android/tools/i2cget.c i2c-tools package]. This source contains a commonly used userspace header file (i2c-dev.h) that provides i2c_smbus_* functions that you can use.