VSF Documented
adc_types.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2026 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18/*
19 * Clean-room re-implementation of ESP-IDF common ADC enumerations.
20 * Authored from ESP-IDF v5.1 public headers only.
21 */
22
23#ifndef __VSF_ESPIDF_DRIVER_ADC_TYPES_H__
24#define __VSF_ESPIDF_DRIVER_ADC_TYPES_H__
25
26#include <stdint.h>
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
33typedef enum {
37
40typedef enum {
52
55typedef enum {
63
66typedef enum {
73
75typedef enum {
78
80
82typedef enum {
87
88#ifdef __cplusplus
89}
90#endif
91
92#endif // __VSF_ESPIDF_DRIVER_ADC_TYPES_H__
adc_oneshot_clk_src_t
ADC clock source. Accepted but ignored.
Definition adc_types.h:75
@ ADC_DIGI_CLK_SRC_DEFAULT
Definition adc_types.h:76
adc_oneshot_clk_src_t adc_continuous_clk_src_t
Definition adc_types.h:79
adc_atten_t
Input attenuation. Accepted but interpreted only as a hint for maximum measurable voltage – this shim...
Definition adc_types.h:66
@ ADC_ATTEN_DB_0
Definition adc_types.h:67
@ ADC_ATTEN_DB_11
Definition adc_types.h:70
@ ADC_ATTEN_DB_6
Definition adc_types.h:69
@ ADC_ATTEN_DB_2_5
Definition adc_types.h:68
@ ADC_ATTEN_DB_12
Definition adc_types.h:71
adc_channel_t
ADC channel identifiers. Range is chip-dependent; channels beyond the target device's capability are ...
Definition adc_types.h:40
@ ADC_CHANNEL_9
Definition adc_types.h:50
@ ADC_CHANNEL_1
Definition adc_types.h:42
@ ADC_CHANNEL_8
Definition adc_types.h:49
@ ADC_CHANNEL_4
Definition adc_types.h:45
@ ADC_CHANNEL_0
Definition adc_types.h:41
@ ADC_CHANNEL_3
Definition adc_types.h:44
@ ADC_CHANNEL_2
Definition adc_types.h:43
@ ADC_CHANNEL_6
Definition adc_types.h:47
@ ADC_CHANNEL_7
Definition adc_types.h:48
@ ADC_CHANNEL_5
Definition adc_types.h:46
adc_ulp_mode_t
ULP mode (not modelled by this shim).
Definition adc_types.h:82
@ ADC_ULP_MODE_RISCV
Definition adc_types.h:85
@ ADC_ULP_MODE_FSM
Definition adc_types.h:84
@ ADC_ULP_MODE_DISABLE
Definition adc_types.h:83
adc_unit_t
ADC peripheral unit.
Definition adc_types.h:33
@ ADC_UNIT_1
Definition adc_types.h:34
@ ADC_UNIT_2
Definition adc_types.h:35
adc_bitwidth_t
Effective resolution of a conversion result. Most targets support 12 or 13 bits; DEFAULT yields the c...
Definition adc_types.h:55
@ ADC_BITWIDTH_9
Definition adc_types.h:57
@ ADC_BITWIDTH_12
Definition adc_types.h:60
@ ADC_BITWIDTH_13
Definition adc_types.h:61
@ ADC_BITWIDTH_11
Definition adc_types.h:59
@ ADC_BITWIDTH_10
Definition adc_types.h:58
@ ADC_BITWIDTH_DEFAULT
Definition adc_types.h:56
Generated from commit: vsfteam/vsf@015f4d1