Function esp_idf_svc::hal::sys::adc_oneshot_channel_to_io

source ยท
pub unsafe extern "C" fn adc_oneshot_channel_to_io(
    unit_id: u32,
    channel: u32,
    io_num: *mut i32,
) -> i32
Expand description

@brief Get GPIO number from the given ADC channel

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

@param - ESP_OK: On success - ESP_ERR_INVALID_ARG: Invalid argument