Main Content

getPlatformProperty

Get an AUTOSAR Classic platform property for interface dictionary

Description

example

propValue = getPlatformProperty(platformMapping,dictElementObj,propName) gets the specified platform property for the dictionary element.

Examples

collapse all

To get the InterfaceKind property value for the specified data interface, use the getPlatformProperty function. For an example that shows more of the workflow for related functions, see Create and Configure Interface Dictionary.

userPlatformMapping = getPlatformMapping(dictObj, 'AUTOSARClassic');
userInterfaceObj = getInterface(dictObj, 'interfaceName');
userPropValue_Interface = ...
   getPlatformProperty(userPlatformMapping, userInterfaceObj, 'InterfaceKind')
userPropValue =

    'NvDataInterface'

To get the SwCalibrationAccess property value for the specified data element, use the getPlatformProperty function.

userDataElemObj = userInterfaceObj.Elements(1);
userPropValue_Sw_CalAccess = ...
    getPlatformProperty(userPlatformMapping, userDataElemObj, 'SwCalibrationAccess')
userPropValue_Sw_CalAccess =

    'ReadWrite'

Input Arguments

collapse all

Platform mapping, an ARClassicPlatformMapping object.

Element in array of objects in dictionary object

Property name of property in dictionary element.

Example: 'InterfaceKind'

Output Arguments

collapse all

Property value of property in dictionary element.

Version History

Introduced in R2022b