Function esp_idf_svc::hal::sys::adc_oneshot_config_channel

source ยท
pub unsafe extern "C" fn adc_oneshot_config_channel(
    handle: *mut adc_oneshot_unit_ctx_t,
    channel: u32,
    config: *const adc_oneshot_chan_cfg_t,
) -> i32
Expand description

@brief Set ADC oneshot mode required configurations

@note This API is thread-safe. For more details, see ADC programming guide

@param[in] handle ADC handle @param[in] channel ADC channel to be configured @param[in] config ADC configurations

@return - ESP_OK: On success - ESP_ERR_INVALID_ARG: Invalid arguments