ret = adc_digi_controller_config(&dig_cfg);
^~~~~~~~~~~~~~~~~~~~~~~~~~
../main/adc_dma_example_main.c: At top level:
../main/adc_dma_example_main.c:47:36: error: unknown type name 'adc_digi_output_data_t'
sta
tic bool check_valid_data(const adc_digi_output_data_t *data)
^~~~~~~~~~~~~~~~~~~~~~
../main/adc_dma_example_main.c: In function 'check_valid_data':
../main/adc_dma_example_main.c:49:35: error: request for member 'type2' in something not a structure or union
const unsigned int unit = data->type2.unit;
^~
../main/adc_dma_example_main.c:51:13: error: request for member 'type2' in something not a structure or union
if (data->type2.channel >= SOC_ADC_CHANNEL_NUM(unit)) return false;
^~
../main/adc_dma_example_main.c: In function 'continuous_read':
../main/adc_dma_example_main.c:68:5: error: implicit declaration of function 'adc_digi_start' [-Werror=implicit-function-declaration]
adc_digi_start();
^~~~~~~~~~~~~~
../main/adc_dma_example_main.c:72:15: error: implicit declaration of function 'adc_digi_read_bytes' [-Werror=implicit-function-declaration]
ret = adc_digi_read_bytes(result, TIMES, &ret_num, ADC_MAX_DELAY);
^~~~~~~~~~~~~~~~~~~
../main/adc_dma_example_main.c:72:60: error: 'ADC_MAX_DELAY' undeclared (first use in this function); did you mean 'portMAX_DELAY'?
ret = adc_digi_read_bytes(result, TIMES, &ret_num, ADC_MAX_DELAY);
^~~~~~~~~~~~~
portMAX_DELAY
../main/adc_dma_example_main.c:72:60: note: each undeclared identifier is reported only once for each function it appears in
../main/adc_dma_example_main.c:74:13: error: unknown type name 'adc_digi_output_data_t'
adc_digi_output_data_t *p = (void*)&result[i];
^~~~~~~~~~~~~~~~~~~~~~
../main/adc_dma_example_main.c:76:45: error: request for member 'type2' in something not a structure or union
printf("ADC%d_CH%d: %xn", p->type2.unit+1, p->type2.channel, p->type2.data);
^~
../main/adc_dma_example_main.c:76:62: error: request for member 'type2' in something not a structure or union
printf("ADC%d_CH%d: %xn", p->type2.unit+1, p->type2.channel, p->type2.data);
^~
../main/adc_dma_example_main.c:76:80: error: request for member 'type2' in something not a structure or union
printf("ADC%d_CH%d: %xn", p->type2.unit+1, p->type2.channel, p->type2.data);
^~
../main/adc_dma_example_main.c:78:54: error: request for member 'type2' in something not a structure or union
printf("Invalid data [%d_%d_%x]n", p->type2.unit+1, p->type2.channel, p->type2.data);
^~
../main/adc_dma_example_main.c:78:71: error: request for member 'type2' in something not a structure or union
printf("Invalid data [%d_%d_%x]n", p->type2.unit+1, p->type2.channel, p->type2.data);
^~
../main/adc_dma_example_main.c:78:89: error: request for member 'type2' in something not a structure or union
printf("Invalid data [%d_%d_%x]n", p->type2.unit+1, p->type2.channel, p->type2.data);
^~
../main/adc_dma_example_main.c:84:5: error: implicit declaration of function 'adc_digi_stop'; did you mean 'esp_timer_stop'? [-Werror=implicit-function-declaration]
adc_digi_stop();
^~~~~~~~~~~~~
esp_timer_stop
../main/adc_dma_example_main.c:85:11: error: implicit declaration of function 'adc_digi_deinitialize' [-Werror=implicit-function-declaration]
ret = adc_digi_deinitialize();
^~~~~~~~~~~~~~~~~~~~~
../main/adc_dma_example_main.c: In function 'single_read':
../main/adc_dma_example_main.c:97:23: error: 'ADC_WIDTH_BIT_DEFAULT' undeclared (first use in this function); did you mean 'ADC_WIDTH_BIT_12'?
adc1_config_width(ADC_WIDTH_BIT_DEFAULT);
^~~~~~~~~~~~~~~~~~~~~
ADC_WIDTH_BIT_12
cc1: some warnings being treated as errors
[849/902] Linking CXX static library esp-idf/wpa_supplicant/libwpa_supplicant.a
ninja: build stopped: subcommand failed.
ninja failed with exit code 1