Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
i2c_emul Struct Reference

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

#include <i2c_emul.h>

Data Fields

sys_snode_t node
 
const struct emultarget
 Target emulator - REQUIRED for all emulated bus nodes of any type.
 
const struct i2c_emul_apiapi
 
struct i2c_emul_apimock_api
 A mock API that if not NULL will take precedence over the actual API.
 
uint16_t addr
 

Detailed Description

Node in a linked list of emulators for I2C devices.

Field Documentation

◆ addr

uint16_t i2c_emul::addr

◆ api

const struct i2c_emul_api* i2c_emul::api

◆ 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

◆ 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: