このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
アプリケーションとコンポーネントのインターフェイス
アプリケーションとコンポーネントはコードのユニットであり、コード ジェネレーターによって最上位モデルから生成されます。アプリケーションとコンポーネントをターゲット実行環境で使用するために展開します。ターゲット環境サービスと対話できる C または C++ コードをコード ジェネレーターで生成するには、次の組み合わせを使用してサービス インターフェイスの要件をコード ジェネレーターに認識させる必要があります。
最上位モデルのモデル要素
Embedded Coder ディクショナリで定義されたコード インターフェイス構成 (C のみ)
モデル要素をコード インターフェイス構成で定義されているインターフェイスに関連付けるコード マッピング
生成されたアプリケーションとコンポーネントのコードは、生成された次のコード インターフェイスを通じてターゲット環境サービスと対話します。
ターゲット ソフトウェアで呼び出すことができるエントリポイント関数 (スケジューラなど)
ターゲット ソフトウェアの関数呼び出し (プラットフォーム サービス関数など)
トピック
- Model Code Interfaces
Represent code interfaces in top models.
- Periodic and Aperiodic Function Interfaces
Generate callable entry-point functions for the algorithm represented by a top model.
- Startup, Reset, and Shutdown Function Interfaces
Generate callable entry-point functions for startup, reset, and shutdown processing represented by a model.
- Data Interfaces
Generate C or C++ data interface code.
- Service Interfaces
Generate C service interface code for components that interact with target environment resources. (R2022b 以降)
- Message Communication Interfaces
Generate C/C++ code to use messages for communication.
- Client-Server Communication Interfaces
Design model that uses client-server communication.
- デバイス ドライバーの I/O インターフェイス
ハードウェア デバイスからの入力の読み取りまたはハードウェア デバイスへの出力の書き込みを行うモデルを設計する。
- Multi-Instantiation
Design a component or subcomponent with the goal of using multiple instances within the context of an application.