Main Content

AUTOSAR Programmatic Interfaces

Configure and map component programmatically

Embedded Coder® provides programmatic interfaces that you can use to refine the Simulink® representation of an AUTOSAR software component. You can:

  • Use AUTOSAR map functions to map Simulink elements to AUTOSAR elements.

  • Use AUTOSAR property functions to add AUTOSAR elements and modify element properties.

  • Use AUTOSAR component configuration functions to synchronize an AUTOSAR model with Simulink changes, validate an AUTOSAR configuration, update an AUTOSAR model based on imported ARXML descriptions, or open or close the AUTOSAR Dictionary.

To get started, see AUTOSAR Property and Map Function Examples.

Functions

expand all

autosar.api.getSimulinkMappingMap Simulink elements to AUTOSAR elements
addSignalAdd Simulink block signal to AUTOSAR mapping
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
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 to work with imported AUTOSAR element
createNumericTypeCreate Simulink numeric data type definition to work with imported AUTOSAR element
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 of AUTOSAR elements
updateModelUpdate AUTOSAR model with ARXML changes

Topics

Configure and Map AUTOSAR Component Programmatically

Call property and map functions to configure an AUTOSAR software component.

AUTOSAR Property and Map Function Examples

MATLAB® scripts that illustrate AUTOSAR function call combinations.

Import AUTOSAR Software Component Updates

Update AUTOSAR model with external changes to the ARXML description of the AUTOSAR software component.

Import and Reference Shared AUTOSAR Element Definitions

Import AUTOSAR packages containing shared ARXML element definitions.