Skip to content

Commit

Permalink
Added the documentation about the iic slave driver
Browse files Browse the repository at this point in the history
Signed-off-by: zhangshoukui <zhangshoukui@xiaomi.com>
  • Loading branch information
Zhangshoukui authored and acassis committed Aug 7, 2024
1 parent 75fa94a commit 5df3f5d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Documentation/components/drivers/special/i2c.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,11 @@ I2C Device Drivers

- **Examples**: ``arch/z80/src/ez80/ez80_i2c.c``,
``arch/z80/src/z8/z8_i2c.c``, etc.

- ``struct i2c_slaveops_s``. Each I2C slave device driver must implement
an instance of ``struct i2c_slaveops_s``. That structure defines a call
table with the following methods:

- **Binding I2C Slave Drivers**. I2C slave drivers are normally directly
accessed by user code, We can read and write to device nodes using posix
interfaces.

0 comments on commit 5df3f5d

Please sign in to comment.