host sample
essl_spi_context_t::master_out
is only used within host sample.
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
host sample
essl_spi_context_t::master_out
essl_spi_context_t::master_out field
Syntax
Show:
Summary
Declaration
from
essl_spi.c:40
struct
{
size_t
sent_buf_num
;
size_t
slave_rx_buf_num
;
uint16_t
tx_buffer_size
;
uint8_t
tx_sync_reg
;
}
master_out
;
Examples
References
from
examples
Code
Location
Referrer
}
master_out
;
essl_spi.c:47
.
master_out
.
tx_buffer_size
=
init_config
->
tx_buf_size
,
essl_spi.c:284
essl_spi_init_dev()
.
master_out
.
tx_sync_reg
=
init_config
->
tx_sync_reg
,
essl_spi.c:285
essl_spi_init_dev()
ctx
->
master_out
.
sent_buf_num
=
0
;
essl_spi.c:309
essl_spi_reset_cnt()
uint8_t
reserved_1_head
=
ctx
->
master_out
.
tx_sync_reg
<
ctx
->
master_in
.
rx_sync_reg
?
ctx
->
master_out
.
tx_sync_reg
:
ctx
->
master_in
.
rx_sync_reg
;
essl_spi.c:319
essl_spi_read_reg()
uint8_t
reserved_2_head
=
ctx
->
master_out
.
tx_sync_reg
<
ctx
->
master_in
.
rx_sync_reg
?
ctx
->
master_in
.
rx_sync_reg
:
ctx
->
master_out
.
tx_sync_reg
;
essl_spi.c:321
essl_spi_read_reg()
uint8_t
reserved_1_head
=
ctx
->
master_out
.
tx_sync_reg
<
ctx
->
master_in
.
rx_sync_reg
?
ctx
->
master_out
.
tx_sync_reg
:
ctx
->
master_in
.
rx_sync_reg
;
essl_spi.c:408
essl_spi_write_reg()
uint8_t
reserved_2_head
=
ctx
->
master_out
.
tx_sync_reg
<
ctx
->
master_in
.
rx_sync_reg
?
ctx
->
master_in
.
rx_sync_reg
:
ctx
->
master_out
.
tx_sync_reg
;
essl_spi.c:410
essl_spi_write_reg()
ESP_LOGV
(
TAG
,
"slave rx buffer: %d, master has sent: %d"
,
ctx
->
master_out
.
slave_rx_buf_num
,
ctx
->
master_out
.
sent_buf_num
)
;
essl_spi.c:421
essl_spi_get_tx_buffer_num()
return
ctx
->
master_out
.
slave_rx_buf_num
-
ctx
->
master_out
.
sent_buf_num
;
essl_spi.c:422
essl_spi_get_tx_buffer_num()
ret
=
essl_spi_rdbuf_polling
(
ctx
->
spi
,
(
uint8_t
*
)
&
previous_size
,
ctx
->
master_out
.
tx_sync_reg
,
sizeof
(
uint32_t
)
,
0
)
;
essl_spi.c:432
essl_spi_update_tx_buffer_num()
ret
=
essl_spi_rdbuf_polling
(
ctx
->
spi
,
(
uint8_t
*
)
&
updated_num
,
ctx
->
master_out
.
tx_sync_reg
,
sizeof
(
uint32_t
)
,
0
)
;
essl_spi.c:443
essl_spi_update_tx_buffer_num()
ctx
->
master_out
.
slave_rx_buf_num
=
updated_num
;
essl_spi.c:448
essl_spi_update_tx_buffer_num()
uint32_t
buf_num_to_use
=
(
size
+
ctx
->
master_out
.
tx_buffer_size
-
1
)
/
ctx
->
master_out
.
tx_buffer_size
;
essl_spi.c:465
essl_spi_send_packet()
ESP_LOGV
(
TAG
,
"slave buffer: %"
PRIu32
" is not enough, %"
PRIu32
" is required"
,
(
uint32_t
)
ctx
->
master_out
.
slave_rx_buf_num
,
(
uint32_t
)
ctx
->
master_out
.
sent_buf_num
+
buf_num_to_use
)
;
essl_spi.c:478
essl_spi_send_packet()
ctx
->
master_out
.
sent_buf_num
+=
buf_num_to_use
;
essl_spi.c:488
essl_spi_send_packet()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
essl_spi_context_t::master_out
is read by 6 functions:
All items filtered out
essl_spi_context_t::master_out
essl_spi_reset_cnt()
essl_spi_read_reg()
essl_spi_write_reg()
essl_spi_get_tx_buffer_num()
essl_spi_update_tx_buffer_num()
essl_spi_send_packet()
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