ESP-IDF
TAG
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
TAG
TAG variable
Syntax
Show:
Summary
Declaration
from
i2c_common.c:40
static
const
char
*
TAG
=
"i2c.common"
;
Examples
References
from
examples
Code
Location
Referrer
static
const
char
*
TAG
=
"i2c.common"
;
i2c_common.c:40
ESP_LOGE
(
TAG
,
"I2C bus id(%d) has already been acquired"
,
port_num
)
;
i2c_common.c:131
s_i2c_bus_handle_acquire()
ESP_LOGD
(
TAG
,
"new bus(%d) at %p"
,
port_num
,
bus
)
;
i2c_common.c:140
s_i2c_bus_handle_acquire()
ESP_LOGE
(
TAG
,
"acquire bus failed"
)
;
i2c_common.c:163
i2c_acquire_bus_handle()
ESP_LOGE
(
TAG
,
"acquire bus failed, no free bus"
)
;
i2c_common.c:173
i2c_acquire_bus_handle()
ESP_LOGE
(
TAG
,
"acquire bus failed"
)
;
i2c_common.c:180
i2c_acquire_bus_handle()
ESP_RETURN_ON_ERROR
(
esp_intr_free
(
i2c_bus
->
intr_handle
)
,
TAG
,
"delete interrupt service failed"
)
;
i2c_common.c:207
i2c_release_bus_handle()
ESP_RETURN_ON_ERROR
(
esp_pm_lock_delete
(
i2c_bus
->
pm_lock
)
,
TAG
,
"delete pm_lock failed"
)
;
i2c_common.c:210
i2c_release_bus_handle()
ESP_LOGD
(
TAG
,
"delete bus %d"
,
port_num
)
;
i2c_common.c:241
i2c_release_bus_handle()
ESP_RETURN_ON_FALSE
(
s_i2c_platform
.
count
[
port_num
]
==
0
,
ESP_ERR_INVALID_STATE
,
TAG
,
"Bus not freed entirely"
)
;
i2c_common.c:244
i2c_release_bus_handle()
ESP_RETURN_ON_FALSE
(
handle
,
ESP_ERR_INVALID_ARG
,
TAG
,
"I2C empty controller handle"
)
;
i2c_common.c:251
i2c_select_periph_clock()
ESP_RETURN_ON_FALSE
(
!
clock_selection_conflict
,
ESP_ERR_INVALID_STATE
,
TAG
,
i2c_common.c:262
i2c_select_periph_clock()
ESP_RETURN_ON_ERROR
(
esp_clk_tree_src_get_freq_hz
(
clk_src
,
ESP_CLK_TREE_SRC_FREQ_PRECISION_APPROX
,
&
periph_src_clk_hz
)
,
TAG
,
"i2c get clock frequency error"
)
;
i2c_common.c:274
i2c_select_periph_clock()
ESP_RETURN_ON_ERROR
(
ret
,
TAG
,
"create pm lock failed"
)
;
i2c_common.c:306
i2c_select_periph_clock()
ESP_LOGD
(
TAG
,
"bus clock source frequency: %"
PRIu32
"hz"
,
periph_src_clk_hz
)
;
i2c_common.c:310
i2c_select_periph_clock()
ESP_RETURN_ON_ERROR
(
gpio_set_level
(
handle
->
sda_num
,
1
)
,
TAG
,
"i2c sda pin set level failed"
)
;
i2c_common.c:319
s_hp_i2c_pins_config()
ESP_RETURN_ON_ERROR
(
gpio_set_level
(
handle
->
scl_num
,
1
)
,
TAG
,
"i2c scl pin set level failed"
)
;
i2c_common.c:332
s_hp_i2c_pins_config()
ESP_RETURN_ON_ERROR
(
s_hp_i2c_pins_config
(
handle
)
,
TAG
,
"config i2c pins failed"
)
;
i2c_common.c:401
i2c_common_set_pins()
ESP_RETURN_ON_ERROR
(
gpio_output_disable
(
handle
->
sda_num
)
,
TAG
,
"disable i2c pins failed"
)
;
i2c_common.c:417
i2c_common_deinit_pins()
ESP_RETURN_ON_ERROR
(
gpio_output_disable
(
handle
->
scl_num
)
,
TAG
,
"disable i2c pins failed"
)
;
i2c_common.c:420
i2c_common_deinit_pins()
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
s_i2c_bus_handle_acquire()
i2c_acquire_bus_handle()
i2c_release_bus_handle()
i2c_select_periph_clock()
s_hp_i2c_pins_config()
i2c_common_set_pins()
i2c_common_deinit_pins()
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