Generic code generator used to generate C sources and headers of BSW modules
Project description
Package description
The purpose of this package is to provide a generic way to generate code across all BSW modules. It might be invoked
from the command line (see bsw_code_gen --help
) or imported as a package from another script.
Required structure
According to Autosar standard, the following files might be generated:
- <ModuleName>.c
- <ModuleName>.h
- <ModuleName>_Cfg.c
- <ModuleName>_Cfg.h
- <ModuleName>_PBcfg.c
- <ModuleName>_PBcfg.h
Moreover, some modules (such as XCP for instance) might require a generated structure held in RAM memory (in the case of XCP, the DAQs). Those files will be named:
- <ModuleName>_Rt.c
- <ModuleName>_Rt.h
To enforce a consistent file naming across all modules, the package will look for a jinja2 template named source.c.jinja2 to generate the file <ModuleName>.c, header.h.jinja2 to generate the file <ModuleName>.h, source_cfg.c.jinja2 to generate the file <ModuleName>_Cfg.c and so on.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for bsw_code_gen-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 156cf3694e182a4d363ffff9b18ccc7737ffa3244fa67cff89a5439c68917aba |
|
MD5 | 3d5355bb69e1b86e539275e0ef673d97 |
|
BLAKE2b-256 | 23c1cf30f9fd4b29f36975711319fab5847063ef6cc86af6cc4a64caebd4d7d3 |