ESP-IDF
TAG
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
TAG
TAG variable
Syntax
Show:
Summary
Declaration
from
adc_oneshot.c:42
static
const
char
*
TAG
=
"adc_oneshot"
;
Examples
References
from
examples
Code
Location
Referrer
static
const
char
*
TAG
=
"adc_oneshot"
;
adc_oneshot.c:42
ESP_GOTO_ON_FALSE
(
init_config
&&
ret_unit
,
ESP_ERR_INVALID_ARG
,
err
,
TAG
,
"invalid argument: null pointer"
)
;
adc_oneshot.c:84
adc_oneshot_new_unit()
ESP_GOTO_ON_FALSE
(
init_config
->
unit_id
<
SOC_ADC_PERIPH_NUM
,
ESP_ERR_INVALID_ARG
,
err
,
TAG
,
"invalid unit"
)
;
adc_oneshot.c:85
adc_oneshot_new_unit()
ESP_GOTO_ON_FALSE
(
unit
,
ESP_ERR_NO_MEM
,
err
,
TAG
,
"no mem for unit"
)
;
adc_oneshot.c:95
adc_oneshot_new_unit()
ESP_GOTO_ON_FALSE
(
success_claim
,
ESP_ERR_NOT_FOUND
,
err
,
TAG
,
"adc%d is already in use"
,
init_config
->
unit_id
+
1
)
;
adc_oneshot.c:98
adc_oneshot_new_unit()
ESP_GOTO_ON_ERROR
(
esp_clk_tree_src_get_freq_hz
(
clk_src
,
ESP_CLK_TREE_SRC_FREQ_PRECISION_CACHED
,
&
clk_src_freq_hz
)
,
err
,
TAG
,
"clock source not supported"
)
;
adc_oneshot.c:118
adc_oneshot_new_unit()
ESP_LOGD
(
TAG
,
"new adc unit%"
PRId32
" is created"
,
unit
->
unit_id
)
;
adc_oneshot.c:144
adc_oneshot_new_unit()
ESP_RETURN_ON_FALSE
(
handle
&&
config
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid argument: null pointer"
)
;
adc_oneshot.c:157
adc_oneshot_config_channel()
ESP_RETURN_ON_FALSE
(
config
->
atten
<
SOC_ADC_ATTEN_NUM
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid attenuation"
)
;
adc_oneshot.c:158
adc_oneshot_config_channel()
ESP_RETURN_ON_FALSE
(
(
(
config
->
bitwidth
>=
SOC_ADC_RTC_MIN_BITWIDTH
&&
config
->
bitwidth
<=
SOC_ADC_RTC_MAX_BITWIDTH
)
||
config
->
bitwidth
==
ADC_BITWIDTH_DEFAULT
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid bitwidth"
)
;
adc_oneshot.c:159
adc_oneshot_config_channel()
ESP_RETURN_ON_FALSE
(
channel
<
SOC_ADC_CHANNEL_NUM
(
handle
->
unit_id
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid channel"
)
;
adc_oneshot.c:160
adc_oneshot_config_channel()
ESP_RETURN_ON_FALSE
(
handle
&&
out_raw
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid argument: null pointer"
)
;
adc_oneshot.c:184
adc_oneshot_read()
ESP_RETURN_ON_FALSE
(
chan
<
SOC_ADC_CHANNEL_NUM
(
handle
->
unit_id
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid channel"
)
;
adc_oneshot.c:185
adc_oneshot_read()
ESP_RETURN_ON_FALSE_ISR
(
handle
&&
out_raw
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid argument: null pointer"
)
;
adc_oneshot.c:212
adc_oneshot_read_isr()
ESP_RETURN_ON_FALSE_ISR
(
out_raw
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid argument: null pointer"
)
;
adc_oneshot.c:213
adc_oneshot_read_isr()
ESP_RETURN_ON_FALSE_ISR
(
chan
<
SOC_ADC_CHANNEL_NUM
(
handle
->
unit_id
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid channel"
)
;
adc_oneshot.c:214
adc_oneshot_read_isr()
ESP_RETURN_ON_FALSE
(
handle
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid argument: null pointer"
)
;
adc_oneshot.c:236
adc_oneshot_del_unit()
ESP_RETURN_ON_FALSE
(
success_free
,
ESP_ERR_NOT_FOUND
,
TAG
,
"adc%"
PRId32
" isn't in use"
,
handle
->
unit_id
+
1
)
;
adc_oneshot.c:239
adc_oneshot_del_unit()
ESP_LOGD
(
TAG
,
"adc unit%"
PRId32
" is deleted"
,
handle
->
unit_id
)
;
adc_oneshot.c:245
adc_oneshot_del_unit()
ESP_RETURN_ON_ERROR
(
adc_oneshot_read
(
handle
,
chan
,
&
raw
)
,
TAG
,
"adc oneshot read fail"
)
;
adc_oneshot.c:273
adc_oneshot_get_calibrated_result()
ESP_LOGD
(
TAG
,
"raw: 0d%d"
,
raw
)
;
adc_oneshot.c:274
adc_oneshot_get_calibrated_result()
ESP_RETURN_ON_ERROR
(
adc_cali_raw_to_voltage
(
cali_handle
,
raw
,
cali_result
)
,
TAG
,
"adc calibration fail"
)
;
adc_oneshot.c:275
adc_oneshot_get_calibrated_result()
ESP_RETURN_ON_FALSE
(
channel
<
SOC_ADC_CHANNEL_NUM
(
unit
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid channel"
)
;
adc_oneshot.c:284
s_adc_io_init()
ESP_RETURN_ON_ERROR
(
rtc_gpio_init
(
io_num
)
,
TAG
,
"IO config fail"
)
;
adc_oneshot.c:299
s_adc_io_init()
ESP_RETURN_ON_ERROR
(
rtc_gpio_set_direction
(
io_num
,
RTC_GPIO_MODE_DISABLED
)
,
TAG
,
"IO config fail"
)
;
adc_oneshot.c:300
s_adc_io_init()
ESP_RETURN_ON_ERROR
(
rtc_gpio_pulldown_dis
(
io_num
)
,
TAG
,
"IO config fail"
)
;
adc_oneshot.c:301
s_adc_io_init()
ESP_RETURN_ON_ERROR
(
rtc_gpio_pullup_dis
(
io_num
)
,
TAG
,
"IO config fail"
)
;
adc_oneshot.c:302
s_adc_io_init()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
TAG
is read by 7 functions:
All items filtered out
TAG
adc_oneshot_new_unit()
adc_oneshot_config_channel()
adc_oneshot_read()
adc_oneshot_read_isr()
adc_oneshot_del_unit()
adc_oneshot_get_calibrated_result()
s_adc_io_init()
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