zephyr/doc/hardware
Tristan Honscheid 171c1fc9d9 emul: Introduce emulator backend API and generic sensor test
This PR introduces a backend API to be implemented by sensor emulators
that creates a standardized mechanism for setting expected sensor
readings in tests. This unlocks the ability to create a generic sensor
test that can automatically set expected values in supported sensor
emulators and verify them through the existing sensor API. An
implementation of this API is provided for the AKM09918C magnetometer.

A generic sensor test is also created to exercise this implementation.
Observe that this test knows nothing about the AKM09918C; info about
supported channels and sample ranges is discovered through the backend
API. The test iterates over all devices attached to the virtual I2C and
SPI buses in the test binary's device tree, which (theoretically) covers
all sensors. Sensors whose emulator does not exist yet or does not
support the backend API are skipped.

Signed-off-by: Tristan Honscheid <honscheid@google.com>
2023-07-28 17:48:31 +02:00
..
arch dts: Move to 'zephyr,memory-attr' 2023-07-25 11:22:10 +02:00
barriers doc: Add barriers API docs 2023-05-31 06:15:32 -04:00
cache cache: Add documentation 2022-12-13 16:31:42 +00:00
emulator docs: Update emulator documentation 2023-01-27 01:01:06 +09:00
peripherals emul: Introduce emulator backend API and generic sensor test 2023-07-28 17:48:31 +02:00
pinctrl doc: pinctrl: fix link to ELC2021 slide deck 2023-06-07 04:40:47 -04:00
porting doc: board porting: Add runner requirements note 2023-01-27 16:12:39 -08:00
index.rst doc: Add barriers API docs 2023-05-31 06:15:32 -04:00