Home
last modified time | relevance | path

Searched refs:LUT_LOW_THRESH (Results 1 – 3 of 3) sorted by relevance

/hal_espressif-latest/components/esp_adc/deprecated/esp32/
Desp_adc_cal_legacy.c71 #define LUT_LOW_THRESH 2880 macro
72 #define LUT_HIGH_THRESH (LUT_LOW_THRESH + LUT_ADC_STEP_SIZE)
236 uint32_t i = (adc - LUT_LOW_THRESH) / LUT_ADC_STEP_SIZE; in calculate_voltage_lut()
241 int y2dist = ((i + 1) * LUT_ADC_STEP_SIZE) + LUT_LOW_THRESH - adc; //(y2 - y) in calculate_voltage_lut()
242 int y1dist = adc - ((i * LUT_ADC_STEP_SIZE) + LUT_LOW_THRESH); //(y - y1) in calculate_voltage_lut()
335 …if (LUT_ENABLED && (chars->atten == ADC_ATTEN_DB_12) && (adc_reading >= LUT_LOW_THRESH)) { //Chec… in esp_adc_cal_raw_to_voltage()
341 …rpolate_two_points(linear_voltage, lut_voltage, LUT_ADC_STEP_SIZE, (adc_reading - LUT_LOW_THRESH)); in esp_adc_cal_raw_to_voltage()
/hal_espressif-latest/zephyr/esp32/src/esp_adc_cal/
Desp_adc_cal.c73 #define LUT_LOW_THRESH 2880 macro
74 #define LUT_HIGH_THRESH (LUT_LOW_THRESH + LUT_ADC_STEP_SIZE)
242 uint32_t i = (adc - LUT_LOW_THRESH) / LUT_ADC_STEP_SIZE; in calculate_voltage_lut()
247 int y2dist = ((i + 1) * LUT_ADC_STEP_SIZE) + LUT_LOW_THRESH - adc; //(y2 - y) in calculate_voltage_lut()
248 int y1dist = adc - ((i * LUT_ADC_STEP_SIZE) + LUT_LOW_THRESH); //(y - y1) in calculate_voltage_lut()
341 …if (LUT_ENABLED && (chars->atten == ADC_ATTEN_DB_12) && (adc_reading >= LUT_LOW_THRESH)) { //Chec… in esp_adc_cal_raw_to_voltage()
347 …rpolate_two_points(linear_voltage, lut_voltage, LUT_ADC_STEP_SIZE, (adc_reading - LUT_LOW_THRESH)); in esp_adc_cal_raw_to_voltage()
/hal_espressif-latest/components/esp_adc/esp32/
Dadc_cali_line_fitting.c74 #define LUT_LOW_THRESH 2880 macro
75 #define LUT_HIGH_THRESH (LUT_LOW_THRESH + LUT_ADC_STEP_SIZE)
256 …if (LUT_ENABLED && (ctx->atten == ADC_ATTEN_DB_12) && (raw >= LUT_LOW_THRESH)) { //Check if in no… in cali_raw_to_voltage()
262 …e = interpolate_two_points(linear_voltage, lut_voltage, LUT_ADC_STEP_SIZE, (raw - LUT_LOW_THRESH)); in cali_raw_to_voltage()
415 uint32_t i = (adc - LUT_LOW_THRESH) / LUT_ADC_STEP_SIZE; in calculate_voltage_lut()
420 int y2dist = ((i + 1) * LUT_ADC_STEP_SIZE) + LUT_LOW_THRESH - adc; //(y2 - y) in calculate_voltage_lut()
421 int y1dist = adc - ((i * LUT_ADC_STEP_SIZE) + LUT_LOW_THRESH); //(y - y1) in calculate_voltage_lut()