adc_get_selected_input() function
Get the currently selected ADC input channel \if rp2040_specific On RP02040 0...3 are GPIOs 26...29 respectively. Input 4 is the onboard temperature sensor. \endif \if rp2350_specific On RP2350A 0...3 are GPIOs 26...29 respectively. Input 4 is the onboard temperature sensor. On RP2350B 0...7 are GPIOs 40...47 respectively. Input 8 is the onboard temperature sensor. \endif
Syntax
static inline uint adc_get_selected_input(void); Return value
The currently selected input channel.
![]()
static inline uint adc_get_selected_input(void) {
adc_get_selected_input() reads 1 variable:
![]()
adc_get_selected_input()