Function esp_idf_svc::hal::sys::adc_cali_create_scheme_curve_fitting
source · pub unsafe extern "C" fn adc_cali_create_scheme_curve_fitting(
config: *const adc_cali_curve_fitting_config_t,
ret_handle: *mut *mut adc_cali_scheme_t,
) -> i32
Expand description
@brief Create a Curve Fitting calibration scheme
After creating, you’ll get a handle to this scheme. Then you can use the driver APIS in esp_adc/adc_cali.h
to do the
ADC calibration via the handle you get.
@param[in] config Initial configurations @param[out] handle ADC calibration handle
@return - ESP_OK: On success - ESP_ERR_INVALID_ARG: Invalid argument - ESP_ERR_NO_MEM: No enough memory - ESP_ERR_NOT_SUPPORTED: Scheme required eFuse bits not burnt