ESP-IDF
i2s_dma_t::rw_pos
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (3/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::rw_pos
i2s_dma_t::rw_pos field
reading/writing pointer position
Syntax
Show:
Summary
Declaration
from
i2s_legacy.c:123
volatile
int
rw_pos
;
Examples
References
from
examples
Code
Location
Referrer
volatile
int
rw_pos
;
i2s_legacy.c:123
uint32_t
rw_pos
;
/*!< reading/writing pointer position */
i2s_private.h:122
new_chan
->
dma
.
rw_pos
=
0
;
i2s_common.c:345
i2s_register_channel()
handle
->
dma
.
rw_pos
=
0
;
i2s_common.c:1201
i2s_channel_disable()
tx_handle
->
dma
.
rw_pos
=
0
;
i2s_common.c:1231
i2s_channel_preload_data()
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()
memcpy
(
(
uint8_t
*
)
(
tx_handle
->
dma
.
curr_ptr
+
tx_handle
->
dma
.
rw_pos
)
,
data_ptr
,
bytes_can_load
)
;
i2s_common.c:1243
i2s_channel_preload_data()
tx_handle
->
dma
.
rw_pos
+=
bytes_can_load
;
// Move forward the dma buffer position
i2s_common.c:1250
i2s_channel_preload_data()
if
(
tx_handle
->
dma
.
rw_pos
==
tx_handle
->
dma
.
buf_size
)
{
i2s_common.c:1252
i2s_channel_preload_data()
tx_handle
->
dma
.
rw_pos
=
0
;
i2s_common.c:1259
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()
handle
->
dma
.
rw_pos
=
0
;
i2s_common.c:1294
i2s_channel_write()
data_ptr
+=
handle
->
dma
.
rw_pos
;
i2s_common.c:1297
i2s_channel_write()
bytes_can_write
=
handle
->
dma
.
buf_size
-
handle
->
dma
.
rw_pos
;
i2s_common.c:1298
i2s_channel_write()
handle
->
dma
.
rw_pos
+=
bytes_can_write
;
i2s_common.c:1308
i2s_channel_write()
if
(
handle
->
dma
.
rw_pos
==
handle
->
dma
.
buf_size
||
handle
->
dma
.
curr_ptr
==
NULL
)
{
i2s_common.c:1334
i2s_channel_read()
handle
->
dma
.
rw_pos
=
0
;
i2s_common.c:1339
i2s_channel_read()
data_ptr
+=
handle
->
dma
.
rw_pos
;
i2s_common.c:1342
i2s_channel_read()
bytes_can_read
=
handle
->
dma
.
buf_size
-
handle
->
dma
.
rw_pos
;
i2s_common.c:1343
i2s_channel_read()
handle
->
dma
.
rw_pos
+=
bytes_can_read
;
i2s_common.c:1350
i2s_channel_read()
p_i2s
[
i2s_num
]
->
tx
->
rw_pos
=
0
;
i2s_legacy.c:399
i2s_tx_reset()
p_i2s
[
i2s_num
]
->
rx
->
rw_pos
=
0
;
i2s_legacy.c:417
i2s_rx_reset()
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()
p_i2s
[
i2s_num
]
->
tx
->
rw_pos
=
0
;
i2s_legacy.c:1711
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()
data_ptr
+=
p_i2s
[
i2s_num
]
->
tx
->
rw_pos
;
i2s_legacy.c:1715
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()
p_i2s
[
i2s_num
]
->
tx
->
rw_pos
+=
bytes_can_write
;
i2s_legacy.c:1726
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()
p_i2s
[
i2s_num
]
->
tx
->
rw_pos
=
0
;
i2s_legacy.c:1777
i2s_write_expand()
data_ptr
+=
p_i2s
[
i2s_num
]
->
tx
->
rw_pos
;
i2s_legacy.c:1780
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()
p_i2s
[
i2s_num
]
->
tx
->
rw_pos
+=
bytes_can_write
;
i2s_legacy.c:1798
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()
p_i2s
[
i2s_num
]
->
rx
->
rw_pos
=
0
;
i2s_legacy.c:1822
i2s_read()
data_ptr
+=
p_i2s
[
i2s_num
]
->
rx
->
rw_pos
;
i2s_legacy.c:1825
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()
p_i2s
[
i2s_num
]
->
rx
->
rw_pos
+=
bytes_can_read
;
i2s_legacy.c:1833
i2s_read()
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()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
i2s_dma_t::rw_pos
is written by 10 functions and is read by 7 functions:
i2s_tx_reset()
i2s_rx_reset()
i2s_write()
i2s_write_expand()
i2s_read()
i2s_register_channel()
i2s_channel_disable()
i2s_channel_preload_data()
i2s_channel_write()
i2s_channel_read()
All items filtered out
i2s_dma_t::rw_pos
i2s_write()
i2s_write_expand()
i2s_read()
i2s_zero_dma_buffer()
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