ESP-IDF
TAG
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (3/5)...
Files
loading (3/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
i2s_std.c:27
const
static
char
*
TAG
=
"i2s_std"
;
Examples
References
from
examples
Code
Location
Referrer
const
static
char
*
TAG
=
"i2s_std"
;
i2s_std.c:27
ESP_LOGW
(
TAG
,
"the current mclk multiple cannot perform integer division (slot_num: %"
PRIu32
", slot_bits: %"
PRIu32
")"
,
handle
->
total_slot
,
slot_bits
)
;
i2s_std.c:43
i2s_std_calculate_clock()
ESP_RETURN_ON_FALSE
(
clk_info
->
sclk
/
(
float
)
clk_info
->
mclk
>
min_mclk_div
,
ESP_ERR_INVALID_ARG
,
TAG
,
"sample rate or mclk_multiple is too large for the current clock source"
)
;
i2s_std.c:62
i2s_std_calculate_clock()
(
clk_cfg
->
mclk_multiple
%
3
==
0
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
i2s_std.c:74
i2s_std_set_clock()
ESP_RETURN_ON_ERROR
(
i2s_std_calculate_clock
(
handle
,
clk_cfg
,
&
clk_info
)
,
TAG
,
"clock calculate failed"
)
;
i2s_std.c:79
i2s_std_set_clock()
ESP_LOGD
(
TAG
,
"Clock division info: [sclk] %"
PRIu32
" Hz [mdiv] %d [mclk] %"
PRIu32
" Hz [bdiv] %d [bclk] %"
PRIu32
" Hz"
,
i2s_std.c:80
i2s_std_set_clock()
ESP_RETURN_ON_ERROR
(
i2s_free_dma_desc
(
handle
)
,
TAG
,
"failed to free the old dma descriptor"
)
;
i2s_std.c:110
i2s_std_set_slot()
TAG
,
"allocate memory for dma descriptor failed"
)
;
i2s_std.c:112
i2s_std_set_slot()
ESP_ERR_INVALID_ARG
,
TAG
,
"bclk invalid"
)
;
i2s_std.c:152
i2s_std_set_gpio()
ESP_ERR_INVALID_ARG
,
TAG
,
"ws invalid"
)
;
i2s_std.c:154
i2s_std_set_gpio()
ESP_RETURN_ON_ERROR
(
i2s_check_set_mclk
(
handle
,
id
,
gpio_cfg
->
mclk
,
std_cfg
->
clk_cfg
.
clk_src
,
gpio_cfg
->
invert_flags
.
mclk_inv
)
,
TAG
,
"mclk config failed"
)
;
i2s_std.c:168
i2s_std_set_gpio()
esp_log_level_set
(
TAG
,
ESP_LOG_DEBUG
)
;
i2s_std.c:210
i2s_channel_init_std_mode()
I2S_NULL_POINTER_CHECK
(
TAG
,
handle
)
;
i2s_std.c:212
i2s_channel_init_std_mode()
ESP_GOTO_ON_FALSE
(
handle
->
mode_info
,
ESP_ERR_NO_MEM
,
err
,
TAG
,
"no memory for storing the configurations"
)
;
i2s_std.c:222
i2s_channel_init_std_mode()
ESP_GOTO_ON_FALSE
(
handle
->
state
==
I2S_CHAN_STATE_REGISTER
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"the channel has initialized already"
)
;
i2s_std.c:223
i2s_channel_init_std_mode()
ESP_GOTO_ON_ERROR
(
i2s_std_set_slot
(
handle
,
&
std_cfg
->
slot_cfg
)
,
err
,
TAG
,
"initialize channel failed while setting slot"
)
;
i2s_std.c:225
i2s_channel_init_std_mode()
ESP_GOTO_ON_ERROR
(
i2s_std_set_clock
(
handle
,
&
std_cfg
->
clk_cfg
)
,
err
,
TAG
,
"initialize channel failed while setting clock"
)
;
i2s_std.c:233
i2s_channel_init_std_mode()
ESP_GOTO_ON_ERROR
(
i2s_std_set_gpio
(
handle
,
&
std_cfg
->
gpio_cfg
)
,
err
,
TAG
,
"initialize channel failed while setting gpio pins"
)
;
i2s_std.c:235
i2s_channel_init_std_mode()
ESP_GOTO_ON_ERROR
(
i2s_init_dma_intr
(
handle
,
I2S_INTR_ALLOC_FLAGS
)
,
err
,
TAG
,
"initialize dma interrupt failed"
)
;
i2s_std.c:236
i2s_channel_init_std_mode()
ESP_RETURN_ON_ERROR
(
esp_pm_lock_create
(
pm_type
,
0
,
"i2s_driver"
,
&
handle
->
pm_lock
)
,
TAG
,
"I2S pm lock create failed"
)
;
i2s_std.c:248
i2s_channel_init_std_mode()
ESP_LOGD
(
TAG
,
"The %s channel on I2S%d has been initialized to STD mode successfully"
,
i2s_std.c:254
i2s_channel_init_std_mode()
I2S_NULL_POINTER_CHECK
(
TAG
,
handle
)
;
i2s_std.c:265
i2s_channel_reconfig_std_clock()
I2S_NULL_POINTER_CHECK
(
TAG
,
clk_cfg
)
;
i2s_std.c:266
i2s_channel_reconfig_std_clock()
ESP_GOTO_ON_FALSE
(
handle
->
mode
==
I2S_COMM_MODE_STD
,
ESP_ERR_INVALID_ARG
,
err
,
TAG
,
"this handle is not working in standard mode"
)
;
i2s_std.c:271
i2s_channel_reconfig_std_clock()
ESP_GOTO_ON_FALSE
(
handle
->
state
==
I2S_CHAN_STATE_READY
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"invalid state, I2S should be disabled before reconfiguring the clock"
)
;
i2s_std.c:272
i2s_channel_reconfig_std_clock()
ESP_GOTO_ON_FALSE
(
std_cfg
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"initialization not complete"
)
;
i2s_std.c:275
i2s_channel_reconfig_std_clock()
ESP_GOTO_ON_ERROR
(
i2s_std_set_clock
(
handle
,
clk_cfg
)
,
err
,
TAG
,
"update clock failed"
)
;
i2s_std.c:289
i2s_channel_reconfig_std_clock()
ESP_GOTO_ON_ERROR
(
esp_pm_lock_delete
(
handle
->
pm_lock
)
,
err
,
TAG
,
"I2S delete old pm lock failed"
)
;
i2s_std.c:294
i2s_channel_reconfig_std_clock()
ESP_GOTO_ON_ERROR
(
esp_pm_lock_create
(
pm_type
,
0
,
"i2s_driver"
,
&
handle
->
pm_lock
)
,
err
,
TAG
,
"I2S pm lock create failed"
)
;
i2s_std.c:301
i2s_channel_reconfig_std_clock()
I2S_NULL_POINTER_CHECK
(
TAG
,
handle
)
;
i2s_std.c:315
i2s_channel_reconfig_std_slot()
I2S_NULL_POINTER_CHECK
(
TAG
,
slot_cfg
)
;
i2s_std.c:316
i2s_channel_reconfig_std_slot()
ESP_GOTO_ON_FALSE
(
handle
->
mode
==
I2S_COMM_MODE_STD
,
ESP_ERR_INVALID_ARG
,
err
,
TAG
,
"this handle is not working in standard mode"
)
;
i2s_std.c:321
i2s_channel_reconfig_std_slot()
ESP_GOTO_ON_FALSE
(
handle
->
state
==
I2S_CHAN_STATE_READY
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"invalid state, I2S should be disabled before reconfiguring the slot"
)
;
i2s_std.c:322
i2s_channel_reconfig_std_slot()
ESP_GOTO_ON_FALSE
(
std_cfg
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"initialization not complete"
)
;
i2s_std.c:325
i2s_channel_reconfig_std_slot()
ESP_GOTO_ON_ERROR
(
i2s_std_set_slot
(
handle
,
slot_cfg
)
,
err
,
TAG
,
"set i2s standard slot failed"
)
;
i2s_std.c:327
i2s_channel_reconfig_std_slot()
ESP_GOTO_ON_ERROR
(
i2s_std_set_clock
(
handle
,
&
std_cfg
->
clk_cfg
)
,
err
,
TAG
,
"update clock failed"
)
;
i2s_std.c:332
i2s_channel_reconfig_std_slot()
I2S_NULL_POINTER_CHECK
(
TAG
,
handle
)
;
i2s_std.c:345
i2s_channel_reconfig_std_gpio()
I2S_NULL_POINTER_CHECK
(
TAG
,
gpio_cfg
)
;
i2s_std.c:346
i2s_channel_reconfig_std_gpio()
ESP_GOTO_ON_FALSE
(
handle
->
mode
==
I2S_COMM_MODE_STD
,
ESP_ERR_INVALID_ARG
,
err
,
TAG
,
"This handle is not working in standard mode"
)
;
i2s_std.c:351
i2s_channel_reconfig_std_gpio()
ESP_GOTO_ON_FALSE
(
handle
->
state
==
I2S_CHAN_STATE_READY
,
ESP_ERR_INVALID_STATE
,
err
,
TAG
,
"Invalid state, I2S should be disabled before reconfiguring the gpio"
)
;
i2s_std.c:352
i2s_channel_reconfig_std_gpio()
ESP_GOTO_ON_ERROR
(
i2s_std_set_gpio
(
handle
,
gpio_cfg
)
,
err
,
TAG
,
"set i2s standard slot failed"
)
;
i2s_std.c:357
i2s_channel_reconfig_std_gpio()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
TAG
is read by 8 functions:
All items filtered out
TAG
i2s_std_calculate_clock()
i2s_std_set_clock()
i2s_std_set_slot()
i2s_std_set_gpio()
i2s_channel_init_std_mode()
i2s_channel_reconfig_std_clock()
i2s_channel_reconfig_std_slot()
i2s_channel_reconfig_std_gpio()
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