Function esp_idf_svc::sys::adc_continuous_io_to_channel
source ยท pub unsafe extern "C" fn adc_continuous_io_to_channel(
io_num: i32,
unit_id: *mut u32,
channel: *mut u32,
) -> i32
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