このページの翻訳は最新ではありません。ここをクリックして、英語の最新版を参照してください。
アプリケーションとコンポーネントのインターフェイス
アプリケーションとコンポーネントはコードのユニットであり、コード ジェネレーターによって最上位モデルから生成されます。アプリケーションとコンポーネントをターゲット実行環境で使用するために展開します。ターゲット環境サービスと対話できる C または C++ コードをコード ジェネレーターで生成するには、次の組み合わせを使用してサービス インターフェイスの要件をコード ジェネレーターに認識させる必要があります。
最上位モデルのモデル要素
Embedded Coder ディクショナリで定義されたコード インターフェイス構成 (C のみ)
モデル要素をコード インターフェイス構成で定義されているインターフェイスに関連付けるコード マッピング
生成されたアプリケーションとコンポーネントのコードは、生成された次のコード インターフェイスを通じてターゲット環境サービスと対話します。
ターゲット ソフトウェアで呼び出すことができるエントリポイント関数 (スケジューラなど)
ターゲット ソフトウェアの関数呼び出し (プラットフォーム サービス関数など)
トピック
- Model Code Interfaces
Represent code interfaces in top models.
- Configure Code Interfaces for Code Generation
Choose between options for configuring code interfaces for models.
- Periodic and Aperiodic Function Interfaces
Generate callable entry-point functions for the algorithm represented by a top 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.
- Message Communication Interfaces
Generate C/C++ code to use messages for communication.
- Client-Server Communication Interfaces
Design model that uses client-server communication.
- Device Driver I/O Interfaces
Design a model that reads input from or writers output to hardware devices.
- Multi-Instantiation
Design a component or subcomponent with the goal of using multiple instances within the context of an application.