Searched refs:LUT_LOW_THRESH (Results 1 – 3 of 3) sorted by relevance
71 #define LUT_LOW_THRESH 2880 macro72 #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()
73 #define LUT_LOW_THRESH 2880 macro74 #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()
74 #define LUT_LOW_THRESH 2880 macro75 #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()