Home
last modified time | relevance | path

Searched refs:adc_pattern (Results 1 – 8 of 8) sorted by relevance

/hal_espressif-3.4.0/examples/peripherals/adc/dma_read/main/
Dadc_dma_example_main.c77 adc_digi_pattern_config_t adc_pattern[SOC_ADC_PATT_LEN_MAX] = {0}; in continuous_adc_init() local
82 adc_pattern[i].atten = ADC_ATTEN_DB_0; in continuous_adc_init()
83 adc_pattern[i].channel = ch; in continuous_adc_init()
84 adc_pattern[i].unit = unit; in continuous_adc_init()
85 adc_pattern[i].bit_width = SOC_ADC_DIGI_MAX_BITWIDTH; in continuous_adc_init()
87 ESP_LOGI(TAG, "adc_pattern[%d].atten is :%x", i, adc_pattern[i].atten); in continuous_adc_init()
88 ESP_LOGI(TAG, "adc_pattern[%d].channel is :%x", i, adc_pattern[i].channel); in continuous_adc_init()
89 ESP_LOGI(TAG, "adc_pattern[%d].unit is :%x", i, adc_pattern[i].unit); in continuous_adc_init()
91 dig_cfg.adc_pattern = adc_pattern; in continuous_adc_init()
/hal_espressif-3.4.0/examples/peripherals/adc/dma_read/
DREADME.md39 I (338) ADC DMA: adc_pattern[0].atten is :0
40 I (348) ADC DMA: adc_pattern[0].channel is :2
41 I (348) ADC DMA: adc_pattern[0].unit is :0
42 I (358) ADC DMA: adc_pattern[1].atten is :0
43 I (358) ADC DMA: adc_pattern[1].channel is :3
44 I (368) ADC DMA: adc_pattern[1].unit is :0
45 I (368) ADC DMA: adc_pattern[2].atten is :0
46 I (378) ADC DMA: adc_pattern[2].channel is :0
47 I (378) ADC DMA: adc_pattern[2].unit is :1
/hal_espressif-3.4.0/components/driver/
Dadc.c185 …s_adc_digi_ctx->hal_digi_ctrlr_cfg.adc_pattern = calloc(1, SOC_ADC_PATT_LEN_MAX * sizeof(adc_digi_… in adc_digi_initialize()
186 if (!s_adc_digi_ctx->hal_digi_ctrlr_cfg.adc_pattern) { in adc_digi_initialize()
533 free(s_adc_digi_ctx->hal_digi_ctrlr_cfg.adc_pattern); in adc_digi_deinitialize()
566 …ESP_RETURN_ON_FALSE((config->adc_pattern[i].bit_width >= SOC_ADC_DIGI_MIN_BITWIDTH && config->adc_… in adc_digi_controller_configure()
567 …ESP_RETURN_ON_FALSE(config->adc_pattern[i].unit == 0, ESP_ERR_INVALID_ARG, ADC_TAG, "Only support … in adc_digi_controller_configure()
571 …ESP_RETURN_ON_FALSE((config->adc_pattern[i].bit_width == SOC_ADC_DIGI_MAX_BITWIDTH), ESP_ERR_INVAL… in adc_digi_controller_configure()
596 …memcpy(s_adc_digi_ctx->hal_digi_ctrlr_cfg.adc_pattern, config->adc_pattern, config->pattern_num * … in adc_digi_controller_configure()
604 const adc_digi_pattern_config_t *pat = &config->adc_pattern[i]; in adc_digi_controller_configure()
908 s_adc_digi_ctx->hal_digi_ctrlr_cfg.adc_pattern[i].atten = config->adc_pattern[i].atten; in adc_digi_controller_config()
909 s_adc_digi_ctx->hal_digi_ctrlr_cfg.adc_pattern[i].channel = config->adc_pattern[i].channel; in adc_digi_controller_config()
[all …]
/hal_espressif-3.4.0/components/driver/test/
Dtest_adc.c128 adc_digi_pattern_table_t adc_pattern[10] = {0}; in continuous_adc_init() local
139 adc_pattern[i].atten = atten; in continuous_adc_init()
140 adc_pattern[i].channel = ch; in continuous_adc_init()
141 adc_pattern[i].unit = unit; in continuous_adc_init()
143 dig_cfg.adc_pattern = adc_pattern; in continuous_adc_init()
/hal_espressif-3.4.0/components/hal/
Dadc_hal.c257 adc_ll_digi_set_pattern_table(pattern_both, i, cfg->adc_pattern[i]); in adc_hal_digi_controller_config()
268 if (cfg->adc_pattern[i].unit == ADC_NUM_1) { in adc_hal_digi_controller_config()
269 adc_ll_digi_set_pattern_table(ADC_NUM_1, adc1_pattern_idx, cfg->adc_pattern[i]); 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()
/hal_espressif-3.4.0/components/driver/include/driver/
Dadc_types_deprecated.h191 …adc_digi_pattern_table_t *adc_pattern; /*!<Pointer to pattern table for digital controller. The … member
Dadc.h442 …adc_digi_pattern_config_t *adc_pattern; ///< List of configs for each ADC channel that will be … member
/hal_espressif-3.4.0/components/hal/include/hal/
Dadc_hal.h90 adc_digi_pattern_config_t *adc_pattern; //pattern item member