Function esp_idf_sys::adc2_pad_get_io_num

source ยท
pub unsafe extern "C" fn adc2_pad_get_io_num(
    channel: adc2_channel_t,
    gpio_num: *mut gpio_num_t,
) -> esp_err_t
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