Searched refs:twai_context (Results 1 – 1 of 1) sorted by relevance
98 static twai_hal_context_t twai_context; variable125 uint32_t msg_count = twai_hal_get_rx_msg_count(&twai_context); in twai_handle_rx_buffer_frames()129 if (twai_hal_read_rx_buffer_and_clear(&twai_context, &frame)) { in twai_handle_rx_buffer_frames()144 uint32_t msg_count = twai_hal_get_rx_msg_count(&twai_context); in twai_handle_rx_buffer_frames()149 if (twai_hal_read_rx_buffer_and_clear(&twai_context, &frame)) { in twai_handle_rx_buffer_frames()165 p_twai_obj->rx_overrun_count += twai_hal_clear_rx_fifo_overrun(&twai_context); in twai_handle_rx_buffer_frames()174 if (twai_hal_check_last_tx_successful(&twai_context)) { in twai_handle_tx_buffer_frame()190 twai_hal_set_tx_buffer_and_transmit(&twai_context, &frame); in twai_handle_tx_buffer_frame()210 events = twai_hal_get_events(&twai_context); //Get the events that triggered the interrupt in twai_intr_handler_main()214 twai_hal_prepare_for_reset(&twai_context); in twai_intr_handler_main()[all …]