Type Reference vs Type Value

Author: Kaarthick Balakrishnan

There are two ways we can create an Implementation Data Type in #AUTOSAR. When we create using Type Reference the Data type can be referenced to Implementation datatype i.e., Boolean or any Implementation Data type. The Type reference should be chosen whenever we try to do data mapping in the communication stack. If we use Type Value to create an Implementation Data type for creating  a datatype in the Communication stack, it may not be possible to reference it properly and data mapping will throw errors such as data incompatibility between the #Com module and the #ASWC.

Type Value is usually preferred when you use a Complex device Driver or when porting an Application /Algorithm from existing Code to AUTOSAR (for ex: when we want to port an algorithm like Fuel Injection system which is proven in LEGACY into AUTOSAR)

Shopping Cart
WhatsApp chat