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
i2c_slave.c:40
static
const
char
*
TAG
=
"i2c.slave"
;
Examples
References
from
examples
Code
Location
Referrer
static
const
char
*
TAG
=
"i2c.slave"
;
i2c_slave.c:40
ESP_DRAM_LOGE
(
TAG
,
"I2C TX BUFFER SIZE ERROR"
)
;
i2c_slave.c:111
s_i2c_handle_tx_fifo_wm()
ESP_RETURN_ON_FALSE
(
slave_config
&&
ret_handle
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid argument"
)
;
i2c_slave.c:189
i2c_new_slave_device()
ESP_RETURN_ON_FALSE
(
GPIO_IS_VALID_GPIO
(
slave_config
->
sda_io_num
)
&&
GPIO_IS_VALID_GPIO
(
slave_config
->
scl_io_num
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid SDA/SCL pin number"
)
;
i2c_slave.c:190
i2c_new_slave_device()
ESP_RETURN_ON_FALSE
(
slave_config
->
i2c_port
<
SOC_HP_I2C_NUM
||
slave_config
->
i2c_port
==
-
1
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid i2c port number"
)
;
i2c_slave.c:194
i2c_new_slave_device()
ESP_RETURN_ON_FALSE
(
(
slave_config
->
send_buf_depth
>
0
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid SCL speed"
)
;
i2c_slave.c:195
i2c_new_slave_device()
ESP_RETURN_ON_FALSE
(
i2c_slave
,
ESP_ERR_NO_MEM
,
TAG
,
"no memory for i2c slave bus"
)
;
i2c_slave.c:202
i2c_new_slave_device()
ESP_GOTO_ON_ERROR
(
i2c_acquire_bus_handle
(
i2c_port_num
,
&
i2c_slave
->
base
,
I2C_BUS_MODE_SLAVE
)
,
err
,
TAG
,
"I2C bus acquire failed"
)
;
i2c_slave.c:204
i2c_new_slave_device()
ESP_GOTO_ON_ERROR
(
i2c_common_set_pins
(
i2c_slave
->
base
)
,
err
,
TAG
,
"i2c slave set pins failed"
)
;
i2c_slave.c:219
i2c_new_slave_device()
ESP_GOTO_ON_FALSE
(
i2c_slave
->
tx_ring_buf
!=
NULL
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"ringbuffer create failed"
)
;
i2c_slave.c:222
i2c_new_slave_device()
ESP_GOTO_ON_FALSE
(
i2c_slave
->
slv_rx_mux
,
ESP_ERR_NO_MEM
,
err
,
TAG
,
"No memory for binary semaphore"
)
;
i2c_slave.c:225
i2c_new_slave_device()
ESP_GOTO_ON_FALSE
(
i2c_slave
->
slv_tx_mux
,
ESP_ERR_NO_MEM
,
err
,
TAG
,
"No memory for binary semaphore"
)
;
i2c_slave.c:227
i2c_new_slave_device()
ESP_GOTO_ON_FALSE
(
(
i2c_slave
->
slv_evt_queue
!=
NULL
)
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"queue create failed"
)
;
i2c_slave.c:229
i2c_new_slave_device()
ESP_GOTO_ON_ERROR
(
ret
,
err
,
TAG
,
"install i2c slave interrupt failed"
)
;
i2c_slave.c:236
i2c_new_slave_device()
ESP_RETURN_ON_FALSE
(
i2c_slave
,
ESP_ERR_INVALID_ARG
,
TAG
,
"i2c slave not initialized"
)
;
i2c_slave.c:322
i2c_del_slave_device()
ESP_LOGD
(
TAG
,
"del i2c bus(%d)"
,
port_id
)
;
i2c_slave.c:324
i2c_del_slave_device()
ESP_RETURN_ON_ERROR
(
i2c_slave_bus_destroy
(
i2c_slave
)
,
TAG
,
"destroy i2c bus failed"
)
;
i2c_slave.c:325
i2c_del_slave_device()
ESP_RETURN_ON_FALSE
(
i2c_slave
,
ESP_ERR_INVALID_ARG
,
TAG
,
"i2c slave not initialized"
)
;
i2c_slave.c:331
i2c_slave_transmit()
ESP_RETURN_ON_FALSE
(
data
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid data buffer"
)
;
i2c_slave.c:332
i2c_slave_transmit()
ESP_RETURN_ON_FALSE
(
(
i2c_slave
->
fifo_mode
==
I2C_SLAVE_FIFO
)
,
ESP_ERR_NOT_SUPPORTED
,
TAG
,
"non-fifo mode is not supported in this API, please set access_ram_en to false"
)
;
i2c_slave.c:333
i2c_slave_transmit()
ESP_RETURN_ON_FALSE
(
xSemaphoreTake
(
i2c_slave
->
slv_tx_mux
,
wait_ticks
)
==
pdTRUE
,
ESP_ERR_TIMEOUT
,
TAG
,
"transmit timeout"
)
;
i2c_slave.c:338
i2c_slave_transmit()
ESP_GOTO_ON_FALSE
(
xRingbufferSend
(
i2c_slave
->
tx_ring_buf
,
data
,
size
,
wait_ticks
)
==
pdTRUE
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"no space in ringbuffer"
)
;
i2c_slave.c:339
i2c_slave_transmit()
ESP_RETURN_ON_FALSE
(
i2c_slave
,
ESP_ERR_INVALID_ARG
,
TAG
,
"i2c slave not initialized"
)
;
i2c_slave.c:351
i2c_slave_receive()
ESP_RETURN_ON_FALSE
(
data
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid data buffer"
)
;
i2c_slave.c:352
i2c_slave_receive()
ESP_RETURN_ON_FALSE
(
(
i2c_slave
->
fifo_mode
==
I2C_SLAVE_FIFO
)
,
ESP_ERR_NOT_SUPPORTED
,
TAG
,
"non-fifo mode is not supported in this API, please set access_ram_en to false"
)
;
i2c_slave.c:353
i2c_slave_receive()
ESP_RETURN_ON_FALSE
(
i2c_slave
!=
NULL
,
ESP_ERR_INVALID_ARG
,
TAG
,
"i2c slave handle not initialized"
)
;
i2c_slave.c:419
i2c_slave_register_event_callbacks()
ESP_RETURN_ON_FALSE
(
cbs
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid argument"
)
;
i2c_slave.c:420
i2c_slave_register_event_callbacks()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
TAG
is read by 6 functions:
All items filtered out
TAG
s_i2c_handle_tx_fifo_wm()
i2c_new_slave_device()
i2c_del_slave_device()
i2c_slave_transmit()
i2c_slave_receive()
i2c_slave_register_event_callbacks()
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