Home
last modified time | relevance | path

Searched refs:adc_unit (Results 1 – 20 of 20) sorted by relevance

/hal_espressif-3.4.0/components/driver/
Dadc_deprecated.c181 extern esp_err_t adc_common_gpio_init(adc_unit_t adc_unit, adc_channel_t channel);
182 esp_err_t adc_i2s_mode_init(adc_unit_t adc_unit, adc_channel_t channel) in adc_i2s_mode_init() argument
184 if (adc_unit & ADC_UNIT_1) { in adc_i2s_mode_init()
188 if (adc_unit & ADC_UNIT_2) { in adc_i2s_mode_init()
199 .conv_mode = (adc_digi_convert_mode_t)adc_unit, in adc_i2s_mode_init()
202 if (adc_unit & ADC_UNIT_1) { in adc_i2s_mode_init()
209 if (adc_unit & ADC_UNIT_2) { in adc_i2s_mode_init()
216 adc_common_gpio_init(adc_unit, channel); in adc_i2s_mode_init()
231 esp_err_t adc_arbiter_config(adc_unit_t adc_unit, adc_arbiter_t *config) in adc_arbiter_config() argument
233 if (adc_unit & ADC_UNIT_1) { in adc_arbiter_config()
[all …]
Dadc_common.c244 static void adc_rtc_chan_init(adc_unit_t adc_unit) in adc_rtc_chan_init() argument
246 if (adc_unit & ADC_UNIT_1) { in adc_rtc_chan_init()
259 if (adc_unit & ADC_UNIT_2) { in adc_rtc_chan_init()
271 esp_err_t adc_common_gpio_init(adc_unit_t adc_unit, adc_channel_t channel) in adc_common_gpio_init() argument
275 if (adc_unit & ADC_UNIT_1) { in adc_common_gpio_init()
283 if (adc_unit & ADC_UNIT_2) { in adc_common_gpio_init()
295 esp_err_t adc_set_data_inv(adc_unit_t adc_unit, bool inv_en) in adc_set_data_inv() argument
297 if (adc_unit & ADC_UNIT_1) { in adc_set_data_inv()
302 if (adc_unit & ADC_UNIT_2) { in adc_set_data_inv()
311 esp_err_t adc_set_data_width(adc_unit_t adc_unit, adc_bits_width_t width_bit) in adc_set_data_width() argument
[all …]
Dadc.c120 static int8_t adc_digi_get_io_num(uint8_t adc_unit, uint8_t adc_channel) in adc_digi_get_io_num() argument
122 return adc_channel_io_map[adc_unit][adc_channel]; in adc_digi_get_io_num()
125 static esp_err_t adc_digi_gpio_init(adc_unit_t adc_unit, uint16_t channel_mask) in adc_digi_gpio_init() argument
134 io = adc_digi_get_io_num(adc_unit, n); in adc_digi_gpio_init()
636 esp_err_t adc_vref_to_gpio(adc_unit_t adc_unit, gpio_num_t gpio) in adc_vref_to_gpio() argument
640 if (adc_unit == ADC_UNIT_2) { in adc_vref_to_gpio()
653 if (adc_unit & ADC_UNIT_1) { in adc_vref_to_gpio()
657 } else if (adc_unit & ADC_UNIT_2) { in adc_vref_to_gpio()
832 static inline uint32_t esp_efuse_rtc_calib_get_init_code(int version, uint32_t adc_unit, int atten) in esp_efuse_rtc_calib_get_init_code() argument
834 int tag = esp_efuse_rtc_table_get_tag(version, adc_unit + 1, atten, RTCCALIB_V2_PARAM_VINIT); in esp_efuse_rtc_calib_get_init_code()
Di2s.c1318 esp_err_t i2s_set_adc_mode(adc_unit_t adc_unit, adc1_channel_t adc_channel) in i2s_set_adc_mode() argument
1320 …ESP_RETURN_ON_FALSE((adc_unit < ADC_UNIT_2), ESP_ERR_INVALID_ARG, TAG, "i2s ADC unit error, only s… in i2s_set_adc_mode()
1322 _i2s_adc_unit = adc_unit; in i2s_set_adc_mode()
1324 return adc_i2s_mode_init(adc_unit, adc_channel); in i2s_set_adc_mode()
/hal_espressif-3.4.0/zephyr/esp_shared/components/driver/
Dadc_common.c252 static void adc_rtc_chan_init(adc_unit_t adc_unit) in adc_rtc_chan_init() argument
254 if (adc_unit & ADC_UNIT_1) { in adc_rtc_chan_init()
267 if (adc_unit & ADC_UNIT_2) { in adc_rtc_chan_init()
279 esp_err_t adc_common_gpio_init(adc_unit_t adc_unit, adc_channel_t channel) in adc_common_gpio_init() argument
283 if (adc_unit & ADC_UNIT_1) { in adc_common_gpio_init()
291 if (adc_unit & ADC_UNIT_2) { in adc_common_gpio_init()
303 esp_err_t adc_set_data_inv(adc_unit_t adc_unit, bool inv_en) in adc_set_data_inv() argument
305 if (adc_unit & ADC_UNIT_1) { in adc_set_data_inv()
310 if (adc_unit & ADC_UNIT_2) { in adc_set_data_inv()
319 esp_err_t adc_set_data_width(adc_unit_t adc_unit, adc_bits_width_t width_bit) in adc_set_data_width() argument
[all …]
Dadc.c62 static int8_t adc_digi_get_io_num(uint8_t adc_unit, uint8_t adc_channel) in adc_digi_get_io_num() argument
64 return adc_channel_io_map[adc_unit][adc_channel]; in adc_digi_get_io_num()
67 static esp_err_t adc_digi_gpio_init(adc_unit_t adc_unit, uint16_t channel_mask) in adc_digi_gpio_init() argument
84 io = adc_digi_get_io_num(adc_unit, n); in adc_digi_gpio_init()
114 esp_err_t adc_vref_to_gpio(adc_unit_t adc_unit, gpio_num_t gpio) in adc_vref_to_gpio() argument
118 if (adc_unit == ADC_UNIT_2) { in adc_vref_to_gpio()
131 if (adc_unit & ADC_UNIT_1) { in adc_vref_to_gpio()
135 } else if (adc_unit & ADC_UNIT_2) { in adc_vref_to_gpio()
262 static inline uint32_t esp_efuse_rtc_calib_get_init_code(int version, uint32_t adc_unit, int atten) in esp_efuse_rtc_calib_get_init_code() argument
264 int tag = esp_efuse_rtc_table_get_tag(version, adc_unit + 1, atten, RTCCALIB_V2_PARAM_VINIT); in esp_efuse_rtc_calib_get_init_code()
/hal_espressif-3.4.0/components/driver/include/driver/
Dadc_deprecated.h41 esp_err_t adc_arbiter_config(adc_unit_t adc_unit, adc_arbiter_t *config) __attribute__((deprecated)…
52 esp_err_t adc_digi_intr_enable(adc_unit_t adc_unit, adc_digi_intr_t intr_mask) __attribute__((depre…
63 esp_err_t adc_digi_intr_disable(adc_unit_t adc_unit, adc_digi_intr_t intr_mask) __attribute__((depr…
74 esp_err_t adc_digi_intr_clear(adc_unit_t adc_unit, adc_digi_intr_t intr_mask) __attribute__((deprec…
83 uint32_t adc_digi_intr_get_status(adc_unit_t adc_unit) __attribute__((deprecated));
157 esp_err_t adc_gpio_init(adc_unit_t adc_unit, adc_channel_t channel) __attribute__((deprecated));;
Dadc.h257 esp_err_t adc_set_data_inv(adc_unit_t adc_unit, bool inv_en);
277 esp_err_t adc_set_data_width(adc_unit_t adc_unit, adc_bits_width_t width_bit);
398 esp_err_t adc_vref_to_gpio(adc_unit_t adc_unit, gpio_num_t gpio);
641 esp_err_t adc_i2s_mode_init(adc_unit_t adc_unit, adc_channel_t channel);
Di2s.h458 esp_err_t i2s_set_adc_mode(adc_unit_t adc_unit, adc1_channel_t adc_channel);
/hal_espressif-3.4.0/components/efuse/esp32s3/
Desp_efuse_rtc_calib.c33 uint32_t esp_efuse_rtc_calib_get_init_code(int version, uint32_t adc_unit, int atten) in esp_efuse_rtc_calib_get_init_code() argument
37 assert(adc_unit < ADC_NUM_MAX); in esp_efuse_rtc_calib_get_init_code()
44 uint8_t desc_index = (adc_unit == ADC_NUM_1) ? 0 : 4; in esp_efuse_rtc_calib_get_init_code()
53 if (adc_unit == ADC_NUM_1) { in esp_efuse_rtc_calib_get_init_code()
68 esp_err_t esp_efuse_rtc_calib_get_cal_voltage(int version, uint32_t adc_unit, int atten, uint32_t *… in esp_efuse_rtc_calib_get_cal_voltage() argument
72 assert(adc_unit < ADC_NUM_MAX); in esp_efuse_rtc_calib_get_cal_voltage()
94 *out_digi = (adc_unit == ADC_NUM_1) ? adc1_vol[atten] : adc2_vol[atten]; in esp_efuse_rtc_calib_get_cal_voltage()
/hal_espressif-3.4.0/components/driver/test/
Dtest_adc_common.c71 void adc_fake_tie_middle(adc_unit_t adc_unit, adc_channel_t channel) in adc_fake_tie_middle() argument
74 if (adc_unit & ADC_UNIT_1) { in adc_fake_tie_middle()
82 if (adc_unit & ADC_UNIT_2) { in adc_fake_tie_middle()
93 void adc_fake_tie_high(adc_unit_t adc_unit, adc_channel_t channel) in adc_fake_tie_high() argument
96 if (adc_unit & ADC_UNIT_1) { in adc_fake_tie_high()
105 if (adc_unit & ADC_UNIT_2) { in adc_fake_tie_high()
117 void adc_fake_tie_low(adc_unit_t adc_unit, adc_channel_t channel) in adc_fake_tie_low() argument
120 if (adc_unit & ADC_UNIT_1) { in adc_fake_tie_low()
129 if (adc_unit & ADC_UNIT_2) { in adc_fake_tie_low()
141 void adc_io_normal(adc_unit_t adc_unit, adc_channel_t channel) in adc_io_normal() argument
[all …]
/hal_espressif-3.4.0/components/driver/test/include/test/
Dtest_common_adc.h22 void adc_fake_tie_middle(adc_unit_t adc_unit, adc_channel_t channel);
23 void adc_fake_tie_high(adc_unit_t adc_unit, adc_channel_t channel);
24 void adc_fake_tie_low(adc_unit_t adc_unit, adc_channel_t channel);
25 void adc_io_normal(adc_unit_t adc_unit, adc_channel_t channel);
/hal_espressif-3.4.0/components/hal/esp32h2/include/hal/
Dadc_ll.h337 APB_SARADC.filter_ctrl0.filter_channel0 = (filter->adc_unit << 3) | (filter->channel & 0x7); in adc_ll_digi_filter_set_factor()
340 APB_SARADC.filter_ctrl0.filter_channel1 = (filter->adc_unit << 3) | (filter->channel & 0x7); in adc_ll_digi_filter_set_factor()
354 filter->adc_unit = (APB_SARADC.filter_ctrl0.filter_channel0 >> 3) & 0x1; in adc_ll_digi_filter_get_factor()
358 filter->adc_unit = (APB_SARADC.filter_ctrl0.filter_channel1 >> 3) & 0x1; in adc_ll_digi_filter_get_factor()
393 APB_SARADC.thres0_ctrl.thres0_channel = (cfg->adc_unit << 3) | (cfg->channel & 0x7); in adc_ll_digi_monitor_set_mode()
397 APB_SARADC.thres1_ctrl.thres1_channel = (cfg->adc_unit << 3) | (cfg->channel & 0x7); in adc_ll_digi_monitor_set_mode()
/hal_espressif-3.4.0/components/efuse/esp32s3/include/
Desp_efuse_rtc_calib.h32 uint32_t esp_efuse_rtc_calib_get_init_code(int version, uint32_t adc_unit, int atten);
46 esp_err_t esp_efuse_rtc_calib_get_cal_voltage(int version, uint32_t adc_unit, int atten, uint32_t* …
/hal_espressif-3.4.0/components/hal/esp32c3/include/hal/
Dadc_ll.h337 APB_SARADC.filter_ctrl0.filter_channel0 = (filter->adc_unit << 3) | (filter->channel & 0x7); in adc_ll_digi_filter_set_factor()
340 APB_SARADC.filter_ctrl0.filter_channel1 = (filter->adc_unit << 3) | (filter->channel & 0x7); in adc_ll_digi_filter_set_factor()
354 filter->adc_unit = (APB_SARADC.filter_ctrl0.filter_channel0 >> 3) & 0x1; in adc_ll_digi_filter_get_factor()
358 filter->adc_unit = (APB_SARADC.filter_ctrl0.filter_channel1 >> 3) & 0x1; in adc_ll_digi_filter_get_factor()
393 APB_SARADC.thres0_ctrl.thres0_channel = (cfg->adc_unit << 3) | (cfg->channel & 0x7); in adc_ll_digi_monitor_set_mode()
397 APB_SARADC.thres1_ctrl.thres1_channel = (cfg->adc_unit << 3) | (cfg->channel & 0x7); in adc_ll_digi_monitor_set_mode()
/hal_espressif-3.4.0/components/efuse/esp32c3/
Desp_efuse_rtc_calib.c22 uint32_t esp_efuse_rtc_calib_get_init_code(int version, uint32_t adc_unit, int atten) in esp_efuse_rtc_calib_get_init_code() argument
25 (void) adc_unit; in esp_efuse_rtc_calib_get_init_code()
/hal_espressif-3.4.0/components/driver/esp32s2/
Dadc.c66 config->adc_unit = ADC_UNIT_1; in adc_digi_filter_get_config()
70 config->adc_unit = ADC_UNIT_2; in adc_digi_filter_get_config()
/hal_espressif-3.4.0/components/hal/include/hal/
Dadc_types.h258 adc_unit_t adc_unit; /*!<Set adc unit number for filter. member
307 adc_unit_t adc_unit; /*!<Set adc unit number for monitor. member
/hal_espressif-3.4.0/components/efuse/esp32c3/include/
Desp_efuse_rtc_calib.h32 uint32_t esp_efuse_rtc_calib_get_init_code(int version, uint32_t adc_unit, int atten);
/hal_espressif-3.4.0/components/driver/esp32/
Dadc.c69 extern esp_err_t adc_common_gpio_init(adc_unit_t adc_unit, adc_channel_t channel);