Function esp_idf_sys::adc_oneshot_read
source ยท pub unsafe extern "C" fn adc_oneshot_read(
handle: adc_oneshot_unit_handle_t,
chan: adc_channel_t,
out_raw: *mut c_int,
) -> esp_err_t
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