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
i2s_legacy.c:74
static
const
char
*
TAG
=
"i2s(legacy)"
;
Examples
References
from
examples
Code
Location
Referrer
static
const
char
*
TAG
=
"i2s(legacy)"
;
i2s_legacy.c:74
ESP_EARLY_LOGE
(
TAG
,
"dma error, interrupt status: 0x%08"
PRIx32
,
status
)
;
i2s_legacy.c:275
i2s_intr_handler_default()
ESP_RETURN_ON_ERROR
(
esp_intr_alloc
(
i2s_periph_signal
[
i2s_num
]
.
irq
,
intr_flag
,
i2s_intr_handler_default
,
p_i2s
[
i2s_num
]
,
&
p_i2s
[
i2s_num
]
->
i2s_isr_handle
)
,
TAG
,
"Register I2S Interrupt error"
)
;
i2s_legacy.c:391
i2s_dma_intr_init()
ESP_RETURN_ON_FALSE
(
(
i2s_num
<
SOC_I2S_NUM
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"i2s_num error"
)
;
i2s_legacy.c:477
i2s_start()
ESP_RETURN_ON_FALSE
(
(
i2s_num
<
SOC_I2S_NUM
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"i2s_num error"
)
;
i2s_legacy.c:498
i2s_stop()
ESP_LOGW
(
TAG
,
"dma frame num is out of dma buffer size, limited to %"
PRIu32
,
frame_num
)
;
i2s_legacy.c:553
i2s_get_buf_size()
ESP_RETURN_ON_FALSE
(
dma_obj
,
ESP_ERR_INVALID_ARG
,
TAG
,
"I2S DMA object can't be NULL"
)
;
i2s_legacy.c:561
i2s_delete_dma_buffer()
ESP_GOTO_ON_FALSE
(
dma_obj
,
ESP_ERR_INVALID_ARG
,
err
,
TAG
,
"I2S DMA object can't be NULL"
)
;
i2s_legacy.c:580
i2s_alloc_dma_buffer()
ESP_GOTO_ON_FALSE
(
dma_obj
->
buf
[
cnt
]
,
ESP_ERR_NO_MEM
,
err
,
TAG
,
"Error malloc dma buffer"
)
;
i2s_legacy.c:587
i2s_alloc_dma_buffer()
ESP_GOTO_ON_FALSE
(
dma_obj
->
desc
[
cnt
]
,
ESP_ERR_NO_MEM
,
err
,
TAG
,
"Error malloc dma description entry"
)
;
i2s_legacy.c:594
i2s_alloc_dma_buffer()
ESP_LOGD
(
TAG
,
"DMA Malloc info, datalen=blocksize=%d, dma_desc_num=%"
PRIu32
,
dma_obj
->
buf_size
,
buf_cnt
)
;
i2s_legacy.c:615
i2s_alloc_dma_buffer()
ESP_RETURN_ON_FALSE
(
dma_obj
,
ESP_ERR_INVALID_ARG
,
TAG
,
"I2S DMA object can't be NULL"
)
;
i2s_legacy.c:625
i2s_realloc_dma_buffer()
ESP_RETURN_ON_ERROR
(
i2s_alloc_dma_buffer
(
i2s_num
,
dma_obj
)
,
TAG
,
"Failed to allocate dma buffer"
)
;
i2s_legacy.c:630
i2s_realloc_dma_buffer()
ESP_RETURN_ON_FALSE
(
p_i2s
[
i2s_num
]
,
ESP_ERR_INVALID_ARG
,
TAG
,
"I2S not initialized yet"
)
;
i2s_legacy.c:638
i2s_destroy_dma_object()
ESP_LOGD
(
TAG
,
"DMA queue destroyed"
)
;
i2s_legacy.c:661
i2s_destroy_dma_object()
ESP_RETURN_ON_FALSE
(
dma
,
ESP_ERR_INVALID_ARG
,
TAG
,
"DMA object secondary pointer is NULL"
)
;
i2s_legacy.c:667
i2s_create_dma_object()
ESP_RETURN_ON_FALSE
(
(
*
dma
==
NULL
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"DMA object has been created"
)
;
i2s_legacy.c:668
i2s_create_dma_object()
ESP_RETURN_ON_FALSE
(
*
dma
,
ESP_ERR_NO_MEM
,
TAG
,
"DMA object allocate failed"
)
;
i2s_legacy.c:672
i2s_create_dma_object()
ESP_LOGE
(
TAG
,
"I2S DMA object create failed, preparing to uninstall"
)
;
i2s_legacy.c:695
i2s_create_dma_object()
ESP_LOGE
(
TAG
,
"set APLL coefficients failed"
)
;
i2s_legacy.c:721
i2s_config_source_clock()
ESP_LOGW
(
TAG
,
"APLL is occupied already, it is working at %"
PRIu32
" Hz"
,
real_freq
)
;
i2s_legacy.c:725
i2s_config_source_clock()
ESP_LOGD
(
TAG
,
"APLL expected frequency is %"
PRIu32
" Hz, real frequency is %"
PRIu32
" Hz"
,
expt_freq
,
real_freq
)
;
i2s_legacy.c:727
i2s_config_source_clock()
ESP_RETURN_ON_FALSE
(
clk_info
->
sclk
/
(
float
)
clk_info
->
mclk
>
1.99
,
ESP_ERR_INVALID_ARG
,
TAG
,
"sample rate is too large, the mclk division is below minimum value 2"
)
;
i2s_legacy.c:764
i2s_calculate_adc_dac_clock()
ESP_RETURN_ON_FALSE
(
clk_info
->
mclk_div
<
256
,
ESP_ERR_INVALID_ARG
,
TAG
,
"sample rate is too small, the mclk division exceed the maximum value 255"
)
;
i2s_legacy.c:765
i2s_calculate_adc_dac_clock()
ESP_RETURN_ON_FALSE
(
clk_info
->
sclk
/
(
float
)
clk_info
->
mclk
>
1.99
,
ESP_ERR_INVALID_ARG
,
TAG
,
"sample rate is too large, the mclk division is below minimum value 2"
)
;
i2s_legacy.c:793
i2s_calculate_pdm_tx_clock()
ESP_RETURN_ON_FALSE
(
clk_info
->
mclk_div
<
256
,
ESP_ERR_INVALID_ARG
,
TAG
,
"sample rate is too small, the mclk division exceed the maximum value 255"
)
;
i2s_legacy.c:794
i2s_calculate_pdm_tx_clock()
ESP_RETURN_ON_FALSE
(
clk_info
->
sclk
/
(
float
)
clk_info
->
mclk
>
1.99
,
ESP_ERR_INVALID_ARG
,
TAG
,
"sample rate is too large, the mclk division is below minimum value 2"
)
;
i2s_legacy.c:820
i2s_calculate_pdm_rx_clock()
ESP_RETURN_ON_FALSE
(
clk_info
->
mclk_div
<
256
,
ESP_ERR_INVALID_ARG
,
TAG
,
"sample rate is too small, the mclk division exceed the maximum value 255"
)
;
i2s_legacy.c:821
i2s_calculate_pdm_rx_clock()
ESP_RETURN_ON_FALSE
(
clk_info
->
mclk
<=
clk_info
->
sclk
,
ESP_ERR_INVALID_ARG
,
TAG
,
"sample rate is too large"
)
;
i2s_legacy.c:850
i2s_calculate_common_clock()
ESP_RETURN_ON_ERROR
(
i2s_calculate_adc_dac_clock
(
i2s_num
,
clk_info
)
,
TAG
,
"ADC/DAC clock calculate failed"
)
;
i2s_legacy.c:860
i2s_calculate_clock()
ESP_RETURN_ON_ERROR
(
i2s_calculate_pdm_tx_clock
(
i2s_num
,
clk_info
)
,
TAG
,
"PDM TX clock calculate failed"
)
;
i2s_legacy.c:870
i2s_calculate_clock()
ESP_RETURN_ON_ERROR
(
i2s_calculate_pdm_rx_clock
(
i2s_num
,
clk_info
)
,
TAG
,
"PDM RX clock calculate failed"
)
;
i2s_legacy.c:875
i2s_calculate_clock()
ESP_RETURN_ON_ERROR
(
i2s_calculate_common_clock
(
i2s_num
,
clk_info
)
,
TAG
,
"Common clock calculate failed"
)
;
i2s_legacy.c:883
i2s_calculate_clock()
ESP_LOGD
(
TAG
,
"[sclk] %"
PRIu32
" [mclk] %"
PRIu32
" [mclk_div] %d [bclk] %"
PRIu32
" [bclk_div] %d"
,
i2s_legacy.c:884
i2s_calculate_clock()
ESP_RETURN_ON_FALSE
(
(
dac_mode
<
I2S_DAC_CHANNEL_MAX
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"i2s dac mode error"
)
;
i2s_legacy.c:912
i2s_set_dac_mode()
ESP_RETURN_ON_FALSE
(
(
(
_i2s_adc_unit
!=
-
1
)
&&
(
_i2s_adc_channel
!=
-
1
)
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"i2s ADC recover error, not initialized..."
)
;
i2s_legacy.c:956
_i2s_adc_mode_recover()
ESP_RETURN_ON_FALSE
(
(
adc_unit
<
ADC_UNIT_2
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"i2s ADC unit error, only support ADC1 for now"
)
;
i2s_legacy.c:962
i2s_set_adc_mode()
ESP_RETURN_ON_FALSE
(
(
i2s_num
<
SOC_I2S_NUM
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"i2s_num error"
)
;
i2s_legacy.c:971
i2s_adc_enable()
ESP_RETURN_ON_FALSE
(
(
p_i2s
[
i2s_num
]
!=
NULL
)
,
ESP_ERR_INVALID_STATE
,
TAG
,
"Not initialized yet"
)
;
i2s_legacy.c:972
i2s_adc_enable()
ESP_ERR_INVALID_STATE
,
TAG
,
"i2s built-in adc not enabled"
)
;
i2s_legacy.c:974
i2s_adc_enable()
ESP_RETURN_ON_FALSE
(
(
i2s_num
<
SOC_I2S_NUM
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"i2s_num error"
)
;
i2s_legacy.c:984
i2s_adc_disable()
ESP_RETURN_ON_FALSE
(
(
p_i2s
[
i2s_num
]
!=
NULL
)
,
ESP_ERR_INVALID_STATE
,
TAG
,
"Not initialized yet"
)
;
i2s_legacy.c:985
i2s_adc_disable()
ESP_ERR_INVALID_STATE
,
TAG
,
"i2s built-in adc not enabled"
)
;
i2s_legacy.c:987
i2s_adc_disable()
ESP_RETURN_ON_FALSE
(
(
i2s_num
<
SOC_I2S_NUM
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"i2s_num error"
)
;
i2s_legacy.c:999
i2s_check_cfg_validity()
ESP_RETURN_ON_FALSE
(
p_i2s
[
i2s_num
]
==
NULL
,
ESP_ERR_INVALID_STATE
,
TAG
,
"this i2s port is in use"
)
;
i2s_legacy.c:1000
i2s_check_cfg_validity()
ESP_RETURN_ON_FALSE
(
cfg
,
ESP_ERR_INVALID_ARG
,
TAG
,
"I2S configuration must not be NULL"
)
;
i2s_legacy.c:1001
i2s_check_cfg_validity()
ESP_RETURN_ON_FALSE
(
(
cfg
->
dma_desc_num
>=
2
&&
cfg
->
dma_desc_num
<=
128
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"I2S buffer count less than 128 and more than 2"
)
;
i2s_legacy.c:1003
i2s_check_cfg_validity()
ESP_RETURN_ON_FALSE
(
(
cfg
->
dma_frame_num
>=
8
&&
cfg
->
dma_frame_num
<=
1024
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"I2S buffer length at most 1024 and more than 8"
)
;
i2s_legacy.c:1004
i2s_check_cfg_validity()
ESP_RETURN_ON_FALSE
(
i2s_num
==
I2S_NUM_0
,
ESP_ERR_INVALID_ARG
,
TAG
,
"I2S PDM mode only support on I2S0"
)
;
i2s_legacy.c:1009
i2s_check_cfg_validity()
ESP_RETURN_ON_FALSE
(
i2s_num
==
I2S_NUM_0
,
ESP_ERR_INVALID_ARG
,
TAG
,
"I2S built-in ADC/DAC only support on I2S0"
)
;
i2s_legacy.c:1024
i2s_check_cfg_validity()
ESP_RETURN_ON_FALSE
(
(
i2s_num
<
SOC_I2S_NUM
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"i2s_num error"
)
;
i2s_legacy.c:1109
i2s_get_clk()
ESP_RETURN_ON_FALSE
(
(
i2s_num
<
SOC_I2S_NUM
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"i2s_num error"
)
;
i2s_legacy.c:1116
i2s_set_clk()
ESP_RETURN_ON_FALSE
(
p_i2s
[
i2s_num
]
,
ESP_ERR_INVALID_ARG
,
TAG
,
"I2S%d has not installed yet"
,
i2s_num
)
;
i2s_legacy.c:1117
i2s_set_clk()
ESP_RETURN_ON_FALSE
(
(
slot_cfg
->
data_bit_width
%
8
==
0
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"Invalid bits per sample"
)
;
i2s_legacy.c:1135
i2s_set_clk()
ESP_RETURN_ON_FALSE
(
(
slot_cfg
->
slot_bit_width
%
8
==
0
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"Invalid bits per channel"
)
;
i2s_legacy.c:1138
i2s_set_clk()
ESP_RETURN_ON_FALSE
(
(
(
int
)
slot_cfg
->
slot_bit_width
<=
(
int
)
I2S_BITS_PER_SAMPLE_32BIT
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"Invalid bits per sample"
)
;
i2s_legacy.c:1139
i2s_set_clk()
ESP_RETURN_ON_ERROR
(
ret
,
TAG
,
"I2S%d tx DMA buffer malloc failed"
,
i2s_num
)
;
i2s_legacy.c:1181
i2s_set_clk()
ESP_RETURN_ON_ERROR
(
ret
,
TAG
,
"I2S%d rx DMA buffer malloc failed"
,
i2s_num
)
;
i2s_legacy.c:1187
i2s_set_clk()
ESP_RETURN_ON_FALSE
(
(
i2s_num
<
SOC_I2S_NUM
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"i2s_num error"
)
;
i2s_legacy.c:1208
i2s_set_sample_rates()
ESP_RETURN_ON_FALSE
(
p_i2s
[
i2s_num
]
,
ESP_FAIL
,
TAG
,
"i2s has not installed yet"
)
;
i2s_legacy.c:1257
i2s_set_pdm_rx_down_sample()
ESP_RETURN_ON_FALSE
(
(
p_i2s
[
i2s_num
]
->
mode
==
I2S_COMM_MODE_PDM
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"i2s mode is not PDM mode"
)
;
i2s_legacy.c:1258
i2s_set_pdm_rx_down_sample()
ESP_RETURN_ON_FALSE
(
p_i2s
[
i2s_num
]
,
ESP_FAIL
,
TAG
,
"i2s has not installed yet"
)
;
i2s_legacy.c:1272
i2s_set_pdm_tx_up_sample()
ESP_ERR_INVALID_ARG
,
TAG
,
"i2s mode is not PDM mode"
)
;
i2s_legacy.c:1274
i2s_set_pdm_tx_up_sample()
ESP_RETURN_ON_ERROR
(
i2s_create_dma_object
(
i2s_num
,
&
p_i2s
[
i2s_num
]
->
tx
)
,
TAG
,
"I2S TX DMA object create failed"
)
;
i2s_legacy.c:1293
i2s_dma_object_init()
ESP_RETURN_ON_ERROR
(
i2s_create_dma_object
(
i2s_num
,
&
p_i2s
[
i2s_num
]
->
rx
)
,
TAG
,
"I2S RX DMA object create failed"
)
;
i2s_legacy.c:1297
i2s_dma_object_init()
ESP_RETURN_ON_ERROR
(
esp_pm_lock_create
(
pm_lock
,
0
,
"i2s_driver"
,
&
p_i2s
[
i2s_num
]
->
pm_lock
)
,
TAG
,
"I2S pm lock error"
)
;
i2s_legacy.c:1482
i2s_init_legacy()
ESP_RETURN_ON_ERROR
(
i2s_dma_intr_init
(
i2s_num
,
intr_alloc_flag
)
,
TAG
,
"I2S interrupt initialize failed"
)
;
i2s_legacy.c:1542
i2s_init_legacy()
ESP_RETURN_ON_ERROR
(
i2s_dma_object_init
(
i2s_num
)
,
TAG
,
"I2S dma object create failed"
)
;
i2s_legacy.c:1543
i2s_init_legacy()
ESP_RETURN_ON_ERROR
(
i2s_realloc_dma_buffer
(
i2s_num
,
p_i2s
[
i2s_num
]
->
tx
)
,
TAG
,
"Allocate I2S dma tx buffer failed"
)
;
i2s_legacy.c:1545
i2s_init_legacy()
ESP_RETURN_ON_ERROR
(
i2s_realloc_dma_buffer
(
i2s_num
,
p_i2s
[
i2s_num
]
->
rx
)
,
TAG
,
"Allocate I2S dma rx buffer failed"
)
;
i2s_legacy.c:1548
i2s_init_legacy()
ESP_RETURN_ON_FALSE
(
i2s_num
<
SOC_I2S_NUM
,
ESP_ERR_INVALID_ARG
,
TAG
,
"i2s_num error"
)
;
i2s_legacy.c:1556
i2s_driver_uninstall()
ESP_RETURN_ON_FALSE
(
p_i2s
[
i2s_num
]
,
ESP_ERR_INVALID_STATE
,
TAG
,
"I2S port %d has not installed"
,
i2s_num
)
;
i2s_legacy.c:1557
i2s_driver_uninstall()
ESP_RETURN_ON_ERROR
(
i2s_check_cfg_validity
(
i2s_num
,
i2s_config
)
,
TAG
,
"I2S configuration is invalid"
)
;
i2s_legacy.c:1649
i2s_driver_install()
ESP_RETURN_ON_FALSE
(
i2s_obj
,
ESP_ERR_NO_MEM
,
TAG
,
"no mem for I2S driver"
)
;
i2s_legacy.c:1653
i2s_driver_install()
ESP_LOGE
(
TAG
,
"register I2S object to platform failed"
)
;
i2s_legacy.c:1656
i2s_driver_install()
ESP_GOTO_ON_ERROR
(
i2s_config_transfer
(
i2s_num
,
i2s_config
)
,
err
,
TAG
,
"I2S install failed"
)
;
i2s_legacy.c:1664
i2s_driver_install()
ESP_GOTO_ON_ERROR
(
i2s_init_legacy
(
i2s_num
,
i2s_config
->
intr_alloc_flags
)
,
err
,
TAG
,
"I2S init failed"
)
;
i2s_legacy.c:1670
i2s_driver_install()
ESP_GOTO_ON_FALSE
(
i2s_obj
->
i2s_queue
,
ESP_ERR_NO_MEM
,
err
,
TAG
,
"I2S queue create failed"
)
;
i2s_legacy.c:1675
i2s_driver_install()
ESP_LOGD
(
TAG
,
"queue free spaces: %"
PRIu32
,
(
uint32_t
)
uxQueueSpacesAvailable
(
i2s_obj
->
i2s_queue
)
)
;
i2s_legacy.c:1677
i2s_driver_install()
ESP_GOTO_ON_ERROR
(
i2s_start
(
i2s_num
)
,
err
,
TAG
,
"I2S start failed"
)
;
i2s_legacy.c:1683
i2s_driver_install()
ESP_RETURN_ON_FALSE
(
(
i2s_num
<
SOC_I2S_NUM
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"i2s_num error"
)
;
i2s_legacy.c:1699
i2s_write()
ESP_RETURN_ON_FALSE
(
(
p_i2s
[
i2s_num
]
->
tx
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"TX mode is not enabled"
)
;
i2s_legacy.c:1700
i2s_write()
ESP_LOGD
(
TAG
,
"size: %d, rw_pos: %d, buf_size: %d, curr_ptr: %p"
,
size
,
p_i2s
[
i2s_num
]
->
tx
->
rw_pos
,
p_i2s
[
i2s_num
]
->
tx
->
buf_size
,
p_i2s
[
i2s_num
]
->
tx
->
curr_ptr
)
;
i2s_legacy.c:1713
i2s_write()
ESP_RETURN_ON_FALSE
(
(
i2s_num
<
SOC_I2S_NUM
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"i2s_num error"
)
;
i2s_legacy.c:1745
i2s_write_expand()
ESP_RETURN_ON_FALSE
(
(
size
>
0
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"size must greater than zero"
)
;
i2s_legacy.c:1746
i2s_write_expand()
ESP_RETURN_ON_FALSE
(
(
aim_bits
>=
src_bits
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"aim_bits mustn't be less than src_bits"
)
;
i2s_legacy.c:1747
i2s_write_expand()
ESP_RETURN_ON_FALSE
(
(
p_i2s
[
i2s_num
]
->
tx
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"TX mode is not enabled"
)
;
i2s_legacy.c:1748
i2s_write_expand()
ESP_LOGE
(
TAG
,
"bits mustn't be less than 8, src_bits %d aim_bits %d"
,
src_bits
,
aim_bits
)
;
i2s_legacy.c:1750
i2s_write_expand()
ESP_LOGE
(
TAG
,
"bits mustn't be greater than 32, src_bits %d aim_bits %d"
,
src_bits
,
aim_bits
)
;
i2s_legacy.c:1754
i2s_write_expand()
ESP_LOGE
(
TAG
,
"size must be a even number while src_bits is even, src_bits %d size %d"
,
src_bits
,
size
)
;
i2s_legacy.c:1758
i2s_write_expand()
ESP_LOGE
(
TAG
,
"size must be a multiple of 3 while src_bits is 24, size %d"
,
size
)
;
i2s_legacy.c:1762
i2s_write_expand()
ESP_LOGD
(
TAG
,
"aim_bytes %d src_bytes %d size %d"
,
aim_bytes
,
src_bytes
,
size
)
;
i2s_legacy.c:1771
i2s_write_expand()
ESP_RETURN_ON_FALSE
(
(
i2s_num
<
SOC_I2S_NUM
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"i2s_num error"
)
;
i2s_legacy.c:1811
i2s_read()
ESP_RETURN_ON_FALSE
(
(
p_i2s
[
i2s_num
]
->
rx
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"RX mode is not enabled"
)
;
i2s_legacy.c:1812
i2s_read()
ESP_RETURN_ON_ERROR
(
esp_clock_output_start
(
clkout_sig
,
gpio_num
,
&
p_i2s
[
i2s_num
]
->
mclk_out_hdl
)
,
TAG
,
"mclk configure failed"
)
;
i2s_legacy.c:1873
i2s_check_set_mclk()
ESP_LOGD
(
TAG
,
"I2S%d, MCLK output by GPIO%d"
,
i2s_num
,
gpio_num
)
;
i2s_legacy.c:1878
i2s_check_set_mclk()
ESP_RETURN_ON_FALSE
(
(
i2s_num
<
SOC_I2S_NUM
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"i2s_num error"
)
;
i2s_legacy.c:1884
i2s_zero_dma_buffer()
ESP_RETURN_ON_FALSE
(
(
i2s_num
<
SOC_I2S_NUM
)
,
ESP_ERR_INVALID_ARG
,
TAG
,
"i2s_num error"
)
;
i2s_legacy.c:1912
i2s_set_pin()
ESP_ERR_INVALID_ARG
,
TAG
,
"bck_io_num invalid"
)
;
i2s_legacy.c:1922
i2s_set_pin()
ESP_ERR_INVALID_ARG
,
TAG
,
"ws_io_num invalid"
)
;
i2s_legacy.c:1924
i2s_set_pin()
ESP_ERR_INVALID_ARG
,
TAG
,
"data_out_num invalid"
)
;
i2s_legacy.c:1926
i2s_set_pin()
ESP_ERR_INVALID_ARG
,
TAG
,
"data_in_num invalid"
)
;
i2s_legacy.c:1928
i2s_set_pin()
ESP_RETURN_ON_ERROR
(
i2s_check_set_mclk
(
i2s_num
,
pin
->
mck_io_num
)
,
TAG
,
"mclk config failed"
)
;
i2s_legacy.c:1942
i2s_set_pin()
ESP_EARLY_LOGE
(
TAG
,
"CONFLICT! The new i2s driver can't work along with the legacy i2s driver"
)
;
i2s_legacy.c:1969
check_i2s_driver_conflict()
ESP_EARLY_LOGW
(
TAG
,
"legacy i2s driver is deprecated, please migrate to use driver/i2s_std.h, driver/i2s_pdm.h or driver/i2s_tdm.h"
)
;
i2s_legacy.c:1972
check_i2s_driver_conflict()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
TAG
is read by 38 functions:
All items filtered out
TAG
i2s_intr_handler_default()
i2s_dma_intr_init()
i2s_start()
i2s_stop()
i2s_get_buf_size()
i2s_delete_dma_buffer()
i2s_alloc_dma_buffer()
i2s_realloc_dma_buffer()
i2s_destroy_dma_object()
i2s_create_dma_object()
i2s_config_source_clock()
i2s_calculate_adc_dac_clock()
i2s_calculate_pdm_tx_clock()
i2s_calculate_pdm_rx_clock()
i2s_calculate_common_clock()
i2s_calculate_clock()
i2s_set_dac_mode()
_i2s_adc_mode_recover()
i2s_set_adc_mode()
i2s_adc_enable()
i2s_adc_disable()
i2s_check_cfg_validity()
i2s_get_clk()
i2s_set_clk()
i2s_set_sample_rates()
i2s_set_pdm_rx_down_sample()
i2s_set_pdm_tx_up_sample()
i2s_dma_object_init()
i2s_init_legacy()
i2s_driver_uninstall()
i2s_driver_install()
i2s_write()
i2s_write_expand()
i2s_read()
i2s_check_set_mclk()
i2s_zero_dma_buffer()
i2s_set_pin()
check_i2s_driver_conflict()
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