embedded-hal icon indicating copy to clipboard operation
embedded-hal copied to clipboard

CAN FD support

Open ghost opened this issue 1 year ago • 2 comments

CAN FD is rapidly becoming that de facto as it can provide much more bandwidth and is backwards compatible with CAN 2.0.

Are there any plans to update the API to support this scenario?

ghost avatar Feb 28 '24 12:02 ghost

The fact that they moved the CAN code to a separate crate which is not at v1.0 might be indicative that changes are welcome?

Does anyone have any insight on this?

reneherrero avatar Feb 28 '24 13:02 reneherrero

I think there are two pathways to adding FD support:

  • Update the existing Frame trait doc-comments to specify that the DLC can be up to 15 and that message length can be up to 64 bytes, also adding other optional trait methods like is_brs for bitrate switching and the like.
  • Or, creating an separate trait FdFrame which implements the above.

I prefer the first method since it could be done without breaking existing uses of the Frame trait.

liamkinne avatar Nov 14 '24 02:11 liamkinne