AUTOSAR Data Types
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.
Functions
add | Add property to AUTOSAR element |
addPackageableElement | Add element to AUTOSAR package in model |
createEnumeration | Create Simulink enumeration data type definition from imported AUTOSAR data elements |
createNumericType | Create Simulink numeric data type definition from imported AUTOSAR data elements |
delete | Delete AUTOSAR element |
deleteUnmappedComponents | Delete unmapped AUTOSAR components from model |
find | Find AUTOSAR elements |
get | Get property of AUTOSAR element |
set | Set property of AUTOSAR element |
updateAUTOSARProperties | Update model with ARXML definitions from AUTOSAR element packages |
Topics
- Model AUTOSAR Data Types
Model AUTOSAR data types for data elements, operation arguments, calibration parameters, measurement variables, and inter-runnable variables.
- Create, Import, and Configure AUTOSAR Computation Methods
Import or create computation methods to convert between internal values and physical representation of AUTOSAR data.
- Configure AUTOSAR Data Types Export
Configure ARXML export for AUTOSAR base, implementation, and application data types.
- Configure AUTOSAR Packages
Import or define element packages within hierarchical AUTOSAR package structure.
- Automatic AUTOSAR Data Type Generation
Automatically generate AUTOSAR platform data types in AUTOSAR-compliant C code.
- Import and Reference Shared AUTOSAR Element Definitions
Import AUTOSAR packages containing shared ARXML element definitions.
- Configure AUTOSAR Data for Calibration and Measurement
Define AUTOSAR data properties (
SwDataDefProps
), includingSwCalibrationAccess
,DisplayFormat
, andSwAddrMethod
.