dbc-codegen
dbc-codegen copied to clipboard
Generate Rust structs for messages from a dbc (CAN bus definition) file.
Given a multiplexor structure such as ``` BO_ 850 ID352BMS_energyStatus: 8 VehicleBus SG_ BMS_multiplexor M : 0|2@1+ (1,0) [0|3] "" Vector__XXX SG_ BMS_energyBuffer m1 : 16|16@1+ (0.01,0) [0|655.35] "KWh" Receiver...
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...
I would like to see a feature which gives the ability to print signals with an enum with `no_std` right away. This can be done with `defmt` to format the...
This is another idea for a change, relating to #92 a bit. I've been thinking about the phrase "make illegal[/invalid] states unrepresentable" when working with structs generated from DBC files....
I notice that I'm using `unwrap()` a lot when setting signals in generated structs, even when the type of the argument maps perfectly to the possible values held by the...
in the current implementation only the signals that are part of a message are set. The unused bits are not set. Which makes sense because there are not used. But...