/hal_espressif-3.6.0/components/driver/ |
D | adc_common.c | 211 ADC_CHANNEL_CHECK(ADC_NUM_2, channel); in adc2_pad_get_io_num() 213 int io = ADC_GET_IO_NUM(ADC_NUM_2, channel); in adc2_pad_get_io_num() 261 adc_hal_rtc_output_invert(ADC_NUM_2, SOC_ADC2_DATA_INVERT_DEFAULT); in adc_rtc_chan_init() 262 adc_ll_set_sar_clk_div(ADC_NUM_2, SOC_ADC_SAR_CLK_DIV_DEFAULT(ADC_NUM_2)); in adc_rtc_chan_init() 284 ADC_CHANNEL_CHECK(ADC_NUM_2, channel); in adc_common_gpio_init() 285 gpio_num = ADC_GET_IO_NUM(ADC_NUM_2, channel); in adc_common_gpio_init() 304 adc_hal_rtc_output_invert(ADC_NUM_2, inv_en); in adc_set_data_inv() 326 adc_hal_rtc_set_output_format(ADC_NUM_2, width_bit); in adc_set_data_width() 501 ADC_CHANNEL_CHECK(ADC_NUM_2, channel); in adc2_config_channel_atten() 514 adc_hal_set_atten(ADC_NUM_2, channel, atten); in adc2_config_channel_atten() [all …]
|
D | adc_deprecated.c | 144 adc_ll_set_controller(ADC_NUM_2, ADC_LL_CTRL_DIG); in adc_digi_controller_reg_set() 146 adc_ll_digi_clear_pattern_table(ADC_NUM_2); in adc_digi_controller_reg_set() 147 adc_ll_digi_set_pattern_table_len(ADC_NUM_2, cfg->adc2_pattern_len); in adc_digi_controller_reg_set() 149 adc_ll_digi_prepare_pattern_table(ADC_NUM_2, i, cfg->adc2_pattern[i]); in adc_digi_controller_reg_set() 189 …ADC_CHECK((SOC_ADC_SUPPORT_DMA_MODE(ADC_NUM_2)), "ADC2 not support DMA for now.", ESP_ERR_INVALID_… in adc_i2s_mode_init() 190 ADC_CHANNEL_CHECK(ADC_NUM_2, channel); in adc_i2s_mode_init() 274 adc_ll_digi_intr_enable(ADC_NUM_2, intr_mask); in adc_digi_intr_enable() 312 adc_ll_digi_intr_disable(ADC_NUM_2, intr_mask); in adc_digi_intr_disable() 350 adc_ll_digi_intr_clear(ADC_NUM_2, intr_mask); in adc_digi_intr_clear() 396 ret = adc_ll_digi_get_intr_status(ADC_NUM_2); in adc_digi_intr_get_status() [all …]
|
D | adc.c | 206 ret = adc_digi_gpio_init(ADC_NUM_2, init_config->adc2_chan_mask); in adc_digi_initialize() 294 adc_hal_calibration_init(ADC_NUM_2); in adc_digi_initialize() 390 …uint32_t cal_val = adc_get_calibration_offset(ADC_NUM_2, ADC_CHANNEL_MAX, s_adc_digi_ctx->adc2_att… in adc_digi_start() 391 adc_hal_set_calibration_param(ADC_NUM_2, cal_val); in adc_digi_start() 402 adc_hal_set_controller(ADC_NUM_2, ADC_HAL_CONTINUOUS_READ_MODE); in adc_digi_start() 613 } else if (pat->unit == ADC_NUM_2) { in adc_digi_controller_configure() 642 if (gpio == ADC_GET_IO_NUM(ADC_NUM_2, i)) { in adc_vref_to_gpio() 659 adc_hal_vref_output(ADC_NUM_2, channel, true); in adc_vref_to_gpio() 663 ret = adc_digi_gpio_init(ADC_NUM_2, BIT(channel)); in adc_vref_to_gpio() 720 …ESP_RETURN_ON_FALSE(channel < SOC_ADC_CHANNEL_NUM(ADC_NUM_2), ESP_ERR_INVALID_ARG, ADC_TAG, "ADC2 … in adc2_config_channel_atten() [all …]
|
/hal_espressif-3.6.0/zephyr/esp_shared/components/driver/ |
D | adc_common.c | 220 ADC_CHANNEL_CHECK(ADC_NUM_2, channel); in adc2_pad_get_io_num() 222 int io = ADC_GET_IO_NUM(ADC_NUM_2, channel); in adc2_pad_get_io_num() 269 adc_hal_rtc_output_invert(ADC_NUM_2, SOC_ADC2_DATA_INVERT_DEFAULT); in adc_rtc_chan_init() 270 adc_ll_set_sar_clk_div(ADC_NUM_2, SOC_ADC_SAR_CLK_DIV_DEFAULT(ADC_NUM_2)); in adc_rtc_chan_init() 292 ADC_CHANNEL_CHECK(ADC_NUM_2, channel); in adc_common_gpio_init() 293 gpio_num = ADC_GET_IO_NUM(ADC_NUM_2, channel); in adc_common_gpio_init() 312 adc_hal_rtc_output_invert(ADC_NUM_2, inv_en); in adc_set_data_inv() 334 adc_hal_rtc_set_output_format(ADC_NUM_2, width_bit); in adc_set_data_width() 509 ADC_CHANNEL_CHECK(ADC_NUM_2, channel); in adc2_config_channel_atten() 522 adc_hal_set_atten(ADC_NUM_2, channel, atten); in adc2_config_channel_atten() [all …]
|
D | adc.c | 120 if (gpio == ADC_GET_IO_NUM(ADC_NUM_2, i)) { in adc_vref_to_gpio() 137 adc_hal_vref_output(ADC_NUM_2, channel, true); in adc_vref_to_gpio() 141 ret = adc_digi_gpio_init(ADC_NUM_2, BIT(channel)); in adc_vref_to_gpio() 202 if (channel >= SOC_ADC_CHANNEL_NUM(ADC_NUM_2)) { in adc2_config_channel_atten() 211 ret = adc_digi_gpio_init(ADC_NUM_2, BIT(channel)); in adc2_config_channel_atten() 213 adc_hal_calibration_init(ADC_NUM_2); in adc2_config_channel_atten() 236 uint32_t cal_val = adc_get_calibration_offset(ADC_NUM_2, channel, atten); in adc2_get_raw() 237 adc_hal_set_calibration_param(ADC_NUM_2, cal_val); in adc2_get_raw() 240 adc_hal_set_atten(ADC_NUM_2, channel, atten); in adc2_get_raw() 241 ret = adc_hal_convert(ADC_NUM_2, channel, raw_out); in adc2_get_raw()
|
/hal_espressif-3.6.0/components/driver/esp32s2/ |
D | adc.c | 44 adc_ll_digi_filter_reset(ADC_NUM_2); in adc_digi_filter_reset() 56 adc_ll_digi_filter_set_factor(ADC_NUM_2, config->mode); in adc_digi_filter_set_config() 72 adc_ll_digi_filter_get_factor(ADC_NUM_2, &config->mode); in adc_digi_filter_get_config() 84 adc_ll_digi_filter_enable(ADC_NUM_2, enable); in adc_digi_filter_enable() 103 return adc_ll_digi_filter_read_data(ADC_NUM_2); in adc_digi_filter_read_data() 119 adc_digi_monitor_config(ADC_NUM_2, config); in adc_digi_monitor_set_config() 131 adc_ll_digi_monitor_enable(ADC_NUM_2, enable); in adc_digi_monitor_enable()
|
D | adc2_init_cal.c | 21 const adc_ll_num_t adc_n = ADC_NUM_2; in adc2_init_code_calibration()
|
/hal_espressif-3.6.0/components/hal/ |
D | adc_hal.c | 118 adc_ll_digi_output_invert(ADC_NUM_2, SOC_ADC_DIGI_DATA_INVERT_DEFAULT(ADC_NUM_2)); in adc_hal_init() 135 adc_ll_digi_clear_pattern_table(ADC_NUM_2); in adc_hal_digi_deinit() 265 adc_ll_digi_clear_pattern_table(ADC_NUM_2); in adc_hal_digi_controller_config() 271 } else if (cfg->adc_pattern[i].unit == ADC_NUM_2) { in adc_hal_digi_controller_config() 272 adc_ll_digi_set_pattern_table(ADC_NUM_2, adc2_pattern_idx, cfg->adc_pattern[i]); in adc_hal_digi_controller_config() 279 adc_ll_digi_set_pattern_table_len(ADC_NUM_2, adc2_pattern_idx); in adc_hal_digi_controller_config() 318 adc_ll_onetime_sample_enable(ADC_NUM_2, false); in adc_hal_digi_init() 477 } else if (adc_n == ADC_NUM_2) { in adc_hal_single_read() 499 adc_ll_onetime_sample_enable(ADC_NUM_2, false); in adc_hal_convert() 576 adc_ll_onetime_sample_enable(ADC_NUM_2, false); in cal_setup() [all …]
|
/hal_espressif-3.6.0/components/driver/esp32c3/ |
D | adc2_init_cal.c | 21 const adc_ll_num_t adc_n = ADC_NUM_2; in adc2_init_code_calibration()
|
/hal_espressif-3.6.0/components/hal/esp32/include/hal/ |
D | adc_ll.h | 24 ADC_NUM_2 = 1, /*!< SAR ADC 2 */ enumerator 674 if (adc != ADC_NUM_2) return; in adc_ll_vref_output()
|
/hal_espressif-3.6.0/components/efuse/esp32s3/ |
D | esp_efuse_rtc_calib.c | 17 #define ADC_NUM_2 1 macro
|
/hal_espressif-3.6.0/components/hal/esp32h2/include/hal/ |
D | adc_ll.h | 31 ADC_NUM_2 = 1, /*!< SAR ADC 2 */ enumerator
|
/hal_espressif-3.6.0/components/hal/esp32c3/include/hal/ |
D | adc_ll.h | 31 ADC_NUM_2 = 1, /*!< SAR ADC 2 */ enumerator
|
/hal_espressif-3.6.0/components/hal/esp32s3/include/hal/ |
D | adc_ll.h | 32 ADC_NUM_2 = 1, /*!< SAR ADC 2 */ enumerator
|
/hal_espressif-3.6.0/components/driver/test/adc_dma_test/ |
D | test_esp32s2.c | 129 adc_ll_digi_clear_pattern_table(ADC_NUM_2); in adc_digi_reset()
|
/hal_espressif-3.6.0/components/hal/esp32s2/include/hal/ |
D | adc_ll.h | 31 ADC_NUM_2 = 1, /*!< SAR ADC 2 */ enumerator
|