/hal_espressif-3.5.0/components/hal/esp32s3/include/hal/ |
D | adc_ll.h | 220 static inline void adc_ll_digi_set_pattern_table_len(adc_ll_num_t adc_n, uint32_t patt_len) in adc_ll_digi_set_pattern_table_len() argument 222 if (adc_n == ADC_NUM_1) { in adc_ll_digi_set_pattern_table_len() 239 static inline void adc_ll_digi_set_pattern_table(adc_ll_num_t adc_n, uint32_t pattern_index, adc_di… in adc_ll_digi_set_pattern_table() argument 265 static inline void adc_ll_digi_clear_pattern_table(adc_ll_num_t adc_n) in adc_ll_digi_clear_pattern_table() argument 267 if (adc_n == ADC_NUM_1) { in adc_ll_digi_clear_pattern_table() 293 static inline void adc_ll_digi_output_invert(adc_ll_num_t adc_n, bool inv_en) in adc_ll_digi_output_invert() argument 295 if (adc_n == ADC_NUM_1) { in adc_ll_digi_output_invert() 375 static inline void adc_ll_digi_filter_reset(adc_ll_num_t adc_n) in adc_ll_digi_filter_reset() argument 386 static inline void adc_ll_digi_filter_set_factor(adc_ll_num_t adc_n, adc_digi_filter_mode_t factor) in adc_ll_digi_filter_set_factor() argument 397 static inline void adc_ll_digi_filter_get_factor(adc_ll_num_t adc_n, adc_digi_filter_mode_t *factor) in adc_ll_digi_filter_get_factor() argument [all …]
|
/hal_espressif-3.5.0/components/hal/esp32s2/include/hal/ |
D | adc_ll.h | 213 static inline void adc_ll_digi_set_pattern_table_len(adc_ll_num_t adc_n, uint32_t patt_len) in adc_ll_digi_set_pattern_table_len() argument 215 if (adc_n == ADC_NUM_1) { in adc_ll_digi_set_pattern_table_len() 232 static inline void adc_ll_digi_set_pattern_table(adc_ll_num_t adc_n, uint32_t pattern_index, adc_di… in adc_ll_digi_set_pattern_table() argument 258 static inline void adc_ll_digi_clear_pattern_table(adc_ll_num_t adc_n) in adc_ll_digi_clear_pattern_table() argument 260 if (adc_n == ADC_NUM_1) { in adc_ll_digi_clear_pattern_table() 286 static inline void adc_ll_digi_output_invert(adc_ll_num_t adc_n, bool inv_en) in adc_ll_digi_output_invert() argument 288 if (adc_n == ADC_NUM_1) { in adc_ll_digi_output_invert() 369 static inline void adc_ll_digi_filter_reset(adc_ll_num_t adc_n) in adc_ll_digi_filter_reset() argument 371 if (adc_n == ADC_NUM_1) { in adc_ll_digi_filter_reset() 386 static inline void adc_ll_digi_filter_set_factor(adc_ll_num_t adc_n, adc_digi_filter_mode_t factor) in adc_ll_digi_filter_set_factor() argument [all …]
|
/hal_espressif-3.5.0/components/hal/ |
D | adc_hal.c | 473 static esp_err_t adc_hal_single_read(adc_ll_num_t adc_n, int *out_raw) in adc_hal_single_read() argument 475 if (adc_n == ADC_NUM_1) { in adc_hal_single_read() 477 } else if (adc_n == ADC_NUM_2) { in adc_hal_single_read() 479 if (adc_ll_analysis_raw_data(adc_n, *out_raw)) { in adc_hal_single_read() 486 esp_err_t adc_hal_convert(adc_ll_num_t adc_n, int channel, int *out_raw) in adc_hal_convert() argument 491 if (adc_n == ADC_NUM_1) { in adc_hal_convert() 500 adc_ll_onetime_sample_enable(adc_n, true); in adc_hal_convert() 501 adc_ll_onetime_set_channel(adc_n, channel); in adc_hal_convert() 506 ret = adc_hal_single_read(adc_n, out_raw); in adc_hal_convert() 508 adc_ll_onetime_sample_enable(adc_n, false); in adc_hal_convert() [all …]
|
/hal_espressif-3.5.0/components/hal/esp32/include/hal/ |
D | adc_ll.h | 185 static inline void adc_ll_digi_output_invert(adc_ll_num_t adc_n, bool inv_en) in adc_ll_digi_output_invert() argument 187 if (adc_n == ADC_NUM_1) { in adc_ll_digi_output_invert() 213 static inline void adc_ll_digi_set_pattern_table_len(adc_ll_num_t adc_n, uint32_t patt_len) in adc_ll_digi_set_pattern_table_len() argument 215 if (adc_n == ADC_NUM_1) { in adc_ll_digi_set_pattern_table_len() 232 static inline void adc_ll_digi_set_pattern_table(adc_ll_num_t adc_n, uint32_t pattern_index, adc_di… in adc_ll_digi_set_pattern_table() argument 276 static inline void adc_ll_digi_clear_pattern_table(adc_ll_num_t adc_n) in adc_ll_digi_clear_pattern_table() argument 278 if (adc_n == ADC_NUM_1) { in adc_ll_digi_clear_pattern_table() 331 static inline void adc_ll_set_sar_clk_div(adc_ll_num_t adc_n, uint32_t div) in adc_ll_set_sar_clk_div() argument 333 if (adc_n == ADC_NUM_1) { in adc_ll_set_sar_clk_div() 346 static inline void adc_ll_rtc_set_output_format(adc_ll_num_t adc_n, adc_bits_width_t bits) in adc_ll_rtc_set_output_format() argument [all …]
|
/hal_espressif-3.5.0/components/hal/include/hal/ |
D | adc_hal.h | 297 #define adc_hal_set_atten(adc_n, channel, atten) adc_ll_set_atten(adc_n, channel, atten) argument 309 #define adc_hal_set_atten(adc_n, channel, atten) adc_ll_onetime_set_atten(atten) argument 325 esp_err_t adc_hal_convert(adc_ll_num_t adc_n, int channel, int *out_raw); 337 void adc_hal_calibration_init(adc_ll_num_t adc_n); 347 void adc_hal_set_calibration_param(adc_ll_num_t adc_n, uint32_t param); 363 uint32_t adc_hal_self_calibration(adc_ll_num_t adc_n, adc_channel_t channel, adc_atten_t atten, boo… 377 #define adc_hal_rtc_set_output_format(adc_n, bits) adc_ll_rtc_set_output_format(adc_n, bits) argument 384 #define adc_hal_rtc_output_invert(adc_n, inv_en) adc_ll_rtc_output_invert(adc_n, inv_en) argument
|
/hal_espressif-3.5.0/components/hal/esp32h2/include/hal/ |
D | adc_ll.h | 185 static inline void adc_ll_digi_set_pattern_table_len(adc_ll_num_t adc_n, uint32_t patt_len) in adc_ll_digi_set_pattern_table_len() argument 200 static inline void adc_ll_digi_set_pattern_table(adc_ll_num_t adc_n, uint32_t pattern_index, adc_di… in adc_ll_digi_set_pattern_table() argument 219 static inline void adc_ll_digi_clear_pattern_table(adc_ll_num_t adc_n) in adc_ll_digi_clear_pattern_table() argument 242 static inline void adc_ll_digi_output_invert(adc_ll_num_t adc_n, bool inv_en) in adc_ll_digi_output_invert() argument 244 if (adc_n == ADC_NUM_1) { in adc_ll_digi_output_invert() 322 static inline void adc_ll_digi_filter_reset(adc_ll_num_t adc_n) in adc_ll_digi_filter_reset() argument 491 static inline adc_ll_rtc_raw_data_t adc_ll_analysis_raw_data(adc_ll_num_t adc_n, int raw_data) in adc_ll_analysis_raw_data() argument 493 if (adc_n == ADC_NUM_1) { in adc_ll_analysis_raw_data() 529 static inline void adc_ll_set_controller(adc_ll_num_t adc_n, adc_ll_controller_t ctrl) in adc_ll_set_controller() argument 605 static inline void adc_ll_calibration_init(adc_ll_num_t adc_n) in adc_ll_calibration_init() argument [all …]
|
/hal_espressif-3.5.0/components/hal/esp32c3/include/hal/ |
D | adc_ll.h | 185 static inline void adc_ll_digi_set_pattern_table_len(adc_ll_num_t adc_n, uint32_t patt_len) in adc_ll_digi_set_pattern_table_len() argument 200 static inline void adc_ll_digi_set_pattern_table(adc_ll_num_t adc_n, uint32_t pattern_index, adc_di… in adc_ll_digi_set_pattern_table() argument 219 static inline void adc_ll_digi_clear_pattern_table(adc_ll_num_t adc_n) in adc_ll_digi_clear_pattern_table() argument 242 static inline void adc_ll_digi_output_invert(adc_ll_num_t adc_n, bool inv_en) in adc_ll_digi_output_invert() argument 244 if (adc_n == ADC_NUM_1) { in adc_ll_digi_output_invert() 322 static inline void adc_ll_digi_filter_reset(adc_ll_num_t adc_n) in adc_ll_digi_filter_reset() argument 491 static inline adc_ll_rtc_raw_data_t adc_ll_analysis_raw_data(adc_ll_num_t adc_n, int raw_data) in adc_ll_analysis_raw_data() argument 493 if (adc_n == ADC_NUM_1) { in adc_ll_analysis_raw_data() 529 static inline void adc_ll_set_controller(adc_ll_num_t adc_n, adc_ll_controller_t ctrl) in adc_ll_set_controller() argument 605 static inline void adc_ll_calibration_init(adc_ll_num_t adc_n) in adc_ll_calibration_init() argument [all …]
|
/hal_espressif-3.5.0/zephyr/esp_shared/components/driver/ |
D | adc.c | 59 static uint32_t adc_get_calibration_offset(adc_ll_num_t adc_n, adc_channel_t chan, adc_atten_t atte… 275 static uint32_t adc_get_calibration_offset(adc_ll_num_t adc_n, adc_channel_t channel, adc_atten_t a… in adc_get_calibration_offset() argument 277 if (s_adc_cali_param[adc_n][atten]) { in adc_get_calibration_offset() 279 return (uint32_t)s_adc_cali_param[adc_n][atten]; in adc_get_calibration_offset() 288 init_code = esp_efuse_rtc_calib_get_init_code(version, adc_n, atten); in adc_get_calibration_offset() 295 init_code = adc_hal_self_calibration(adc_n, channel, atten, internal_gnd); in adc_get_calibration_offset() 301 s_adc_cali_param[adc_n][atten] = init_code; in adc_get_calibration_offset() 308 esp_err_t adc_cal_offset(adc_ll_num_t adc_n, adc_channel_t channel, adc_atten_t atten) in adc_cal_offset() argument 310 adc_hal_calibration_init(adc_n); in adc_cal_offset() 311 uint32_t cal_val = adc_get_calibration_offset(adc_n, channel, atten); in adc_cal_offset() [all …]
|
D | adc_common.c | 235 static uint32_t get_calibration_offset(adc_ll_num_t adc_n, adc_channel_t chan) in get_calibration_offset() argument 237 adc_atten_t atten = adc_ll_get_atten(adc_n, chan); in get_calibration_offset() 238 …extern uint32_t adc_get_calibration_offset(adc_ll_num_t adc_n, adc_channel_t channel, adc_atten_t … in get_calibration_offset() 240 return adc_get_calibration_offset(adc_n, chan, atten); in get_calibration_offset() 690 uint32_t adc_get_calibration_offset(adc_ll_num_t adc_n, adc_channel_t chan, adc_atten_t atten); 715 uint32_t adc_get_calibration_offset(adc_ll_num_t adc_n, adc_channel_t channel, adc_atten_t atten) in adc_get_calibration_offset() argument 717 if (s_adc_cali_param[adc_n][atten]) { in adc_get_calibration_offset() 719 return (uint32_t)s_adc_cali_param[adc_n][atten]; in adc_get_calibration_offset() 728 init_code = esp_efuse_rtc_calib_get_init_code(version, adc_n, atten); in adc_get_calibration_offset() 735 init_code = adc_hal_self_calibration(adc_n, channel, atten, internal_gnd); in adc_get_calibration_offset() [all …]
|
/hal_espressif-3.5.0/components/driver/ |
D | adc_deprecated.c | 95 static inline void adc_ll_digi_prepare_pattern_table(adc_ll_num_t adc_n, uint32_t pattern_index, ad… in adc_ll_digi_prepare_pattern_table() argument 100 if (adc_n == ADC_NUM_1) { in adc_ll_digi_prepare_pattern_table() 248 static inline void adc_ll_digi_intr_enable(adc_ll_num_t adc_n, adc_digi_intr_t intr) in adc_ll_digi_intr_enable() argument 250 if (adc_n == ADC_NUM_1) { in adc_ll_digi_intr_enable() 286 static inline void adc_ll_digi_intr_disable(adc_ll_num_t adc_n, adc_digi_intr_t intr) in adc_ll_digi_intr_disable() argument 288 if (adc_n == ADC_NUM_1) { in adc_ll_digi_intr_disable() 324 static inline void adc_ll_digi_intr_clear(adc_ll_num_t adc_n, adc_digi_intr_t intr) in adc_ll_digi_intr_clear() argument 326 if (adc_n == ADC_NUM_1) { in adc_ll_digi_intr_clear() 364 static inline uint32_t adc_ll_digi_get_intr_status(adc_ll_num_t adc_n) in adc_ll_digi_get_intr_status() argument 369 if (adc_n == ADC_NUM_1) { in adc_ll_digi_get_intr_status() [all …]
|
D | adc.c | 105 uint32_t adc_get_calibration_offset(adc_ll_num_t adc_n, adc_channel_t chan, adc_atten_t atten); 845 uint32_t adc_get_calibration_offset(adc_ll_num_t adc_n, adc_channel_t channel, adc_atten_t atten) in adc_get_calibration_offset() argument 847 if (s_adc_cali_param[adc_n][atten]) { in adc_get_calibration_offset() 848 …_LOGV(ADC_TAG, "Use calibrated val ADC%d atten=%d: %04X", adc_n, atten, s_adc_cali_param[adc_n][at… in adc_get_calibration_offset() 849 return (uint32_t)s_adc_cali_param[adc_n][atten]; in adc_get_calibration_offset() 858 init_code = esp_efuse_rtc_calib_get_init_code(version, adc_n, atten); in adc_get_calibration_offset() 865 init_code = adc_hal_self_calibration(adc_n, channel, atten, internal_gnd); in adc_get_calibration_offset() 870 s_adc_cali_param[adc_n][atten] = init_code; in adc_get_calibration_offset() 871 ESP_LOGV(ADC_TAG, "Calib(V%d) ADC%d atten=%d: %04X", version, adc_n, atten, init_code); in adc_get_calibration_offset() 877 esp_err_t adc_cal_offset(adc_ll_num_t adc_n, adc_channel_t channel, adc_atten_t atten) in adc_cal_offset() argument [all …]
|
D | adc_common.c | 227 static uint32_t get_calibration_offset(adc_ll_num_t adc_n, adc_channel_t chan) in get_calibration_offset() argument 229 adc_atten_t atten = adc_ll_get_atten(adc_n, chan); in get_calibration_offset() 230 …extern uint32_t adc_get_calibration_offset(adc_ll_num_t adc_n, adc_channel_t channel, adc_atten_t … in get_calibration_offset() 232 return adc_get_calibration_offset(adc_n, chan, atten); in get_calibration_offset()
|
/hal_espressif-3.5.0/components/driver/test/ |
D | test_adc.c | 334 static void adc_single_cali_init(adc_unit_t adc_n, adc_channel_t chan, uint32_t atten) in adc_single_cali_init() argument 347 if (adc_n == ADC_UNIT_1) { in adc_single_cali_init() 348 ret_val = esp_adc_cal_characterize(adc_n, atten, ADC_WIDTH_BIT_DEFAULT, 0, &adc1_chars); in adc_single_cali_init() 351 } else if (adc_n == ADC_UNIT_2) { in adc_single_cali_init() 353 ret_val = esp_adc_cal_characterize(adc_n, atten, ADC_WIDTH_BIT_DEFAULT, 0, &adc2_chars); in adc_single_cali_init() 358 ESP_LOGI(TAG, "ADC%d, channel%d, atten%d", adc_n, chan, atten); in adc_single_cali_init()
|
/hal_espressif-3.5.0/components/driver/esp32s2/ |
D | adc.c | 28 static void adc_digi_monitor_config(adc_ll_num_t adc_n, adc_digi_monitor_t *config) in adc_digi_monitor_config() argument 30 adc_ll_digi_monitor_set_mode(adc_n, config->mode); in adc_digi_monitor_config() 31 adc_ll_digi_monitor_set_thres(adc_n, config->threshold); in adc_digi_monitor_config()
|
D | adc2_init_cal.c | 21 const adc_ll_num_t adc_n = ADC_NUM_2; in adc2_init_code_calibration() local 24 adc_cal_offset(adc_n, channel, atten); in adc2_init_code_calibration()
|
/hal_espressif-3.5.0/components/driver/esp32c3/ |
D | adc2_init_cal.c | 21 const adc_ll_num_t adc_n = ADC_NUM_2; in adc2_init_code_calibration() local 24 adc_cal_offset(adc_n, channel, atten); in adc2_init_code_calibration()
|
/hal_espressif-3.5.0/components/driver/include/esp_private/ |
D | adc_cali.h | 27 extern esp_err_t adc_cal_offset(adc_ll_num_t adc_n, adc_channel_t channel, adc_atten_t atten);
|