zephyr/subsys/emul
Yuval Peress 2629fc566d emul: Add data and parent pointers to emulators
Emulators are difficult to work with, they generally require maintaining
some state in a mutable data struct. Since the emulator struct doesn't
support a data field like devices do, the pattern seems to be to add it
to the configuration. This makes following the logic of where things are
difficult.

1. Add a `struct emul *parent` structure to the espi/i2c/spi emulator
   structs to make it easier when casting up.
2. Add a `void *data` field to `struct emul` to hold the data for
   emulators.

Signed-off-by: Yuval Peress <peress@chromium.org>
2021-10-05 19:21:39 -04:00
..
espi emul: Add data and parent pointers to emulators 2021-10-05 19:21:39 -04:00
i2c emul: Add data and parent pointers to emulators 2021-10-05 19:21:39 -04:00
spi emul: spi: bmi160: Move to top-level directory 2020-10-27 16:41:30 +01:00
CMakeLists.txt emul: Add an emulator for the eSPI Host 2021-01-20 17:49:19 -05:00
emul.c emul: Support getting an emulator by name 2021-09-28 20:12:37 -04:00
emul_bmi160.c emul: Add data and parent pointers to emulators 2021-10-05 19:21:39 -04:00
Kconfig emul: Add an emulator for the eSPI Host 2021-01-20 17:49:19 -05:00