zephyr/subsys/emul
Yuval Peress 03bcf8276a emul: Support getting an emulator by name
Issue #38271

Implement a getter for emulators similar to device_get_binding. This
function can be used to get the emulator instance during tests to call
emulator specific functions.

Example: The current BMI160 emulator pre-defines a finite set of data
samples that will be returned. If a test was to be written for logic
that uses that data, then the emulator would become completely useless
without the ability for the test to define what data should be returned.

This will also help in exercising error conditions in tests.

Signed-off-by: Yuval Peress <peress@chromium.org>
2021-09-28 20:12:37 -04:00
..
espi emul: espi: Add ACPI Shared Memory functions 2021-08-26 13:14:05 -04:00
i2c include: Move emul.h to drivers/emul.h 2021-04-22 12:51:01 -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 include: Move emul.h to drivers/emul.h 2021-04-22 12:51:01 -04:00
Kconfig emul: Add an emulator for the eSPI Host 2021-01-20 17:49:19 -05:00