I^2C总线是飞利浦公司推出的一种串行总线技术,由于其简单易用性,已经被广泛地应用于电子系统设计的许多芯片当中。利用I^2C总线通信可以达到很高的速率,而且总线上可以挂接多个节点,每个节点都由惟一的地址确定。在此主要讲述了嵌入式Linux中I^2C总线设备驱动程序的结构,并给出了Linux下基于I^2C总线设备驱动的编写思路。
The I^2C bus is a serial bus technology launched by Philips.It has been widely used in the chips when electronic systems are designed due to its simple use.The communication between chips can achieve a high rate via the I^2C bus,on which several nodes can be articulated and each of them is determined by a unique address.The structure of I^2C device driver in embedded Linux is described emphatically.A way to write a driver under the I^2C device driver in the embedded Linux operating system is given.