dbc-to-header
CommunityDBC to C Header Generator
AuthorDelay-n-days
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill automates the generation of C header files from DBC (CAN Database) files, streamlining the process of defining CAN message structures and signals for embedded systems.
Core Features & Use Cases
- Automatic C Header Generation: Creates C structs, unions, and macros from DBC definitions.
- Bitfield Splitting & Padding: Handles signals spanning multiple bytes and automatically pads unused bits.
- Message Classification: Distinguishes between receive (RX) and transmit (TX) messages based on provided IDs.
- Use Case: When developing automotive software, you need to translate CAN communication protocols defined in a DBC file into C code structures that your microcontroller can use to send and receive messages. This Skill does that automatically.
Quick Start
Generate a C header file from the 'motor.dbc' file, setting the baud rate to 250 and specifying '0x0CFF09EF' as a receive ID.
Dependency Matrix
Required Modules
cantoolstyperrich
Components
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: dbc-to-header Download link: https://github.com/Delay-n-days/dbcjson5/archive/main.zip#dbc-to-header Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.