flexcan_ping_pong_buffer_transfer
Overview
The flexcan_pingpang_buffer_transfer example shows how to use the FlexCAN queue feature to create 2 simulate FIFOs that can receive CAN/CANFD frames:
In this example, 2 boards are connected through CAN bus. Endpoint A(board A) send CAN/CANFD messages to Endpoint B(board B) when user inputs the number of CAN messages to be sent in terminal. Endpoint B uses two receiving queues to receive messages in turn, and prints the message content and the receiving queue number to the terminal after any queue is full.