mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-29 04:15:49 +00:00
Gain values are specified with enumeration values that can't be used to reverse the effects of scaling the input signal. Provide a function that reverses the effect of the gain by scaling a measured value. Also provide a function that converts a raw measurement captured with a reference voltage and specific gain and resolution to the corresponding voltage in millivolts. Signed-off-by: Peter A. Bigot <pab@pabigot.com>
17 lines
817 B
CMake
17 lines
817 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_library()
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_ADC adc_common.c)
|
|
zephyr_library_sources_ifdef(CONFIG_ADC_SHELL adc_shell.c)
|
|
zephyr_library_sources_ifdef(CONFIG_ADC_MCUX_ADC12 adc_mcux_adc12.c)
|
|
zephyr_library_sources_ifdef(CONFIG_ADC_MCUX_ADC16 adc_mcux_adc16.c)
|
|
zephyr_library_sources_ifdef(CONFIG_ADC_SAM_AFEC adc_sam_afec.c)
|
|
zephyr_library_sources_ifdef(CONFIG_ADC_NRFX_ADC adc_nrfx_adc.c)
|
|
zephyr_library_sources_ifdef(CONFIG_ADC_NRFX_SAADC adc_nrfx_saadc.c)
|
|
zephyr_library_sources_ifdef(CONFIG_ADC_SAM0 adc_sam0.c)
|
|
zephyr_library_sources_ifdef(CONFIG_ADC_STM32 adc_stm32.c)
|
|
zephyr_library_sources_ifdef(CONFIG_ADC_XEC adc_mchp_xec.c)
|
|
zephyr_library_sources_ifdef(CONFIG_ADC_LMP90XXX adc_lmp90xxx.c)
|
|
zephyr_library_sources_ifdef(CONFIG_USERSPACE adc_handlers.c)
|