This is the documentation for the latest (master) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.
CONFIG_I2C_EMUL

I2C emulator

Type: bool

Help

Enable the I2C emulator driver. This is a fake driver in that it does not talk to real hardware. Instead it talks to emulation drivers that pretend to be devices on the emulated I2C bus. It is used for testing drivers for I2C devices.

Direct dependencies

I2C

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At drivers/i2c/Kconfig.i2c_emul:4

Included via Kconfig:8Kconfig.zephyr:32drivers/Kconfig:40drivers/i2c/Kconfig:34

Menu path: (Top) → Device Drivers → I2C Drivers

config I2C_EMUL
    bool "I2C emulator"
    depends on I2C
    help
      Enable the I2C emulator driver. This is a fake driver in that it
      does not talk to real hardware. Instead it talks to emulation
      drivers that pretend to be devices on the emulated I2C bus. It is
      used for testing drivers for I2C devices.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)