ESP-IDF
LUT_ADC_STEP_SIZE
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (4/5)...
Files
loading (4/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
LUT_ADC_STEP_SIZE
LUT_ADC_STEP_SIZE macro
Syntax
Show:
Summary
Declaration
from
adc_cali_line_fitting.c:72
#define
LUT_ADC_STEP_SIZE
64
Examples
References
from
examples
Code
Location
#define
LUT_ADC_STEP_SIZE
64
adc_cali_line_fitting.c:72
#define
LUT_ADC_STEP_SIZE
64
esp_adc_cal_legacy.c:69
#define
LUT_HIGH_THRESH
(
LUT_LOW_THRESH
+
LUT_ADC_STEP_SIZE
)
adc_cali_line_fitting.c:75
*
voltage
=
interpolate_two_points
(
linear_voltage
,
lut_voltage
,
LUT_ADC_STEP_SIZE
,
(
raw
-
LUT_LOW_THRESH
)
)
;
adc_cali_line_fitting.c:260
uint32_t
i
=
(
adc
-
LUT_LOW_THRESH
)
/
LUT_ADC_STEP_SIZE
;
adc_cali_line_fitting.c:411
int
y2dist
=
(
(
i
+
1
)
*
LUT_ADC_STEP_SIZE
)
+
LUT_LOW_THRESH
-
adc
;
//(y2 - y)
adc_cali_line_fitting.c:416
int
y1dist
=
adc
-
(
(
i
*
LUT_ADC_STEP_SIZE
)
+
LUT_LOW_THRESH
)
;
//(y - y1)
adc_cali_line_fitting.c:417
voltage
+=
(
(
LUT_VREF_HIGH
-
LUT_VREF_LOW
)
*
LUT_ADC_STEP_SIZE
)
/
2
;
//Integer division rounding
adc_cali_line_fitting.c:428
voltage
/=
(
(
LUT_VREF_HIGH
-
LUT_VREF_LOW
)
*
LUT_ADC_STEP_SIZE
)
;
//Divide by ((x2-x1)*(y2-y1))
adc_cali_line_fitting.c:429
#define
LUT_HIGH_THRESH
(
LUT_LOW_THRESH
+
LUT_ADC_STEP_SIZE
)
esp_adc_cal_legacy.c:72
uint32_t
i
=
(
adc
-
LUT_LOW_THRESH
)
/
LUT_ADC_STEP_SIZE
;
esp_adc_cal_legacy.c:240
int
y2dist
=
(
(
i
+
1
)
*
LUT_ADC_STEP_SIZE
)
+
LUT_LOW_THRESH
-
adc
;
//(y2 - y)
esp_adc_cal_legacy.c:245
int
y1dist
=
adc
-
(
(
i
*
LUT_ADC_STEP_SIZE
)
+
LUT_LOW_THRESH
)
;
//(y - y1)
esp_adc_cal_legacy.c:246
voltage
+=
(
(
LUT_VREF_HIGH
-
LUT_VREF_LOW
)
*
LUT_ADC_STEP_SIZE
)
/
2
;
//Integer division rounding
esp_adc_cal_legacy.c:257
voltage
/=
(
(
LUT_VREF_HIGH
-
LUT_VREF_LOW
)
*
LUT_ADC_STEP_SIZE
)
;
//Divide by ((x2-x1)*(y2-y1))
esp_adc_cal_legacy.c:258
return
interpolate_two_points
(
linear_voltage
,
lut_voltage
,
LUT_ADC_STEP_SIZE
,
(
adc_reading
-
LUT_LOW_THRESH
)
)
;
esp_adc_cal_legacy.c:345
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out