Lines Matching refs:attenuation
71 adc_atten_t attenuation[SOC_ADC_MAX_CHANNEL_NUM]; member
261 *unit_attenuation = data->attenuation[channel_id]; in adc_esp32_fill_digi_pattern()
262 } else if (*unit_attenuation != data->attenuation[channel_id]) { in adc_esp32_fill_digi_pattern()
268 adc_digi_pattern_config->atten = data->attenuation[channel_id]; in adc_esp32_fill_digi_pattern()
461 if (data->attenuation[channel_id] == ADC_ATTEN_DB_12) { in adc_esp32_read()
469 atten_to_gain(data->attenuation[channel_id], &cal); in adc_esp32_read()
592 if (gain_to_atten(cfg->gain, &data->attenuation[cfg->channel_id])) { in adc_esp32_channel_setup()
599 adc1_config_channel_atten(cfg->channel_id, data->attenuation[cfg->channel_id]); in adc_esp32_channel_setup()
602 adc2_config_channel_atten(cfg->channel_id, data->attenuation[cfg->channel_id]); in adc_esp32_channel_setup()
607 data->attenuation[cfg->channel_id], in adc_esp32_channel_setup()
696 for (uint8_t i = 0; i < ARRAY_SIZE(data->attenuation); i++) { in adc_esp32_init()
697 data->attenuation[i] = ADC_ATTEN_DB_0; in adc_esp32_init()