In the unit test of driver-can, how do we distinguish can from can-fd? #76817
-
On tests/drivers/can/api/src/classic.c , has a case: Test that CAN-FD format frames are rejected in non-FD mode. |
Beta Was this translation helpful? Give feedback.
Answered by
henrikbrixandersen
Aug 8, 2024
Replies: 1 comment 1 reply
-
A CAN controller driver must reject CAN FD frames if its operational mode does not contain |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
henrikbrixandersen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A CAN controller driver must reject CAN FD frames if its operational mode does not contain
CAN_MODE_FD
. That is what is being verified in that test case.