Home
last modified time | relevance | path

Searched refs:coeff_a (Results 1 – 13 of 13) sorted by relevance

/hal_espressif-latest/components/esp_adc/esp32/
Dadc_cali_line_fitting.c116 uint32_t *coeff_a,
121 uint32_t *coeff_a,
126 static uint32_t calculate_voltage_linear(uint32_t adc_reading, uint32_t coeff_a, uint32_t coeff_b);
146 uint32_t coeff_a; ///< Gradient of ADC-Voltage curve member
177 …characterize_using_two_point(config->unit_id, config->atten, high, low, &chars->coeff_a, &chars->c… in adc_cali_create_scheme_line_fitting()
182 …characterize_using_vref(config->unit_id, config->atten, chars->vref, &chars->coeff_a, &chars->coef… in adc_cali_create_scheme_line_fitting()
188 …characterize_using_vref(config->unit_id, config->atten, chars->vref, &chars->coeff_a, &chars->coef… in adc_cali_create_scheme_line_fitting()
261 uint32_t linear_voltage = calculate_voltage_linear(raw, ctx->coeff_a, ctx->coeff_b); in cali_raw_to_voltage()
267 *voltage = calculate_voltage_linear(raw, ctx->coeff_a, ctx->coeff_b); in cali_raw_to_voltage()
359 uint32_t *coeff_a, in characterize_using_two_point() argument
[all …]
/hal_espressif-latest/components/esp_adc/deprecated/esp32/
Desp_adc_cal_legacy.c181 uint32_t *coeff_a, in characterize_using_two_point() argument
198 …*coeff_a = (delta_v * atten_scales[atten] + (delta_x / 2)) / delta_x; //+(delta_x/2) for rounding in characterize_using_two_point()
206 uint32_t *coeff_a, in characterize_using_vref() argument
221 *coeff_a = (vref * atten_scales[atten]) / (ADC_12_BIT_RES); in characterize_using_vref()
226 static uint32_t calculate_voltage_linear(uint32_t adc_reading, uint32_t coeff_a, uint32_t coeff_b) in calculate_voltage_linear() argument
229 return (((coeff_a * adc_reading) + LIN_COEFF_A_ROUND) / LIN_COEFF_A_SCALE) + coeff_b; in calculate_voltage_linear()
296 characterize_using_two_point(adc_num, atten, high, low, &chars->coeff_a, &chars->coeff_b); in esp_adc_cal_characterize()
301 characterize_using_vref(adc_num, atten, vref, &chars->coeff_a, &chars->coeff_b); in esp_adc_cal_characterize()
305 characterize_using_vref(adc_num, atten, default_vref, &chars->coeff_a, &chars->coeff_b); in esp_adc_cal_characterize()
340 … uint32_t linear_voltage = calculate_voltage_linear(adc_reading, chars->coeff_a, chars->coeff_b); in esp_adc_cal_raw_to_voltage()
[all …]
/hal_espressif-latest/zephyr/esp32/src/esp_adc_cal/
Desp_adc_cal.c187 uint32_t *coeff_a, in characterize_using_two_point() argument
204 …*coeff_a = (delta_v * atten_scales[atten] + (delta_x / 2)) / delta_x; //+(delta_x/2) for rounding in characterize_using_two_point()
212 uint32_t *coeff_a, in characterize_using_vref() argument
227 *coeff_a = (vref * atten_scales[atten]) / (ADC_12_BIT_RES); in characterize_using_vref()
232 static uint32_t calculate_voltage_linear(uint32_t adc_reading, uint32_t coeff_a, uint32_t coeff_b) in calculate_voltage_linear() argument
235 return (((coeff_a * adc_reading) + LIN_COEFF_A_ROUND) / LIN_COEFF_A_SCALE) + coeff_b; in calculate_voltage_linear()
302 characterize_using_two_point(adc_num, atten, high, low, &chars->coeff_a, &chars->coeff_b); in esp_adc_cal_characterize()
307 characterize_using_vref(adc_num, atten, vref, &chars->coeff_a, &chars->coeff_b); in esp_adc_cal_characterize()
311 characterize_using_vref(adc_num, atten, default_vref, &chars->coeff_a, &chars->coeff_b); in esp_adc_cal_characterize()
346 … uint32_t linear_voltage = calculate_voltage_linear(adc_reading, chars->coeff_a, chars->coeff_b); in esp_adc_cal_raw_to_voltage()
[all …]
/hal_espressif-latest/components/esp_adc/esp32s2/
Dadc_cali_line_fitting.c57 uint32_t coeff_a; ///< Gradient of ADC-Voltage curve member
77 uint32_t *coeff_a,
117 … done: A:%"PRId32" B:%"PRId32"\n", config->unit_id, config->atten, chars->coeff_a, chars->coeff_b); in adc_cali_create_scheme_line_fitting()
152 *voltage = raw * ctx->coeff_a / coeff_a_scaling + ctx->coeff_b / coeff_b_scaling; in cali_raw_to_voltage()
219 uint32_t *coeff_a, in characterize_using_two_point() argument
226 *coeff_a = coeff_a_scaling * (v_high[atten] - v_low) / (high - low); in characterize_using_two_point()
242 &(ctx->coeff_a), &(ctx->coeff_b)); in calculate_characterization_coefficients()
246 ctx->coeff_a = coeff_a_scaling * parsed_data->efuse_data.ver2.adc_calib_high_voltage / in calculate_characterization_coefficients()
/hal_espressif-latest/zephyr/esp32s2/src/esp_adc_cal/
Desp_adc_cal.c109 uint32_t *coeff_a, in characterize_using_two_point() argument
116 *coeff_a = coeff_a_scaling * (v_high[atten] - v_low) / (high - low); in characterize_using_two_point()
132 &(chars->coeff_a), &(chars->coeff_b)); in calculate_characterization_coefficients()
136 chars->coeff_a = coeff_a_scaling * parsed_data->efuse_data.ver2.adc_calib_high_voltage / in calculate_characterization_coefficients()
179 …d (atten leven %d) calibration done: A:%d B:%d\n", adc_num, atten, chars->coeff_a, chars->coeff_b); in esp_adc_cal_characterize()
198 return adc_reading * chars->coeff_a / coeff_a_scaling + chars->coeff_b / coeff_b_scaling; in esp_adc_cal_raw_to_voltage()
/hal_espressif-latest/components/esp_adc/deprecated/esp32s2/
Desp_adc_cal_legacy.c111 uint32_t *coeff_a, in characterize_using_two_point() argument
118 *coeff_a = coeff_a_scaling * (v_high[atten] - v_low) / (high - low); in characterize_using_two_point()
134 &(chars->coeff_a), &(chars->coeff_b)); in calculate_characterization_coefficients()
138 chars->coeff_a = coeff_a_scaling * parsed_data->efuse_data.ver2.adc_calib_high_voltage / in calculate_characterization_coefficients()
181 … %d) calibration done: A:%"PRId32" B:%"PRId32"\n", adc_num, atten, chars->coeff_a, chars->coeff_b); in esp_adc_cal_characterize()
200 return adc_reading * chars->coeff_a / coeff_a_scaling + chars->coeff_b / coeff_b_scaling; in esp_adc_cal_raw_to_voltage()
/hal_espressif-latest/components/esp_adc/esp32c2/
Dadc_cali_line_fitting.c42 uint32_t coeff_a; ///< Gradient of ADC-Voltage characteristics member
82 chars->coeff_a = coeff_a_scaling * voltage_mv / digi_val; in adc_cali_create_scheme_line_fitting()
84 …ge = %"PRId32", Digi out = %"PRId32", Coef_a = %"PRId32"\n", voltage_mv, digi_val, chars->coeff_a); in adc_cali_create_scheme_line_fitting()
117 *voltage = raw * ctx->coeff_a / coeff_a_scaling + ctx->coeff_b; in cali_raw_to_voltage()
/hal_espressif-latest/components/esp_adc/deprecated/esp32c3/
Desp_adc_cal_legacy.c106 …chars->coeff_a = coeff_a_scaling * parsed_data->efuse_data.ver1.voltage / parsed_data->efuse_data.… in calculate_characterization_coefficients()
150 …even %d) calibration done: A:%"PRId32" B:%"PRId32, adc_num, atten, chars->coeff_a, chars->coeff_b); in esp_adc_cal_characterize()
166 uint64_t v_cali_1 = (uint64_t)adc_reading * chars->coeff_a / coeff_a_scaling; in esp_adc_cal_raw_to_voltage()
/hal_espressif-latest/components/esp_adc/deprecated/esp32s3/
Desp_adc_cal_legacy.c122 …chars->coeff_a = coeff_a_scaling * parsed_data->ref_data.ver1.voltage / parsed_data->ref_data.ver1… in calculate_characterization_coefficients()
124 …%"PRId32"\n", parsed_data->ref_data.ver1.voltage, parsed_data->ref_data.ver1.digi, chars->coeff_a); in calculate_characterization_coefficients()
170 v_cali_1 = (uint64_t)adc_reading * chars->coeff_a; in esp_adc_cal_raw_to_voltage()
/hal_espressif-latest/components/esp_adc/
Dadc_cali_curve_fitting.c47 uint32_t coeff_a; ///< Gradient of ADC-Voltage curve member
142 …uint64_t v_cali_1 = (uint64_t)raw * ctx->chars_first_step.coeff_a / coeff_a_scaling + ctx->chars_f… in cali_raw_to_voltage()
176 …ctx->chars_first_step.coeff_a = coeff_a_scaling * parsed_data->ref_data.ver1.voltage / parsed_data… in calc_first_step_coefficients()
178 …arsed_data->ref_data.ver1.voltage, parsed_data->ref_data.ver1.digi, ctx->chars_first_step.coeff_a); in calc_first_step_coefficients()
/hal_espressif-latest/zephyr/esp32c3/src/esp_adc_cal/
Desp_adc_cal.c105 …chars->coeff_a = coeff_a_scaling * parsed_data->efuse_data.ver1.voltage / parsed_data->efuse_data.… in calculate_characterization_coefficients()
175 uint64_t v_cali_1 = adc_reading * chars->coeff_a / coeff_a_scaling; in esp_adc_cal_raw_to_voltage()
/hal_espressif-latest/components/esp_adc/deprecated/include/
Desp_adc_cal_types_legacy.h38 uint32_t coeff_a; /**< Gradient of ADC-Voltage curve*/ member
/hal_espressif-latest/zephyr/port/include/
Desp_adc_cal.h39 uint32_t coeff_a; /**< Gradient of ADC-Voltage curve*/ member