Main Content

AUTOSAR Data Types

Configure data types and computational methods

The AUTOSAR standard defines platform data types for use by AUTOSAR software components. In Simulink®, you can model AUTOSAR data types used in elements such as data elements, operation arguments, calibration parameters, measurement variables, and inter-runnable variables. If you import an AUTOSAR component from ARXML files, Embedded Coder® imports AUTOSAR data types and creates the required corresponding Simulink data types. During code generation, Embedded Coder exports ARXML descriptions for data types used in the component model and generates AUTOSAR data types in C code.

While developing your AUTOSAR software component, you can configure data type related aspects of the component. For example:

  • Model AUTOSAR data types for simulation and code generation.

  • Modify imported AUTOSAR computation methods (CompuMethods) or create and configure new CompuMethods. CompuMethods convert between the internal values and physical representation of AUTOSAR data.

  • Configure how AUTOSAR data types are exported.

  • Configure AUTOSAR packages to aggregate exported data types and related elements.


addPackageableElementAdd element to AUTOSAR package in model
createEnumerationCreate Simulink enumeration data type definition from imported AUTOSAR data elements
createNumericTypeCreate Simulink numeric data type definition from imported AUTOSAR data elements
getGet property of AUTOSAR element
setSet property of AUTOSAR element
updateAUTOSARPropertiesUpdate model with ARXML definitions from AUTOSAR element packages