Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
Public APIs for the I2C emulation drivers. More...
#include <zephyr/device.h>
#include <zephyr/drivers/emul.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/slist.h>
#include <zephyr/types.h>
Go to the source code of this file.
Data Structures | |
struct | i2c_emul |
Node in a linked list of emulators for I2C devices. More... | |
struct | i2c_emul_api |
Definition of the emulator API. More... | |
Typedefs | |
typedef int(* | i2c_emul_transfer_t) (const struct emul *target, struct i2c_msg *msgs, int num_msgs, int addr) |
Passes I2C messages to the emulator. | |
Functions | |
int | i2c_emul_register (const struct device *dev, struct i2c_emul *emul) |
Register an emulated device on the controller. | |
Public APIs for the I2C emulation drivers.