dbc-codegen2 is a DBC code generator for CAN bus messages.
It parses a .dbc file, builds an intermediate representation (IR), and generates strongly typed code for working with CAN frames.
Currently supported targets:
- Rust
Install using Cargo from crates.io:
cargo install dbc-codegen2After installation the CLI is available as:
dbc-codegen2dbc-codegen2 <COMMAND> <INPUT> -o <OUTPUT>Commands:
| Command | Description |
|---|---|
parse |
Parse a DBC file and print parsed output |
ir |
Show intermediate representation |
gen |
Generate code from a DBC file |
You can view help with:
dbc-codegen2 --help