ESP-IDF
twai_hal_context_t::state_flags
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
twai_hal_context_t::state_flags
twai_hal_context_t::state_flags field
Syntax
Show:
Summary
Declaration
from
twai_hal.h:66
uint32_t
state_flags
;
Examples
References
from
examples
Code
Location
Referrer
uint32_t
state_flags
;
twai_hal.h:66
hal_ctx
->
state_flags
=
0
;
twai_hal.c:24
twai_hal_init()
TWAI_HAL_SET_BITS
(
hal_ctx
->
state_flags
,
TWAI_HAL_STATE_FLAG_RUNNING
)
;
twai_hal.c:90
twai_hal_start()
TWAI_HAL_CLEAR_BITS
(
hal_ctx
->
state_flags
,
TWAI_HAL_STATE_FLAG_TX_BUFF_OCCUPIED
|
TWAI_HAL_STATE_FLAG_RUNNING
)
;
twai_hal.c:100
twai_hal_stop()
TWAI_HAL_SET_BITS
(
hal_ctx
->
state_flags
,
TWAI_HAL_STATE_FLAG_RECOVERING
)
;
twai_hal.h:144
twai_hal_start_bus_recovery()
return
hal_ctx
->
state_flags
&
check_flags
;
twai_hal.h:208
twai_hal_check_state_flags()
uint32_t
state_flags
=
hal_ctx
->
state_flags
;
twai_hal_iram.c:32
twai_hal_decode_interrupt()
}
else
if
(
hal_ctx
->
state_flags
&
TWAI_HAL_STATE_FLAG_RECOVERING
)
{
twai_hal_iram.c:50
twai_hal_decode_interrupt()
if
(
(
interrupts
&
TWAI_LL_INTR_TI
||
hal_ctx
->
state_flags
&
TWAI_HAL_STATE_FLAG_TX_BUFF_OCCUPIED
)
&&
status
&
TWAI_LL_STATUS_TBS
)
{
twai_hal_iram.c:66
twai_hal_decode_interrupt()
hal_ctx
->
state_flags
=
state_flags
;
twai_hal_iram.c:91
twai_hal_decode_interrupt()
TWAI_HAL_SET_BITS
(
hal_ctx
->
state_flags
,
TWAI_HAL_STATE_FLAG_TX_NEED_RETRY
)
;
twai_hal_iram.c:150
twai_hal_prepare_for_reset()
if
(
hal_ctx
->
state_flags
&
TWAI_HAL_STATE_FLAG_TX_NEED_RETRY
)
{
twai_hal_iram.c:168
twai_hal_recover_from_reset()
TWAI_HAL_CLEAR_BITS
(
hal_ctx
->
state_flags
,
TWAI_HAL_STATE_FLAG_TX_NEED_RETRY
)
;
twai_hal_iram.c:171
twai_hal_recover_from_reset()
TWAI_HAL_SET_BITS
(
hal_ctx
->
state_flags
,
TWAI_HAL_STATE_FLAG_TX_BUFF_OCCUPIED
)
;
twai_hal_iram.c:192
twai_hal_set_tx_buffer_and_transmit()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
twai_hal_context_t::state_flags
is written by 2 functions and is read by 8 functions:
twai_hal_init()
twai_hal_decode_interrupt()
All items filtered out
twai_hal_context_t::state_flags
twai_hal_start_bus_recovery()
twai_hal_check_state_flags()
twai_hal_start()
twai_hal_stop()
twai_hal_decode_interrupt()
twai_hal_prepare_for_reset()
twai_hal_recover_from_reset()
twai_hal_set_tx_buffer_and_transmit()
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