technocreatives / dbc-codegen

Generate Rust structs for messages from a dbc (CAN bus definition) file.
Apache License 2.0
48 stars 31 forks source link

feat: Support option for padding (set all unused bit to 1) #87

Open wallem89 opened 1 week ago

wallem89 commented 1 week ago

This feature is adding the support for padding. In other words the option to set all unused bits to 1 instead of 0. One use case is when creating SAE J1939 message in which all unused bits so be set to 1.

See also issue 86 .