代码接口定义
创建数据、函数和内存段代码生成定义,以实现标准化和软件架构一致性
在大型组织中,您可以帮助多人生成符合通用软件架构的代码。创建代码生成定义,上述人员可用它来控制代码中模型数据(信号、参数和状态)和函数的显示方式。
工具
Embedded Coder 字典 | Create code definitions to control code generation for model data and functions |
类
函数
主题
创建代码接口配置定义
- Define Service Interfaces, Storage Classes, Memory Sections, and Function Templates for Software Architecture
Create code generation definitions that you and others can use to control the generated code. - Create a Service Interface Configuration
Create code interface definitions for services that your generated code uses. - Flexible Storage Class for Different Model Hierarchy Contexts
Define and apply a storage class that uses different code generation settings for single-instance data and multi-instance data. - Create Data Interface Configuration Programmatically
Configure Embedded Coder Dictionary programmatically. - Sample Target Environment Service Implementations of Data Communication Methods
Sample target environment service implementations of data communication methods. - Access Data Through Functions by Using Storage Classes in Embedded Coder Dictionary
Use storage classes and Coder Dictionary Defaults to integrate the generated code with legacy code that uses specialized functions to read from and write to data. - Access Data Through Functions with Storage Class GetSet
Use the storage classGetSet
to integrate the generated code with legacy code that uses specialized functions to read from and write to data. - Create Storage Classes by Using the Custom Storage Class Designer
For additional control of data representation in the generated code, create storage classes.
在多模型系统中分发和管理代码接口配置
- Separate C Code Interface Configuration Definition from Model-Specific Configurations
Package definitions used by the code generator to produce code for a model separately from model design. - Deploy Code Generation Definitions
Make code generation definitions, such as storage classes and function templates, available to people who need them. - Manage an Embedded Coder Dictionary
Update code definitions and manage the use of Embedded Coder Dictionaries. - Generate Code to Conform to Software Architecture by Sharing and Copying Default Settings Between Models
For new and existing models, standardize the generated code across an organization by sharing and copying default code generation settings.