コード インターフェイス定義
大規模な組織で複数の人が一般的なソフトウェア アーキテクチャに準拠したコードを生成できるように支援することができます。それぞれの担当者がコード内のモデルのデータ (信号、パラメーター、状態) や関数の外観を制御するために使用できるコード生成定義を作成します。
ツール
Embedded Coder ディクショナリ | モデル データおよび関数のコード生成を制御するためのコード定義を作成します。 |
クラス
coder.Dictionary | Embedded Coder ディクショナリの設定 |
coder.dictionary.Section | Configure Embedded Coder Dictionary section |
coder.dictionary.Entry | Configure Embedded Coder Dictionary definition |
関数
coder.dictionary.create | Create Embedded Coder Dictionary and coder.Dictionary
object |
coder.dictionary.open | Open Embedded Coder Dictionary object |
coder.dictionary.copy | Copy code generation definitions between models and data dictionaries |
coder.dictionary.move | Migrate code generation definitions between models and data dictionaries |
coder.dictionary.remove | Remove Embedded Coder Dictionary from model or Simulink data dictionary |
coder.dictionary.exist | Determine whether Embedded Coder Dictionary exists in model or data dictionary |
トピック
- 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.
- 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 Data Interface Configuration Programmatically
Configure Embedded Coder Dictionary programmatically.
- 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.
- 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 class
GetSet
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.