Zephyr API Documentation
3.7.0
A Scalable Open Source RTOS
|
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 device * | dev |
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. | |
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
const void* emul::backend_api |
Address of the API structure exposed by the emulator instance.
enum emul_bus_type emul::bus_type |
The bus type that the emulator is attached to.
const void* emul::cfg |
Emulator-specific configuration data.
void* emul::data |
Emulator-specific data.
const struct device* emul::dev |
handle to the device for which this provides low-level emulation
emul_init_t emul::init |
function used to initialise the emulator state