/hal_espressif-3.4.0/components/esp_adc_cal/esp32s2/ |
D | esp_adc_cal.c | 41 adc_unit_t adc_num; member 49 static bool prepare_calib_data_for(adc_unit_t adc_num, adc_atten_t atten, adc_calib_parsed_info *pa… in prepare_calib_data_for() argument 54 parsed_data_storage->adc_num = adc_num; in prepare_calib_data_for() 59 tag = esp_efuse_rtc_table_get_tag(version_num, adc_num, atten, RTCCALIB_V1_PARAM_VLOW); in prepare_calib_data_for() 61 tag = esp_efuse_rtc_table_get_tag(version_num, adc_num, atten, RTCCALIB_V1_PARAM_VHIGH); in prepare_calib_data_for() 65 tag = esp_efuse_rtc_table_get_tag(version_num, adc_num, atten, RTCCALIB_V2_PARAM_VHIGH); in prepare_calib_data_for() 87 tag = esp_efuse_rtc_table_get_tag(version_num, adc_num, atten, RTCCALIB_V1_PARAM_VLOW); in prepare_calib_data_for() 89 tag = esp_efuse_rtc_table_get_tag(version_num, adc_num, atten, RTCCALIB_V1_PARAM_VHIGH); in prepare_calib_data_for() 106 static void characterize_using_two_point(adc_unit_t adc_num, in characterize_using_two_point() argument 131 characterize_using_two_point(parsed_data->adc_num, parsed_data->atten_level, in calculate_characterization_coefficients() [all …]
|
/hal_espressif-3.4.0/zephyr/esp32s2/src/esp_adc_cal/ |
D | esp_adc_cal.c | 40 adc_unit_t adc_num; member 48 static bool prepare_calib_data_for(adc_unit_t adc_num, adc_atten_t atten, adc_calib_parsed_info *pa… in prepare_calib_data_for() argument 53 parsed_data_storage->adc_num = adc_num; in prepare_calib_data_for() 58 tag = esp_efuse_rtc_table_get_tag(version_num, adc_num, atten, RTCCALIB_V1_PARAM_VLOW); in prepare_calib_data_for() 60 tag = esp_efuse_rtc_table_get_tag(version_num, adc_num, atten, RTCCALIB_V1_PARAM_VHIGH); in prepare_calib_data_for() 64 tag = esp_efuse_rtc_table_get_tag(version_num, adc_num, atten, RTCCALIB_V2_PARAM_VHIGH); in prepare_calib_data_for() 86 tag = esp_efuse_rtc_table_get_tag(version_num, adc_num, atten, RTCCALIB_V1_PARAM_VLOW); in prepare_calib_data_for() 88 tag = esp_efuse_rtc_table_get_tag(version_num, adc_num, atten, RTCCALIB_V1_PARAM_VHIGH); in prepare_calib_data_for() 105 static void characterize_using_two_point(adc_unit_t adc_num, in characterize_using_two_point() argument 130 characterize_using_two_point(parsed_data->adc_num, parsed_data->atten_level, in calculate_characterization_coefficients() [all …]
|
/hal_espressif-3.4.0/components/esp_adc_cal/esp32s3/ |
D | esp_adc_cal.c | 76 adc_unit_t adc_num; member 85 static esp_err_t get_reference_point(int version_num, adc_unit_t adc_num, adc_atten_t atten, adc_ca… in get_reference_point() argument 91 calib_info->adc_num = adc_num; in get_reference_point() 96 …ret = esp_efuse_rtc_calib_get_cal_voltage(version_num, ((adc_num == ADC_UNIT_1) ? 0 : 1), atten, &… in get_reference_point() 126 esp_adc_cal_value_t esp_adc_cal_characterize(adc_unit_t adc_num, in esp_adc_cal_characterize() argument 135 …ESP_RETURN_ON_FALSE(adc_num == ADC_UNIT_1 || adc_num == ADC_UNIT_2, ESP_ADC_CAL_VAL_NOT_SUPPORTED,… in esp_adc_cal_characterize() 146 get_reference_point(version_num, adc_num, atten, &calib_info); in esp_adc_cal_characterize() 150 chars->adc_num = adc_num; in esp_adc_cal_characterize() 178 .coeff = (chars->adc_num == ADC_UNIT_1) ? &adc1_error_coef_atten : &adc2_error_coef_atten, in esp_adc_cal_raw_to_voltage() 179 .sign = (chars->adc_num == ADC_UNIT_1) ? &adc1_error_sign : &adc2_error_sign, in esp_adc_cal_raw_to_voltage()
|
/hal_espressif-3.4.0/components/esp_adc_cal/esp32/ |
D | esp_adc_cal.c | 149 static uint32_t read_efuse_tp_low(adc_unit_t adc_num) in read_efuse_tp_low() argument 155 if (adc_num == ADC_UNIT_1) { in read_efuse_tp_low() 166 static uint32_t read_efuse_tp_high(adc_unit_t adc_num) in read_efuse_tp_high() argument 172 if (adc_num == ADC_UNIT_1) { in read_efuse_tp_high() 184 static void characterize_using_two_point(adc_unit_t adc_num, in characterize_using_two_point() argument 194 if (adc_num == ADC_UNIT_1) { //Using ADC 1 in characterize_using_two_point() 210 static void characterize_using_vref(adc_unit_t adc_num, in characterize_using_vref() argument 219 if (adc_num == ADC_UNIT_1) { //Using ADC 1 in characterize_using_vref() 283 esp_adc_cal_value_t esp_adc_cal_characterize(adc_unit_t adc_num, in esp_adc_cal_characterize() argument 290 assert((adc_num == ADC_UNIT_1) || (adc_num == ADC_UNIT_2)); in esp_adc_cal_characterize() [all …]
|
/hal_espressif-3.4.0/zephyr/esp32/src/esp_adc_cal/ |
D | esp_adc_cal.c | 148 static uint32_t read_efuse_tp_low(adc_unit_t adc_num) in read_efuse_tp_low() argument 154 if (adc_num == ADC_UNIT_1) { in read_efuse_tp_low() 165 static uint32_t read_efuse_tp_high(adc_unit_t adc_num) in read_efuse_tp_high() argument 171 if (adc_num == ADC_UNIT_1) { in read_efuse_tp_high() 183 static void characterize_using_two_point(adc_unit_t adc_num, in characterize_using_two_point() argument 193 if (adc_num == ADC_UNIT_1) { //Using ADC 1 in characterize_using_two_point() 209 static void characterize_using_vref(adc_unit_t adc_num, in characterize_using_vref() argument 218 if (adc_num == ADC_UNIT_1) { //Using ADC 1 in characterize_using_vref() 282 esp_adc_cal_value_t esp_adc_cal_characterize(adc_unit_t adc_num, in esp_adc_cal_characterize() argument 289 assert((adc_num == ADC_UNIT_1) || (adc_num == ADC_UNIT_2)); in esp_adc_cal_characterize() [all …]
|
/hal_espressif-3.4.0/components/esp_adc_cal/esp32c3/ |
D | esp_adc_cal.c | 67 adc_unit_t adc_num; member 74 static esp_err_t prepare_calib_data_for(int version_num, adc_unit_t adc_num, adc_atten_t atten, adc… in prepare_calib_data_for() argument 80 parsed_data_storage->adc_num = adc_num; in prepare_calib_data_for() 120 esp_adc_cal_value_t esp_adc_cal_characterize(adc_unit_t adc_num, in esp_adc_cal_characterize() argument 129 …ESP_RETURN_ON_FALSE(adc_num == ADC_UNIT_1 || adc_num == ADC_UNIT_2, ESP_ADC_CAL_VAL_NOT_SUPPORTED,… in esp_adc_cal_characterize() 140 ret = prepare_calib_data_for(version_num, adc_num, atten, &efuse_parsed_data); in esp_adc_cal_characterize() 146 …ESP_LOGD(LOG_TAG, "adc%d (atten leven %d) calibration done: A:%d B:%d\n", adc_num, atten, chars->c… in esp_adc_cal_characterize() 149 chars->adc_num = adc_num; in esp_adc_cal_characterize()
|
/hal_espressif-3.4.0/zephyr/esp32c3/src/esp_adc_cal/ |
D | esp_adc_cal.c | 70 adc_unit_t adc_num; member 77 static esp_err_t prepare_calib_data_for(int version_num, adc_unit_t adc_num, adc_atten_t atten, adc… in prepare_calib_data_for() argument 83 parsed_data_storage->adc_num = adc_num; in prepare_calib_data_for() 124 esp_adc_cal_value_t esp_adc_cal_characterize(adc_unit_t adc_num, in esp_adc_cal_characterize() argument 133 if (adc_num != ADC_UNIT_1 && adc_num != ADC_UNIT_2) { in esp_adc_cal_characterize() 154 ret = prepare_calib_data_for(version_num, adc_num, atten, &efuse_parsed_data); in esp_adc_cal_characterize() 162 chars->adc_num = adc_num; in esp_adc_cal_characterize()
|
/hal_espressif-3.4.0/components/efuse/esp32s2/ |
D | esp_efuse_rtc_table.c | 97 int esp_efuse_rtc_table_get_tag(int version, int adc_num, int atten, int extra_params) in esp_efuse_rtc_table_get_tag() argument 112 int result = param_offset + (adc_num - 1) * RTCCALIB_ESP32S2_ATTENCOUNT + atten; in esp_efuse_rtc_table_get_tag() 113 …ESP_EARLY_LOGV(RTC_TBL_LOG_TAG, "V%d ADC%d ATTEN%d PARAM%d -> %d", version, adc_num, atten, extra_… in esp_efuse_rtc_table_get_tag()
|
/hal_espressif-3.4.0/components/esp_adc_cal/include/ |
D | esp_adc_cal.h | 36 adc_unit_t adc_num; /**< ADC number*/ member 88 esp_adc_cal_value_t esp_adc_cal_characterize(adc_unit_t adc_num,
|
/hal_espressif-3.4.0/zephyr/esp_shared/components/include/ |
D | esp_adc_cal.h | 36 adc_unit_t adc_num; /**< ADC number*/ member 88 esp_adc_cal_value_t esp_adc_cal_characterize(adc_unit_t adc_num,
|
/hal_espressif-3.4.0/components/driver/test/adc_dma_test/ |
D | test_esp32s2.c | 574 static void scope_output(int adc_num, int channel, int data) in scope_output() argument 582 esp_rom_printf("[%d_%d_%04x] ", adc_num, channel, data); in scope_output() 586 if (adc_num != 0) { in scope_output() 590 if (adc_num != 1) { in scope_output()
|
/hal_espressif-3.4.0/zephyr/esp_shared/components/esp_adc_cal/ |
D | esp_adc_cal_common.c | 27 if (chars->adc_num == ADC_UNIT_1) { in esp_adc_cal_get_voltage()
|
/hal_espressif-3.4.0/components/esp_adc_cal/ |
D | esp_adc_cal_common.c | 30 if (chars->adc_num == ADC_UNIT_1) { in esp_adc_cal_get_voltage()
|