Home
last modified time | relevance | path

Searched refs:adc_handle (Results 1 – 4 of 4) sorted by relevance

/hal_espressif-3.7.0/components/esp_adc/test_apps/adc/main/
Dtest_adc_driver.c35 adc_oneshot_unit_handle_t adc_handle; //ADC handle member
51 TEST_ESP_OK(adc_oneshot_read_isr(test_ctx->adc_handle, ADC1_TEST_CHAN0, &adc_raw)); in s_alarm_callback()
69 isr_test_ctx.adc_handle = NULL;
77 TEST_ESP_OK(adc_oneshot_new_unit(&init_config1, &isr_test_ctx.adc_handle));
84 TEST_ESP_OK(adc_oneshot_config_channel(isr_test_ctx.adc_handle, ADC1_TEST_CHAN0, &config));
128 TEST_ESP_OK(adc_oneshot_del_unit(isr_test_ctx.adc_handle));
Dtest_adc.c136 adc_oneshot_unit_handle_t adc_handle; in s_adc_oneshot_with_sleep() local
141 TEST_ESP_OK(adc_oneshot_new_unit(&init_config, &adc_handle)); in s_adc_oneshot_with_sleep()
162 TEST_ESP_OK(adc_oneshot_config_channel(adc_handle, channel, &config)); in s_adc_oneshot_with_sleep()
172 TEST_ESP_OK(adc_oneshot_read(adc_handle, channel, &raw_expected)); in s_adc_oneshot_with_sleep()
208 TEST_ESP_OK(adc_oneshot_read(adc_handle, channel, &raw_after_sleep)); in s_adc_oneshot_with_sleep()
235 TEST_ESP_OK(adc_oneshot_del_unit(adc_handle)); in s_adc_oneshot_with_sleep()
Dtest_adc_driver_iram.c32 void *adc_handle; //ADC handle, could be oneshot / continuous handle member
54 adc_oneshot_unit_handle_t oneshot_handle = *(adc_oneshot_unit_handle_t *)(test_ctx->adc_handle); in s_alarm_cb()
76 isr_test_ctx.adc_handle = &oneshot_handle;
212 isr_test_ctx.adc_handle = &handle;
Dtest_adc_performance.c435 adc_oneshot_unit_handle_t adc_handle; in s_adc_cali_speed() local
440 TEST_ESP_OK(adc_oneshot_new_unit(&init_config, &adc_handle)); in s_adc_cali_speed()
452 TEST_ESP_OK(adc_oneshot_config_channel(adc_handle, channel, &config)); in s_adc_cali_speed()
456 TEST_ESP_OK(adc_oneshot_read(adc_handle, channel, &adc_raw)); in s_adc_cali_speed()
462 TEST_ESP_OK(adc_oneshot_del_unit(adc_handle)); in s_adc_cali_speed()