需要高速ADC采样,参考example中的持续采样代码设定了ADC,调用adc_digi_controller_configure(&digi_cfg)...
表24.3.2.1函数adc_digi_controller_configure()形参描述 返回值:ESP_OK表示配置成功。其他表示配置...
ESP_ERROR_CHECK(adc_digi_controller_configure(&dig_cfg)); } #if !CONFIG_IDF_TARGET_ESP32 static bool check_valid_data(const adc_digi_output_data_t *data) { const unsigned int unit = data->type2.unit; if (unit > 2) return false; if (data->type2.channel >= SOC_ADC_CHANNEL_NUM(...
今天在使用ESP32-S3的ADC时,需要高速ADC采样,参考example中的持续采样代码设定了ADC,调用adc_digi_controller_configure(&digi_cfg)提示ADC bitwidth not supported。 调用部分代码如下: [Codebox] void ESP32ADC::setHighSpeedADC() { // adc_digi初始化 // controller初始化 adc_digi_init_config_t adc_dma...
完成上述结构体参数配置之后,可以将结构传递给 adc_digi_controller_configure () 函数,用以实例化ADC...
https://docs.espressif.com/projects/esp ... iver-usage I am using one channel on ADC1 as the input. When calling "adc_digi_controller_configure", I use these options: Code:Select all constadc_digi_configuration_tcontroller_config = { .conv_limit_en =true, .conv_limit_num = SAMPLE_CO...
ESP_ERROR_CHECK(adc_digi_controller_configure(&dig_cfg)); }#if !CONFIG_IDF_TARGET_ESP32static bool check_valid_data(const adc_digi_output_data_t *data) { const unsigned int unit = data->type2.unit; if (unit > 2) return false; if (data->type2.channel >= SOC_ADC_CHANNEL_NUM(uni...
The sampling frequency given in the adc_digi_configuration_t structure before calling adc_digi_controller_configure() doesn't seem to have any purpose but to check for min max value. The variable conv_limit_num inside adc_digi_configuration_t seems to cause double variables when containing high...
adc_hal_digi_ctrlr_cfg_t hal_digi_ctrlr_cfg; //Hal digital controller configuration esp_pm_lock_handle_t pm_lock; //For power management } adc_digi_context_t; static adc_digi_context_t *s_adc_digi_ctx = NULL; #ifdef CONFIG_PM_ENABLE //Only for deprecated API extern esp_...
DIGI_CONTROLLER_EXIT(); return ESP_OK; } static void adc_rtc_chan_init(adc_unit_t adc_unit) { if (adc_unit & ADC_UNIT_1) { /* Workaround: Disable the synchronization operation function of ADC1 and DAC. If enabled(default), ADC RTC controller sampling will...