Home
last modified time | relevance | path

Searched refs:state_flags (Results 1 – 3 of 3) sorted by relevance

/hal_espressif-3.6.0/components/hal/
Dtwai_hal_iram.c39 uint32_t state_flags = hal_ctx->state_flags; local
46 TWAI_HAL_SET_BITS(state_flags, TWAI_HAL_STATE_FLAG_BUS_OFF);
48 …TWAI_HAL_CLEAR_BITS(state_flags, TWAI_HAL_STATE_FLAG_RUNNING | TWAI_HAL_STATE_FLAG_TX_BUFF_OCCUPIE…
56 TWAI_HAL_SET_BITS(state_flags, TWAI_HAL_STATE_FLAG_ERR_WARN);
57 } else if (hal_ctx->state_flags & TWAI_HAL_STATE_FLAG_RECOVERING) {
60 … TWAI_HAL_CLEAR_BITS(state_flags, TWAI_HAL_STATE_FLAG_RECOVERING | TWAI_HAL_STATE_FLAG_BUS_OFF);
63 TWAI_HAL_CLEAR_BITS(state_flags, TWAI_HAL_STATE_FLAG_ERR_WARN);
73 …if ((interrupts & TWAI_LL_INTR_TI || hal_ctx->state_flags & TWAI_HAL_STATE_FLAG_TX_BUFF_OCCUPIED) …
78 TWAI_HAL_CLEAR_BITS(state_flags, TWAI_HAL_STATE_FLAG_TX_BUFF_OCCUPIED);
84 TWAI_HAL_SET_BITS(state_flags, TWAI_HAL_STATE_FLAG_ERR_PASSIVE);
[all …]
Dtwai_hal.c31 hal_ctx->state_flags = 0; in twai_hal_init()
74 TWAI_HAL_SET_BITS(hal_ctx->state_flags, TWAI_HAL_STATE_FLAG_RUNNING); in twai_hal_start()
84 …TWAI_HAL_CLEAR_BITS(hal_ctx->state_flags, TWAI_HAL_STATE_FLAG_TX_BUFF_OCCUPIED | TWAI_HAL_STATE_FL… in twai_hal_stop()
/hal_espressif-3.6.0/components/hal/include/hal/
Dtwai_hal.h69 uint32_t state_flags; member
140 TWAI_HAL_SET_BITS(hal_ctx->state_flags, TWAI_HAL_STATE_FLAG_RECOVERING); in twai_hal_start_bus_recovery()
202 return hal_ctx->state_flags & check_flags; in twai_hal_check_state_flags()