1
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
28
29
31
32
33
34
35
36
37
38
39
/* ... */
#pragma once
#include "esp_intr_alloc.h"
#include "hal/dma_types.h"
#include "hal/adc_hal.h"
#include "adc_continuous_internal.h"
#ifdef __cplusplus
extern "C" {
#endif
/* ... */
typedef struct {
#if SOC_GDMA_SUPPORTED
gdma_channel_handle_t gdma_chan;
#elif CONFIG_IDF_TARGET_ESP32S2
spi_dma_ctx_t *spi_dma_ctx;
spi_dev_t *adc_spi_dev;/* ... */
#elif CONFIG_IDF_TARGET_ESP32
i2s_dev_t *adc_i2s_dev;/* ... */
#endif
intr_handle_t dma_intr_hdl;
}{ ... } adc_dma_t;
#define ADC_DMA_DESC_ALIGN 4
#ifdef __cplusplus
}{...}
#endif