TXT Buffer priority feature test
PSL coverage revealed that we never even access TX_PRIORITY register.
The aim here is to test whether TX arbitrator selects a frame from TXT Buffer with the highest priority and sends it, in case of more TXT Buffers in "READY" state.
I would propose sth like:
- Configure random TXT Buffer priorities.
- Insert frames to TXT Buffers.
- Send "set_ready" command to all TXT Buffers.
- Observe if the other node receives the frames in the expected order.
Regarding point 3, currently "send_TXT_buf_cmd" only supports single buffer at once. You will either have to modify the function or create an overloaded version which can set multiple Buffers to Ready at once.
If you would set the buffers "ready" one after another, CAN Core could choose from buffers which are ready in between the transactions, therefore the "set_ready" for all buffers needs to be atomic (single bus access).