control-code-generator

Generate .h header and .c source files from CAN protocol CSV definitions.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/Delay-n-days/dbcjson5 --skill control-code-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: control-code-generator
Source: https://github.com/Delay-n-days/dbcjson5/tree/main/.github/skills/control-code-generator
Command: npx skills add https://github.com/Delay-n-days/dbcjson5 --skill control-code-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the generation of complete controller code (.h header + .c source files) from CAN protocol CSV files, significantly reducing manual coding effort for embedded systems.

Core Features & Use Cases

  • Full Controller Code Generation: Creates both protocol header files (.h) and receiver parsing code (.c) for CAN communication.
  • Integrated Workflow: Combines dbc-to-header and csv-to-source skills for a seamless, one-stop solution.
  • Use Case: When a user needs to generate full controller code for a new embedded system based on a provided CAN CSV definition, or mentions keywords like "CSV to controller code" or "generate C and H files for CAN".

Quick Start

Use the control-code-generator skill to generate controller code from the file 'outputs/GTAKE_motor_unified.csv' with baud rate 250 and receive ID 0x0CFF05EF.

Frequently Asked Questions about control-code-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate controller code from a CAN CSV definition?

You can generate complete controller code by processing CAN protocol CSV files to produce both .h header and .c source files. This automated workflow extracts configurations and generates receiver parsing code for embedded systems.

What is the process for converting CAN CSV files to C and H files?

Converting CAN CSV files to C and H files involves generating protocol header files, performing AI-driven configuration extraction, and then producing the receiver parsing code. This creates a complete controller implementation for embedded systems.

Can I generate receiver parsing code for embedded systems directly from a CAN database CSV?

Yes, you can generate receiver parsing code directly from a CAN database CSV. The workflow integrates protocol header generation with source code creation to output the required .c files for your embedded controller.

Does the CSV to controller code generation workflow include both header and source files?

Yes, generating controller code from CSV includes both .h header and .c source files. It combines dbc-to-header for protocol generation and csv-to-source for receiver parsing to provide a complete embedded systems solution.

What do I need to provide to generate CAN controller code from a CSV file?

To generate CAN controller code, you must provide the CAN protocol CSV file path, baud rate, and receive ID. The system uses these parameters to configure and output the corresponding .h and .c files for the embedded system.

When do I need to automate CAN protocol code generation for embedded systems?

Automating CAN protocol code generation is necessary when developing new embedded systems requiring full controller code from CAN definitions. This significantly reduces manual coding effort for protocol headers and parsing logic.