Home
last modified time | relevance | path

Searched refs:vref (Results 1 – 7 of 7) sorted by relevance

/hal_espressif-latest/components/esp_adc/esp32/
Dadc_cali_line_fitting.c120 uint32_t vref,
128 static uint32_t calculate_voltage_lut(uint32_t adc, uint32_t vref, const uint32_t *low_vref_curve, …
148 uint32_t vref; ///< Vref used by lookup table member
181 chars->vref = read_efuse_vref(); 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()
187 chars->vref = config->default_vref; 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()
258 … uint32_t lut_voltage = calculate_voltage_lut(raw, ctx->vref, ctx->low_curve, ctx->high_curve); in cali_raw_to_voltage()
383 uint32_t vref, in characterize_using_vref() argument
399 *coeff_a = (vref * atten_scales[atten]) / (ADC_12_BIT_RES); in characterize_using_vref()
[all …]
/hal_espressif-latest/components/esp_adc/deprecated/esp32/
Desp_adc_cal_legacy.c205 uint32_t vref, in characterize_using_vref() argument
221 *coeff_a = (vref * atten_scales[atten]) / (ADC_12_BIT_RES); in characterize_using_vref()
233 static uint32_t calculate_voltage_lut(uint32_t adc, uint32_t vref, const uint32_t *low_vref_curve, … in calculate_voltage_lut() argument
239 int x2dist = LUT_VREF_HIGH - vref; //(x2 - x) in calculate_voltage_lut()
240 int x1dist = vref - LUT_VREF_LOW; //(x - x1) in calculate_voltage_lut()
300 uint32_t vref = read_efuse_vref(); in esp_adc_cal_characterize() local
301 characterize_using_vref(adc_num, atten, vref, &chars->coeff_a, &chars->coeff_b); in esp_adc_cal_characterize()
313 chars->vref = (EFUSE_VREF_ENABLED && efuse_vref_present) ? read_efuse_vref() : default_vref; in esp_adc_cal_characterize()
337 …uint32_t lut_voltage = calculate_voltage_lut(adc_reading, chars->vref, chars->low_curve, chars->hi… in esp_adc_cal_raw_to_voltage()
/hal_espressif-latest/zephyr/esp32/src/esp_adc_cal/
Desp_adc_cal.c211 uint32_t vref, in characterize_using_vref() argument
227 *coeff_a = (vref * atten_scales[atten]) / (ADC_12_BIT_RES); in characterize_using_vref()
239 static uint32_t calculate_voltage_lut(uint32_t adc, uint32_t vref, const uint32_t *low_vref_curve, … in calculate_voltage_lut() argument
245 int x2dist = LUT_VREF_HIGH - vref; //(x2 - x) in calculate_voltage_lut()
246 int x1dist = vref - LUT_VREF_LOW; //(x - x1) in calculate_voltage_lut()
306 uint32_t vref = read_efuse_vref(); in esp_adc_cal_characterize() local
307 characterize_using_vref(adc_num, atten, vref, &chars->coeff_a, &chars->coeff_b); in esp_adc_cal_characterize()
319 chars->vref = (EFUSE_VREF_ENABLED && efuse_vref_present) ? read_efuse_vref() : default_vref; in esp_adc_cal_characterize()
343 …uint32_t lut_voltage = calculate_voltage_lut(adc_reading, chars->vref, chars->low_curve, chars->hi… in esp_adc_cal_raw_to_voltage()
/hal_espressif-latest/components/esp_adc/deprecated/include/
Desp_adc_cal_types_legacy.h40 uint32_t vref; /**< Vref used by lookup table*/ member
/hal_espressif-latest/zephyr/port/include/
Desp_adc_cal.h41 uint32_t vref; /**< Vref used by lookup table*/ member
/hal_espressif-latest/zephyr/esp32s2/src/esp_adc_cal/
Desp_adc_cal.c187 chars->vref = 0; in esp_adc_cal_characterize()
/hal_espressif-latest/components/esp_adc/deprecated/esp32s2/
Desp_adc_cal_legacy.c189 chars->vref = 0; in esp_adc_cal_characterize()