adc_oneshot_get_calibrated_result() function
Convenience function to get ADC calibrated result This is an all-in-one function which does: - oneshot read ADC raw result - calibrate the raw result and convert it into calibrated result (in mV)
Arguments
handle
ADC oneshot handle, you should call adc_oneshot_new_unit() to get this handle
cali_handle
ADC calibration handle, you should call adc_cali_create_scheme_x() in adc_cali_scheme.h to create a handle
cali_result
Calibrated ADC result (in mV)
Return value
- ESP_OK Other return errors from adc_oneshot_read() and adc_cali_raw_to_voltage()