ESP-IDF
i2s_dma_t::buf_size
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
i2s_dma_t::buf_size
i2s_dma_t::buf_size field
dma buffer size
Syntax
Show:
Summary
Declaration
from
i2s_private.h:119
uint32_t
buf_size
;
Examples
References
from
examples
Code
Location
Referrer
int
buf_size
;
i2s_legacy.c:122
uint32_t
buf_size
;
/*!< dma buffer size */
i2s_private.h:119
handle
->
dma
.
buf_size
=
bufsize
;
i2s_common.c:490
i2s_alloc_dma_desc()
evt
.
size
=
handle
->
dma
.
buf_size
;
i2s_common.c:681
i2s_dma_rx_callback()
evt
.
size
=
handle
->
dma
.
buf_size
;
i2s_common.c:722
i2s_dma_tx_callback()
memset
(
curr_buf
,
0
,
handle
->
dma
.
buf_size
)
;
i2s_common.c:725
i2s_dma_tx_callback()
memset
(
curr_buf
,
0
,
handle
->
dma
.
buf_size
)
;
i2s_common.c:739
i2s_dma_tx_callback()
chan_info
->
total_dma_buf_size
=
handle
->
state
>=
I2S_CHAN_STATE_READY
?
handle
->
dma
.
desc_num
*
handle
->
dma
.
buf_size
:
0
;
i2s_common.c:1143
i2s_channel_get_info()
size_t
bytes_can_load
=
remain_bytes
>
(
tx_handle
->
dma
.
buf_size
-
tx_handle
->
dma
.
rw_pos
)
?
i2s_common.c:1236
i2s_channel_preload_data()
(
tx_handle
->
dma
.
buf_size
-
tx_handle
->
dma
.
rw_pos
)
:
remain_bytes
;
i2s_common.c:1237
i2s_channel_preload_data()
if
(
tx_handle
->
dma
.
rw_pos
==
tx_handle
->
dma
.
buf_size
)
{
i2s_common.c:1252
i2s_channel_preload_data()
if
(
handle
->
dma
.
rw_pos
==
handle
->
dma
.
buf_size
||
handle
->
dma
.
curr_ptr
==
NULL
)
{
i2s_common.c:1289
i2s_channel_write()
bytes_can_write
=
handle
->
dma
.
buf_size
-
handle
->
dma
.
rw_pos
;
i2s_common.c:1298
i2s_channel_write()
if
(
handle
->
dma
.
rw_pos
==
handle
->
dma
.
buf_size
||
handle
->
dma
.
curr_ptr
==
NULL
)
{
i2s_common.c:1334
i2s_channel_read()
bytes_can_read
=
handle
->
dma
.
buf_size
-
handle
->
dma
.
rw_pos
;
i2s_common.c:1343
i2s_channel_read()
memset
(
(
void
*
)
(
(
(
lldesc_t
*
)
finish_desc
)
->
buf
)
,
0
,
p_i2s
->
tx
->
buf_size
)
;
i2s_legacy.c:304
i2s_intr_handler_default()
dma_obj
->
buf
[
cnt
]
=
heap_caps_aligned_calloc
(
4
,
1
,
sizeof
(
char
)
*
dma_obj
->
buf_size
,
i2s_legacy.c:585
i2s_alloc_dma_buffer()
dma_obj
->
desc
[
cnt
]
->
length
=
dma_obj
->
buf_size
;
i2s_legacy.c:602
i2s_alloc_dma_buffer()
dma_obj
->
desc
[
cnt
]
->
size
=
dma_obj
->
buf_size
;
i2s_legacy.c:603
i2s_alloc_dma_buffer()
i2s_ll_rx_set_eof_num
(
p_i2s
[
i2s_num
]
->
hal
.
dev
,
dma_obj
->
buf_size
)
;
i2s_legacy.c:613
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()
p_i2s
[
i2s_num
]
->
tx
->
buf_size
=
buf_size
;
i2s_legacy.c:1178
i2s_set_clk()
p_i2s
[
i2s_num
]
->
rx
->
buf_size
=
buf_size
;
i2s_legacy.c:1184
i2s_set_clk()
p_i2s
[
i2s_num
]
->
tx
->
buf_size
=
buf_size
;
i2s_legacy.c:1294
i2s_dma_object_init()
p_i2s
[
i2s_num
]
->
rx
->
buf_size
=
buf_size
;
i2s_legacy.c:1298
i2s_dma_object_init()
if
(
p_i2s
[
i2s_num
]
->
tx
->
rw_pos
==
p_i2s
[
i2s_num
]
->
tx
->
buf_size
||
p_i2s
[
i2s_num
]
->
tx
->
curr_ptr
==
NULL
)
{
i2s_legacy.c:1707
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()
bytes_can_write
=
p_i2s
[
i2s_num
]
->
tx
->
buf_size
-
p_i2s
[
i2s_num
]
->
tx
->
rw_pos
;
i2s_legacy.c:1716
i2s_write()
if
(
p_i2s
[
i2s_num
]
->
tx
->
rw_pos
==
p_i2s
[
i2s_num
]
->
tx
->
buf_size
||
p_i2s
[
i2s_num
]
->
tx
->
curr_ptr
==
NULL
)
{
i2s_legacy.c:1773
i2s_write_expand()
bytes_can_write
=
p_i2s
[
i2s_num
]
->
tx
->
buf_size
-
p_i2s
[
i2s_num
]
->
tx
->
rw_pos
;
i2s_legacy.c:1781
i2s_write_expand()
if
(
p_i2s
[
i2s_num
]
->
rx
->
rw_pos
==
p_i2s
[
i2s_num
]
->
rx
->
buf_size
||
p_i2s
[
i2s_num
]
->
rx
->
curr_ptr
==
NULL
)
{
i2s_legacy.c:1818
i2s_read()
bytes_can_read
=
p_i2s
[
i2s_num
]
->
rx
->
buf_size
-
p_i2s
[
i2s_num
]
->
rx
->
rw_pos
;
i2s_legacy.c:1826
i2s_read()
if
(
p_i2s
[
i2s_num
]
->
rx
&&
p_i2s
[
i2s_num
]
->
rx
->
buf
!=
NULL
&&
p_i2s
[
i2s_num
]
->
rx
->
buf_size
!=
0
)
{
i2s_legacy.c:1888
i2s_zero_dma_buffer()
memset
(
p_i2s
[
i2s_num
]
->
rx
->
buf
[
i
]
,
0
,
p_i2s
[
i2s_num
]
->
rx
->
buf_size
)
;
i2s_legacy.c:1890
i2s_zero_dma_buffer()
if
(
p_i2s
[
i2s_num
]
->
tx
&&
p_i2s
[
i2s_num
]
->
tx
->
buf
!=
NULL
&&
p_i2s
[
i2s_num
]
->
tx
->
buf_size
!=
0
)
{
i2s_legacy.c:1895
i2s_zero_dma_buffer()
int
bytes_left
=
(
p_i2s
[
i2s_num
]
->
tx
->
buf_size
-
p_i2s
[
i2s_num
]
->
tx
->
rw_pos
)
%
4
;
i2s_legacy.c:1897
i2s_zero_dma_buffer()
memset
(
p_i2s
[
i2s_num
]
->
tx
->
buf
[
i
]
,
0
,
p_i2s
[
i2s_num
]
->
tx
->
buf_size
)
;
i2s_legacy.c:1904
i2s_zero_dma_buffer()
if
(
handle
->
dma
.
buf_size
!=
buf_size
)
{
i2s_pdm.c:97
i2s_pdm_tx_set_slot()
handle
->
dma
.
buf_size
=
buf_size
;
i2s_pdm.c:98
i2s_pdm_tx_set_slot()
if
(
handle
->
dma
.
buf_size
!=
buf_size
)
{
i2s_pdm.c:385
i2s_pdm_rx_set_slot()
handle
->
dma
.
buf_size
=
buf_size
;
i2s_pdm.c:386
i2s_pdm_rx_set_slot()
if
(
handle
->
dma
.
buf_size
!=
buf_size
)
{
i2s_std.c:108
i2s_std_set_slot()
handle
->
dma
.
buf_size
=
buf_size
;
i2s_std.c:109
i2s_std_set_slot()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
i2s_dma_t::buf_size
is written by 6 functions and is read by 15 functions:
i2s_set_clk()
i2s_dma_object_init()
i2s_alloc_dma_desc()
i2s_std_set_slot()
i2s_pdm_tx_set_slot()
i2s_pdm_rx_set_slot()
All items filtered out
i2s_dma_t::buf_size
i2s_intr_handler_default()
i2s_alloc_dma_buffer()
i2s_write()
i2s_write_expand()
i2s_read()
i2s_zero_dma_buffer()
i2s_dma_rx_callback()
i2s_dma_tx_callback()
i2s_channel_get_info()
i2s_channel_preload_data()
i2s_channel_write()
i2s_channel_read()
i2s_std_set_slot()
i2s_pdm_tx_set_slot()
i2s_pdm_rx_set_slot()
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