Lines Matching +full:gain +full:- +full:offset
1 /* SPDX-License-Identifier: GPL-2.0 */
14 /* Max ADC code represents full-scale range of 1.8V */
32 /* Default decimation - 1024 for rev2, 840 for pmic5 */
45 #define PMI_CHG_SCALE_1 -138890
55 #define DIE_TEMP_ADC7_SCALE_1 -60000
61 * struct vadc_map_pt - Map the graph representation for ADC channel
82 * struct vadc_linear_graph - Represent ADC characteristics.
83 * @dy: numerator slope to calculate the gain.
84 * @dx: denominator slope to calculate the gain.
87 * Each ADC device has different offset and gain parameters which are
97 * struct vadc_prescale_ratio - Represent scaling ratio for ADC input.
98 * @num: the inverse numerator of the gain applied to the input channel.
99 * @den: the inverse denominator of the gain applied to the input channel.
107 * enum vadc_scale_fn_type - Scaling function to convert ADC code to
116 * voltage (uV) with hardware applied offset/slope values to adc code.
118 * lookup table. The hardware applies offset/slope to adc code.
120 * 100k pullup. The hardware applies offset/slope to adc code.
122 * lookup table for PMIC7. The hardware applies offset/slope to adc code.
124 * The hardware applies offset/slope to adc code.
126 * The hardware applies offset/slope to adc code. This is for PMIC7.