Lines Matching refs:events
34 uint32_t events = 0; local
45 TWAI_HAL_SET_BITS(events, TWAI_HAL_EVENT_BUS_OFF);
51 TWAI_HAL_SET_BITS(events, TWAI_HAL_EVENT_BUS_RECOV_PROGRESS);
55 TWAI_HAL_SET_BITS(events, TWAI_HAL_EVENT_ABOVE_EWL);
59 TWAI_HAL_SET_BITS(events, TWAI_HAL_EVENT_BUS_RECOV_CPLT);
62 TWAI_HAL_SET_BITS(events, TWAI_HAL_EVENT_BELOW_EWL);
69 TWAI_HAL_SET_BITS(events, TWAI_HAL_EVENT_RX_BUFF_FRAME);
77 TWAI_HAL_SET_BITS(events, TWAI_HAL_EVENT_TX_BUFF_FREE);
83 TWAI_HAL_SET_BITS(events, TWAI_HAL_EVENT_ERROR_PASSIVE);
86 TWAI_HAL_SET_BITS(events, TWAI_HAL_EVENT_ERROR_ACTIVE);
92 TWAI_HAL_SET_BITS(events, TWAI_HAL_EVENT_BUS_ERR);
96 TWAI_HAL_SET_BITS(events, TWAI_HAL_EVENT_ARB_LOST);
99 return events;
104 uint32_t events = twai_hal_decode_interrupt(hal_ctx); local
107 if (events & TWAI_HAL_EVENT_BUS_OFF) {
116 if (events & TWAI_HAL_EVENT_BUS_RECOV_CPLT) {
119 if (events & TWAI_HAL_EVENT_BUS_ERR) {
129 TWAI_HAL_SET_BITS(events, TWAI_HAL_EVENT_NEED_PERIPH_RESET);
134 if (events & TWAI_HAL_EVENT_ARB_LOST) {
139 …if (events & TWAI_HAL_EVENT_RX_BUFF_FRAME && twai_ll_get_rx_msg_count(hal_ctx->dev) >= TWAI_RX_FIF…
140 TWAI_HAL_SET_BITS(events, TWAI_HAL_EVENT_NEED_PERIPH_RESET);
144 if (events & TWAI_HAL_EVENT_NEED_PERIPH_RESET) {
146 TWAI_HAL_CLEAR_BITS(events, (TWAI_HAL_EVENT_RX_BUFF_FRAME));
149 return events;