Function esp_idf_sys::adc_cali_create_scheme_line_fitting
source · pub unsafe extern "C" fn adc_cali_create_scheme_line_fitting(
config: *const adc_cali_line_fitting_config_t,
ret_handle: *mut adc_cali_handle_t,
) -> esp_err_t
Expand description
@brief Create a Line 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