This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 5df3f5d4f7289142979215232d8f3d299628c7bb Author: zhangshoukui <[email protected]> AuthorDate: Wed Aug 7 10:16:06 2024 +0800 Added the documentation about the iic slave driver Signed-off-by: zhangshoukui <[email protected]> --- Documentation/components/drivers/special/i2c.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/components/drivers/special/i2c.rst b/Documentation/components/drivers/special/i2c.rst index fa722cbf2b..08d1464f31 100644 --- a/Documentation/components/drivers/special/i2c.rst +++ b/Documentation/components/drivers/special/i2c.rst @@ -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.
