I2C bus (four) I2C subsystem

1. I2C Subsystem Architecture

1.1 I2C core

The intermediate hub of the I2C bus and the I2C device driver has two functions:

1) Provides the registration and cancellation methods of I2C bus driver and device driver.

2) Enable the I2C device driver to access the methods and functions used to transfer data to the I2C bus provided by the I2C controller driver

1.2 I2C bus driver ( controller drives platform bus)

For the driver implementation of the I2C controller, the controller can be external to the CPU or integrated inside the CPU (I2C uses the platform device driver model) to realize data transmission between master and slave devices.

Provides methods and functions for transferring data to the I2C bus.

1.3 I2C device driver (device driver)

The driver implementation of the I2C slave device, such as the driver of AT24C02, is generally divided into two types:

1) Implement the I2C device driver yourself

2) Use the I2C-dev universal driver provided by the system, and then implement the user layer driver by yourself.


2. I2C driver architecture diagram



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325731382&siteId=291194637
I2C