Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
emul Struct Reference

An emulator instance - represents the target emulated device/peripheral that is interacted with through an emulated bus. More...

#include <emul.h>

Data Structures

union  bus
 Pointer to the emulated bus node. More...
 

Data Fields

emul_init_t init
 function used to initialise the emulator state
 
const struct devicedev
 handle to the device for which this provides low-level emulation
 
const void * cfg
 Emulator-specific configuration data.
 
void * data
 Emulator-specific data.
 
enum emul_bus_type bus_type
 The bus type that the emulator is attached to.
 
union emul::bus bus
 
const void * backend_api
 Address of the API structure exposed by the emulator instance.
 

Detailed Description

An emulator instance - represents the target emulated device/peripheral that is interacted with through an emulated bus.

Instances of emulated bus nodes (e.g. i2c_emul) and emulators (i.e. struct emul) are exactly 1..1

Field Documentation

◆ backend_api

const void* emul::backend_api

Address of the API structure exposed by the emulator instance.

◆ bus

◆ bus_type

enum emul_bus_type emul::bus_type

The bus type that the emulator is attached to.

◆ cfg

const void* emul::cfg

Emulator-specific configuration data.

◆ data

void* emul::data

Emulator-specific data.

◆ dev

const struct device* emul::dev

handle to the device for which this provides low-level emulation

◆ init

emul_init_t emul::init

function used to initialise the emulator state


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