Lines Matching refs:chars
138 static bool subtest_adc_dac(int mV_ref, esp_adc_cal_characteristics_t * chars) in subtest_adc_dac() argument
144 uint32_t voltage = esp_adc_cal_raw_to_voltage(raw, chars); in subtest_adc_dac()
161 esp_adc_cal_characteristics_t chars; variable
165 esp_adc_cal_characterize(ADC_UNIT_2, ADC_ATTEN_DB_0, ADC_WIDTH_BIT_13, 0, &chars);
166 printf("a %d, b %d\n", chars.coeff_a, chars.coeff_b);
167 subtest_adc_dac(750, &chars);
171 esp_adc_cal_characterize(ADC_UNIT_2, ADC_ATTEN_DB_2_5, ADC_WIDTH_BIT_13, 0, &chars);
172 printf("a %d, b %d\n", chars.coeff_a, chars.coeff_b);
173 subtest_adc_dac(1100, &chars);
177 esp_adc_cal_characterize(ADC_UNIT_2, ADC_ATTEN_DB_6, ADC_WIDTH_BIT_13, 0, &chars);
178 printf("a %d, b %d\n", chars.coeff_a, chars.coeff_b);
179 subtest_adc_dac(800, &chars);
180 subtest_adc_dac(1250, &chars);
184 esp_adc_cal_characterize(ADC_UNIT_2, ADC_ATTEN_DB_11, ADC_WIDTH_BIT_13, 0, &chars);
185 printf("a %d, b %d\n", chars.coeff_a, chars.coeff_b);
186 subtest_adc_dac(1500, &chars);
187 subtest_adc_dac(2500, &chars);