Function esp_idf_svc::hal::sys::adc2_pad_get_io_num
source ยท pub unsafe extern "C" fn adc2_pad_get_io_num(
channel: u32,
gpio_num: *mut i32,
) -> i32
Expand description
@brief Get the GPIO number of a specific ADC2 channel.
@param channel Channel to get the GPIO number
@param gpio_num output buffer to hold the GPIO number
@return
- ESP_OK if success
- ESP_ERR_INVALID_ARG if channel not valid