In AUTOSAR, SenderReceiverInterface can have multiple data elements as shown below snippet.
Is there any advantage or implementation difference when multiple data elements are used in a single software port compared to multiple software ports and each having single data elemment in the respective SenderReceiverInterface?
Does all data elements of a single SenderReceiverInterface on a Software Port are received or transmitted in atomic way all together by RTE?

SenderReceiverInterface with multiple data elements difference from multiple ports and each with single data element
47 Views Asked by user3806728 At
1
The collection of
dataElements in aSenderReceiverInterfaceis mostly a logistical choice. DesigningSenderReciverInterfaces with few or only onedataElementmay increase the chance of being able to re-use theSenderReceiverInterfacein other contexts. But there's also motivation to create more complexSenderReceiverInterfaces because this saves time and takes away complexity for creating connectors betweenPortPrototypes.The
dataElements are sent/received entirely separate from each other. If you want atomicity, there is always the choice to createdataElements of composite data types. The elements of sich a composite data type are always send and received atomically.