zephyr/drivers/adc
Tomasz Michalec d83647dea6 drivers: adc: add ADC emulator
ADC emulator is designed to be used in tests on native_posix board. It
supports 1-16 bit resolution range and all GAINs from enum adc_gain.
Reference voltages and number of emulated channels are set through dts.
Using special API from drivers/adc/adc_emul.h it is possible to set
constant voltage value returned by given ADC channel or set custom
function which allows to simulate complex output.
Also reference voltages can be changed in runtime using the API.

The CL also includes:
- Add adc definitions of ADC emulator in
  tests/drivers/adc/adc_api/src/test_adc.c for supporting test suites.
- Add test for ADC emulator API in tests/drivers/adc/adc_emul/

Signed-off-by: Tomasz Michalec <tm@semihalf.com>
2021-05-07 15:27:37 +02:00
..
adc_cc32xx.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
adc_common.c
adc_context.h drivers: adc: Improve the default routine providing sampling intervals 2020-10-05 14:45:37 -05:00
adc_emul.c drivers: adc: add ADC emulator 2021-05-07 15:27:37 +02:00
adc_handlers.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
adc_ite_it8xxx2.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
adc_lmp90xxx.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
adc_mchp_xec.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
adc_mcp320x.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
adc_mcux_adc12.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
adc_mcux_adc16.c adc: adc dma driver 2021-05-07 08:23:49 -05:00
adc_mcux_lpadc.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
adc_npcx.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
adc_nrfx_adc.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
adc_nrfx_saadc.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
adc_sam0.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
adc_sam_afec.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
adc_shell.c drivers: adc: add ADC emulator 2021-05-07 15:27:37 +02:00
adc_stm32.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
CMakeLists.txt drivers: adc: add ADC emulator 2021-05-07 15:27:37 +02:00
Kconfig drivers: adc: add ADC emulator 2021-05-07 15:27:37 +02:00
Kconfig.adc_emul drivers: adc: add ADC emulator 2021-05-07 15:27:37 +02:00
Kconfig.cc32xx drivers: adc: cc32xx: Add support 2021-02-19 10:43:58 -06:00
Kconfig.it8xxx2 ite: drivers/adc: add adc drivers on it8xxx2_evb platform 2021-04-13 13:01:56 -04:00
Kconfig.lmp90xxx
Kconfig.mcp320x
Kconfig.mcux adc: adc dma driver 2021-05-07 08:23:49 -05:00
Kconfig.npcx driver: npcx7: fixed typo in Kconfig.npcx files. 2020-12-07 12:11:17 -05:00
Kconfig.nrfx
Kconfig.sam0
Kconfig.sam_afec
Kconfig.stm32
Kconfig.xec