I2C devices in the system can be found in the/sys/bus/I2C/devices directory, as follows:
View plaincopy to clipboardprint?# Ls0-00340-00300-00110-0058# Ls0-00340-00300-00110-0058
These devices exist in the system.
How did these devices
# Modify the configuration file
Raspberry Pi has integrated the I2C driver and only needs to be started.
Modify configuration file
Sudo nano/etc/modprobe. d/raspi-blacklist.conf
! [Configure] (http://images.cnblogs.com/cnblogs_com/hangxin1940/466697/o_rasp_i2c1.png "comment the third line ")Comment out the third line, CTRL + x save
Next, start the I2C module.
Sudo nano/etc/modules
! [Configure] (ht
established the busses directory in drivers/i2c/to store various implemented I2C bus drivers, including samsung S3C series chip I2C bus driver for i2c-s3c2410.c.
(3) I2C Device Driver
The I2C device driver is the implementation o
/system/bin
Adbpush I2cdump/system/bin
Adbpush I2cset/system/bin
ADB push I2cget/system/bin
-----------------------Below is an example of the use of these four commands
The i2c-tools contains four files.
· i2cdetect– used to list I2C bus and all the above devices.
· i2cdump– displays the value of all register on the device
· i2cget– read the value of a register
Module_license ("GPL ");
Module_init (i2c_ts_init );Module_exit (i2c_ts_exit );
4 ). after completing this step, you also need to create and configure the I2C device where the setup file is located in linux-2.6.32.2/ARCH/ARM/mach-s3c2440/mach-mini2440.c, Add the following code: ................................. ................. +/* I2C touch screen devi
Linux under the I2C-driven loading process, divided into I2C equipment layer, I2C adapter layer and I2C core layer
The I2C device driver layer is the drive we write for a particular I2C device, and the following is the
Probe Method of I2C driver framework, i2c framework probe
The Linux-based I2C driver adopts the probe method. The Linux driver for any device supporting I2C bus can be written according to the following framework.
The I2C device connects to the cpu's specific
= i2cdev_detach_client,};
Struct i2c_dev {Struct list_head list;Struct i2c_adapter * ADAP;Struct device * dev;};
This file provides user-layer access to I2C devices, including common file operations such as open, read, write, ioctl, and release. We can use the open function to open I2C device files, the ioctl function is used to set the address for accessing the
1. i2c-dev Interface
I2C Dev-Interface
Generally, I2C devices are controlled by a kernel driver. However, in the user space, you can also access an I2C device: you need
Load the i2c-dev module.
Each registered
This article begins by analyzing the kernel's I2C subsystem.
Description: 1. The kernel version of the analysis is 2.6.37.1
2. Development Board for TQ2440, onboard ARM9 (s3c2440)
3.I2C equipment for AT24C02
4. The sequence of analysis is the registration order of the Kernel I2C subsystem (that is, the order in which this series of articles is published).
It is
software, I don't know whether it's clear or not? --This sentence is correct.
SK | fisker posted on[B] Reply [url = http://linux.chinaunix.net/bbs/redirect.php? Goto = findpost pid = 7280841 ptid = 1168450] 4 # [/url] [I] wmmy2008 [/I] [/B]
I have read several articles about the embedded excellent area I2CArticleYou know what's going on.In fact, I2C driver can also bypass the client this thing, direct access to/dev/
operation of hardware I2C is: working at 50 kHz or below, and ensuring that there is no other interruption to interrupt its work. This method is only applicable to scenarios with low speed requirements, such as EEPROM reading. However, high-speed devices, such as AD chips of some models, cannot be used.
If you need a high speed (400 KHz), we recommend that you use the alternative solution GD32 of STM32, w
Original article: Documentation/I2C/upgrading-clientsTranslator: Guo shaobei2010/05/10
Update I2C drivers to the new 2.6 Driver Model========================================================== ==========
Note: the I2C driver here refers to the I2C client driver, for example, RTC, USBTransceiver driver and so on.
Ben doo
I. Overview
Speaking of writing I2C drivers in Linux, there are currently two main methods: one is to treat I2C devices as a common character device, the other is to use the Linux I2C driver architecture. The two drivers are compared below.
The advantages of the first method (corresponding to the disadvantages of the s
I2C (Inter-IntegratedCircuit1 bus is a 2-line serial bus developed by Philips, used to connect
1 Introduction
I2C (Inter-Integrated Circuit1 bus is a two-line serial bus developed by Philips to connect the microcontroller and its peripheral devices. It is a special form of synchronous communication. it has the advantages of few interface lines, simple control mod
, including the I2C main device that the I2C attaches to the device struct I2c_adapter *adapter The I2C from the device driver struct I2c_driver *driver as a member variable that I2C from the device, such as addr, name, and so on, which is specific to the device driver, attached to
Linux i2c subsystem architecture, linuxi2c Subsystem
Writing i2c Device Drivers (slave devices) can be either of the following methods:
1. You can write an independent Slave Device Driver and use it directly.
2. the Linux kernel has implemented a general device driver. The general device driver is used to write an application (User-mode driver) and a large number
I. Overview
Speaking of writing I2C drivers in Linux, there are currently two main methods: one is to treat I2C devices as a common character device, the other is to use the Linux I2C driver architecture. The two drivers are compared below.
The advantages of the first method (corresponding to the disadvantages of the s
1 I2C communication protocol and S3C2410 chip Introduction
I2C (Inter Integrated Circuit) bus was launched by Philips in 1980. The I2C bus transmits information between the bus and the device using two wires (SDA and SCL), serial communication between the microcontroller and external devices, or bidirectional data tran
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.