dbc-codegen2 0.1.2

DBC code generator for CAN bus messages
Documentation

dbc-codegen2

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

Installation

Install using Cargo from crates.io:

cargo install dbc-codegen2

After installation the CLI is available as:

dbc-codegen2

Usage

dbc-codegen2 <COMMAND> <INPUT> -o <OUTPUT>

Commands:

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