Lines Matching refs:events
204 uint32_t events; in twai_intr_handler_main() local
210 events = twai_hal_get_events(&twai_context); //Get the events that triggered the interrupt in twai_intr_handler_main()
213 if (events & TWAI_HAL_EVENT_NEED_PERIPH_RESET) { in twai_intr_handler_main()
221 if (events & TWAI_HAL_EVENT_RX_BUFF_FRAME) { in twai_intr_handler_main()
225 if (events & TWAI_HAL_EVENT_TX_BUFF_FREE) { in twai_intr_handler_main()
230 if (events & TWAI_HAL_EVENT_BUS_OFF) { in twai_intr_handler_main()
234 if (events & TWAI_HAL_EVENT_BUS_RECOV_CPLT) { in twai_intr_handler_main()
238 if (events & TWAI_HAL_EVENT_BUS_ERR) { in twai_intr_handler_main()
242 if (events & TWAI_HAL_EVENT_ARB_LOST) { in twai_intr_handler_main()
246 if (events & TWAI_HAL_EVENT_BUS_RECOV_PROGRESS) { in twai_intr_handler_main()
250 if (events & TWAI_HAL_EVENT_ERROR_PASSIVE) { in twai_intr_handler_main()
254 if (events & TWAI_HAL_EVENT_ERROR_ACTIVE) { in twai_intr_handler_main()
258 if (events & TWAI_HAL_EVENT_ABOVE_EWL) { in twai_intr_handler_main()
262 if (events & TWAI_HAL_EVENT_BELOW_EWL) { in twai_intr_handler_main()