zephyr/doc/hardware/peripherals
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
..
audio doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
canbus doc: isotp introduce CF abbreviation 2023-07-16 07:32:24 -04:00
display doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
edac doc: edac: Update EDAC / IBECC documentation 2023-03-30 17:33:41 -04:00
1-Wire_bus_topology.drawio.svg
adc.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
auxdisplay.rst doc: peripherals: fix bad link to Display API 2023-06-07 04:40:47 -04:00
bbram.rst bbram: Add documentation 2023-05-05 10:57:01 -05:00
bc12.rst docs: bc12: Update for charging mode operation 2023-05-08 09:57:56 +02:00
clock_control.rst
coredump.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
counter.rst
dac.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
dma.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
eeprom.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
entropy.rst
espi.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
flash.rst
fuel_gauge.rst emul: Add SBS Gauge emulator backend_api 2023-07-07 09:22:20 +02:00
gna.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
gpio.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
hwinfo.rst
i2c_eeprom_target.rst
i2c.rst doc: i2c: fixed non-working link to I2C spec 2023-06-07 04:40:47 -04:00
i3c.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
index.rst doc/pcie: Add basic entry for PCIe doxygen documentation 2023-06-17 07:58:41 -04:00
ipm.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
kscan.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
led.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
mbox.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
mdio.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
mipi_dsi.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
pcie.rst doc/pcie: Add basic entry for PCIe doxygen documentation 2023-06-17 07:58:41 -04:00
peci.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
ps2.rst
pwm.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
regulators.rst doc: regulators: improve introduction 2023-04-12 16:43:23 +02:00
reset.rst
retained_mem.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
rtc.rst doc/hardware/peripherals/rtc.rst: Refine docs 2023-04-20 11:43:35 +02:00
sdhc.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
sensor.rst emul: Introduce emulator backend API and generic sensor test 2023-07-28 17:48:31 +02:00
smbus.rst doc: smbus: Correct SMBus documentation 2023-06-01 18:04:58 -04:00
spi.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
tcpc.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
uart.rst serial: allow callback setting to be exclusive 2023-07-18 11:13:02 +00:00
usbc_vbus.rst
video.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
w1.rst doc: peripherals: unify title strings 2023-03-29 09:48:13 +00:00
watchdog.rst