adc_vref_to_gpio() function
Output ADC1 or ADC2's reference voltage to ``adc2_channe_t``'s IO. This function routes the internal reference voltage of ADCn to one of ADC2's channels. This reference voltage can then be manually measured for calibration purposes.
Arguments
gpio
GPIO number (Only ADC2's channels IO are supported)
Return value
- ESP_OK: v_ref successfully routed to selected GPIO - ESP_ERR_INVALID_ARG: Unsupported GPIO
Notes
ESP32 only supports output of ADC2's internal reference voltage.
adc_vref_to_gpio() calls 5 functions:
![]()
adc_vref_to_gpio()
adc_vref_to_gpio() reads 4 variables:
![]()
adc_vref_to_gpio()