Searched refs:ideal_level (Results 1 – 2 of 2) sorted by relevance
101 static esp_err_t adc_dma_data_check(uint8_t *buf, int length, int ideal_level) in adc_dma_data_check() argument109 if (ideal_level == 1) { // high level 3.3v in adc_dma_data_check()111 } else if (ideal_level == 0) { // low level 0v in adc_dma_data_check()113 } else if (ideal_level == 2) { // middle level 1.4v in adc_dma_data_check()115 } else if (ideal_level == 3) { // normal level in adc_dma_data_check()
179 static esp_err_t adc_dma_data_check(adc_unit_t adc, int ideal_level) in adc_dma_data_check() argument198 if (ideal_level >= 0) { in adc_dma_data_check()208 if (ideal_level == 1) { // high level 3.3v in adc_dma_data_check()210 } else if (ideal_level == 0) { // low level 0v in adc_dma_data_check()212 } else if (ideal_level == 2) { // middle level 1.4v in adc_dma_data_check()214 } else if (ideal_level == 3) { // normal level in adc_dma_data_check()226 if (ideal_level >= 0) { in adc_dma_data_check()230 if (ideal_level == 1) { // high level 3.3v in adc_dma_data_check()232 } else if (ideal_level == 0) { // low level 0v in adc_dma_data_check()234 } else if (ideal_level == 2) { // middle level 1.4v in adc_dma_data_check()[all …]