embedded-hal
embedded-hal copied to clipboard
CAN FD support
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?
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?
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_brsfor bitrate switching and the like. - Or, creating an separate trait
FdFramewhich implements the above.
I prefer the first method since it could be done without breaking existing uses of the Frame trait.