Main Content

AUTOSAR Software Components

Configure component properties, map Simulink elements to AUTOSAR elements, configure element packages, apply modeling checks

An AUTOSAR application is modeled by interconnected software components. Each software component encapsulates a functional implementation of automotive behavior, with well-defined connection points to the outside world.

To develop an AUTOSAR software component in Simulink®, you create an initial representation of an AUTOSAR component, as described in Component Creation. The resulting representation includes:

  • Simulink blocks, connections, and data that model AUTOSAR elements such as ports, runnables, inter-runnable variables, and parameters.

  • Stored properties, defined in the AUTOSAR standard, for AUTOSAR elements in the software component.

  • A mapping of Simulink elements to AUTOSAR elements.

Use the Code Mappings editor and the AUTOSAR Dictionary to begin refining and developing the component. The Code Mappings editor provides a Simulink perspective of the component, in which you selectively map Simulink elements to AUTOSAR elements. The AUTOSAR Dictionary provides an AUTOSAR perspective of the component, in which you configure AUTOSAR elements and their properties. To get started, see AUTOSAR Component Configuration.

Tools

Code Mappings EditorMap AUTOSAR elements for code generation

Functions

expand all

autosar.api.getSimulinkMappingMap Simulink elements to AUTOSAR elements
addSignalAdd Simulink block signal to AUTOSAR mapping
getDataDefaultsGet default end-to-end (E2E) protection method for AUTOSAR component model
getDataStoreGet AUTOSAR mapping information for Simulink data store
getDataTransferGet AUTOSAR mapping information for Simulink data transfer
getFunctionGet AUTOSAR mapping information for Simulink entry-point function
getFunctionCallerGet AUTOSAR mapping information for Simulink function-caller block
getInportGet AUTOSAR mapping information for Simulink inport
getInternalDataPackagingGet default internal data packaging for AUTOSAR component model
getOutportGet AUTOSAR mapping information for Simulink outport
getParameterGet AUTOSAR mapping information for Simulink model workspace parameter
getSignalGet AUTOSAR mapping information for Simulink block signal
getStateGet AUTOSAR mapping information for Simulink block state
mapDataStoreMap Simulink data store to AUTOSAR variable
mapDataTransferMap Simulink data transfer to AUTOSAR inter-runnable variable
mapFunctionMap Simulink entry-point function to AUTOSAR runnable and software address methods
mapFunctionCallerMap Simulink function-caller block to AUTOSAR client port and operation
mapInportMap Simulink inport to AUTOSAR port
mapOutportMap Simulink outport to AUTOSAR port
mapParameterMap Simulink model workspace parameter to AUTOSAR component parameter
mapSignalMap Simulink block signal to AUTOSAR variable
mapStateMap Simulink block state to AUTOSAR variable
removeSignalRemove Simulink block signal from AUTOSAR mapping
setDataDefaultsSet default end-to-end (E2E) protection method for AUTOSAR component model
setInternalDataPackagingSet default internal data packaging for AUTOSAR component model
autosar.api.getAUTOSARPropertiesConfigure AUTOSAR software component elements and properties
addAdd property to AUTOSAR element
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
deleteDelete AUTOSAR element
deleteUnmappedComponentsDelete unmapped AUTOSAR components from model
findFind AUTOSAR elements
getGet property of AUTOSAR element
setSet property of AUTOSAR element
autosar.api.createCreate or update mapped AUTOSAR component model
autosar.api.deleteDelete AUTOSAR properties and mapping for Simulink model
autosar.api.syncModelUpdate Simulink to AUTOSAR mapping of model with Simulink modifications
autosar.api.validateModelValidate AUTOSAR properties and mapping of Simulink model
autosar_ui_launchOpen AUTOSAR Dictionary dialog box
autosar_ui_closeClose AUTOSAR Dictionary dialog box
updateAUTOSARPropertiesUpdate model with ARXML definitions from AUTOSAR element packages
updateModelUpdate AUTOSAR model with ARXML changes

Topics