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
i2s_common.c:77
static
const
char
*
TAG
=
"i2s_common"
;
Examples
References
from
examples
Code
Location
Referrer
static
const
char
*
TAG
=
"i2s_common"
;
i2s_common.c:77
I2S_NULL_POINTER_CHECK
(
TAG
,
i2s_obj
)
;
i2s_common.c:195
i2s_destroy_controller_obj()
I2S_NULL_POINTER_CHECK
(
TAG
,
*
i2s_obj
)
;
i2s_common.c:196
i2s_destroy_controller_obj()
ESP_ERR_INVALID_STATE
,
TAG
,
i2s_common.c:198
i2s_destroy_controller_obj()
ESP_LOGE
(
TAG
,
"i2s%d might be occupied by other component"
,
id
)
;
i2s_common.c:288
i2s_acquire_controller_obj()
I2S_NULL_POINTER_CHECK
(
TAG
,
i2s_obj
)
;
i2s_common.c:316
i2s_register_channel()
ESP_RETURN_ON_FALSE
(
new_chan
,
ESP_ERR_NO_MEM
,
TAG
,
"No memory for new channel"
)
;
i2s_common.c:321
i2s_register_channel()
ESP_GOTO_ON_FALSE
(
new_chan
->
msg_queue
,
ESP_ERR_NO_MEM
,
err
,
TAG
,
"No memory for message queue"
)
;
i2s_common.c:335
i2s_register_channel()
ESP_GOTO_ON_FALSE
(
new_chan
->
mutex
,
ESP_ERR_NO_MEM
,
err
,
TAG
,
"No memory for mutex semaphore"
)
;
i2s_common.c:337
i2s_register_channel()
ESP_GOTO_ON_FALSE
(
new_chan
->
binary
,
ESP_ERR_NO_MEM
,
err
,
TAG
,
"No memory for binary semaphore"
)
;
i2s_common.c:339
i2s_register_channel()
I2S_NULL_POINTER_CHECK
(
TAG
,
handle
)
;
i2s_common.c:387
i2s_channel_register_event_callback()
I2S_NULL_POINTER_CHECK
(
TAG
,
callbacks
)
;
i2s_common.c:388
i2s_channel_register_event_callback()
ESP_GOTO_ON_FALSE
(
handle
->
state
<
I2S_CHAN_STATE_RUNNING
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"invalid state, I2S has enabled"
)
;
i2s_common.c:409
i2s_channel_register_event_callback()
ESP_LOGW
(
TAG
,
"dma frame num is out of dma buffer size, limited to %"
PRIu32
,
frame_num
)
;
i2s_common.c:451
i2s_get_buf_size()
I2S_NULL_POINTER_CHECK
(
TAG
,
handle
)
;
i2s_common.c:458
i2s_free_dma_desc()
I2S_NULL_POINTER_CHECK
(
TAG
,
handle
)
;
i2s_common.c:486
i2s_alloc_dma_desc()
ESP_RETURN_ON_FALSE
(
bufsize
<=
I2S_DMA_BUFFER_MAX_SIZE
,
ESP_ERR_INVALID_ARG
,
TAG
,
"dma buffer can't be bigger than %d"
,
I2S_DMA_BUFFER_MAX_SIZE
)
;
i2s_common.c:488
i2s_alloc_dma_desc()
ESP_GOTO_ON_FALSE
(
handle
->
dma
.
desc
,
ESP_ERR_NO_MEM
,
err
,
TAG
,
"create I2S DMA descriptor array failed"
)
;
i2s_common.c:494
i2s_alloc_dma_desc()
ESP_GOTO_ON_FALSE
(
handle
->
dma
.
desc
[
i
]
,
ESP_ERR_NO_MEM
,
err
,
TAG
,
"allocate DMA description failed"
)
;
i2s_common.c:499
i2s_alloc_dma_desc()
ESP_GOTO_ON_FALSE
(
handle
->
dma
.
bufs
[
i
]
,
ESP_ERR_NO_MEM
,
err
,
TAG
,
"allocate DMA buffer failed"
)
;
i2s_common.c:507
i2s_alloc_dma_desc()
ESP_LOGV
(
TAG
,
"desc addr: %8p\tbuffer addr:%8p"
,
handle
->
dma
.
desc
[
i
]
,
handle
->
dma
.
bufs
[
i
]
)
;
i2s_common.c:512
i2s_alloc_dma_desc()
ESP_LOGD
(
TAG
,
"DMA malloc info: dma_desc_num = %"
PRIu32
", dma_desc_buf_size = dma_frame_num * slot_num * data_bit_width = %"
PRIu32
,
num
,
bufsize
)
;
i2s_common.c:525
i2s_alloc_dma_desc()
ESP_LOGE
(
TAG
,
"The required APLL frequency exceed its maximum value"
)
;
i2s_common.c:544
i2s_set_get_apll_freq()
ESP_LOGE
(
TAG
,
"set APLL freq failed due to invalid argument"
)
;
i2s_common.c:550
i2s_set_get_apll_freq()
ESP_LOGW
(
TAG
,
"APLL is occupied already, it is working at %"
PRIu32
" Hz while the expected frequency is %"
PRIu32
" Hz"
,
real_freq
,
expt_freq
)
;
i2s_common.c:554
i2s_set_get_apll_freq()
ESP_LOGW
(
TAG
,
"Trying to work at %"
PRIu32
" Hz..."
,
real_freq
)
;
i2s_common.c:555
i2s_set_get_apll_freq()
ESP_LOGD
(
TAG
,
"APLL expected frequency is %"
PRIu32
" Hz, real frequency is %"
PRIu32
" Hz"
,
expt_freq
,
real_freq
)
;
i2s_common.c:557
i2s_set_get_apll_freq()
ESP_RETURN_ON_FALSE
(
(
port_id
>=
0
)
&&
(
port_id
<
SOC_I2S_NUM
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid handle"
)
;
i2s_common.c:768
i2s_init_dma_intr()
ESP_LOGW
(
TAG
,
"GPIO %d is not usable, maybe conflict with others"
,
gpio_num
)
;
i2s_common.c:854
i2s_output_gpio_reserve()
ESP_RETURN_ON_ERROR
(
esp_clock_output_start
(
clkout_sig
,
gpio_num
,
&
(
g_i2s
.
controller
[
id
]
->
mclk_out_hdl
)
)
,
TAG
,
"mclk configure failed"
)
;
i2s_common.c:911
i2s_check_set_mclk()
ESP_LOGD
(
TAG
,
"MCLK is pinned to GPIO%d on I2S%d"
,
gpio_num
,
id
)
;
i2s_common.c:924
i2s_check_set_mclk()
esp_log_level_set
(
TAG
,
ESP_LOG_DEBUG
)
;
i2s_common.c:936
i2s_new_channel()
I2S_NULL_POINTER_CHECK
(
TAG
,
chan_cfg
)
;
i2s_common.c:939
i2s_new_channel()
I2S_NULL_POINTER_CHECK
(
TAG
,
tx_handle
||
rx_handle
)
;
i2s_common.c:940
i2s_new_channel()
ESP_RETURN_ON_FALSE
(
chan_cfg
->
id
<
SOC_I2S_NUM
||
chan_cfg
->
id
==
I2S_NUM_AUTO
,
ESP_ERR_INVALID_ARG
,
TAG
,
"invalid I2S port id"
)
;
i2s_common.c:941
i2s_new_channel()
ESP_RETURN_ON_FALSE
(
chan_cfg
->
dma_desc_num
>=
2
,
ESP_ERR_INVALID_ARG
,
TAG
,
"there should be at least 2 DMA buffers"
)
;
i2s_common.c:942
i2s_new_channel()
ESP_RETURN_ON_FALSE
(
chan_cfg
->
intr_priority
>=
0
&&
chan_cfg
->
intr_priority
<=
7
,
ESP_ERR_INVALID_ARG
,
TAG
,
"intr_priority should be within 0~7"
)
;
i2s_common.c:943
i2s_new_channel()
ESP_RETURN_ON_FALSE
(
!
chan_cfg
->
allow_pd
,
ESP_ERR_NOT_SUPPORTED
,
TAG
,
"register back up is not supported"
)
;
i2s_common.c:945
i2s_new_channel()
ESP_RETURN_ON_FALSE
(
i2s_obj
,
ESP_ERR_NOT_FOUND
,
TAG
,
"get i2s object failed"
)
;
i2s_common.c:966
i2s_new_channel()
ESP_RETURN_ON_FALSE
(
i2s_obj
,
ESP_ERR_NOT_FOUND
,
TAG
,
"get i2s object failed"
)
;
i2s_common.c:969
i2s_new_channel()
ESP_GOTO_ON_FALSE
(
channel_found
,
ESP_ERR_NOT_FOUND
,
err
,
TAG
,
"no available channel found"
)
;
i2s_common.c:972
i2s_new_channel()
err
,
TAG
,
"register I2S tx channel failed"
)
;
i2s_common.c:976
i2s_new_channel()
ESP_LOGD
(
TAG
,
"tx channel is registered on I2S%d successfully"
,
i2s_obj
->
id
)
;
i2s_common.c:986
i2s_new_channel()
err
,
TAG
,
"register I2S rx channel failed"
)
;
i2s_common.c:991
i2s_new_channel()
ESP_LOGD
(
TAG
,
"rx channel is registered on I2S%d successfully"
,
i2s_obj
->
id
)
;
i2s_common.c:999
i2s_new_channel()
I2S_NULL_POINTER_CHECK
(
TAG
,
handle
)
;
i2s_common.c:1028
i2s_del_channel()
ESP_RETURN_ON_FALSE
(
handle
->
state
<
I2S_CHAN_STATE_RUNNING
,
ESP_ERR_INVALID_STATE
,
TAG
,
"the channel can't be deleted unless it is disabled"
)
;
i2s_common.c:1029
i2s_del_channel()
ESP_LOGD
(
TAG
,
"%s channel on I2S%d deleted"
,
dir
==
I2S_DIR_TX
?
"tx"
:
"rx"
,
id
)
;
i2s_common.c:1115
i2s_del_channel()
I2S_NULL_POINTER_CHECK
(
TAG
,
handle
)
;
i2s_common.c:1123
i2s_channel_get_info()
I2S_NULL_POINTER_CHECK
(
TAG
,
chan_info
)
;
i2s_common.c:1124
i2s_channel_get_info()
I2S_NULL_POINTER_CHECK
(
TAG
,
handle
)
;
i2s_common.c:1160
i2s_channel_enable()
ESP_GOTO_ON_FALSE
(
handle
->
state
==
I2S_CHAN_STATE_READY
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"the channel has already enabled or not initialized"
)
;
i2s_common.c:1165
i2s_channel_enable()
ESP_LOGD
(
TAG
,
"i2s %s channel enabled"
,
handle
->
dir
==
I2S_DIR_TX
?
"tx"
:
"rx"
)
;
i2s_common.c:1177
i2s_channel_enable()
I2S_NULL_POINTER_CHECK
(
TAG
,
handle
)
;
i2s_common.c:1187
i2s_channel_disable()
ESP_GOTO_ON_FALSE
(
handle
->
state
>
I2S_CHAN_STATE_READY
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"the channel has not been enabled yet"
)
;
i2s_common.c:1191
i2s_channel_disable()
ESP_LOGD
(
TAG
,
"i2s %s channel disabled"
,
handle
->
dir
==
I2S_DIR_TX
?
"tx"
:
"rx"
)
;
i2s_common.c:1207
i2s_channel_disable()
I2S_NULL_POINTER_CHECK
(
TAG
,
tx_handle
)
;
i2s_common.c:1217
i2s_channel_preload_data()
ESP_RETURN_ON_FALSE
(
tx_handle
->
dir
==
I2S_DIR_TX
,
ESP_ERR_INVALID_ARG
,
TAG
,
"this channel is not tx channel"
)
;
i2s_common.c:1218
i2s_channel_preload_data()
ESP_RETURN_ON_FALSE
(
tx_handle
->
state
==
I2S_CHAN_STATE_READY
,
ESP_ERR_INVALID_STATE
,
TAG
,
"data can only be preloaded when the channel is READY"
)
;
i2s_common.c:1219
i2s_channel_preload_data()
I2S_NULL_POINTER_CHECK
(
TAG
,
handle
)
;
i2s_common.c:1274
i2s_channel_write()
ESP_RETURN_ON_FALSE
(
handle
->
dir
==
I2S_DIR_TX
,
ESP_ERR_INVALID_ARG
,
TAG
,
"this channel is not tx channel"
)
;
i2s_common.c:1275
i2s_channel_write()
ESP_RETURN_ON_FALSE
(
xSemaphoreTake
(
handle
->
binary
,
pdMS_TO_TICKS
(
timeout_ms
)
)
==
pdTRUE
,
ESP_ERR_INVALID_STATE
,
TAG
,
"The channel is not enabled"
)
;
i2s_common.c:1286
i2s_channel_write()
I2S_NULL_POINTER_CHECK
(
TAG
,
handle
)
;
i2s_common.c:1320
i2s_channel_read()
ESP_RETURN_ON_FALSE
(
handle
->
dir
==
I2S_DIR_RX
,
ESP_ERR_INVALID_ARG
,
TAG
,
"this channel is not rx channel"
)
;
i2s_common.c:1321
i2s_channel_read()
ESP_RETURN_ON_FALSE
(
xSemaphoreTake
(
handle
->
binary
,
pdMS_TO_TICKS
(
timeout_ms
)
)
==
pdTRUE
,
ESP_ERR_INVALID_STATE
,
TAG
,
"The channel is not enabled"
)
;
i2s_common.c:1332
i2s_channel_read()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
TAG
is read by 19 functions:
All items filtered out
TAG
i2s_destroy_controller_obj()
i2s_acquire_controller_obj()
i2s_register_channel()
i2s_channel_register_event_callback()
i2s_get_buf_size()
i2s_free_dma_desc()
i2s_alloc_dma_desc()
i2s_set_get_apll_freq()
i2s_init_dma_intr()
i2s_output_gpio_reserve()
i2s_check_set_mclk()
i2s_new_channel()
i2s_del_channel()
i2s_channel_get_info()
i2s_channel_enable()
i2s_channel_disable()
i2s_channel_preload_data()
i2s_channel_write()
i2s_channel_read()
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