getInternalDataPackaging
Get default internal data packaging for AUTOSAR component model
Description
returns the default data packaging setting used for internal data stores, signals, and
states in the generated code for an AUTOSAR component model. Valid setting values
are:pkgSetting
= getInternalDataPackaging(slMap
)
Default
— Accept the default internal data packaging provided by the software. UseDefault
for multi-instance models and submodels referenced from AUTOSAR component models.PrivateGlobal
— Package internal variable data without astruct
and make it private (visible only to
).model
.cPrivateStructure
— Package internal variable data in astruct
and make it private (visible only to
).model
.cPublicGlobal
— Package internal variable data without astruct
and make it public (extern
declaration in
).model
.hPublicStructure
— Package internal variable data in astruct
and make it public (extern
declaration in
).model
.h
If the data packaging is set to PrivateGlobal
or
PrivateStructure
, building the model generates header file
, even when model
configuration parameter File packaging format (Embedded Coder) is set to
model
_private.hCompact
.
If the model configuration option Generate separate internal data per entry-point function (Embedded Coder) is set for the AUTOSAR model, task-based internal data grouping overrides the AUTOSAR internal data packaging setting. However, the AUTOSAR setting determines the public or private visibility of the generated internal data groups.