Function esp_idf_svc::sys::adc_cali_raw_to_voltage
source · pub unsafe extern "C" fn adc_cali_raw_to_voltage(
handle: *mut adc_cali_scheme_t,
raw: i32,
voltage: *mut i32,
) -> i32
Expand description
@brief Convert ADC raw data to calibrated voltage
@param[in] handle ADC calibration handle @param[in] raw ADC raw data @param[out] voltage Calibrated ADC voltage (in mV)
@return - ESP_OK: On success - ESP_ERR_INVALID_ARG: Invalid argument - ESP_ERR_INVALID_STATE: Invalid state, scheme didn’t registered