InterRunnableVariable 数据类型

InterRunnableVariable Data Type

Autosar是用c代码实现的。在C语言中,我可以用typedef struct定义自己的数据结构。如果我想在 AUTOSAR 中使用 InterRunnableVariable,是否可以在设计级别用我自己的 C 数据结构定义 InterRunnableVariable 数据类型? (比方说,我使用 dspace 的 SystemDesk 进行设计)

是的。请检查软件组件模板 (http://www.autosar.org/fileadmin/files/releases/4-2/methodology-and-templates/templates/standard/AUTOSAR_TPS_SoftwareComponentTemplate.pdf) 以了解如何对类别 STRUCTURE 的 ImplementationDataTypes 进行建模(那里也给出了一些示例)。