Function esp_idf_svc::sys::adc_oneshot_read

source ยท
pub unsafe extern "C" fn adc_oneshot_read(
    handle: *mut adc_oneshot_unit_ctx_t,
    chan: u32,
    out_raw: *mut i32,
) -> i32
Expand description

@brief Get one ADC conversion raw result

@note This API is thread-safe. For more details, see ADC programming guide @note This API should NOT be called in an ISR context

@param[in] handle ADC handle @param[in] chan ADC channel @param[out] out_raw ADC conversion raw result

@return - ESP_OK: On success - ESP_ERR_INVALID_ARG: Invalid arguments - ESP_ERR_TIMEOUT: Timeout, the ADC result is invalid