pub unsafe extern "C" fn adc_oneshot_io_to_channel(
    io_num: c_int,
    unit_id: *mut adc_unit_t,
    channel: *mut adc_channel_t
) -> esp_err_t
Expand description

@brief Get ADC channel from the given GPIO number

@param[in] io_num GPIO number @param[out] unit_id ADC unit @param[out] channel ADC channel

@return - ESP_OK: On success - ESP_ERR_INVALID_ARG: Invalid argument - ESP_ERR_NOT_FOUND: The IO is not a valid ADC pad