bsw-code-gen-0.1.9
توضیحات
Generic code generator used to generate C sources and headers of BSW modules
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bsw-code-gen-0.1.9 |
| نام | bsw-code-gen |
| نسخه کتابخانه | 0.1.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Guillaume Sottas |
| ایمیل نویسنده | guillaumesottas@gmail.com |
| آدرس صفحه اصلی | https://github.com/openmcusw/bsw_code_gen |
| آدرس اینترنتی | https://pypi.org/project/bsw-code-gen/ |
| مجوز | BSD-2 |
# 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.
نیازمندی
| مقدار | نام |
|---|---|
| ~=65.5.1 | setuptools |
| ~=1.4.0 | argparse |
| ~=3.0.1 | jsonschema |
| ~=2.11.3 | Jinja2 |
نحوه نصب
نصب پکیج whl bsw-code-gen-0.1.9:
pip install bsw-code-gen-0.1.9.whl
نصب پکیج tar.gz bsw-code-gen-0.1.9:
pip install bsw-code-gen-0.1.9.tar.gz