应用程序接口
设置应用程序接口,以便与目标环境软件进行交互
应用程序是代码单元,由代码生成器从顶层模型中生成。部署要在目标执行环境中使用的应用程序。为了使代码生成器生成能够与目标环境服务交互的代码,您必须通过使用以下各项的组合来使代码生成器了解接口要求:
顶层模型中的模型元素
将模型元素与代码接口配置中定义的接口相关联的代码映射
生成的应用程序代码通过这些生成的代码接口与目标环境服务进行交互:
目标软件(如调度器)可以调用的入口函数
对目标软件的函数调用
主题
- 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.
- 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 writes output to hardware devices.