4420c5ed40
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> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.lmp90xxx | ||
Kconfig.mcux | ||
Kconfig.nrfx | ||
Kconfig.sam0 | ||
Kconfig.sam_afec | ||
Kconfig.stm32 | ||
Kconfig.xec | ||
adc_common.c | ||
adc_context.h | ||
adc_handlers.c | ||
adc_lmp90xxx.c | ||
adc_mchp_xec.c | ||
adc_mcux_adc12.c | ||
adc_mcux_adc16.c | ||
adc_nrfx_adc.c | ||
adc_nrfx_saadc.c | ||
adc_sam0.c | ||
adc_sam_afec.c | ||
adc_shell.c | ||
adc_stm32.c |