Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Node in a linked list of emulators for I2C devices. More...

#include <i2c_emul.h>

Data Fields

sys_snode_t node
 Node in the controller's linked list of emulators.
const struct emul * target
 Target emulator - REQUIRED for all emulated bus nodes of any type.
const struct i2c_emul_api * api
 API provided for this device.
struct i2c_emul_api * mock_api
 A mock API that if not NULL will take precedence over the actual API.
uint16_t addr
 I2C address of the emulated device.

Detailed Description

Node in a linked list of emulators for I2C devices.

Field Documentation

◆ addr

uint16_t i2c_emul::addr

I2C address of the emulated device.

◆ api

const struct i2c_emul_api* i2c_emul::api

API provided for this device.

◆ mock_api

struct i2c_emul_api* i2c_emul::mock_api

A mock API that if not NULL will take precedence over the actual API.

If set, a return value of -ENOSYS will revert back to the default api.

◆ node

sys_snode_t i2c_emul::node

Node in the controller's linked list of emulators.

◆ target

const struct emul* i2c_emul::target

Target emulator - REQUIRED for all emulated bus nodes of any type.


The documentation for this struct was generated from the following file: