/hal_espressif-2.7.6/components/driver/esp32s2/ |
D | adc.c | 136 esp_err_t adc_arbiter_config(adc_unit_t adc_unit, adc_arbiter_t *config) in adc_arbiter_config() argument 138 if (adc_unit & ADC_UNIT_1) { in adc_arbiter_config() 163 esp_err_t adc_set_controller(adc_unit_t adc_unit, adc_ll_controller_t ctrl) in adc_set_controller() argument 168 if (adc_unit & ADC_UNIT_1) { in adc_set_controller() 171 if (adc_unit & ADC_UNIT_2) { in adc_set_controller() 279 config->adc_unit = ADC_UNIT_1; in adc_digi_filter_get_config() 283 config->adc_unit = ADC_UNIT_2; in adc_digi_filter_get_config() 354 esp_err_t adc_digi_intr_enable(adc_unit_t adc_unit, adc_digi_intr_t intr_mask) in adc_digi_intr_enable() argument 357 if (adc_unit & ADC_UNIT_1) { in adc_digi_intr_enable() 360 if (adc_unit & ADC_UNIT_2) { in adc_digi_intr_enable() [all …]
|
/hal_espressif-2.7.6/components/driver/esp32s2/include/driver/ |
D | adc.h | 42 esp_err_t adc_arbiter_config(adc_unit_t adc_unit, adc_arbiter_t *config); 160 esp_err_t adc_digi_intr_enable(adc_unit_t adc_unit, adc_digi_intr_t intr_mask); 171 esp_err_t adc_digi_intr_disable(adc_unit_t adc_unit, adc_digi_intr_t intr_mask); 182 esp_err_t adc_digi_intr_clear(adc_unit_t adc_unit, adc_digi_intr_t intr_mask); 191 uint32_t adc_digi_intr_get_status(adc_unit_t adc_unit); 250 esp_err_t adc_i2s_mode_init(adc_unit_t adc_unit, adc_channel_t channel) __attribute__((deprecated));
|
/hal_espressif-2.7.6/components/driver/test/include/test/ |
D | test_common_adc.h | 30 void adc_fake_tie_middle(adc_unit_t adc_unit, adc_channel_t channel); 31 void adc_fake_tie_high(adc_unit_t adc_unit, adc_channel_t channel); 32 void adc_fake_tie_low(adc_unit_t adc_unit, adc_channel_t channel); 33 void adc_io_normal(adc_unit_t adc_unit, adc_channel_t channel);
|
/hal_espressif-2.7.6/components/driver/esp32s3/include/driver/ |
D | adc.h | 42 esp_err_t adc_arbiter_config(adc_unit_t adc_unit, adc_arbiter_t *config); 183 esp_err_t adc_digi_intr_enable(adc_unit_t adc_unit, adc_digi_intr_t intr_mask); 194 esp_err_t adc_digi_intr_disable(adc_unit_t adc_unit, adc_digi_intr_t intr_mask); 205 esp_err_t adc_digi_intr_clear(adc_unit_t adc_unit, adc_digi_intr_t intr_mask); 214 uint32_t adc_digi_intr_get_status(adc_unit_t adc_unit);
|
/hal_espressif-2.7.6/components/driver/esp32/ |
D | adc.c | 85 esp_err_t adc_i2s_mode_init(adc_unit_t adc_unit, adc_channel_t channel) in adc_i2s_mode_init() argument 87 if (adc_unit & ADC_UNIT_1) { in adc_i2s_mode_init() 91 if (adc_unit & ADC_UNIT_2) { in adc_i2s_mode_init() 102 .conv_mode = (adc_digi_convert_mode_t)adc_unit, in adc_i2s_mode_init() 105 if (adc_unit & ADC_UNIT_1) { in adc_i2s_mode_init() 112 if (adc_unit & ADC_UNIT_2) { in adc_i2s_mode_init() 119 adc_gpio_init(adc_unit, channel); in adc_i2s_mode_init()
|
/hal_espressif-2.7.6/components/driver/ |
D | adc_common.c | 246 static void adc_rtc_chan_init(adc_unit_t adc_unit) in adc_rtc_chan_init() argument 248 if (adc_unit & ADC_UNIT_1) { in adc_rtc_chan_init() 259 if (adc_unit & ADC_UNIT_2) { in adc_rtc_chan_init() 266 esp_err_t adc_gpio_init(adc_unit_t adc_unit, adc_channel_t channel) in adc_gpio_init() argument 270 if (adc_unit & ADC_UNIT_1) { in adc_gpio_init() 278 if (adc_unit & ADC_UNIT_2) { in adc_gpio_init() 290 esp_err_t adc_set_data_inv(adc_unit_t adc_unit, bool inv_en) in adc_set_data_inv() argument 292 if (adc_unit & ADC_UNIT_1) { in adc_set_data_inv() 297 if (adc_unit & ADC_UNIT_2) { in adc_set_data_inv() 306 esp_err_t adc_set_data_width(adc_unit_t adc_unit, adc_bits_width_t bits) in adc_set_data_width() argument [all …]
|
D | i2s.c | 738 esp_err_t i2s_set_adc_mode(adc_unit_t adc_unit, adc1_channel_t adc_channel) in i2s_set_adc_mode() argument 740 …I2S_CHECK((adc_unit < ADC_UNIT_2), "i2s ADC unit error, only support ADC1 for now", ESP_ERR_INVALI… in i2s_set_adc_mode() 742 _i2s_adc_unit = adc_unit; in i2s_set_adc_mode() 744 return adc_i2s_mode_init(adc_unit, adc_channel); in i2s_set_adc_mode()
|
/hal_espressif-2.7.6/components/driver/test/ |
D | test_adc_common.c | 66 void adc_fake_tie_middle(adc_unit_t adc_unit, adc_channel_t channel) in adc_fake_tie_middle() argument 69 if (adc_unit & ADC_UNIT_1) { in adc_fake_tie_middle() 77 if (adc_unit & ADC_UNIT_2) { in adc_fake_tie_middle() 88 void adc_fake_tie_high(adc_unit_t adc_unit, adc_channel_t channel) in adc_fake_tie_high() argument 91 if (adc_unit & ADC_UNIT_1) { in adc_fake_tie_high() 100 if (adc_unit & ADC_UNIT_2) { in adc_fake_tie_high() 112 void adc_fake_tie_low(adc_unit_t adc_unit, adc_channel_t channel) in adc_fake_tie_low() argument 115 if (adc_unit & ADC_UNIT_1) { in adc_fake_tie_low() 124 if (adc_unit & ADC_UNIT_2) { in adc_fake_tie_low() 136 void adc_io_normal(adc_unit_t adc_unit, adc_channel_t channel) in adc_io_normal() argument [all …]
|
/hal_espressif-2.7.6/components/driver/include/driver/ |
D | adc_common.h | 187 esp_err_t adc_gpio_init(adc_unit_t adc_unit, adc_channel_t channel); 296 esp_err_t adc_set_data_inv(adc_unit_t adc_unit, bool inv_en); 316 esp_err_t adc_set_data_width(adc_unit_t adc_unit, adc_bits_width_t width_bit); 437 esp_err_t adc_vref_to_gpio(adc_unit_t adc_unit, gpio_num_t gpio);
|
D | i2s.h | 309 esp_err_t i2s_set_adc_mode(adc_unit_t adc_unit, adc1_channel_t adc_channel);
|
/hal_espressif-2.7.6/components/driver/esp32c3/ |
D | adc.c | 109 static int8_t adc_digi_get_io_num(uint8_t adc_unit, uint8_t adc_channel) in adc_digi_get_io_num() argument 111 return adc_channel_io_map[adc_unit][adc_channel]; in adc_digi_get_io_num() 114 static esp_err_t adc_digi_gpio_init(adc_unit_t adc_unit, uint16_t channel_mask) in adc_digi_gpio_init() argument 123 io = adc_digi_get_io_num(adc_unit, n); in adc_digi_gpio_init() 439 esp_err_t adc_vref_to_gpio(adc_unit_t adc_unit, gpio_num_t gpio) in adc_vref_to_gpio() argument 443 if (adc_unit == ADC_UNIT_2) { in adc_vref_to_gpio() 456 if (adc_unit & ADC_UNIT_1) { in adc_vref_to_gpio() 460 } else if (adc_unit & ADC_UNIT_2) { in adc_vref_to_gpio()
|
/hal_espressif-2.7.6/components/hal/esp32c3/include/hal/ |
D | adc_ll.h | 318 APB_SARADC.filter_ctrl0.filter_channel0 = (filter->adc_unit << 3) | (filter->channel & 0x7); in adc_ll_digi_filter_set_factor() 321 APB_SARADC.filter_ctrl0.filter_channel1 = (filter->adc_unit << 3) | (filter->channel & 0x7); in adc_ll_digi_filter_set_factor() 335 filter->adc_unit = (APB_SARADC.filter_ctrl0.filter_channel0 >> 3) & 0x1; in adc_ll_digi_filter_get_factor() 339 filter->adc_unit = (APB_SARADC.filter_ctrl0.filter_channel1 >> 3) & 0x1; in adc_ll_digi_filter_get_factor() 374 APB_SARADC.thres0_ctrl.thres0_channel = (cfg->adc_unit << 3) | (cfg->channel & 0x7); in adc_ll_digi_monitor_set_mode() 378 APB_SARADC.thres1_ctrl.thres1_channel = (cfg->adc_unit << 3) | (cfg->channel & 0x7); in adc_ll_digi_monitor_set_mode()
|
/hal_espressif-2.7.6/components/driver/esp32/include/driver/ |
D | adc.h | 43 esp_err_t adc_i2s_mode_init(adc_unit_t adc_unit, adc_channel_t channel);
|
/hal_espressif-2.7.6/components/hal/include/hal/ |
D | adc_types.h | 384 adc_unit_t adc_unit; /*!<Set adc unit number for filter. member 428 adc_unit_t adc_unit; /*!<Set adc unit number for monitor. member
|