Autosar Sws Rte
Autosar Sws Rte
Autosar Sws Rte
AUTOSAR CP R20-11
Disclaimer
This work (specification and/or software implementation) and the material contained in
it, as released by AUTOSAR, is for the purpose of information only. AUTOSAR and the
companies that have contributed to it shall not be liable for any use of the work.
The material contained in this work is protected by copyright and other types of intel-
lectual property rights. The commercial exploitation of the material contained in this
work requires a license to such intellectual property rights.
This work may be utilized or reproduced without any modification, in any form or by
any means, for informational purposes only. For any other purpose, no part of the work
may be utilized or reproduced, in any form or by any means, without permission in
writing from the publisher.
The work has been developed for automotive applications only. It has neither been
developed, nor tested for non-automotive applications.
The word AUTOSAR and the AUTOSAR logo are registered trademarks.
Table of Contents
1 Introduction 28
1.1 Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
1.2 Dependency to other AUTOSAR specifications . . . . . . . . . . . . . 29
1.3 Acronyms and Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . 30
1.4 Technical Terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
1.5 Document Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
1.6 Requirements Tracing . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
2 RTE Overview 80
2.1 The RTE in the Context of AUTOSAR . . . . . . . . . . . . . . . . . . . 80
2.2 AUTOSAR Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
2.2.1 AUTOSAR Software-components . . . . . . . . . . . . . . . 80
2.2.2 Basic Software Modules . . . . . . . . . . . . . . . . . . . . . 81
2.2.3 Communication . . . . . . . . . . . . . . . . . . . . . . . . . 82
2.2.3.1 Communication Paradigms . . . . . . . . . . . . . . 82
2.2.3.2 Communication Modes . . . . . . . . . . . . . . . . . 82
2.2.3.3 Static Communication . . . . . . . . . . . . . . . . . 83
2.2.3.4 Multiplicity . . . . . . . . . . . . . . . . . . . . . . . . 83
2.2.4 Concurrency . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
2.3 The RTE Generator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
2.4 Design Decisions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
3 RTE Generation Process 86
3.1 Contract Phase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
3.1.1 RTE Contract Phase . . . . . . . . . . . . . . . . . . . . . . . 92
3.1.2 Basic Software Scheduler Contract Phase . . . . . . . . . . 94
3.2 PreBuild Data Set Contract Phase . . . . . . . . . . . . . . . . . . . . 94
3.3 Edit ECU Configuration of the RTE . . . . . . . . . . . . . . . . . . . . 95
3.4 Generation Phase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
3.4.1 Basic Software Scheduler Generation Phase . . . . . . . . . 96
3.4.2 RTE Generation Phase . . . . . . . . . . . . . . . . . . . . . 97
3.4.3 Cluster Generation Phase . . . . . . . . . . . . . . . . . . . . 99
3.4.4 Basic Software Module Description generation . . . . . . . . 99
3.4.4.1 Bsw Module Description . . . . . . . . . . . . . . . . 100
3.4.4.2 Bsw Internal Behavior . . . . . . . . . . . . . . . . . 101
3.4.4.3 Bsw Implementation . . . . . . . . . . . . . . . . . . 102
3.5 PreBuild Data Set Generation Phase . . . . . . . . . . . . . . . . . . . 103
3.6 PostBuild Data Set Generation Phase . . . . . . . . . . . . . . . . . . 104
3.7 RTE Configuration interaction with other BSW Modules . . . . . . . . . 105
4 RTE Functional Specification 106
4.1 Architectural concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
4.1.1 Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
4.1.2 RTE and Data Types . . . . . . . . . . . . . . . . . . . . . . . 107
References
[1] Virtual Functional Bus
AUTOSAR_EXP_VFB
[2] Software Component Template
AUTOSAR_TPS_SoftwareComponentTemplate
[3] Specification of Communication
AUTOSAR_SWS_COM
[4] Specification of Operating System
AUTOSAR_SWS_OS
[5] Specification of ECU Configuration
AUTOSAR_TPS_ECUConfiguration
[6] Methodology
AUTOSAR_TR_Methodology
[7] Specification of ECU State Manager
AUTOSAR_SWS_ECUStateManager
[8] System Template
AUTOSAR_TPS_SystemTemplate
[9] Basic Software Module Description Template
AUTOSAR_TPS_BSWModuleDescriptionTemplate
[10] Generic Structure Template
AUTOSAR_TPS_GenericStructureTemplate
[11] Glossary
AUTOSAR_TR_Glossary
[12] General Requirements on Basic Software Modules
AUTOSAR_SRS_BSWGeneral
[13] Requirements on Runtime Environment
AUTOSAR_SRS_RTE
[14] Specification of Timing Extensions
AUTOSAR_TPS_TimingExtensions
[15] Layered Software Architecture
AUTOSAR_EXP_LayeredSoftwareArchitecture
[16] Specification of ECU Resource Template
AUTOSAR_TPS_ECUResourceTemplate
[17] Specification of I/O Hardware Abstraction
AUTOSAR_SWS_IOHardwareAbstraction
This specification includes examples in XML based on the AUTOSAR metamodel avail-
able at the time of writing. These examples are included as illustrations of configura-
tions and their expected outcome but should not be considered part of the specification.
1 Introduction
This document contains the software specification of the AUTOSAR Run-Time Environ-
ment (RTE) and the Basic Software Scheduler. Basically, the RTE together with the
OS, AUTOSAR COM and other Basic Software Modules is the implementation of the
Virtual Functional Bus concepts (VFB, [1]). The RTE implements the AUTOSAR Virtual
Functional Bus interfaces and thereby realizes the communication between AUTOSAR
software-components.
This document describes how these concepts are realized within the RTE. Further-
more, the Application Programming Interface (API) of the RTE and the interaction of
the RTE with other basic software modules is specified.
The Basic Software Scheduler offers concepts and services to integrate Basic Soft-
ware Modules Hence, the Basic Software Scheduler
• embed Basic Software Module implementations into the AUTOSAR OS context
• trigger main processing functions of the Basic Software Modules
• apply data consistency mechanisms for the Basic Software Modules
• to communicate modes between Basic Software Modules
1.1 Scope
This document is intended to be the main reference for developers of an RTE gener-
ator tool or of a concrete RTE implementation respectively. The document is also the
reference for developers of AUTOSAR software-components and basic software mod-
ules that interact with the RTE, since it specifies the application programming interface
of the RTE and therefore the mechanisms for accessing the RTE functionality. Fur-
thermore, this specification should be read by the AUTOSAR working groups that are
closely related to the RTE (see Section 1.2 below), since it describes the interfaces of
the RTE to these modules as well as the behavior / functionality the RTE expects from
them.
This document is structured as follows. After this general introduction, Chapter 2 gives
a more detailed introduction of the concepts of the RTE. Chapter 3 describes how an
RTE is generated in the context of the overall AUTOSAR methodology. Chapter 4 is
the central part of this document. It specifies the RTE functionality in detail. The RTE
API is described in Chapter 5.
The appendix of this document consists of five parts: Appendix A lists the restrictions to
the AUTOSAR metamodel that this version of the RTE specification relies on. Appendix
B explicitly lists all external requirements, i.e. all requirements that are not about the
RTE itself but specify the assumptions on the environment and the input of an RTE
generator. In Appendix C some MISRA-C rules are listed that are likely to be violated
by RTE code, and the rationale why these violations may occur.
Note that Chapters 1 and 2, as well as Appendix C do not contain any requirements
and are thus intended for information only.
Chapters 4 and 5 are probably of most interest for developers of an RTE Generator.
Chapters 2, 3, 5 are important for developers of AUTOSAR software-components and
basic software modules. The most important chapters for related AUTOSAR work
packages would be Chapters 4, 5, as well as Appendix B.
The specifications in this document do not define details of the implementation of a
concrete RTE or RTE generator respectively. Furthermore, aspects of the ECU- and
system-generation process (like e.g. the mapping of SW-Cs to ECUs, or schedulability
analysis) are also not in the scope of this specification. Nevertheless, it is specified
what input the RTE generator expects from these configuration phases.
1
declaration with no static or external specifier defines an automatic variable
The port for receiving (or sending) a mode switch notification. For
mode switch port this purpose, a mode switch port is typed by a ModeSwitchIn-
terface.
An AUTOSAR SW-C or AUTOSAR Basic Software Module
that depends on modes is called a mode user. The depen-
dency can occur through a SwcModeSwitchEvent/BswMod-
mode user eSwitchEvent, a ModeAccessPoint for a provided/required
mode switch port, or a accessedModeGroup for a
providedModeGroup/requiredModeGroup ModeDeclara-
tionGroupPrototype. See also section 4.4.1.
NvBlockSwComponent is a SwComponentPrototype typed an
NvBlockSwComponent
NvBlockSwComponentType.
A RunnableEntity or a BswSchedulableEntity that is trig-
gered by a SwcModeSwitchEvent respectively a BswMod-
on-entry ExecutableEntity eSwitchEvent with ModeActivationKind ‘entry’ is triggered on
entering the mode. It is called on-entry ExecutableEntity. See
also section 4.4.1.
A RunnableEntity or a BswSchedulableEntity that is trig-
gered by a SwcModeSwitchEvent respectively a BswMod-
on-exit ExecutableEntity eSwitchEvent with ModeActivationKind ‘exit’ is triggered on
exiting the mode. It is called on-exit ExecutableEntity. See also
section 4.4.1.
A RunnableEntity or a BswSchedulableEntity that is trig-
gered by a SwcModeSwitchEvent respectively a BswMod-
on-transition ExecutableEntity eSwitchEvent with ModeActivationKind ‘transition’ is triggered
on a transition between the two specified modes. It is called on-
transition ExecutableEntity. See also section 4.4.1.
Variability defined with an VariationPoint having an post-
post-build variability
BuildVariantCriterion
Variability defined with an VariationPoint or AttributeValue-
pre-build variability VariationPoint with latest bindingTime SystemDesignTime,
CodeGenerationTime, PreCompileTime or LinkTime.
Variability defined with an VariationPoint or AttributeValue-
PreCompileTime variability
VariationPoint with latest bindingTime PreCompileTime.
A preemption area defines a set of tasks which are scheduled
cooperatively. Therefore tasks of one preemption area are pre-
preemption area empting each other only at dedicated schedule points. A sched-
ule point is not allowed to occur during the execution of a
RunnableEntity.
Primitive data types are the types implemented by a boolean,
primitive data type integer (up to 32 bits), floating point, or opaque type (up to 32
bits).
FlatInstanceDescriptor with rtePluginProps referenc-
RIPS FlatInstanceDescriptor
ing a Communication Graph.
RP enabler flag A Boolean flag to permit run-time enabling/disabling bypass.
Identifier for bypassed event; passed as parameter to RP ser-
RP event id
vice function.
A buffer read/written by RP. The RP global buffer is con-
RP global buffer ceptually separated from the RTE managed buffer holding the
variable data prototype value.
A buffer used by RP to store the original variable data prototype
RP global measurement buffer value for subsequent measurement purposes before replace-
ment by the RP generated value.
The Software Cluster which contains major part of the BSW and
especially the micro controller dependent lower layer BSW Mod-
Host Software Cluster
ules, e.g. OS and MCAL.
this means the document resembles terminology used in the ARXML file of AUTOSAR
ECU Configuration Parameter Definition.
API function calls are also marked with monospace font, like Rte_EjectWarpCore.
[SWS_Rte_07343] [SWS_Rte_07347]
[SWS_Rte_07353] [SWS_Rte_07356]
[SWS_Rte_07402] [SWS_Rte_07403]
[SWS_Rte_07516] [SWS_Rte_07524]
[SWS_Rte_07545] [SWS_Rte_07548]
[SWS_Rte_07549] [SWS_Rte_07564]
[SWS_Rte_07588] [SWS_Rte_07610]
[SWS_Rte_07621] [SWS_Rte_07638]
[SWS_Rte_07640] [SWS_Rte_07642]
[SWS_Rte_07654] [SWS_Rte_07662]
[SWS_Rte_07667] [SWS_Rte_07670]
[SWS_Rte_07681] [SWS_Rte_07686]
[SWS_Rte_07803] [SWS_Rte_07808]
[SWS_Rte_07809] [SWS_Rte_07810]
[SWS_Rte_07811] [SWS_Rte_07812]
[SWS_Rte_07842] [SWS_Rte_07845]
[SWS_Rte_07927] [SWS_Rte_08072]
[SWS_Rte_08076] [SWS_Rte_08311]
[SWS_Rte_08417] [SWS_Rte_08423]
[SWS_Rte_08603] [SWS_Rte_08604]
[SWS_Rte_08605] [SWS_Rte_08700]
[SWS_Rte_08767] [SWS_Rte_08768]
[SWS_Rte_08788] [SWS_Rte_08800]
[SWS_Rte_08903] [SWS_Rte_08908]
[SWS_Rte_08909] [SWS_Rte_72023]
[SWS_Rte_82004] [SWS_Rte_82012]
[SWS_Rte_CONSTR_80200]
[SWS_Rte_CONSTR_80206]
[SRS_Rte_00019] RTE is the communication [SWS_Rte_01264] [SWS_Rte_02527]
infrastructure [SWS_Rte_02528] [SWS_Rte_02610]
[SWS_Rte_02611] [SWS_Rte_02612]
[SWS_Rte_03000] [SWS_Rte_03001]
[SWS_Rte_03002] [SWS_Rte_03004]
[SWS_Rte_03005] [SWS_Rte_03007]
[SWS_Rte_03008] [SWS_Rte_03760]
[SWS_Rte_03761] [SWS_Rte_03762]
[SWS_Rte_03769] [SWS_Rte_03775]
[SWS_Rte_03776] [SWS_Rte_03795]
[SWS_Rte_03796] [SWS_Rte_04515]
[SWS_Rte_04516] [SWS_Rte_04520]
[SWS_Rte_04522] [SWS_Rte_04526]
[SWS_Rte_04527] [SWS_Rte_04585]
[SWS_Rte_04586] [SWS_Rte_04587]
[SWS_Rte_04588] [SWS_Rte_05065]
[SWS_Rte_05084] [SWS_Rte_05085]
[SWS_Rte_05500] [SWS_Rte_06000]
[SWS_Rte_06011] [SWS_Rte_06023]
[SWS_Rte_06024] [SWS_Rte_07662]
[SWS_Rte_08001] [SWS_Rte_08002]
[SWS_Rte_08586] [SWS_Rte_08587]
[SWS_Rte_08907]
[SWS_Rte_CONSTR_03873]
[SWS_Rte_CONSTR_03874]
[SRS_Rte_00020] Access to OS [SWS_Rte_02250]
[SRS_Rte_00021] Per-ECU RTE customization [SWS_Rte_01316] [SWS_Rte_05000]
[SWS_Rte_08321] [SWS_Rte_08322]
[SWS_Rte_08419]
[SRS_Rte_00033] Serialized execution of Server [SWS_Rte_02527] [SWS_Rte_02528]
Runnable Entities [SWS_Rte_02529] [SWS_Rte_02530]
[SWS_Rte_04515] [SWS_Rte_04518]
[SWS_Rte_04522] [SWS_Rte_07008]
[SWS_Rte_08001] [SWS_Rte_08002]
[SWS_Rte_CONSTR_03873]
[SWS_Rte_CONSTR_03874]
[SRS_Rte_00036] Assignment to OS Applications [SWS_Rte_07347] [SWS_Rte_08903]
[SRS_Rte_00045] Standardized VFB tracing [SWS_Rte_01238] [SWS_Rte_01239]
interface [SWS_Rte_01240] [SWS_Rte_01241]
[SWS_Rte_01242] [SWS_Rte_01243]
[SWS_Rte_01244] [SWS_Rte_01245]
[SWS_Rte_01246] [SWS_Rte_01247]
[SWS_Rte_01248] [SWS_Rte_01249]
[SWS_Rte_01250] [SWS_Rte_01319]
[SWS_Rte_01321] [SWS_Rte_01326]
[SWS_Rte_03814] [SWS_Rte_04531]
[SWS_Rte_04532] [SWS_Rte_04533]
[SWS_Rte_04534] [SWS_Rte_06032]
[SWS_Rte_06113] [SWS_Rte_06114]
[SWS_Rte_07639] [SWS_Rte_08901]
[SRS_Rte_00046] Support for "Executable Entity [SWS_Rte_01120] [SWS_Rte_01122]
runs inside" Exclusive Areas [SWS_Rte_01123] [SWS_Rte_02740]
[SWS_Rte_02741] [SWS_Rte_02743]
[SWS_Rte_02744] [SWS_Rte_02745]
[SWS_Rte_02746] [SWS_Rte_03500]
[SWS_Rte_03515] [SWS_Rte_07250]
[SWS_Rte_07251] [SWS_Rte_07252]
[SWS_Rte_07253] [SWS_Rte_07254]
[SWS_Rte_07522] [SWS_Rte_07523]
[SWS_Rte_07524] [SWS_Rte_07578]
[SWS_Rte_07579] [SWS_Rte_08318]
[SWS_Rte_08319] [SWS_Rte_08320]
[SWS_Rte_08321] [SWS_Rte_08322]
[SRS_Rte_00048] RTE Generator input [SWS_Rte_08769] [SWS_Rte_08770]
[SWS_Rte_08771] [SWS_Rte_08772]
[SWS_Rte_08773] [SWS_Rte_08774]
[SWS_Rte_08775] [SWS_Rte_08776]
[SRS_Rte_00049] Construction of task bodies [SWS_Rte_02204] [SWS_Rte_02254]
[SWS_Rte_04557] [SWS_Rte_04558]
[SWS_Rte_04559] [SWS_Rte_04560]
[SWS_Rte_04561] [SWS_Rte_04562]
[SWS_Rte_06200] [SWS_Rte_06201]
[SWS_Rte_07516] [SWS_Rte_08417]
[SWS_Rte_82005]
[SWS_Rte_CONSTR_04558]
[SWS_Rte_CONSTR_04559]
[SWS_Rte_03733] [SWS_Rte_03734]
[SWS_Rte_03739] [SWS_Rte_03740]
[SWS_Rte_03746] [SWS_Rte_03752]
[SWS_Rte_03799] [SWS_Rte_03801]
[SWS_Rte_03812] [SWS_Rte_03835]
[SWS_Rte_03837] [SWS_Rte_03872]
[SWS_Rte_03879] [SWS_Rte_03880]
[SWS_Rte_03881] [SWS_Rte_03927]
[SWS_Rte_03930] [SWS_Rte_03949]
[SWS_Rte_03952] [SWS_Rte_04545]
[SWS_Rte_04578] [SWS_Rte_04580]
[SWS_Rte_05510] [SWS_Rte_05511]
[SWS_Rte_06205] [SWS_Rte_06208]
[SWS_Rte_06209] [SWS_Rte_06639]
[SWS_Rte_06713] [SWS_Rte_06817]
[SWS_Rte_06818] [SWS_Rte_06819]
[SWS_Rte_06820] [SWS_Rte_06821]
[SWS_Rte_06823] [SWS_Rte_06827]
[SWS_Rte_06831] [SWS_Rte_07137]
[SWS_Rte_07138] [SWS_Rte_07170]
[SWS_Rte_07225] [SWS_Rte_07226]
[SWS_Rte_07227] [SWS_Rte_07228]
[SWS_Rte_07291] [SWS_Rte_07395]
[SWS_Rte_07396] [SWS_Rte_07416]
[SWS_Rte_07677] [SWS_Rte_07837]
[SWS_Rte_07838] [SWS_Rte_07839]
[SWS_Rte_07850] [SWS_Rte_07851]
[SWS_Rte_08073] [SWS_Rte_08091]
[SWS_Rte_08092] [SWS_Rte_08093]
[SWS_Rte_08094] [SWS_Rte_08309]
[SWS_Rte_08312] [SWS_Rte_08777]
[SWS_Rte_08778] [SWS_Rte_08779]
[SWS_Rte_08780] [SWS_Rte_08782]
[SWS_Rte_08783] [SWS_Rte_08784]
[SWS_Rte_08785] [SWS_Rte_08786]
[SRS_Rte_00052] Initialization and finalization of [SWS_Rte_02503] [SWS_Rte_02562]
components [SWS_Rte_02564] [SWS_Rte_02707]
[SWS_Rte_03852] [SWS_Rte_07046]
[SWS_Rte_08911] [SWS_Rte_08912]
[SWS_Rte_70116] [SWS_Rte_70117]
[SRS_Rte_00055] RTE use of global namespace [SWS_Rte_01171] [SWS_Rte_02317]
[SWS_Rte_02318] [SWS_Rte_02319]
[SWS_Rte_02320] [SWS_Rte_03609]
[SWS_Rte_03610] [SWS_Rte_06706]
[SWS_Rte_06707] [SWS_Rte_06708]
[SWS_Rte_06812] [SWS_Rte_06813]
[SWS_Rte_07036] [SWS_Rte_07037]
[SWS_Rte_07104] [SWS_Rte_07109]
[SWS_Rte_07110] [SWS_Rte_07111]
[SWS_Rte_07114] [SWS_Rte_07115]
[SWS_Rte_07116] [SWS_Rte_07117]
[SWS_Rte_07118] [SWS_Rte_07119]
[SWS_Rte_07144] [SWS_Rte_07145]
[SWS_Rte_07146] [SWS_Rte_07148]
[SWS_Rte_07149] [SWS_Rte_07162]
[SWS_Rte_07163] [SWS_Rte_07166]
[SWS_Rte_07284]
[SRS_Rte_00059] RTE API shall pass "in" primitive [SWS_Rte_01017] [SWS_Rte_01020]
data types by value [SWS_Rte_06805] [SWS_Rte_06807]
[SWS_Rte_07069] [SWS_Rte_07070]
[SWS_Rte_07071] [SWS_Rte_07072]
[SWS_Rte_07073] [SWS_Rte_07074]
[SWS_Rte_07076] [SWS_Rte_07077]
[SWS_Rte_07078] [SWS_Rte_07079]
[SWS_Rte_07080] [SWS_Rte_07081]
[SWS_Rte_07083] [SWS_Rte_07084]
[SWS_Rte_07661] [SWS_Rte_08300]
[SRS_Rte_00060] RTE API shall pass "in" [SWS_Rte_01018] [SWS_Rte_05107]
composite data types by [SWS_Rte_05108] [SWS_Rte_06804]
reference [SWS_Rte_06807] [SWS_Rte_07082]
[SWS_Rte_07084] [SWS_Rte_07086]
[SRS_Rte_00061] "in/out" and "out" parameters [SWS_Rte_01017] [SWS_Rte_01018]
[SWS_Rte_01019] [SWS_Rte_01020]
[SWS_Rte_05107] [SWS_Rte_05108]
[SWS_Rte_05109] [SWS_Rte_06806]
[SWS_Rte_07082] [SWS_Rte_07083]
[SWS_Rte_07084] [SWS_Rte_07661]
[SRS_Rte_00062] Local access to basic software [SWS_Rte_02051]
components
[SRS_Rte_00065] Deterministic generation [SWS_Rte_02514] [SWS_Rte_05150]
[SRS_Rte_00068] Signal initial values [SWS_Rte_02517] [SWS_Rte_03852]
[SWS_Rte_05078] [SWS_Rte_07046]
[SWS_Rte_07642] [SWS_Rte_07668]
[SWS_Rte_08311] [SWS_Rte_08911]
[SWS_Rte_08912] [SWS_Rte_70116]
[SWS_Rte_70117]
[SRS_Rte_00069] Communication timeouts [SWS_Rte_01064] [SWS_Rte_01095]
[SWS_Rte_01107] [SWS_Rte_01114]
[SWS_Rte_03754] [SWS_Rte_03758]
[SWS_Rte_03759] [SWS_Rte_03763]
[SWS_Rte_03767] [SWS_Rte_03768]
[SWS_Rte_03770] [SWS_Rte_03771]
[SWS_Rte_03772] [SWS_Rte_06002]
[SWS_Rte_06013] [SWS_Rte_07056]
[SWS_Rte_07059] [SWS_Rte_07060]
[SWS_Rte_08310]
[SRS_Rte_00070] Invocation order of Runnable [SWS_Rte_02207]
Entities
[SWS_Rte_08097] [SWS_Rte_08098]
[SWS_Rte_08099] [SWS_Rte_08100]
[SWS_Rte_08101] [SWS_Rte_08102]
[SWS_Rte_08405] [SWS_Rte_08406]
[SWS_Rte_08407] [SWS_Rte_08501]
[SRS_Rte_00079] Single asynchronous [SWS_Rte_01105] [SWS_Rte_01109]
client-server interaction [SWS_Rte_01133] [SWS_Rte_01166]
[SWS_Rte_01359] [SWS_Rte_02658]
[SWS_Rte_03765] [SWS_Rte_03766]
[SWS_Rte_03771] [SWS_Rte_03772]
[SWS_Rte_07023] [SWS_Rte_07024]
[SWS_Rte_07026] [SWS_Rte_07027]
[SWS_Rte_08800]
[SRS_Rte_00080] Multiple requests of servers [SWS_Rte_03769] [SWS_Rte_04516]
[SWS_Rte_04520]
[SRS_Rte_00082] Standardized communication [SWS_Rte_02649] [SWS_Rte_02651]
protocol [SWS_Rte_02653] [SWS_Rte_02654]
[SWS_Rte_02655] [SWS_Rte_02656]
[SWS_Rte_02657] [SWS_Rte_07346]
[SWS_Rte_07413] [SWS_Rte_08700]
[SWS_Rte_08703] [SWS_Rte_08705]
[SWS_Rte_08707] [SWS_Rte_08709]
[SWS_Rte_08711] [SWS_Rte_08712]
[SRS_Rte_00083] Optimization for source-code [SWS_Rte_01152] [SWS_Rte_01274]
components
[SRS_Rte_00084] Support infrastructural errors [SWS_Rte_01318] [SWS_Rte_02593]
[SRS_Rte_00087] Software Module Header File [SWS_Rte_01000] [SWS_Rte_01004]
generation [SWS_Rte_01006] [SWS_Rte_01132]
[SWS_Rte_01274] [SWS_Rte_03786]
[SWS_Rte_05078] [SWS_Rte_06703]
[SWS_Rte_06704] [SWS_Rte_06705]
[SWS_Rte_06713] [SWS_Rte_07127]
[SWS_Rte_07131] [SWS_Rte_07924]
[SRS_Rte_00089] Independent access to interface [SWS_Rte_06008]
elements
[SRS_Rte_00091] Inter-ECU Marshalling [SWS_Rte_02557] [SWS_Rte_03863]
[SWS_Rte_03864] [SWS_Rte_03865]
[SWS_Rte_04504] [SWS_Rte_04505]
[SWS_Rte_04508] [SWS_Rte_04527]
[SWS_Rte_05081] [SWS_Rte_05173]
[SWS_Rte_07413] [SWS_Rte_08546]
[SWS_Rte_08547] [SWS_Rte_08548]
[SWS_Rte_08549] [SWS_Rte_08551]
[SWS_Rte_08552] [SWS_Rte_08553]
[SWS_Rte_08554] [SWS_Rte_08555]
[SWS_Rte_08556] [SWS_Rte_08557]
[SWS_Rte_08572] [SWS_Rte_08573]
[SWS_Rte_08576] [SWS_Rte_08577]
[SWS_Rte_08578] [SWS_Rte_08579]
[SWS_Rte_08580] [SWS_Rte_08581]
[SWS_Rte_08591] [SWS_Rte_08700]
[SWS_Rte_08703] [SWS_Rte_08705]
[SWS_Rte_08707] [SWS_Rte_08709]
[SWS_Rte_08711] [SWS_Rte_08712]
[SWS_Rte_08725] [SWS_Rte_08726]
[SWS_Rte_08727] [SWS_Rte_08728]
[SWS_Rte_08729] [SWS_Rte_08731]
[SWS_Rte_08793] [SWS_Rte_70054]
[SWS_Rte_70055] [SWS_Rte_70060]
[SWS_Rte_70061] [SWS_Rte_70066]
[SWS_Rte_70067] [SWS_Rte_70068]
[SWS_Rte_70069] [SWS_Rte_70073]
[SWS_Rte_70074] [SWS_Rte_70075]
[SWS_Rte_70076] [SWS_Rte_70118]
[SWS_Rte_70119] [SWS_Rte_72004]
[SWS_Rte_72005] [SWS_Rte_72006]
[SWS_Rte_72007] [SWS_Rte_72008]
[SWS_Rte_72017] [SWS_Rte_72018]
[SRS_Rte_00092] Implementation of VFB model [SWS_Rte_01358] [SWS_Rte_02740]
"waitpoints" [SWS_Rte_02741] [SWS_Rte_02743]
[SWS_Rte_02744] [SWS_Rte_02745]
[SWS_Rte_02746] [SWS_Rte_03010]
[SWS_Rte_03018] [SWS_Rte_07402]
[SWS_Rte_07846] [SWS_Rte_07847]
[SWS_Rte_08318] [SWS_Rte_08319]
[SWS_Rte_08320] [SWS_Rte_08321]
[SWS_Rte_08322]
[SWS_Rte_CONSTR_80206]
[SRS_Rte_00094] Communication and Resource [SWS_Rte_01034] [SWS_Rte_01084]
Errors [SWS_Rte_01086] [SWS_Rte_01093]
[SWS_Rte_01094] [SWS_Rte_01095]
[SWS_Rte_01103] [SWS_Rte_01104]
[SWS_Rte_01105] [SWS_Rte_01106]
[SWS_Rte_01107] [SWS_Rte_01112]
[SWS_Rte_01113] [SWS_Rte_01114]
[SWS_Rte_01207] [SWS_Rte_01259]
[SWS_Rte_01260] [SWS_Rte_01261]
[SWS_Rte_01262] [SWS_Rte_01318]
[SWS_Rte_01330] [SWS_Rte_01331]
[SWS_Rte_01333] [SWS_Rte_01334]
[SWS_Rte_01339] [SWS_Rte_01344]
[SWS_Rte_02312] [SWS_Rte_02313]
[SWS_Rte_02524] [SWS_Rte_02525]
[SWS_Rte_02571] [SWS_Rte_02572]
[SWS_Rte_02578] [SWS_Rte_02598]
[SWS_Rte_02602] [SWS_Rte_02674]
[SWS_Rte_02721] [SWS_Rte_02727]
[SWS_Rte_02728] [SWS_Rte_02729]
[SWS_Rte_03606] [SWS_Rte_03774]
[SWS_Rte_03785] [SWS_Rte_03853]
[SWS_Rte_04530] [SWS_Rte_06210]
[SWS_Rte_06828] [SWS_Rte_06830]
[SWS_Rte_07258] [SWS_Rte_07374]
[SWS_Rte_07375] [SWS_Rte_07376]
[SWS_Rte_07392] [SWS_Rte_07393]
[SWS_Rte_07636] [SWS_Rte_07637]
[SWS_Rte_07650] [SWS_Rte_07651]
[SWS_Rte_07652] [SWS_Rte_07659]
[SWS_Rte_07660] [SWS_Rte_07673]
[SWS_Rte_07820] [SWS_Rte_07821]
[SWS_Rte_07822] [SWS_Rte_07823]
[SWS_Rte_07848] [SWS_Rte_07849]
[SWS_Rte_08301] [SWS_Rte_08302]
[SWS_Rte_08546] [SWS_Rte_08547]
[SWS_Rte_08548] [SWS_Rte_08549]
[SWS_Rte_08552] [SWS_Rte_08553]
[SWS_Rte_08554] [SWS_Rte_08555]
[SWS_Rte_08556] [SWS_Rte_08557]
[SWS_Rte_08572] [SWS_Rte_08573]
[SWS_Rte_08576] [SWS_Rte_08577]
[SWS_Rte_08578] [SWS_Rte_08579]
[SWS_Rte_08580] [SWS_Rte_08581]
[SWS_Rte_08591] [SWS_Rte_08727]
[SWS_Rte_08728] [SWS_Rte_08729]
[SWS_Rte_70053] [SWS_Rte_70054]
[SWS_Rte_70055] [SWS_Rte_70059]
[SWS_Rte_70060] [SWS_Rte_70061]
[SWS_Rte_70065] [SWS_Rte_70066]
[SWS_Rte_70067] [SWS_Rte_70068]
[SWS_Rte_70069] [SWS_Rte_70072]
[SWS_Rte_70073] [SWS_Rte_70074]
[SWS_Rte_70075] [SWS_Rte_70076]
[SWS_Rte_70100] [SWS_Rte_70101]
[SWS_Rte_70118] [SWS_Rte_70119]
[SWS_Rte_70125] [SWS_Rte_72000]
[SWS_Rte_72001] [SWS_Rte_72002]
[SWS_Rte_72003] [SWS_Rte_72004]
[SWS_Rte_72005] [SWS_Rte_72006]
[SWS_Rte_72007] [SWS_Rte_72008]
[SWS_Rte_72011] [SWS_Rte_72012]
[SWS_Rte_72013] [SWS_Rte_72014]
[SWS_Rte_72015] [SWS_Rte_72016]
[SWS_Rte_72017] [SWS_Rte_72018]
[SWS_Rte_72019]
[SRS_Rte_00098] Explicit Sending [SWS_Rte_01071] [SWS_Rte_06011]
[SWS_Rte_06016]
[SRS_Rte_00099] Decoupling of interrupts [SWS_Rte_03530] [SWS_Rte_03531]
[SWS_Rte_03532] [SWS_Rte_03594]
[SWS_Rte_03600]
[SRS_Rte_00100] Compiler independent API [SWS_Rte_01314]
[SWS_Rte_06773] [SWS_Rte_06774]
[SWS_Rte_06775] [SWS_Rte_06776]
[SWS_Rte_06777] [SWS_Rte_06778]
[SWS_Rte_06779] [SWS_Rte_06780]
[SWS_Rte_06781] [SWS_Rte_06782]
[SWS_Rte_06783] [SWS_Rte_06784]
[SWS_Rte_06785] [SWS_Rte_06786]
[SWS_Rte_06787] [SWS_Rte_06788]
[SWS_Rte_06789] [SWS_Rte_06790]
[SWS_Rte_06791] [SWS_Rte_06792]
[SWS_Rte_06793] [SWS_Rte_06794]
[SWS_Rte_06795] [SWS_Rte_06796]
[SWS_Rte_06797] [SWS_Rte_07155]
[SWS_Rte_07262] [SWS_Rte_07540]
[SWS_Rte_07640] [SWS_Rte_07666]
[SWS_Rte_08500] [SWS_Rte_08504]
[SWS_Rte_08505] [SWS_Rte_08506]
[SWS_Rte_08509] [SWS_Rte_08510]
[SWS_Rte_08908]
[SRS_Rte_00145] Compatibility mode [SWS_Rte_01151] [SWS_Rte_01216]
[SWS_Rte_01234] [SWS_Rte_01257]
[SWS_Rte_01277] [SWS_Rte_01279]
[SWS_Rte_01326] [SWS_Rte_03794]
[SWS_Rte_03871]
[SRS_Rte_00146] Vendor mode [SWS_Rte_01234]
[SRS_Rte_00147] Support for communication [SWS_Rte_02589] [SWS_Rte_02590]
infrastructure time-out [SWS_Rte_02599] [SWS_Rte_02600]
notification [SWS_Rte_02604] [SWS_Rte_02607]
[SWS_Rte_02609] [SWS_Rte_02610]
[SWS_Rte_02611] [SWS_Rte_02629]
[SWS_Rte_02666] [SWS_Rte_02703]
[SWS_Rte_02710] [SWS_Rte_03759]
[SWS_Rte_05021] [SWS_Rte_06820]
[SWS_Rte_06821] [SWS_Rte_06822]
[SWS_Rte_06823] [SWS_Rte_06824]
[SWS_Rte_06825] [SWS_Rte_06829]
[SWS_Rte_08004] [SWS_Rte_08061]
[SWS_Rte_08062] [SWS_Rte_08103]
[SWS_Rte_08104] [SWS_Rte_08501]
[SRS_Rte_00148] Support "Specification of [SWS_Rte_03788] [SWS_Rte_03868]
Memory Mapping" [SWS_Rte_05088] [SWS_Rte_05089]
[SWS_Rte_06741] [SWS_Rte_07047]
[SWS_Rte_07048] [SWS_Rte_07049]
[SWS_Rte_07050] [SWS_Rte_07051]
[SWS_Rte_07052] [SWS_Rte_07053]
[SWS_Rte_07194] [SWS_Rte_07195]
[SWS_Rte_07421] [SWS_Rte_07422]
[SWS_Rte_07423] [SWS_Rte_07424]
[SWS_Rte_07425] [SWS_Rte_07426]
[SWS_Rte_07427] [SWS_Rte_07589]
[SWS_Rte_07590] [SWS_Rte_07591]
[SWS_Rte_07592] [SWS_Rte_07593]
[SWS_Rte_07594] [SWS_Rte_07595]
[SWS_Rte_07596] [SWS_Rte_07830]
[SWS_Rte_07831] [SWS_Rte_07832]
[SWS_Rte_08787]
[SRS_Rte_00149] Support "Specification of [SWS_Rte_01164] [SWS_Rte_03787]
Compiler Abstraction" [SWS_Rte_07194] [SWS_Rte_07195]
[SWS_Rte_07593] [SWS_Rte_07594]
[SWS_Rte_07595] [SWS_Rte_07596]
[SWS_Rte_07641]
[SRS_Rte_00150] Support "Specification of [SWS_Rte_01164] [SWS_Rte_07641]
Platform Types"
[SRS_Rte_00152] Support for port-defined [SWS_Rte_01166] [SWS_Rte_01360]
argument values
[SRS_Rte_00153] Support for Measurement [SWS_Rte_03900] [SWS_Rte_03901]
[SWS_Rte_03902] [SWS_Rte_03903]
[SWS_Rte_03904] [SWS_Rte_03950]
[SWS_Rte_03951] [SWS_Rte_03972]
[SWS_Rte_03973] [SWS_Rte_03974]
[SWS_Rte_03975] [SWS_Rte_03976]
[SWS_Rte_03977] [SWS_Rte_03978]
[SWS_Rte_03979] [SWS_Rte_03980]
[SWS_Rte_03981] [SWS_Rte_03982]
[SWS_Rte_05087] [SWS_Rte_05101]
[SWS_Rte_05102] [SWS_Rte_05120]
[SWS_Rte_05121] [SWS_Rte_05122]
[SWS_Rte_05123] [SWS_Rte_05124]
[SWS_Rte_05125] [SWS_Rte_05136]
[SWS_Rte_05168] [SWS_Rte_05169]
[SWS_Rte_05170] [SWS_Rte_05172]
[SWS_Rte_05174] [SWS_Rte_05175]
[SWS_Rte_05176] [SWS_Rte_06206]
[SWS_Rte_06700] [SWS_Rte_06701]
[SWS_Rte_06702] [SWS_Rte_06726]
[SWS_Rte_07160] [SWS_Rte_07174]
[SWS_Rte_07197] [SWS_Rte_07198]
[SWS_Rte_07344] [SWS_Rte_07349]
[SWS_Rte_70086] [SWS_Rte_80073]
[SWS_Rte_80153] [SWS_Rte_82001]
[SRS_Rte_00154] Support for Calibration [SWS_Rte_03835] [SWS_Rte_03905]
[SWS_Rte_03906] [SWS_Rte_03907]
[SWS_Rte_03908] [SWS_Rte_03909]
[SWS_Rte_03910] [SWS_Rte_03911]
[SWS_Rte_03912] [SWS_Rte_03913]
[SWS_Rte_03914] [SWS_Rte_03915]
[SWS_Rte_03916] [SWS_Rte_03922]
[SWS_Rte_03932] [SWS_Rte_03933]
[SWS_Rte_03934] [SWS_Rte_03935]
[SWS_Rte_03936] [SWS_Rte_03942]
[SWS_Rte_03943] [SWS_Rte_03947]
[SWS_Rte_03948] [SWS_Rte_03949]
[SWS_Rte_03958] [SWS_Rte_03959]
[SWS_Rte_03960] [SWS_Rte_03961]
[SWS_Rte_03962] [SWS_Rte_03963]
[SWS_Rte_03964] [SWS_Rte_03965]
[SWS_Rte_03968] [SWS_Rte_03970]
[SWS_Rte_03971] [SWS_Rte_05112]
[SWS_Rte_05145] [SWS_Rte_05194]
[SWS_Rte_06815] [SWS_Rte_06816]
[SWS_Rte_07029] [SWS_Rte_07030]
[SWS_Rte_07033] [SWS_Rte_07034]
[SWS_Rte_07035] [SWS_Rte_07096]
[SWS_Rte_07185] [SWS_Rte_07186]
[SWS_Rte_07693]
[SRS_Rte_00155] API to access calibration [SWS_Rte_01252] [SWS_Rte_01300]
parameters [SWS_Rte_03835] [SWS_Rte_03927]
[SWS_Rte_03928] [SWS_Rte_03929]
[SWS_Rte_03930] [SWS_Rte_03949]
[SWS_Rte_03952] [SWS_Rte_07093]
[SWS_Rte_07094] [SWS_Rte_07095]
[SRS_Rte_00156] Support for different calibration [SWS_Rte_03905] [SWS_Rte_03906]
data emulation methods [SWS_Rte_03908] [SWS_Rte_03909]
[SWS_Rte_03910] [SWS_Rte_03911]
[SWS_Rte_03913] [SWS_Rte_03914]
[SWS_Rte_03915] [SWS_Rte_03916]
[SWS_Rte_03922] [SWS_Rte_03932]
[SWS_Rte_03933] [SWS_Rte_03934]
[SWS_Rte_03935] [SWS_Rte_03936]
[SWS_Rte_03942] [SWS_Rte_03943]
[SWS_Rte_03947] [SWS_Rte_03948]
[SWS_Rte_03960] [SWS_Rte_03961]
[SWS_Rte_03962] [SWS_Rte_03963]
[SWS_Rte_03964] [SWS_Rte_03965]
[SWS_Rte_03968] [SWS_Rte_03970]
[SWS_Rte_03971] [SWS_Rte_05145]
[SWS_Rte_06816]
[SRS_Rte_00157] Support for calibration [SWS_Rte_03936]
parameters in NVRAM
[SRS_Rte_00158] Support separation of calibration [SWS_Rte_03907] [SWS_Rte_03908]
parameters [SWS_Rte_03911] [SWS_Rte_03912]
[SWS_Rte_03959] [SWS_Rte_05145]
[SWS_Rte_05194] [SWS_Rte_07096]
[SRS_Rte_00159] Sharing of calibration [SWS_Rte_02749] [SWS_Rte_02750]
parameters [SWS_Rte_03958] [SWS_Rte_05112]
[SWS_Rte_07186]
[SRS_Rte_00160] Debounced start of Runnable [SWS_Rte_02697]
Entities
[SRS_Rte_00161] Activation offset of Runnable [SWS_Rte_07000]
Entities
[SRS_Rte_00162] "1:n" External Trigger [SWS_Rte_06210] [SWS_Rte_07200]
communication [SWS_Rte_07201] [SWS_Rte_07207]
[SWS_Rte_07212] [SWS_Rte_07213]
[SWS_Rte_07214] [SWS_Rte_07215]
[SWS_Rte_07216] [SWS_Rte_07218]
[SWS_Rte_07229] [SWS_Rte_07543]
[SWS_Rte_08906] [SWS_Rte_70124]
[SWS_Rte_06111] [SWS_Rte_06112]
[SWS_Rte_06113] [SWS_Rte_06114]
[SWS_Rte_06115] [SWS_Rte_06120]
[SWS_Rte_07833] [SWS_Rte_07834]
[SWS_Rte_07835] [SWS_Rte_07836]
[SWS_Rte_07837] [SWS_Rte_07838]
[SWS_Rte_07839] [SWS_Rte_07840]
[SWS_Rte_07841] [SWS_Rte_70094]
[SWS_Rte_70095]
[SWS_Rte_CONSTR_80011]
[SRS_Rte_00245] Support of Writing Strategies for [SWS_Rte_03879] [SWS_Rte_03880]
NV data [SWS_Rte_03881] [SWS_Rte_04565]
[SWS_Rte_04566] [SWS_Rte_04567]
[SWS_Rte_04568] [SWS_Rte_07416]
[SWS_Rte_08080] [SWS_Rte_08081]
[SWS_Rte_08082] [SWS_Rte_08083]
[SWS_Rte_08084] [SWS_Rte_08085]
[SWS_Rte_08086] [SWS_Rte_08087]
[SWS_Rte_08088] [SWS_Rte_08089]
[SWS_Rte_08090] [SWS_Rte_08091]
[SWS_Rte_08092] [SWS_Rte_08093]
[SWS_Rte_08094] [SWS_Rte_08111]
[SRS_Rte_00246] Support of Efficient COM for [SWS_Rte_01376] [SWS_Rte_01379]
large data [SWS_Rte_01380] [SWS_Rte_01381]
[SWS_Rte_01382] [SWS_Rte_01383]
[SWS_Rte_01384] [SWS_Rte_01385]
[SWS_Rte_01386] [SWS_Rte_01387]
[SWS_Rte_01388] [SWS_Rte_01389]
[SWS_Rte_01390] [SWS_Rte_01391]
[SWS_Rte_01392] [SWS_Rte_01393]
[SWS_Rte_01394] [SWS_Rte_01395]
[SWS_Rte_01396] [SWS_Rte_01397]
[SWS_Rte_01398] [SWS_Rte_01399]
[SWS_Rte_01400] [SWS_Rte_01401]
[SWS_Rte_01402] [SWS_Rte_01403]
[SWS_Rte_01404] [SWS_Rte_01405]
[SWS_Rte_01406] [SWS_Rte_01407]
[SWS_Rte_01408] [SWS_Rte_01409]
[SWS_Rte_01410] [SWS_Rte_01411]
[SWS_Rte_82016]
[SRS_Rte_00247] The Rte shall execute [SWS_Rte_04540] [SWS_Rte_04541]
transformer chains for SWC [SWS_Rte_06023] [SWS_Rte_08110]
communication [SWS_Rte_08515] [SWS_Rte_08516]
[SWS_Rte_08517] [SWS_Rte_08518]
[SWS_Rte_08519] [SWS_Rte_08520]
[SWS_Rte_08521] [SWS_Rte_08522]
[SWS_Rte_08523] [SWS_Rte_08524]
[SWS_Rte_08525] [SWS_Rte_08526]
[SWS_Rte_08527] [SWS_Rte_08528]
[SWS_Rte_08529] [SWS_Rte_08530]
[SWS_Rte_08538] [SWS_Rte_08570]
[SWS_Rte_08571] [SWS_Rte_08587]
[SWS_Rte_08588] [SWS_Rte_08589]
[SWS_Rte_08590] [SWS_Rte_08596]
[SWS_Rte_08597] [SWS_Rte_08598]
[SWS_Rte_08599] [SWS_Rte_08793]
[SWS_Rte_08794] [SWS_Rte_08795]
[SWS_Rte_08796] [SWS_Rte_08797]
[SWS_Rte_08798] [SWS_Rte_08799]
[SRS_Rte_00248] The Rte shall provide the buffer [SWS_Rte_03867] [SWS_Rte_08531]
for the data transformation [SWS_Rte_08532] [SWS_Rte_08534]
[SWS_Rte_08535] [SWS_Rte_08536]
[SWS_Rte_08537] [SWS_Rte_08550]
[SRS_Rte_00249] The Rte shall provide [SWS_Rte_03608] [SWS_Rte_03887]
transformation errors to the [SWS_Rte_03888] [SWS_Rte_03889]
SWCs [SWS_Rte_03890] [SWS_Rte_03891]
[SWS_Rte_04572] [SWS_Rte_04573]
[SWS_Rte_04574] [SWS_Rte_04575]
[SWS_Rte_04576] [SWS_Rte_05300]
[SWS_Rte_05301] [SWS_Rte_07417]
[SWS_Rte_07418] [SWS_Rte_07419]
[SWS_Rte_07420] [SWS_Rte_08424]
[SWS_Rte_08539] [SWS_Rte_08540]
[SWS_Rte_08541] [SWS_Rte_08558]
[SWS_Rte_08559] [SWS_Rte_08562]
[SWS_Rte_08563] [SWS_Rte_08564]
[SWS_Rte_08565] [SWS_Rte_08566]
[SWS_Rte_08567] [SWS_Rte_08568]
[SWS_Rte_08569] [SWS_Rte_08574]
[SWS_Rte_08582] [SWS_Rte_08584]
[SWS_Rte_08585] [SWS_Rte_08791]
[SRS_Rte_00251] Array based signal group [SWS_Rte_08586]
handling with Com
[SRS_Rte_00252] Encapsulate a BSW Module [SWS_Rte_03983] [SWS_Rte_03984]
local name space [SWS_Rte_03985] [SWS_Rte_03990]
[SWS_Rte_03991] [SWS_Rte_03992]
[SWS_Rte_03994] [SWS_Rte_03995]
[SWS_Rte_03996] [SWS_Rte_03997]
[SWS_Rte_07415]
[SRS_Rte_00253] The RTE shall execute data [SWS_Rte_08105] [SWS_Rte_08107]
transformation for SWC/BSW [SWS_Rte_08108] [SWS_Rte_08109]
communication within one ECU
[SRS_Rte_00261] The RTE shall support optional [SWS_Rte_03611] [SWS_Rte_03612]
struct members. [SWS_Rte_03613] [SWS_Rte_03614]
[SWS_Rte_03615] [SWS_Rte_03616]
[SWS_Rte_03617] [SWS_Rte_03618]
[SWS_Rte_08911] [SWS_Rte_08912]
[SWS_Rte_80057] [SWS_Rte_80058]
[SWS_Rte_80059] [SWS_Rte_80060]
[SWS_Rte_80061] [SWS_Rte_80063]
[SWS_Rte_80064] [SWS_Rte_80065]
[SWS_Rte_80066] [SWS_Rte_80075]
[SWS_Rte_80100] [SWS_Rte_80101]
[SWS_Rte_80103] [SWS_Rte_80104]
[SWS_Rte_80105] [SWS_Rte_80128]
[SWS_Rte_80129] [SWS_Rte_80148]
[SWS_Rte_80150] [SWS_Rte_80154]
[SWS_Rte_82012] [SWS_Rte_82013]
[SWS_Rte_82014] [SWS_Rte_82015]
[SWS_Rte_89020] [SWS_Rte_89021]
[SWS_Rte_91000] [SWS_Rte_91119]
[SWS_Rte_91122]
[SWS_Rte_CONSTR_80002]
[SWS_Rte_CONSTR_80003]
[SWS_Rte_CONSTR_80200]
[SWS_Rte_CONSTR_80202]
[SRS_Rte_00301] RTE Implementation Plug-Ins for [SWS_Rte_70003] [SWS_Rte_70004]
implicit communication [SWS_Rte_70013] [SWS_Rte_70015]
[SWS_Rte_70016] [SWS_Rte_70017]
[SWS_Rte_70018] [SWS_Rte_70032]
[SWS_Rte_70039] [SWS_Rte_70042]
[SWS_Rte_70043] [SWS_Rte_70046]
[SWS_Rte_70048] [SWS_Rte_70049]
[SWS_Rte_70078] [SWS_Rte_70082]
[SWS_Rte_70083] [SWS_Rte_70084]
[SWS_Rte_70085] [SWS_Rte_70087]
[SWS_Rte_70088] [SWS_Rte_70108]
[SWS_Rte_80010] [SWS_Rte_80011]
[SWS_Rte_80012] [SWS_Rte_80013]
[SWS_Rte_80014] [SWS_Rte_80015]
[SWS_Rte_80031] [SWS_Rte_80032]
[SWS_Rte_80033] [SWS_Rte_80034]
[SWS_Rte_80035] [SWS_Rte_80036]
[SWS_Rte_80037] [SWS_Rte_80038]
[SWS_Rte_80039] [SWS_Rte_80040]
[SWS_Rte_80041] [SWS_Rte_80044]
[SWS_Rte_80046] [SWS_Rte_80047]
[SWS_Rte_80048] [SWS_Rte_80049]
[SWS_Rte_80050] [SWS_Rte_80056]
[SWS_Rte_80057] [SWS_Rte_80058]
[SWS_Rte_80059] [SWS_Rte_80060]
[SWS_Rte_80061] [SWS_Rte_80063]
[SWS_Rte_80064] [SWS_Rte_80076]
[SWS_Rte_80079] [SWS_Rte_80084]
[SWS_Rte_80103] [SWS_Rte_80104]
[SWS_Rte_80105] [SWS_Rte_80128]
[SWS_Rte_80129] [SWS_Rte_80149]
[SWS_Rte_80151] [SWS_Rte_80154]
[SWS_Rte_82009] [SWS_Rte_82010]
[SWS_Rte_82011] [SWS_Rte_82012]
[SWS_Rte_82017] [SWS_Rte_82018]
[SWS_Rte_89020] [SWS_Rte_89021]
[SWS_Rte_91000] [SWS_Rte_91119]
[SWS_Rte_91122]
[SWS_Rte_CONSTR_80002]
[SWS_Rte_CONSTR_80003]
[SWS_Rte_CONSTR_80200]
[SWS_Rte_CONSTR_80202]
[SRS_Rte_00302] RTE Implementation Plug-Ins for [SWS_Rte_70007] [SWS_Rte_70027]
exclusive areas [SWS_Rte_70028] [SWS_Rte_70032]
[SWS_Rte_70039] [SWS_Rte_80020]
[SWS_Rte_80021] [SWS_Rte_80022]
[SWS_Rte_80023] [SWS_Rte_80024]
[SWS_Rte_80079] [SWS_Rte_82011]
[SWS_Rte_CONSTR_80000]
[SWS_Rte_CONSTR_80001]
[SRS_Rte_00303] RTE Implementation Plug-Ins for [SWS_Rte_08910] [SWS_Rte_70043]
global copy instantiation [SWS_Rte_70050] [SWS_Rte_70051]
[SWS_Rte_70056] [SWS_Rte_70057]
[SWS_Rte_70085] [SWS_Rte_70086]
[SWS_Rte_70127] [SWS_Rte_70128]
[SWS_Rte_70129] [SWS_Rte_70130]
[SWS_Rte_70131] [SWS_Rte_70132]
[SWS_Rte_70133] [SWS_Rte_70134]
[SWS_Rte_70139] [SWS_Rte_70140]
[SWS_Rte_72009] [SWS_Rte_72010]
[SWS_Rte_72021] [SWS_Rte_72022]
[SWS_Rte_80065] [SWS_Rte_80066]
[SWS_Rte_80073] [SWS_Rte_82013]
[SWS_Rte_82014] [SWS_Rte_82015]
[SRS_Rte_00304] Multiple RTE Plug-Ins [SWS_Rte_70027] [SWS_Rte_70028]
[SWS_Rte_70047] [SWS_Rte_70062]
[SWS_Rte_70063] [SWS_Rte_70070]
[SWS_Rte_70071] [SWS_Rte_70077]
[SWS_Rte_80020] [SWS_Rte_80021]
[SWS_Rte_80051] [SWS_Rte_80052]
[SWS_Rte_80053] [SWS_Rte_80054]
[SWS_Rte_80055] [SWS_Rte_80071]
[SWS_Rte_80072]
[SWS_Rte_CONSTR_80019]
[SWS_Rte_CONSTR_80030]
[SWS_Rte_CONSTR_80201]
[SWS_Rte_CONSTR_80203]
[SRS_Rte_00305] Graduated validation strategy [SWS_Rte_70040] [SWS_Rte_80029]
[SWS_Rte_80030] [SWS_Rte_80152]
[SWS_Rte_CONSTR_80013]
[SRS_Rte_00306] Standardized interfaces for RTE [SWS_Rte_08910] [SWS_Rte_70000]
Implementation Plug-Ins [SWS_Rte_70001] [SWS_Rte_70002]
[SWS_Rte_70003] [SWS_Rte_70004]
[SWS_Rte_70005] [SWS_Rte_70006]
[SWS_Rte_70007] [SWS_Rte_70008]
[SWS_Rte_70009] [SWS_Rte_70010]
[SWS_Rte_70011] [SWS_Rte_70012]
[SWS_Rte_70013] [SWS_Rte_70015]
[SWS_Rte_70016] [SWS_Rte_70017]
[SWS_Rte_70018] [SWS_Rte_70019]
[SWS_Rte_70020] [SWS_Rte_70021]
[SWS_Rte_70022] [SWS_Rte_70023]
[SWS_Rte_70024] [SWS_Rte_70025]
[SWS_Rte_70026] [SWS_Rte_70027]
[SWS_Rte_70028] [SWS_Rte_70029]
[SWS_Rte_70030] [SWS_Rte_70031]
[SWS_Rte_70032] [SWS_Rte_70033]
[SWS_Rte_70034] [SWS_Rte_70035]
[SWS_Rte_70036] [SWS_Rte_70037]
[SWS_Rte_70038] [SWS_Rte_70039]
[SWS_Rte_70046] [SWS_Rte_70047]
[SWS_Rte_70050] [SWS_Rte_70051]
[SWS_Rte_70052] [SWS_Rte_70053]
[SWS_Rte_70054] [SWS_Rte_70055]
[SWS_Rte_70056] [SWS_Rte_70057]
[SWS_Rte_70058] [SWS_Rte_70059]
[SWS_Rte_70060] [SWS_Rte_70061]
[SWS_Rte_70062] [SWS_Rte_70063]
[SWS_Rte_70064] [SWS_Rte_70070]
[SWS_Rte_70071] [SWS_Rte_70077]
[SWS_Rte_70078] [SWS_Rte_70087]
[SWS_Rte_70088] [SWS_Rte_70090]
[SWS_Rte_70091] [SWS_Rte_70098]
[SWS_Rte_70099] [SWS_Rte_70100]
[SWS_Rte_70101] [SWS_Rte_70102]
[SWS_Rte_70107] [SWS_Rte_70108]
[SWS_Rte_70125] [SWS_Rte_70126]
[SWS_Rte_70127] [SWS_Rte_70128]
[SWS_Rte_70129] [SWS_Rte_70130]
[SWS_Rte_70131] [SWS_Rte_70132]
[SWS_Rte_70133] [SWS_Rte_70134]
[SWS_Rte_70135] [SWS_Rte_70136]
[SWS_Rte_70137] [SWS_Rte_70138]
[SWS_Rte_70139] [SWS_Rte_70140]
[SWS_Rte_72000] [SWS_Rte_72001]
[SWS_Rte_72002] [SWS_Rte_72003]
[SWS_Rte_72009] [SWS_Rte_72010]
[SWS_Rte_72011] [SWS_Rte_72012]
[SWS_Rte_72013] [SWS_Rte_72014]
[SWS_Rte_72015] [SWS_Rte_72016]
[SWS_Rte_72017] [SWS_Rte_72018]
[SWS_Rte_72019] [SWS_Rte_72020]
[SWS_Rte_72021] [SWS_Rte_72022]
[SWS_Rte_80000] [SWS_Rte_80001]
[SWS_Rte_80002] [SWS_Rte_80003]
[SWS_Rte_80005] [SWS_Rte_80006]
[SWS_Rte_80007] [SWS_Rte_80008]
[SWS_Rte_80009] [SWS_Rte_80010]
[SWS_Rte_80011] [SWS_Rte_80012]
[SWS_Rte_80013] [SWS_Rte_80014]
[SWS_Rte_80015] [SWS_Rte_80016]
[SWS_Rte_80017] [SWS_Rte_80018]
[SWS_Rte_80019] [SWS_Rte_80020]
[SWS_Rte_80021] [SWS_Rte_80025]
[SWS_Rte_80026] [SWS_Rte_80027]
[SWS_Rte_80028] [SWS_Rte_80051]
[SWS_Rte_80052] [SWS_Rte_80053]
[SWS_Rte_80054] [SWS_Rte_80055]
[SWS_Rte_80065] [SWS_Rte_80066]
[SWS_Rte_80071] [SWS_Rte_80072]
[SWS_Rte_80075] [SWS_Rte_80078]
[SWS_Rte_80079] [SWS_Rte_80100]
[SWS_Rte_80101] [SWS_Rte_80131]
[SWS_Rte_80148] [SWS_Rte_80149]
[SWS_Rte_80150] [SWS_Rte_80151]
[SWS_Rte_82009] [SWS_Rte_82010]
[SWS_Rte_82011] [SWS_Rte_82013]
[SWS_Rte_82014] [SWS_Rte_82015]
[SWS_Rte_82017] [SWS_Rte_82018]
[SWS_Rte_89020] [SWS_Rte_89021]
[SWS_Rte_89022] [SWS_Rte_89023]
[SWS_Rte_91000] [SWS_Rte_91113]
[SWS_Rte_91114] [SWS_Rte_91115]
[SWS_Rte_91117] [SWS_Rte_91119]
[SWS_Rte_91121] [SWS_Rte_91122]
[SRS_Rte_00307] RTE Implementation Plug-Ins for [SWS_Rte_70093] [SWS_Rte_80077]
cross core communication [SWS_Rte_CONSTR_80010]
[SRS_Rte_00309] RTE Implementation Plug-Ins for [SWS_Rte_70093] [SWS_Rte_80077]
cross safety partition [SWS_Rte_CONSTR_80010]
communication
[SRS_Rte_00310] Shared mode queue [SWS_Rte_06832] [SWS_Rte_06833]
[SWS_Rte_06834] [SWS_Rte_06835]
[SWS_Rte_06836] [SWS_Rte_06837]
[SWS_Rte_06838] [SWS_Rte_06839]
[SWS_Rte_06840] [SWS_Rte_70032]
[SWS_Rte_70039] [SWS_Rte_70098]
[SWS_Rte_80083]
[SWS_Rte_CONSTR_80012]
[SRS_Rte_00311] Core synchronous transitions for [SWS_Rte_80111] [SWS_Rte_80112]
mode switches [SWS_Rte_80113] [SWS_Rte_80114]
[SWS_Rte_80115] [SWS_Rte_80116]
[SWS_Rte_80117] [SWS_Rte_80118]
[SWS_Rte_80119] [SWS_Rte_80120]
[SWS_Rte_80121] [SWS_Rte_80122]
[SWS_Rte_80123] [SWS_Rte_80124]
[SWS_Rte_80125]
2 RTE Overview
2.2.3 Communication
The RTE provides different paradigms for the communication between software-
component instances: sender-receiver (signal passing), client-server (function invo-
cation), mode switch, and NvBlockSwComponentType interaction.
Each communication paradigm can be applied to intra-partition software-component
distribution (which includes both intra-task and inter-task distribution, within the same
Partition), inter-Partition software-component distribution, and inter-ECU software-
component distribution. Intra-task communication occurs between runnable entities
that are mapped to the same OS task whereas inter-task communication occurs be-
tween runnable entities mapped to different tasks of the same Partition and can there-
fore involve a context switch. Inter-Partition communication occurs between runnable
entities in components mapped to different partitions of the same ECU and therefore in-
volve a context switch and crossing a protection boundary (memory protection, timing
protection, isolation on a core). Inter-ECU communication occurs between runnable
entities in components that have been mapped to different ECUs and so is inherently
concurrent and involves potentially unreliable communication.
Details of the communication paradigms that are supported by the RTE are contained
in Section 4.3.
The term “implicit” is used here since the runnable does not actively initiate the
reception or transmission of data.
Implicit and explicit communication is considered in greater detail in Section 4.3.1.5.
2.2.3.4 Multiplicity
As well as point to point communication (i.e. “1:1”) the RTE supports communication
connections with multiple providers or requires:
• When using sender-receiver communication, the RTE supports both “1:n” (single
sender with multiple receivers) [SRS_Rte_00028] and “n:1” (multiple senders and
a single receiver) [SRS_Rte_00131] communication with the restriction that mul-
tiple senders are not allowed for mode switch notifications, see meta-
model restrictions [SWS_Rte_02670].
The execution of the multiple senders or receivers is not coordinated by the RTE.
This means that the actions of different software-components are independent –
the RTE does not ensure that different senders transmit data simultaneously and
does not ensure that all receivers read data or receive events simultaneously.
• When using client-server communication, the RTE supports “n:1” (multiple clients
and a single server) [SRS_Rte_00029] communication. The RTE does not sup-
port “1:n” (single client with multiple servers) client-server communication.
Irrespective of whether “1:1”, “n:1” or “1:n” communication is used, the RTE is respon-
sible for implementing the communication connections and therefore the AUTOSAR
software-component is unaware of the configuration. This permits an AUTOSAR
software-component to be redeployed in a different configuration without modification.
2.2.4 Concurrency
AUTOSAR software-components have no direct access to the OS and hence there are
no “tasks” in an AUTOSAR application. Instead, concurrent activity within AUTOSAR
is based around RunnableEntitys within components that are invoked by the RTE.
The AUTOSAR VFB specification [1] defines a runnable entity as a “sequence of in-
structions that can be started by the Run-Time Environment”. A component provides
usually one3 or more runnable entities [SRS_Rte_00031] and each runnable entity
has exactly one entry point. An entry point defines the symbol within the software-
component’s code that provides the implementation of a runnable entity.
The RTE is responsible for invoking runnable entities – AUTOSAR software-
components are not able to (dynamically) create private threads of control. Hence,
all activity within an AUTOSAR application is initiated by the triggering of runnable en-
tities by the RTE as a result of RTEEvents.
An RTEEvent encompasses all possible situations that can trigger execution of a runn-
able entity by the RTE. The different classes of RTEEvent are defined in Section 5.7.5.
The RTE supports runnable entities in any component that has an AUTOSAR interface
- this includes AUTOSAR software-components and basic software modules.4
Runnable entities are divided into multiple categories with each category supporting
different facilities. The categories supported by the RTE are described in Section
4.2.2.3.
The RTE generator is one of a set of tools5 that create the realization of the AUTOSAR
virtual function bus for an ECU based on information in the ECU Configuration De-
scription. The RTE Generator is responsible for creating the AUTOSAR software-
component API functions that link AUTOSAR software-components to the OS and
manage communication between AUTOSAR software-components and between AU-
TOSAR software-components and basic software modules.
Additionally the RTE Generator creates both the Basic Software Scheduler and the Ba-
sic Software Scheduler API functions for each particular instance of a Basic Software
Module.
The RTE generation process for SWCs has two main phases:
3
There are use cases where a SWC might exist without any RunnableEntity.
4
The OS and COM are basic software modules but present a standardized interface to the RTE and
have no AUTOSAR interface. The OS and COM therefore do not have runnable entities.
5
The RTE generator works in conjunction with other tools, for example, the OS and COM generators,
to fully realize the AUTOSAR VFB.
«input» «output»
Configure
System
Collection of Available System Configuration Description
SWC Implementations [XML]
[XML] «input»
Extract ECU-specific
Information
ECU Extract of System Configuration
[XML]
«output»
«input»
Generate Compile
RTE «output» RTE
«input»
«used
«output» tool»
«input» «output» «output»
RTE Header
[H]
Edit ECU
Configuration
AUTOSAR RTE
«used Generator
tool»
«impacted Compiled BSW
Compiled RTE
by» [OBJ]
[OBJ]
«input» «input»
«input»
Generate
Executable
Compiled SWC Implementations
[OBJ]
«output»
ECU Executable
[EXE]
[SWS_Rte_08769] dRTE Generator shall support for reading single files and of sets
of files that are stored in a file system. The tool shall provide a mechanism to select a
specific file and sets of files in the file system.c(SRS_Rte_00048)
An AUTOSAR XML description can be shipped in several files. Some files could con-
tain data types others could contain interfaces, etc.
[SWS_Rte_08770] dAn RTE Generator tools SHALL support the merging of AUTOSAR
models that have been split up and stored in multiple partial models while reading an
set of files. Thereby the to be supported minimum granularity of an AUTOSAR model is
defined by atpSplitable. The Merging of a model also includes the resolution
of references. The RTE Generator SHALL be able to read the submodels in any order.
There is no preference.c(SRS_Rte_00048)
[SWS_Rte_08771] dRTE Generator SHALL support the interpretation and creation of
AUTOSAR XML descriptions. These descriptions SHALL be ’well-formed’ and ’valid’
as defined by the XML recommendation, W3C XML 1.1 Specification, whether used
with or without the document’s corresponding AUTOSAR XML schema(s). In other
words: Even if the tool does not use standard XML mechanisms for validating the XML
descriptions it SHALL ensure that the XML descriptions can be successfully validated
against the AUTOSAR XML schema.c(SRS_Rte_00048)
[SWS_Rte_08772] dIf an RTE Generator wants to validate an AUTOSAR XML descrip-
tion against an AUTOSAR schema, it SHALL provide the necessary schema files in its
own resources.
An RTE Generator shall use the SYSTEM-Identifier in the xsi:schemaLocation to iden-
tify an appropriate schema file.c(SRS_Rte_00048)
[SWS_Rte_08773] dRTE Generator shall provide a serialization for XML.c(SRS_Rte_-
00048)
[SWS_Rte_08774] dRTE Generator shall not change model content passed to the
Generatorc(SRS_Rte_00048)
[SWS_Rte_08775] dAn RTE Generator MAY support the AUTOSAR extension mech-
anism SDGs if applicable.
If the RTE Generator does not need the additional information for its intended purpose
it SHALL ignore the irrelevant extensions SDGs.c(SRS_Rte_00048)
[SWS_Rte_08776] dAn RTE Generator may use well structured error messages.c
(SRS_Rte_00048)
The following list is a collection of proposed information items in particular applicable
to log files used for exchanging information about errors.
• ErrorCode – A symbolic name for the message text
• StandardErrorCode – The reference to the AUTOSAR error code
«input»
Generate Compile
SchM SchM
«output» «input»
«used
tool»
«input» «output»
«output» «output»
Generate
Executable
«output»
ECU Executable
[EXE]
The ECU Configuration phase is the start of the Basic Software Scheduler configura-
tion where all the requirements of the different Basic Software Modules are collected.
The Input information is provided in the Basic Software Module Descriptions [9] of the
individual Basic Software Modules.
The Basic Software Scheduler configuration is then generated into the Basic Software
Scheduler code which is compiled and built into the Ecu executable.
«input» «output»
Implement
Component
«input»
«input» «input»
Component API
[H] «output» «output»
Measure
Resource
«output»
Software Component
Implementation Description
[XML]
With the generated ’Component API’ (application header file) the Software Compo-
nent developer can provide the Software Component’s source code without being con-
cerned as to whether the communication will later be local or using some network(s).
It has to be considered that the AUTOSAR software-component development process
is iterative and that the AUTOSAR software-component description might be changed
during the development of the AUTOSAR software-component. This requires the ap-
plication header file to be regenerated to reflect the changes done in the software-
component description.
When the software-component has been compiled successfully the ’Component Im-
plementation Description Generation’ tool will analyze the resulting object files and
enhance the software-component description with the information from the specific im-
plementation. This includes information about the actual memory needs for ROM as
well as for RAM and goes into the ’Component Implementation Description’ section of
the AUTOSAR Software Component Template.
Please note that in case of implemented PreCompileTime variability addition-
ally the PreBuild Data Set Contract Phase is required 3.2 to be able to compile the
software component.
So when a software-component is delivered it will consist of the following parts:
• SW-Component Type Description
• SW-Component Internal Behavior Description
• The actual SW-Component implementation and/or compiled SW-Component
• SW-Component Implementation Description
The above listed information will be needed to provide enough information for the Sys-
tem Generation steps when the whole system is assembled.
To be able to support the Basic Software Module development with Basic Software
Scheduler specific APIs the Module Interlink Header ( 6.3.2) and Module Interlink
Types Header ( 6.3.1) containing the definitions and declaration for the Basic Soft-
ware Scheduler API related to the single Basic Software Module instance is generated
by the RTE Generator in the so called ’Basic Software Scheduler Contract Phase’.
The required input is
• Basic Software Module Description and
• Basic Software Module Internal Behavior and
• Basic Software Module Implementation
Please note that in case of implemented PreCompileTime variability addition-
ally the PreBuild Data Set Contract Phase is required 3.2 to be able to compile the
Basic Software Module.
RTE Code
«output» [C]
«output»
ECU Configuration Values «input»
[XML]
«input» «output»
Generate Compile
RTE RTE
«used Compiled RTE
«input» [OBJ]
tool» «output»
«output»
«output»
AUTOSAR RTE
Generator
RTE Header
[H]
MC-Support
[XML]
IOC-Configuration
[XML]
The Basic Software Scheduler is a part of the Rte and therefore not explicitly shown in
figure 3.4.
Depending on the complexity of the ECU and the cooperation model of the different
software vendors it might be required to integrate the Basic Software stand alone with-
out software components.
Therefore the RTE Generator has to support the generation of the Basic Software
Scheduler without software component related RTE fragments. The Basic Software
Scheduler Generation Phase is only applicable for software builds which are not con-
taining any kind of software components.
[SWS_Rte_07569] dIn the Basic Software Scheduler Generation Phase the RTE Gen-
erator shall generate the Basic Software Scheduler without the RTE functionality.c
(SRS_Rte_00221)
In this case the RTE Generator generates the API for Basic Software Modules and the
Basic Software Scheduling code only. When the input contains software component
related information this information raises an error.
For instance:
• Application Header Files are not generated for the software components con-
tained in the ECU extract.
• Mapped RTEEvents are not permitted and the runnable calls are not generated
into the OS task bodies. Nevertheless all OS task bodies related to the Basic
Software Scheduler configuration are generated.
• Mode machine instances mapped to the RTE are not supported.
[SWS_Rte_07585] dIn the Basic Software Scheduler Generation Phase the RTE Gen-
erator shall reject input configuration containing software component related informa-
tion.c(SRS_Rte_00221)
The RTE Generator in the Basic Software Scheduler Generation Phase is also respon-
sible to generate additional artifacts which contribute to the further build, deployment
and calibration of the ECU’s software.
[SWS_Rte_06725] dThe RTE Generator in Basic Software Scheduler Generation
Phase shall provide its Basic Software Module Description in order to capture the
generated RTE’s / Basic Software Scheduler attributes.c(SRS_Rte_00170, SRS_Rte_-
00192, SRS_Rte_00233)
Details about the Basic Software Module Description generation can can be found in
section 3.4.4.
[SWS_Rte_06726] dThe RTE Generator in Basic Software Scheduler Generation
Phase shall provide an MC-Support (Measurement and Calibration) description as part
of the Basic Software Module Description.c(SRS_Rte_00153, SRS_Rte_00189)
Details about the MC-Support can be found in section 4.2.9.4.
For software builds which are containing software components the RTE Generation
Phase 3.4.2 is applicable where the Basic Software Scheduler part of the RTE is gen-
erated as well.
The actual AUTOSAR software-components and Basic-SW modules code will be linked
together with the RTE and Basic Software Scheduler code to build the entire ECU
software.
The actual AUTOSAR software-components and Basic-SW modules code will be linked
together with the RTE and Basic Software Scheduler code to build the entire CpSoft-
wareCluster.
Please note that in case of implemented PreCompileTime variability addition-
ally the PreBuild Data Set Generation Phase is required (see section 3.5) to be able
to compile the CpSoftwareCluster code. Further on in case of implemented
post-build variability PostBuild Data Set Generation Phase is required (see
section 3.6) to be able to link the CpSoftwareCluster code.
The RTE Generator in the Cluster Generation Phase is also responsible to generate
additional artifacts which contribute to the further build, deployment and calibration of
the CpSoftwareCluster.
[SWS_Rte_82000]{DRAFT} dThe RTE Generator in Cluster Generation Phase shall
provide its Basic Software Module Description in order to capture the generated RTE’s
attributes.c(SRS_Rte_00170, SRS_Rte_00192, SRS_Rte_00233)
Details about the Basic Software Module Description generation can can be found in
section 3.4.4.
[SWS_Rte_82001]{DRAFT} dThe RTE Generator in Cluster Generation Phase shall
provide an MC-Support (Measurement and Calibration) description as part of the Basic
Software Module Description.c(SRS_Rte_00153, SRS_Rte_00189)
Details about the MC-Support can be found in section 4.2.9.4.
[SWS_Rte_82002]{DRAFT} dThe RTE Generator in Cluster Generation Phase shall
provide the configuration for the Ioc module [4] if the IOC module is used.c(SRS_Rte_-
00196)
The RTE generates the IOC configurations and uses an implementation specific deter-
ministic generation scheme. This generation scheme can be used by implementations
to reuse these IOC configurations (e.g. if the configuration switch strictConfigu-
rationCheck is used).
[SWS_Rte_82003]{DRAFT} dThe RTE Generator in Cluster Generation Phase shall
generate internal ImplementationDataTypes types used for IOC configuration, if the
IOC module is used.c(SRS_Rte_00210)
Changing the RTE generator will require a new IOC configuration generation.
Details about the IOC module can be found in section 4.3.4.1.
The Basic Software Module Description [9] generated by the RTE Generator in gen-
eration phase describes features of the actual RTE code. The following requirements
specify which elements of the Basic Software Module Description are mandatory to be
generated by the RTE Generator.
for the Dlt needs the ImplementationDataType "TaskType" from the OS in order to
describe the data type of the SwServiceArg "task" in the description of the related
BswModuleEntry.
In this case the full qualified path name to the ImplementationDataType "Task-
Type" shall be
1 AUTOSAR_OS/ImplementationDataTypes/TaskType
[SWS_Rte_05182] dThe RTE Generator in Generation Phase shall provide the Vari-
ableDataPrototype element in the BswInternalBehavior in the role stat-
icMemory for each variable memory object the RTE allocates.c(SRS_Rte_00233)
[SWS_Rte_05183] dThe RTE Generator in Generation Phase shall provide the Pa-
rameterDataPrototype element in the BswInternalBehavior in the role con-
stantMemory for each constant memory object the RTE allocates.c(SRS_Rte_00233)
Note: The use case is the support of the build-environment (automatic or manual).
Attributes shall be used in this context as follow:
• category shall be used as defined in Generic Structure Template [10] (e.g.
SWSRC, SWOBJ, SWHDR)
• domain is optional and can be chosen freely
• revisionLabel shall contain the revision label out of RTE Configuration
• shortLabel is the name of artifact
Details on the description of DependencyOnArtifact can be found in the Generic
Structure Template [10].
Additional elements of the Basic Software Module Description which shall be exported
are specified in later requirements e.g. in section 4.2.9.4.
4.1.1 Scope
In this section the concept of an AUTOSAR software-component and its usage within
the RTE is introduced.
The AUTOSAR Software Component Template [2] defines the kinds of software-
components within the AUTOSAR context. These are shown in Figure 4.1. The ab-
stract SwComponentType can not be instantiated, so there can only be either a Com-
positionSwComponentType, a ParameterSwComponentType, or a specialized
class ApplicationSwComponentType, ServiceProxySwComponentType, Sen-
sorActuatorSwComponentType, NvBlockSwComponentType, ServiceSwCom-
ponentType, ComplexDeviceDriverSwComponentType, or EcuAbstraction-
SwComponentType of the abstract class AtomicSwComponentType.
In the following document the term AtomicSwComponentType is used as collective
term for all the mentioned non-abstract derived meta-classes.
The SwComponentType is defining the type of an AUTOSAR software-component
which is independent of any usage and can be potentially re-used several times in
different scenarios. In a composition the types are occurring in specific roles which are
called SwComponentPrototypes. The prototype is the utilization of a type within a
certain scenario. In AUTOSAR any SwComponentType can be used as a type for a
prototype.
ARElement AtpPrototype
AtpBlueprint
«isOfType» SwComponentPrototype
AtpBlueprintable +type
AtpType
0..1
SwComponentType {redefines atpType}
+component 0..*
«atpVariation,atpSplitable»
The AUTOSAR software-components shown in Figure 4.1 are located above and below
the RTE in the architectural Figure 4.2.
Below the RTE there are also software entities that have an AUTOSAR Interface.
These are the AUTOSAR services, the ECU Abstraction and the Complex Device
Drivers. For these software not only the AUTOSAR Interface will be described but
also information about their internal structure will be available in the Basic Software
Module Description.
In the next sections the different AUTOSAR software-components kinds will be de-
scribed in detail with respect to their influence on the RTE.
AbstractRequiredPortPrototype AbstractProvidedPortPrototype
When compositions are built of instances the ports can be connected either within the
composition or made accessible to the outside of the composition. For the connections
inside a composition the AssemblySwConnector is used, while the Delegation-
SwConnector is used to connect ports from the inside of a composition to the outside.
Ports not connected will be handled according to the requirement [SRS_Rte_00139].
The next step is to map the SW-C instances on ECUs and to establish the communi-
cation relationships. From this step the actual communication is derived, so it is now
fixed if a connection between two instance’s ports is going to be over a communication
bus or locally within one ECU.
[SWS_Rte_02200] dThe RTE shall implement the communication paths specified by
the ECU Configuration description.c(SRS_Rte_00027)
[SWS_Rte_02201] d The RTE shall implement the semantic of the communication at-
tributes given by the AUTOSAR software-component description. The semantic of the
given communication mechanism shall not change regardless of whether the commu-
nication partner is located on the same partition, on another partition of the same ECU
or on a remote ECU, or whether the communication is done by the RTE itself or by the
RTE calling COM or IOC.c(SRS_Rte_00027)
E.g., according to [SWS_Rte_02200] and [SWS_Rte_02201] the RTE is not permitted
to change the semantic of an asynchronous client to synchronous because both client
and server are mapped to the very same ECU.
+perInstanceParameter * +sharedParameter *
«atpVariation,atpSplitable»
«atpVariation,atpSplitable»
+staticMemory
AutosarDataPrototype
SwcInternalBehavior
VariableDataPrototype 0..* «atpVariation,atpSplitable»
+implicitInterRunnableVariable
* «atpVariation,atpSplitable»
+explicitInterRunnableVariable
* «atpVariation,atpSplitable»
+arTypedPerInstanceMemory
* «atpVariation,atpSplitable»
«atpVariation,atpSplitable» «atpVariation,atpSplitable»
«atpVariation,atpSplitable» «atpVariation,atpSplitable»
+perInstanceMemory * +portAPIOption 0..* +runnable 0..* +event *
RunnableEntitys (also abbreviated simply as Runnable) are the smallest code frag-
ments that are provided by AUTOSAR software-components and those basic software
modules that implement AUTOSAR Interfaces. They are represented by the meta-
class RunnableEntity, see Figure 4.5.
InternalBehavior
SwcInternalBehavior::SwcInternalBehavior
«atpVariation,atpSplitable»
+runnable 0..* «atpVariation,atpSplitable»
AtpStructureElement
ExecutableEntity +event *
SwcInternalBehavior::RunnableEntity AbstractEvent
+startOnEvent AtpStructureElement
+ canBeInvokedConcurrently: Boolean [0..1]
RTEEvents::RTEEvent
+ symbol: CIdentifier [0..1] 0..1
+trigger 0..1
Identifiable
+waitPoint RTEEvents::WaitPoint
* + timeout: TimeValue [0..1]
Figure 4.5: Software-component runnable entity, wait points and RTE Events
[SWS_Rte_08768] dThe RTE generator shall reject configuration where the scope of
a VariableAccess is violated by the system and/or ECU configuration.c(SRS_Rte_-
00018)
[SWS_Rte_CONSTR_09081] Mapping to partition vs the value of VariableAc-
cess.scope dFor every connection between SwComponentPrototypes mapped to
different partitions the value of VariableAccess.scope shall not be set to Vari-
ableAccessScopeEnum.communicationIntraPartition.c()
InternalBehavior
SwcInternalBehavior::SwcInternalBehavior
«atpVariation,atpSplitable»
+runnable 0..*
AtpStructureElement AbstractAccessPoint
ExecutableEntity +parameterAccess AtpStructureElement
SwcInternalBehavior::RunnableEntity «atpVariation,atpSplitable» Identifiable
0..*
DataElements::ParameterAccess
+ canBeInvokedConcurrently: Boolean [0..1]
+ symbol: CIdentifier [0..1]
AbstractAccessPoint
+dataSendPoint AtpStructureElement
«atpVariation,atpSplitable» 0..* Identifiable
DataElements::VariableAccess
+dataReceivePointByArgument
+ scope: VariableAccessScopeEnum [0..1]
«atpVariation,atpSplitable» 0..*
+dataReceivePointByValue
«atpVariation,atpSplitable» 0..*
+dataReadAccess
«atpVariation,atpSplitable» 0..*
+dataWriteAccess
«atpVariation,atpSplitable» 0..*
+readLocalVariable
«atpVariation,atpSplitable» 0..*
+writtenLocalVariable
«atpVariation,atpSplitable» 0..*
InternalBehavior
SwcInternalBehavior::SwcInternalBehavior
«atpVariation,atpSplitable»
+runnable 0..*
AtpStructureElement AbstractAccessPoint
ExecutableEntity AtpStructureElement
SwcInternalBehavior::RunnableEntity +serverCallPoint Identifiable
AbstractAccessPoint
AtpStructureElement
+asynchronousServerCallResultPoint Identifiable
«atpVariation,atpSplitable» ServerCall::
0..* AsynchronousServerCallResultPoint
Trigger::ExternalTriggeringPoint
+externalTriggeringPoint
«atpVariation,atpSplitable» 0..*
AbstractAccessPoint
+internalTriggeringPoint AtpStructureElement
Identifiable
«atpVariation,atpSplitable» 0..* Trigger::InternalTriggeringPoint
AbstractAccessPoint
+modeSwitchPoint AtpStructureElement
Identifiable
«atpVariation,atpSplitable» * ModeDeclarationGroup::ModeSwitchPoint
ModeDeclarationGroup::ModeAccessPoint
+modeAccessPoint
«atpVariation,atpSplitable» *
Figure 4.7: Software-component runnable entity and server invocation, trigger, and
mode switches
With the information from SwcInternalBehavior a part of the setup of the AU-
TOSAR software-component within the RTE and the OS can already be configured.
Furthermore, the information (description) of the structure (ports, interfaces) and the
internal behavior of an AUTOSAR software component are sufficient for the RTE Con-
tract Phase.
However, some detailed information is still missing and this is part of the Implementa-
tion description.
4.1.3.4 Implementation
«atpSplitable»
+resourceConsumption 0..1
Identifiable
ResourceConsumption
«atpVariation,atpSplitable»
Identifiable +stackUsage 0..*
ExecutableEntity «atpVariation,atpSplitable»
Identifiable
+executableEntity
StackUsage
0..1 A
«atpVariation,atpSplitable»
«atpVariation,atpSplitable»
+executionTime 0..*
Identifiable
+executableEntity
ExecutionTime
0..1 +memorySection 0..* +heapUsage 0..*
Identifiable Identifiable
+executableEntity MemorySection HeapUsage
0..*
Note that the information from the Implementation part are only required for the RTE
Generation Phase, if at all.
4.1.4 Instantiation
Generally spoken, the term instantiation refers to the process of deriving specific in-
stances from a model or template. But, this process can be accomplished on different
levels of abstraction. Therefore, the instance of the one level can be the model for the
next.
With respect to AUTOSAR four modeling levels are distinguished. They are referred to
as the levels M 3 to M 0.
The level M 3 describes the concepts used to derive an AUTOSAR meta model of level
M 2. This meta model at level M 2 defines a language in order to be able to describe
specific attributes of a model at level M 1, e.g., to be able to describe an specific type
of an AUTOSAR software component. E.g., one part of the AUTOSAR meta model is
called Software Component Template or SW-C-T for short and specified in [2]. It is
discussed more detailed in section 4.1.3.
At level M 1 engineers will use the defined language in order to design components or
interfaces or compositions, say to describe an specific type of a LightManager. Hereby,
e.g., the descriptions of the (atomic) software components will also contain an internal
behavior as well as an implementation part as mentioned in section 4.1.3.
Those descriptions are input for the RTE Generator in the so-called ’Contract Phase’
(see section 3.1.1). Out of this information specific APIs (in a programming language)
to access ports and interfaces will be generated.
Software components generally consist of a set of Runnable Entities. They can now
specifically be described in a programming language which can be refered to as “im-
plementation”. As one can see in section 4.1.3 this “implementation” then corresponds
exactly to one implementation description as well as to one internal behavior descrip-
tion.
M 0 refers to a specific running instance on a specific car.
Objects derived from those specified component types can only be executed in a spe-
cific run time environment (on a specific target). The objects embody the real and
running implementation and shall therefore be referred to as software component in-
stances (on modeling level M 0). E.g., there could be two component instances derived
from the same component type LightManager on a specific light controller ECU each
responsible for different lights. Making instances means that it should be possible to
distinguish them even though the objects are descended from the same model.
With respect to this more narrative description the RTE as the run time environment
shall enable the process of instantiation. Thereby the term instantiation throughout
the document shall refer to the process of deriving and providing explicit particular
descriptions of all occuring instances of all types. Therefore, this section will address
the problems which can arise out of the instantiation process and will specify the needs
for AUTOSAR components and the AUTOSAR RTE respectively.
Example 4.1
Since the single instance of the software component is unambigous per se no addi-
tional concepts have to be added.
Example 4.2
Runnable entity R1 called for two instances out of the same task context:
1 TASK(Task1){
2 ...
3 R1(instance1);
4 R1(instance2);
5 ...
6 }
In general, side effects can appear if the same code entity is invoked by different
threads of execution running, namely tasks or ISR2s. This holds particularly true, if
the invoked code entity inherits a state or memory by the means of static variables
which are visible to all instances. That would mean that all instances are coupled by
those static variables.
Thus, they affect each other. This would lead to data consistency problems on one
hand. On the other – and that is even more important – it would introduce a new
communication mechanism to AUTOSAR and this is forbidden. AUTOSAR software
components can only communicate via ports.
To be complete, it shall be noted that a calling code entity also inherits the reentrancy
problems of its callee. This holds especially true in case of recursive calls.
An AUTOSAR SW-C can define internal memory only accessible by a SW-C instance
itself. This concept is called PerInstanceMemory. The memory can only be accessed
by the runnable entities of this particular instance. That means in turn, other instances
don’t have the possibility to access this memory.
PerInstanceMemory API principles are explained in Section 5.2.5.
The API for PerInstanceMemory is specified in Section 5.6.15.
According to the AUTOSAR glossary [11] “an AUTOSAR service is a logical entity of the
Basic Software offering general functionality to be used by various AUTOSAR software
components. The functionality is accessed via standardized AUTOSAR interfaces”.
Therefore, AUTOSAR services provide standardized AUTOSAR Interfaces: ports
typed by standardized PortInterfaces.
When connecting AUTOSAR service ports to ports of AUTOSAR software components
the RTE maps standard RTE API calls to the symbols defined in the RTE input (i.e.
XML) for the AUTOSAR service runnables of the BSW. The key technique to distin-
guish ECU dependent identifiers for the AUTOSAR services is called “port-defined
argument values”, which is described in Section 4.3.2.4. Currently “port-defined argu-
ment values” are only supported for client-server communication. It is not possible to
use a pre-defined symbol for sending or receiving data.
The RTE does not pass an instance handle to the C-based API of AUTOSAR services
since the latter are single-instantiatable (see [SWS_Rte_03806]).
As displayed on figure 4.2, there can be direct interactions between the RTE and some
Basic Software Modules. This is the case of the Operating System, the AUTOSAR
Communication, and the NVRAM Manager.
The ECU Abstraction provides an interface to physical values for AUTOSAR software
components. It abstracts the physical origin of signals (their pathes to the ECU hard-
ware ports) and normalizes the signals with respect to their physical appearance (like
specific values of current or voltage).
See the AUTOSAR ECU architecture in figure 4.2. From an architectural point of view
the ECU Abstraction is part of the Basic Software layer and offers AUTOSAR interfaces
to AUTOSAR software components.
Seen from the perspective of an RTE, regular AUTOSAR ports are connected. With-
out any restrictions all communication paradigms specified by the AUTOSAR Virtual
Functional Bus (VFB) shall be applicable to the ports, interfaces and connections –
sender-receiver just as well as client-server mechanisms.
However, ports of the ECU Abstraction shall always only be connected to ports of
specific AUTOSAR software components: sensor or actuator software components. In
this sense they are tightly coupled to a particular ECU Abstraction.
Furthermore, it must not be possible (by an RTE) to connect AUTOSAR ports of the
ECU Abstraction to AUTOSAR ports of any AUTOSAR component located on a remote
ECU (see [SWS_Rte_02051].
This means, e.g., that sensor-related signals coming from the ECU Abstraction are
always received by an AUTOSAR sensor component located on the same ECU. The
AUTOSAR sensor component will then process the received signal and deploy it to
other AUTOSAR components regardless of whether they are located on the same or
any remote ECU. This applies to actuator-related signals accordingly, however, the
opposite way around.
[SWS_Rte_02050] dThe RTE Generator shall generate a communication path be-
tween connected ports of AUTOSAR sensor or actuator software components and the
ECU Abstraction in the exact same manner like for connected ports of AUTOSAR soft-
ware components.c()
[SWS_Rte_02051] dThe RTE Generator shall reject configurations which require a
communication path from a AUTOSAR software component to an ECU Abstraction
located on a remote ECU.c(SRS_Rte_00062, SRS_Rte_00018)
Further information about the ECU Abstraction can be found in the corresponding
specification document [17].
A Complex Device Driver has an AUTOSAR Interface, therefore the RTE can deal with
the communication on the Complex Device Drivers ports. The Complex Device Driver
is allowed to have code entities that are not under control of the RTE but yet still may
use the RTE API (e.g. ISR2, BSW main processing functions).
The interface of a Basic Software Module is described with Basic Software Module
Entries (BswModuleEntry ). For the functionality of the Basic Software Scheduler only
BswModuleEntry s from BswCallType SCHEDULED are relevant. Nevertheless for op-
timization purpose the analysis of the full call tree might be required which requires the
consideration of all BswModuleEntry ’s
The Basic Software Internal Behavior specifies the behavior of a BSW module or a
BSW cluster w.r.t. the code entities visible by the BSW Scheduler. For the Basic Soft-
ware Scheduler mainly Basic Software Schedulable Entities (BswSchedulableEntity ’s)
are relevant. These are Basic Software Module Entities, which are designed for control
by the Basic Software Scheduler. Basic Software Schedulable Entities are implement-
ing main processing functions. Furthermore all Basic Software Schedulable Entities
are allowed to use exclusive areas and for call tree analysis all Basic Software Module
Entities are relevant.
[SWS_Rte_07514] dThe Basic Software Scheduler shall support multiple Basic Soft-
ware Module Entities in AUTOSAR Basic Software Modules.c(SRS_Rte_00211, SRS_-
Rte_00213, SRS_Rte_00216)
[SWS_Rte_07515] dThe Basic Software Scheduler shall trigger the execution of
Schedulable Entity ’s in accordance with the connected BswEvent.c(SRS_Rte_00072)
[SWS_Rte_07516] dThe RTE Generator shall reject configurations where a BswEvent
which can start a Schedulable Entity is not mapped to an OsTask/ISR2 nor is qualified
for a direct or trusted function call.c(SRS_Rte_00049, SRS_Rte_00018)
[SWS_Rte_07517] dThe RTE Generator shall respect the configured execution order
of Schedulable Entities within one OS task/ISR2.c(SRS_Rte_00219)
[SWS_Rte_07518] dThe RTE shall support the execution sequences of Runnable En-
tities and Schedulable Entities within the same OS task/ISR2 in an arbitrarily config-
urable order.c(SRS_Rte_00219)
The implementation defines further details of the implantation of the Basic Software
Module. The vendorApiInfix attribute is of particular interest, because it defines the
name space extension for multiple instances of the same basic software module. Fur-
ther on the category of the codeDescriptor specifies if the Basic Software Module
is delivered as source code or as object.
AUTOSAR Services, ECU Abstraction and Complex Device Drivers are hybrid of AU-
TOSAR software-component and Basic Software Module. These kinds of modules
might use AUTOSAR Interfaces to communicate via RTE as well as C-API to directly
access other Basic Software Modules. Caused by the structure of the AUTOSAR Meta
Model some entities of the ’C’ implementation have to be described twice; on the one
hand by the means of the Software Component Template [2] and on the other hand by
the means of the Basic Software Module Description Template [9]. Further on the du-
alism of port based communication between software component and non-port based
communication between Basic Software Modules requires in some cases the coordi-
nation and synchronization between both principles. The information about elements
belonging together is provided by the so called SwcBswMapping.
A Runnable Entity which is mapped to a Basic Software Module Entity has to be treated
as one common entity. This means it describes an entity which can use the features of
a Runnable Entity and a Basic Software Module Entity as well. For instance it supports
to use the port based API as well as Basic Software Scheduler API in one C function.
Two synchronized Trigger are behaving like one common Trigger. Consequently the
call of the belonging Rte_Trigger API and the SchM_Trigger API are having the
same effect. For optimization purpose the Rte_Trigger API might just refer to the
SchM_Trigger API.
4.2.1 Scope
Having a standardized interface means first that the modules do not provide or request
services for/of the AUTOSAR software components located above the RTE. They do
not have ports and therefore cannot be connected to the aforementioned AUTOSAR
software components. AUTOSAR OS as well as AUTOSAR COM are simply invisible
for them.
Secondly AUTOSAR OS and AUTOSAR COM are used by the RTE in order to achieve
the functionality requested by the AUTOSAR software components. The AUTOSAR
COM module is used by the RTE to route a signal over ECU boundaries, but this
mechanism is hidden to the sending as well as to the receiving AUTOSAR software
component. The AUTOSAR OS module is used for two main purposes. First, OS is
used by the RTE to route a signal over core and partition boundaries. Secondly, the
AUTOSAR OS module is used by the RTE in order to properly schedule the single
Runnables in the sense that the RTE Generator generates Task/ISR2-bodies which
contain then the calls to appropriate Runnables.
In this sense the RTE shall also use the available means to convert interrupts to notifi-
cations in a task context or to guarantee data consistency.
With respect to this view, the RTE is thirdly not a generic abstraction layer for AU-
TOSAR OS and AUTOSAR COM. It is generated for a specific ECU and offers the
same interface to the AUTOSAR Software Components as the VFB. It implements the
functionality of the VFB using modules of the Basic Software, including a specific im-
plementation of AUTOSAR OS and AUTOSAR COM.
The Basic Software Scheduler offers services to integrate Basic Software Modules for
all modules of all layers. Hence, the Basic Software Scheduler provides the following
functions:
• embed Basic Software Modules implementations into the AUTOSAR OS context
• trigger BswSchedulableEntitys of the Basic Software Modules
• apply data consistency mechanisms for the Basic Software Modules
The integrator’s task is to apply given means (of the AUTOSAR OS) in order to assem-
ble BSW modules in a well-defined and efficient manner in a project specific context.
This also means that the BSW Scheduler only uses the AUTOSAR OS. It is not in the
least a competing entity for the AUTOSAR OS scheduler.
[SWS_Rte_02250] dThe RTE shall only use the AUTOSAR OS, AUTOSAR COM, AU-
TOSAR Efficient COM for Large Data, AUTOSAR Transformer and AUTOSAR NVRAM
Manager in order to provide the RTE functionality to the AUTOSAR components.c
(SRS_Rte_00020)
[SWS_Rte_07519] dThe Basic Software Scheduler shall only use the AUTOSAR OS
in order to provide the Basic Software Scheduler functionality to the Basic Software
Modules.c()
[SWS_Rte_06200] dThe RTE Generator shall construct task bodies for those tasks
which contain RunnableEntitys.c(SRS_Rte_00049)
[SWS_Rte_82005]{DRAFT} dThe RTE Generator in Cluster Generation Phase shall
reject configurations where the mappings of Runnable Entities via their respective
RTEEvents require extended tasks.c(SRS_Rte_00049)
[SWS_Rte_04560] dThe RTE Generator shall construct ISR bodies for those ISRs
which are of category 2 and contain RunnableEntitys.c(SRS_Rte_00049)
[SWS_Rte_06201] dThe RTE Generator shall construct task bodies for those tasks
which contain Basic Software Schedulable Entities.c(SRS_Rte_00049)
[SWS_Rte_04561] dThe RTE Generator shall construct ISR bodies for those ISRs
which are of category 2 and contain Basic Software Schedulable Entities.c(SRS_Rte_-
00049)
The information for the construction of task/ISR2 bodies has to be given by the ECU
Configuration description. The mapping of Runnable Entities to tasks/ISR2s is given
as an input by the ECU Configuration description. The RTE Generator does not decide
on the mapping of RunnableEntitys to tasks/ISR2s.
[SWS_Rte_04557] dThe RTE Generator shall wrap each definition of a task body with
the Memory Mapping.
1 #define OS_START_SEC_<sadm>
2 #include "Os_MemMap.h"
3
4 <task body definition>
5
6 #define OS_STOP_SEC_<sadm>
7 #include "Os_MemMap.h"
6 #define OS_STOP_SEC_<sadm>
7 #include "Os_MemMap.h"
Example 4.3
1 ...
2 Rte_Write_myPort_myData(uint8 data)
3 {
4 /.../
5 ActivateTask(Task1);
6 }
7 ...
8 TASK(Task1)
9 {
10 /.../
11 ChainTask(Task2);
12 }
13 ...
14 TASK(Task2)
15 {
16 /.../
17 ChainTask(Task3);
18 }
19 ...
20 TASK(Task3)
21 {
22 /.../
23 TerminateTask();
24 }
25 ...
4.2.2 OS
This section describes the interaction between the RTE + Basic Software Scheduler
and the AUTOSAR OS. The interaction is realized via the standardized interface of the
OS - the AUTOSAR OS API. See Figure 4.9.
The OS is statically configured by the ECU Configuration. The RTE generator however
may be allowed to create tasks and other OS objects, which are necessary for the
runtime environment (see [SWS_Rte_05150]). The mapping of RunnableEntitys
and BSW Schedulable Entities to OS tasks/ISR2s is not the job of the RTE generator.
This mapping has to be done in a configuration step before, in the RTE-Configuration
phase. The RTE generator is responsible for the generation of OS task or ISR2 bodies,
which contain the calls for the RunnableEntitys and BSW Schedulable Entities. The
RunnableEntitys and BSW Schedulable Entities themselves are OS independent
and are not allowed to use OS service calls. The RTE and Basic Software Sched-
uler have to encapsulate such calls via the standardized RTE API respectively Basic
Software Scheduler API.
4.2.2.1 OS Objects
Tasks
• The RTE generator has to create the task bodies, which contain the calls of the
RunnableEntitys and BswSchedulableEntitys. Note that the term task
body is used here to describe a piece of code, while the term task describes a
configuration object of the OS.
• The RTE and Basic Software Scheduler controls the task activation/resumption
either directly by calling OS services like SetEvent() or ActivateTask() or
Interrupt Processing
• An alternative mechanism to get consistent data access is disabling/enabling of
interrupts. The AUTOSAR OS provides different service functions to handle in-
terrupt enabling/disabling. The RTE may use these functions and must not use
compiler/processor dependent functions for the same purpose.
Alarms
• The RTE may use Alarms for timeout monitoring of asynchronous client/server
calls. The RTE is responsible for Timeout handling.
• The RTE and Basic Software Scheduler may setup cyclic alarms for periodic trig-
gering of RunnableEntitys and BswSchedulableEntitys (RunnableEn-
tity activation via RTEEvent TimingEvent respectively BswSchedula-
bleEntity activation via BswEvent BswTimingEvent )
• The RTE and Basic Software Scheduler therefore may call the OS service func-
tions GetAlarmBase(), GetAlarm(), SetRelAlarm(), SetAbsAlarm()
and CancelAlarm().
• The used Alarms are part of the input information of the RTE generator.
• The RTE configurator has to allocate the necessary alarms in the OS configura-
tion.
Schedule Tables
• The RTE and Basic Software Scheduler may setup schedule tables for cyclic task
activation (e.g. RunnableEntity activation via RTEEvent TimingEvent)
• The used schedule tables are part of the input information of the RTE generator.
• The RTE configurator has to allocate the necessary schedule tables in the OS
configuration.
Common OS features
Depending on the global scheduling strategy of the OS, the RTE can make decisions
about the necessary data consistency mechanisms. E.g. in an ECU, where all tasks
are non-preemptive - and as the result also the global scheduling strategy of the com-
plete ECU is non-preemptive - the RTE may optimize the generated code regarding
the mechanisms for data consistency.
Hook functions
The AUTOSAR OS Specification defines hook functions, but the RTE SWS does not
standardize any usage of those OS hook functions.
no WaitPoint is present but the Rte still needs to use a WaitEvent() e.g. to im-
plement a SynchronousServerCallPoint across core boundaries or to activate a
server task with a lower priority than the client task.
RunnableEntitys and BswSchedulableEntitys are generalized by Exe-
cutableEntitys.
ACT x x x x x x x x
WUP x x x
MS MSA MME ETO ITO I THE TEE
ACT x x x x x x x x
WUP x
The table 4.2 shows, that activation of RunnableEntity is possible for each kind of
RTEEvent. For RunnableEntity activation, no explicit RTE API in the to be activated
RunnableEntity is necessary. The RTE itself is responsible for the activation of the
RunnableEntity depending on the configuration in the SW-C Description.
If the RunnableEntity contains a WaitPoint, it can be resolved by the assigned
RTEEvent(s). Entering the WaitPoint requires an explicit call of a RTE API function.
The RTE (together with the OS) has to implement the WaitPoint inside this RTE API.
The following list shows which RTE API function has to be called to set up Wait-
Points.
• DataReceivedEvent: Rte_Receive()
• DataSendCompletedEvent: Rte_Feedback()
• ModeSwitchedAckEvent: Rte_SwitchAck()
• AsynchronousServerCallReturnsEvent: Rte_Result()
[SWS_Rte_01292] dWhen a DataReceivedEvent references a RunnableEntity
and a required VariableDataPrototype and no WaitPoint references the
DataReceivedEvent, the RunnableEntity shall be activated when the data is re-
ceived. [SWS_Rte_01135].c(SRS_Rte_00072)
Requirement [SWS_Rte_01292] merely affects when the runnable is activated –
an API call should still be created, according to requirement [SWS_Rte_01288],
[SWS_Rte_01289], and [SWS_Rte_07395] as appropriate, to actually read the data.
4.2.2.5 BswEvents
AbstractEvent ExecutableEntity
BswBehavior::BswEvent +startsOnEvent BswBehavior::BswModuleEntity
BswBehavior:: BswBehavior::
BswOperationInvokedEvent BswCalledEntity
BswBehavior:: BswBehavior::
BswScheduleEvent BswSchedulableEntity
BswBehavior::BswTimingEvent
+ period: TimeValue
BswBehavior::BswBackgroundEvent
BswBehavior::BswExternalTriggerOccurredEvent
BswBehavior::BswInternalTriggerOccurredEvent
BswBehavior::BswModeSwitchEvent
+ activation: ModeActivationKind
BswBehavior::BswModeSwitchedAckEvent
BswBehavior::BswModeManagerErrorEvent
BswBehavior::BswDataReceivedEvent
BswBehavior::
BswAsynchronousServerCallReturnsEvent
Note: The following examples are only showing RunnableEntitys. But taking the
categorization of BswSchedulableEntitys defined in section 4.2.2.2 into account,
the scenarios are applicable for BswSchedulableEntitys as well.
Note: The implementations described in this section are examples only and are pre-
sented for information only. The examples must not be viewed as specification of
The different properties of RunnableEntitys with respect to data access and termi-
nation have to be taken into account when discussing possible scenarios of mapping
RunnableEntitys to tasks.
• RunnableEntitys using VariableAccesses in the dataReadAccess or
dataWriteAccess roles (implicit read and send) have to terminate.
• RunnableEntitys of category 1 can be mapped either to basic or extended
tasks. (see next subsection).
• RunnableEntitys using at least one WaitPoint are of category 2.
• RunnableEntitys of category 2 that contain WaitPoints will be typically
mapped to extended tasks.
• RunnableEntitys that contain a SynchronousServerCallPoint generally
have to be mapped to extended tasks.
• RunnableEntitys that contain a SynchronousServerCallPoint can be
mapped to basic tasks if no timeout monitoring is required and the server runn-
able is on the same partition.
• RunnableEntitys that contain a SynchronousServerCallPoint can be
mapped to basic tasks if the server runnable is invoked directly and is itself of
category 1.
Note that the runnable to task mapping scenarios supported by a particular RTE im-
plementation might be restricted.
4.2.2.6.1.1 Scenario 1
Basic Task
If only one of those kinds of RunnableEntitys is mapped to a task (task contains only
one RunnableEntity), or if multiple RunnableEntitys with the same activation
period are mapped to the same task, a basic task can be used. In this case, the
execution order of the RunnableEntitys within the task is necessary. In case the
RunnableEntitys have different activation periods, the RTE has to provide the glue-
code to guarantee the correct call cycle of each RunnableEntity.
The ECU Configuration-Template has to provide the sequence of RunnableEntitys
mapped to the same task, see RtePositionInTask.
Figure 4.13 shows the possible mappings of RunnableEntitys into a basic task. If
and only if a sequence order is specified, more than one RunnableEntity can be
mapped into a basic task.
Extended Task
If more than one RunnableEntity is mapped to the same task and the special con-
dition (same activation period) does not fit, an extended task is used.
If an extended task is used, the entry points to the different RunnableEntitys might
be distinguished by evaluation of different OS events. In the scenario above, the differ-
ent activation periods may be provided by different OS alarms. The corresponding OS
events have to be handled inside the task body. Therefore the RTE-generator needs
for each task the number of assigned OS Events and their names.
The ECU Configuration has to provide the OS events assigned to the RTEEvents
triggering the RunnableEntitys that are mapped to an extended task, see RteUse-
dOsEventRef.
Figure 4.14 shows the possible mapping of the multiple RunnableEntitys of cate-
gory 1 into an Extended Task. Note: The Task does not terminate.
For both, basic tasks and extended tasks, the ECU Configuration must provide the
name of the task.
The ECU Configuration has to provide the name of the task, see OsTask.
The ECU Configuration has to provide the task type (BASIC or EXTENDED), which
can be determined from the presence or absence of OS Events associated with that
task, see OsTask.
4.2.2.6.1.2 Scenario 2
4.2.2.6.1.3 Scenario 3
4.2.2.6.1.4 Scenario 4
RTE generator. Mapping multiple category 2 RunnableEntitys to the same task can
lead to big delay times if e.g. a WaitPoint is resolved by the incoming RTEEvent,
but the task is still waiting at a different WaitPoint.
4.2.2.6.1.5 Scenario 5
4.2.2.6.1.6 Scenario 6
There are two RunnableEntitys implementing a client (category 2) and a server for
synchronous C/S communication and the timeout attribute of the ServerCallPoint
is greater than 0.
4.2.2.6.1.7 Scenario 7
4.2.2.6.1.8 Scenario 8
4.2.2.6.1.9 Scenario 9
This section describes how the monitoring of RunnableEntity execution time can
be done.
The RTE doesn’t directly support monitoring of RunnableEntitys execution time but
the AUTOSAR OS support for monitoring of OsTasks execution time can be used for
this purpose.
If execution time monitoring of a RunnableEntity is required a possible solution is
to map the RunnableEntity alone to an OsTask and to configure the OS to monitor
the execution time of the OsTask.
This solution can lead to dispatch to individual OsTasks RunnableEntitys that
should be initially mapped to the same OsTask because of for example:
• requirements on execution order of the RunnableEntitys and/or
• requirements on evaluation order of the RTEEvents that activate the
RunnableEntitys and
• constraints to have no preemption between the RunnableEntitys
In order to keep the control on the execution order of the RunnableEntitys, the eval-
uation order of the RTEEvents and the non-preemption between the RunnableEn-
titys when then RunnableEntitys are individually mapped to several OsTasks for
the purpose of monitoring, a possible solution is to replace the calls to the C-functions
of the RunnableEntitys by activations of the OsTasks to which the monitored
RunnableEntitys are mapped.
Figure 4.17: Inter task activation and mapping of runnable to individual task for monitor-
ing purpose
This behavior of the RTE can be configured with the attributes RteVirtual-
lyMappedToTaskRef of the RteEventToTaskMapping. RteVirtuallyMapped-
ToTaskRef references the OsTask in which the execution order of the RunnableEn-
titys and/or the evaluation order of the RTEEvents are controlled. RteMapped-
ToTaskRef references the individual OsTasks to which the RunnableEntitys are
mapped for the purpose of monitoring.
[SWS_Rte_07800] dThe RTE Generator shall respect the configured virtual runn-
able to task mapping (RteVirtuallyMappedToTaskRef) in the RTE configuration.c
(SRS_Rte_00193)
Of course this solution requires that the task priorities and scheduling properties are
well configured in the OS to allow immediate preemption by the OsTasks to which the
monitored RunnableEntitys are mapped. A possible solution is:
• Priority of the OsTask to which the RunnableEntity is mapped is higher than
the priority of the OsTask to which the RunnableEntity is virtually mapped
and
• the OsTask to which the RunnableEntity is virtually mapped have a full pre-
emptive scheduling or
• the RTE call the OS service Schedule() just after activation of the OsTask to
which the RunnableEntity is mapped
Example 1: Without OsEvent
Description of the example:
RunnableEntity RE1 is activated by TimingEvent 100ms T1.
RunnableEntity RE2 is activated by TimingEvent 100ms T2.
RunnableEntity RE3 is activated by TimingEvent 100ms T3.
10 void TaskB(void)
11 {
12 RE2();
13 TerminateTask();
14 }
2 {
3 EventMaskType Event;
4
5 while(1)
6 {
7 WaitEvent(EvtA | EvtB | EvtC);
8 GetEvent(TaskA, &Event);
9 if (Event & EvtA)
10 {
11 ClearEvent(EvtA);
12 ActivateTask(TaskB);
13 }
14 else if (Event & EvtB)
15 {
16 ClearEvent(EvtB);
17 ActivateTask(TaskC);
18 }
19 else if (Event & EvtC)
20 {
21 ClearEvent(EvtC);
22 ActivateTask(TaskD);
23 }
24 }
25 }
26
27 void TaskB(void)
28 {
29 RE1();
30 TerminateTask();
31 }
32
33 void TaskC(void)
34 {
35 RE2();
36 TerminateTask();
37 }
38
39 void TaskD(void)
40 {
41 RE3();
42 TerminateTask();
43 }
It is also possible to configure the RTE for the monitoring of group of runnable = moni-
toring of the sum of the runnable execution times.
Example 3: Monitoring of group of runnables
Description of the example:
RunnableEntity RE1 is activated by TimingEvent 100ms T1.
RunnableEntity RE2 is activated by TimingEvent 100ms T2.
RunnableEntity RE3 is activated by TimingEvent 100ms T3.
RunnableEntity RE4 is activated by DataReceivedEvent DR1.
RunnableEntity RE5 is activated by DataReceivedEvent DR2.
5 while(1)
6 {
7 WaitEvent(EvtA | EvtB | EvtC);
8 GetEvent(TaskA, &Event);
9 if (Event & EvtA)
10 {
11 ClearEvent(EvtA);
12 RE1();
13 ActivateTask(TaskB);
14 }
15 else if (Event & EvtB)
16 {
17 ClearEvent(EvtB);
18 RE4();
19 }
20 else if (Event & EvtC)
21 {
22 ClearEvent(EvtC);
23 RE5();
24 ActivateTask(TaskC);
25 }
26 }
27 }
28
29 void TaskB(void)
30 {
31 RE2();
32 RE3();
33 TerminateTask();
34 }
35
36 void TaskC(void)
37 {
38 RE6();
39 RE7():
40 TerminateTask();
41 }
immediately reactivated after its termination, e.g. by usage of ChainTask call of the
OS.
An OsTaskExecutionEvent/BswOsTaskExecutionEvent is an RTEEvent/Bsw-
Event which gets activated due to the activation of an OS Task. The ExecutableEn-
tity triggered by an OsTaskExecutionEvent/BswOsTaskExecutionEvent gets
activated whenever the OS Task on which the OsTaskExecutionEvent is mapped
is running and reaches the position of the ExecutableEntity. In opposite the VFB
tracing (e.g. Rte_Task_Dispatch) a RunnableEntity triggered by OsTaskExe-
cutionEvent has access to AUTOSAR interfaces. In addition, the RtePosition-
InTask and RteBswPositionInTask allows an arbitrary position between Exe-
cutableEntitys mapped by other RTEEvents/BswEvents.
For instance:
1. ’RunA’, triggered by SwcModeSwitchEvent, RtePositionInTask = 10
2. ’RunB’, triggered by OsTaskExecutionEvent, RtePositionInTask = 15
3. ’RunC’, triggered by SwcModeSwitchEvent, RtePositionInTask = 20
4. ’RunD’, triggered by SwcModeSwitchEvent, RtePositionInTask = 25
5. ’RunE’, triggered by OsTaskExecutionEvent, RtePositionInTask = 30
In addition, the OsTaskExecutionEvent can be combined with mode disabling
dependencys like other RTEEvents
[SWS_Rte_82006]{DRAFT} dThe RTE shall activate RunnableEntitys triggered by
an OsTaskExecutionEvent when the OS Task - on which the OsTaskExecution-
Event is mapped - is running and reaches the position of this RunnableEntity.c
()
[SWS_Rte_82007]{DRAFT} dThe RTE shall activate BswSchedulableEntitys trig-
gered by an BswOsTaskExecutionEvent when the OS Task - on which the
BswOsTaskExecutionEvent is mapped - is running and reaches the position of this
BswSchedulableEntity.c()
- activations: int = 0
«continuously increasing timer»
- debounceTimer: float = minimumStartInterval
started
/debounceTimer =
minimumStartInterval
activate
terminate suspended not /activations = enabled
activated 1
running [Activation in
wait state activated] [ModeDisabling [ModeDisabling exitsDisablingMode
in state enabled] in state disabled]
waiting entersDisablingMode
preempt resume disabled
[activations == 0]
not
release [ModeDisabling in
activated disabled
preempted to be started state disabled]
debounce disabled
start activation debounce
[activations > 0] [ModeDisabling in activation
state enabled]
corresponds to task state "ready"
activate
disabled /activations +=
activated (activations <=
queue length) 1:0
[ModeDisabling [ModeDisabling in
in state enabled] state disabled]
The pending activations are only counted for server runnables when RTE imple-
ments a call serialization of their invocation. In all other cases, RTE does not queue
activations and the state machine for the activation of ExecutableEntity execu-
tion-instances simplifies as shown in Figure 4.19.
sm state machine for an EcexutableEntity execution-instance w ith unqueued activ ation
constraints
{queue length == 0}
started
/debounceT imer =
minimumStartInterval
release
preempted to be started
activ ated
start
start [debounceT imer >=
/debounceT imer = 0
minimumStartInterval]
corresponds to task state "ready"
ExecutableEntity description
execution-instance state
ExecutableEntity execution-
This super state describes the life time of the state machine.
instance is schedulable Only when RTE or the SchM that runs the ExecutableEntity
execution-instance is started in the corresponding partition, this
state machine is active.
ExecutableEntity execution-instance Main states
suspended The ExecutableEntity execution-instance is not started and
there is no pending request to start the ExecutableEntity
execution-instance.
to be started The ExecutableEntity execution-instance is activated but not
yet started. Entering the to be started state, usually implies
the activation of a task/ISR2 that starts the ExecutableEn-
tity execution-instance. The ExecutableEntity execution-
instance stays in the ‘to be started’ state, when the task/ISR2 is
already running until the gluecode of the task/ISR2 actually calls
the function implementing the ExecutableEntity.
running The function, implementing the ExecutableEntity code is be-
ing executed. The task/ISR2 that contains the ExecutableEn-
tity execution-instance is running.
waiting A task containing the ExecutableEntity execution-instance is
waiting at a WaitPoint within the ExecutableEntity.
preempted A task/ISR2 containing the ExecutableEntity execution-
instance is preempted from executing the function that imple-
ments the ExecutableEntity.
started ‘started’ is the super state of ‘running’, ‘waiting’ and ‘pre-
empted’ between start and termination of the ExecutableEn-
tity execution-instance.
ExecutableEntity execution-instance Activation states
not activated No RTEEvent / BswEvent requires the activation of the Exe-
cutableEntity execution-instance.
debounce activation One or more RTEEvents with a startOnEvent relation to the
ExecutableEntity execution-instance have occurred 2 , but
the debounce timer has not yet exceeded the minimumStart-
Interval. The activation will automatically advance to acti-
vated, when the debounce timer reaches the minimumStart-
Interval.
activated One or more RTEEvents or BswEvents with a startOnEvent
relation to the ExecutableEntity have occurred, and the
debounce timer has exceeded the minimumStartInterval.
While the activated state is active, the Main state of the Ex-
ecutableEntity execution-instance automatically advances
from the suspended to the ’to be started’ state.
For a server runnable where RTE implements a serialization
of server calls, an activation counter counts the number of acti-
vations.
When the ExecutableEntity execution-instance starts, the
activation counter will be decremented. When there is still a
pending activation, the Activation state will turn to debounce ac-
tivation and otherwise to no activation.
2
Note that, e.g., the same OperationInvokedEvent may lead to the activation of different Exe-
cutableEntity execution-instances, depending on the client that caused the event.
Note: For tasks, the equivalent state machine does not distinguish between preempted
and to be started. They are subsumed as ‘ready’.
ExecutableEntity description of event and actions
execution-instance transi-
tion
initial transition to ‘Exe- RTE or the SchM that runs the ExecutableEntity execution-
cutableEntity execution-instance instance is being started in the corresponding partition.
is schedulable’
termination transition from ‘Exe- RTE or the SchM that runs the ExecutableEntity execution-
cutableEntity execution-instance instance gets stopped in the corresponding partition.
is schedulable’
transitions to ExecutableEntity execution-instance Main states
initial transition to suspended the suspended state is the initial state of the ExecutableEn-
tity execution-instance Main states.
from started to suspended The ExecutableEntity execution-instance has run to comple-
tion.
from suspended to ‘to be This transition is automatically executed, while the Activation
started’ state is ’activated’.
from ‘to be started’ to running The function implementing the ExecutableEntity is called
from the context of this execution-instance.
from preempted to running A task that is preempted from executing the ExecutableEn-
tity execution-instance changes state from preempted to run-
ning.
from running to waiting The runnable enters a WaitPoint.
from waiting to preempted The task that contains a runnable waiting at a wait point changes
from waiting to preempted.
from running to preempted A task containing the ExecutableEntity execution-instance
gets preempted from executing the function that implements the
ExecutableEntity.
transitions to ExecutableEntity execution-instance Activation states
initial transition to ‘not activated’ The ‘not activated’ state is the initial state of the ExecutableEn-
tity execution-instance Activation states.
The debounce timer is set to the minimumStartInterval
value, to prevent a delay for the first activation of the Exe-
cutableEntity execution-instance.
from activated to ‘not activated’ The function implementing the ExecutableEntity is called
from the context of this execution-instance and no further acti-
vations are pending.
The debounce timer is reset to 0.
from ‘not activated’ to ‘debounce The occurrence of an RTEEvent or BswEvent requires the acti-
activation’ vation of the ExecutableEntity execution-instance.
A local activation counter is set to 1. If no minimumStartIn-
terval is configured, or the debounce timer has already ex-
ceeded the minimumStartInterval, the ‘debounce activation’
state will be omitted and the transition leads directly to the acti-
vated state.
from activated to ‘debounce ac- The function implementing the ExecutableEntity is called
tivation’ from the context of this execution-instance (start), and another
activation is pending (only for server runnable).
The activation counter is decremented and the debounce timer
reset to 0.
If no minimumStartInterval is configured, the ‘debounce ac-
tivation’ state will be omitted and the transition returns directly at
the activated state.
from ‘debounce activation’ to If RTE implements server call serialization for a server runn-
‘debounce activation’ able, and an OperationInvokedEvent occurs for the server
runnable.
The activation counter is incremented (at most to the queue
length).
from ’debounce activation’ to ac- The debounce timer is expired,
tivated debounce timer > minimumStartInterval.
from activated to activated If RTE implements server call serialization for a server runn-
able, and an OperationInvokedEvent occurs for the server
runnable.
The activation counter is incremented (at most to the queue
length).
Example 4.4
constraints
{queue length == 0}
{debounceTimer == 0}
{canBeInvocecConcurrentl y == true}
{runnable not mapped to task}
Main
started
terminate suspended
running
wait
release
preempted activate
The runnables R1, R2 and R3 are mapped in the task T1 at 20 ms which is the GCD
of all runnables period and activation offset.
Example 2:
This example describes 4 runnables mapped in one task with an activation offset and
position in task defined for each runnables.
Runnable Period Position in task Activation Offset
R1 50ms 1 0ms
R2 100ms 2 0ms
R3 100ms 3 70ms
R4 50ms 4 20ms
The runnables R1, R2, R3 and R4 are mapped in the task T1 at 10 ms which is the
GCD of all runnables period and activation offset.
Figure 4.24: Example of activation offset for runnables with position in task
It is possible to define the activation of one runnable entity by several RTE events. But
when the runnable entity is invoked by the RTE it is shall be possible to query which of
the RTE events actually triggered the execution of this runnable entity run.
Contract Phase:
The provide activating event feature is enabled if the runnable entity has at least one
activationReason defined.
[SWS_Rte_08051] dIf the provide activating event feature is enabled, the RTE gen-
erator in contract phase shall generate the runnable entity signature according to
[SWS_Rte_01126] and [SWS_Rte_08071].c(SRS_Rte_00238)
[SWS_Rte_08052] dIf the provide activating event feature is enabled, the RTE genera-
tor in contract phase shall generate the type Rte_ActivatingEvent_<name> (ac-
tivation vector), where <name> is the symbol describing the runnable entity’s
entry point, to store the activation bits. Based on the highest value of ExecutableEn-
tityActivationReason.bitPosition for this runnable entity the type shall be ei-
ther uint8, uint16, or uint32 so that the highest value of bitPosition fits into
the data type.c(SRS_Rte_00238)
Note that it is considered an invalid configuration if ExecutableEntityActiva-
tionReason.bitPosition has a value higher than 31 (see [constr_1226] in soft-
ware component template [2])
[SWS_Rte_08053] dIf the provide activating RTE event feature is enabled, the RTE
generator in contract phase shall generate for each ExecutableEntityActiva-
tionReason of one executable entity a definition to provide the specific bit position in
the Rte_ActivatingEvent_<name> data type:
#define Rte_ActivatingEvent_<name>_<activation> xxU
The value of xx is defined by the bitPosition xx = 2∧ bitPosition.c(SRS_Rte_00238)
Example: runnable entity symbol = "greek" and has 3 ExecutableEntityActiva-
tionReasons aggregated. Those are referenced by 4 RTE events:
• RTEEvent: "alpha" symbol: aleph
• RTEEvent: "beta" symbol: beth
• RTEEvent: "gamma" symbol: gimel
• RTEEvent: "delta" symbol: gimel
This will result in a unit8 Rte_ActivatingEvent_<name> data type: typedef
uint8 Rte_ActivatingEvent_greek and 3 definitions:
• #define Rte_ActivatingEvent_greek_aleph 01U
• #define Rte_ActivatingEvent_greek_beth 02U
• #define Rte_ActivatingEvent_greek_gimel 04U
Generation Phase:
[SWS_Rte_08054] dIf the provide activating RTE event feature is enabled, the RTE
shall collect the activating RTE events, which have the activationReasonRep-
resentation reference defined, in the context of the OS task the runnable entity
is mapped to in an activation vector at the corresponding bit position as defined in
[SWS_Rte_08053].c(SRS_Rte_00238)
[SWS_Rte_08055] dIf the provide activating RTE event feature is enabled, the RTE
shall provide the collected activating RTE events (activation vector) to the runnable
entity API when the runnable entity is "started". The activation vector shall be reset
immediately after it has been provided.c(SRS_Rte_00238)
Since it is possible that there is a time gap between the activation and the execution
(start) of a runnable entity the subsequent activations are summed up and provided
with the start of the runnable entity.
Activations during the execution of a runnable entity are collected for the next start of
that runnable entity.
Example 2:
An ExternalTriggerOccurredEvent starts RunnableEntity RunnB and is
mapped to OsTask Task10ms having OsTaskPeriod set to 0.01 (10ms). Again
[SWS_Rte_04569] but especially also [SWS_Rte_04571] apply. The code (without
defensive code preventing e.g. activation queue overflow) might then look as follows:
1 uint8 RunnA_Task10ms_activation_count = 0;
2
3 Std_ReturnType Rte_Trigger_myTriggerComponent_myTriggerPort_myTrigger(
void)
4 {
5 RunnA_Task10ms_activation_count++;
6 /* SWS_Rte_04571 prevents the activation of Task10ms here */
7 return RTE_E_OK;
8 }
9
10 TASK(Task10ms)
11 {
Several BSW modules exist which contain functionality which is not directly activated,
triggered or called by AUTOSAR software-components but by other circumstances, like
digital input port level changes, complex driver actions, CAN signal reception, etc. In
most cases interrupts are a result of those circumstances. For a definition of interrupts,
see the VFB [1].
Several of these BSW functionalities create situations, signalled by an interrupt, when
AUTOSAR SW-Cs have to be involved. To inform AUTOSAR software components of
those situations, runnables in AUTOSAR software components are activated by no-
tifications. So interrupts that occur in the basic software have to be transformed into
notifications of the AUTOSAR software components. Such a transformation has to take
place at RTE level at the latest! Which interrupt is connected to which notification is
decided either during system configuration/generation time or as part of the design of
Complex Device Drivers or the Microcontroller Abstraction Layer.
This means that runnables in AUTOSAR SW-Cs have to be activated or "waiting" cat2
runnables in extended tasks have to be set to "ready to run" again. In addition some
event specific data may have to be passed.
There are two different mechanisms to implement these notifications, depending on
the kind of BSW interfaces.
1. BSW with Standardized interface. Used with COM and OS.
Basic-SW modules with Standardized interfaces cannot create RTEEvents. So
another mechanism must be chosen: "callbacks"
The typical callback realization in a C/C++ environment is a function call.
2. BSW with AUTOSAR interface: Used in all the other BSW modules.
Basic-SW modules with AUTOSAR-Interfaces have their interface specified in an
AUTOSAR BSW description XML file which contains signal specifications accord-
ing to the AUTOSAR specification. The BSW modules can employ RTE API calls
like Rte_Send – see 5.6.5). RTEEvents may be connected with the RTE API
calls, so realizing AUTOSAR SW-C activation.
Note that an AUTOSAR software component can send a notification to another AU-
TOSAR software component or a BSW module only via an AUTOSAR interface.
4.2.5.2 Interrupts
The AUTOSAR concept as stated in the VFB specification [1] does not allow AUTOSAR
software components to run in interrupt context. Only the Microcontroller Abstraction
Layer, Complex Device Drivers and the OS are allowed to directly interact with inter-
rupts and implement interrupt service routines (see Requirement [SRS_BSW_00164].
This ensures hardware independence and determinism.
If AUTOSAR software components were allowed to run in interrupt context, one AU-
TOSAR software component could block the entire system schedule for an unaccept-
ably long period of time. But the main reason is that AUTOSAR software components
are supposed to be independent of the underlying hardware so that exchangeability
between ECUs can be ensured. The schedule of an ECU is more predictable and bet-
ter testable if the timing effects of interrupts are restricted to the basic software of that
ECU.
Furthermore, AUTOSAR software components are not allowed to explicitly block inter-
rupts as a means to ensure data consistency. They have to use RTE functions for this
purpose instead, see Section 4.2.6.
• RTE starts a task containing the runnable activation code by using the Acti-
vateTask()" OS service call.
• Other more sophisticated solutions are possible, e.g. if the task containing the
runnable is activated periodically.
Example 2:
Situation:
• An interrupt routine calls an RTE callback function
Intention:
Since category 1 interrupts are not under OS control the RTE has absolutely no pos-
sibility to influence their execution behavior. So no category 1 interrupt is allowed to
reach RTE. This is different for interrupt of category 2.
[SWS_Rte_03594] dThe RTE Generator shall reject the configuration if a SwcB-
swRunnableMapping associates a BswInterruptEntity with a RunnableEn-
tity and the attribute interruptCategory of the BswInterruptEntity is equal
to cat 1.c(SRS_Rte_00018, SRS_Rte_00099)
[SWS_Rte_CONSTR_09012] Category 1 interrupts shall not access the RTE.
dCategory 1 interrupts shall not access the RTE.c()
Most of the Os services can also be called from a category 2 interrupt service routine
(see [4]). The main difference to tasks is that ISRs cannot have a wait state and are
always activated from an external source (never by the Rte). In addition, ISRs always
have a higher priority than a task. Thus, the Rte shall allow to run ExecutableEntities
under certain circumstances. The activation of the ISR2 is not in the scope of the Rte.
[SWS_Rte_04564] dThe RTE shall activate an ExecutableEntity if its External-
TriggerOccurredEvent or BswExternalTriggerOccurredEvent is mapped to
an ISR2 (via an RteEventToIsrMapping).c(SRS_Rte_00237)
Attributes:
requiresIndex=true
Multiplicity 0..*
Type Reference to destinationUri [ RteRipsUriDefSet/RteRipsPluginFillFlush
Routine ]
Post-Build Variant false
Multiplicity
Post-Build Variant false
Value
Multiplicity Pre-compile time X All Variants
Configuration Class
Link time –
Post-build time –
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency scope: local
Attributes:
requiresIndex=true
Multiplicity 0..*
Type Reference to destinationUri [ RteRipsUriDefSet/RteRipsPluginFillFlush
Routine ]
Post-Build Variant false
Multiplicity
Post-Build Variant false
Value
Multiplicity Pre-compile time X All Variants
Configuration Class
Link time –
Post-build time –
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency scope: local
No Included Containers
The RTE and Basic Software Scheduler do support the invocation triggered Ex-
ecutableEntity via direct or trusted function call in some special cases. Never-
theless, it shall be prevented that an ExecutableEntity from a particular execution
context calls a triggered ExecutableEntity which requires an execution context
with more permissions.
The constraint [constr_4086] in document [9] describes the possible invocation of
ExecutableEntitys by direct or trusted function call dependent from BswExecu-
tionContext.
This applies to the invocation of a triggered ExecutableEntity by the SchM_-
Trigger, SchM_ActMain or Rte_Trigger APIs, or to the invocation of an on-en-
try ExecutableEntity, on-transition ExecutableEntity, on-exit Ex-
ecutableEntity or ModeSwitchAck ExecutableEntity by the SchM_Switch
or Rte_Switch APIs.
COM callbacks are used to inform the RTE about something that happened indepen-
dently of any RTE action. This is often interrupt driven, e.g. when a data item has been
received from another ECU or when a S/R transmission is completed.
It is the RTE’s job e.g. to create RTEEvents from the interrupt.
[SWS_Rte_03530] dThe RTE shall provide callback functions to allow COM to signal
COM events to the RTE.c(SRS_Rte_00072, SRS_Rte_00099)
[SWS_Rte_03531] dThe RTE shall support runnable activation by COM callbacks.c
(SRS_Rte_00072, SRS_Rte_00099)
[SWS_Rte_03532] dThe RTE shall support category 2 runnables to wake up from a
wait point as a result of COM callbacks.c(SRS_Rte_00072, SRS_Rte_00099)
See RTE callback API in chapter 5.9.
4.2.6.1 General
Concurrent accesses to shared data memory can cause data inconsistencies. In gen-
eral this must be taken into account when several code entities accessing the same
data memory are running in different contexts - in other words when systems using
parallel (multicore) or concurrent (singlecore) execution of code are designed. More
general: Whenever task context-switches occur and data is shared between tasks or
ISR2s, data consistency is an issue.
AUTOSAR systems use operating systems according to the AUTOSAR-OS specifica-
tion which is derived from the OSEK-OS specification. The Autosar OS specification
defines a priority based scheduling to allow event driven systems. This means that
tasks with higher priority levels or ISR2s are able to interrupt (preempt) tasks with
lower priority level.
The "lost update" example in Figure 4.25 illustrates the problem for concurrent read-
modify-write accesses:
1) Get X‘=5
2) X‘+=2
3) X = X‘
Task A
Task B
Data X 5555555557777766666666
Time
Figure 4.25: Data inconsistency example - lost update
There are two tasks. Task A has higher priority than task B. A increments the commonly
accessed counter X by 2, B increments X by 1. So in both tasks there is a read
(step1) – modify (step2) – write (step3) sequence. If there are no atomic accesses (fully
completed read-modify-write accesses without interruption) the following can happen:
1. Assume X=5.
2. B makes read (step1) access to X and stores value 5 in an intermediate store
(e.g. on stack or in a CPU register).
3. B cannot continue because it is preempted by A.
4. A does its read (step1) – modify (step2) – write (step3) sequence, which means
that A reads the actual value of X, which is 5, increments it by 2 and writes the
new value for X, which is 7. (X=5+2)
5. A is suspended again.
6. B continues where it has been preempted: with its modify (step2) and write
(step3) job. This means that it takes the value 5 form its internal store, incre-
ments it by one to 6 and writes the value 6 to X (X=5+1).
7. B is suspended again.
The correct result after both Tasks A and B are completed should be X=8, but the
update of X performed by task A has been lost.
In AUTOSAR systems the RTE has to take care that a lot of the communication is not
corrupted by data consistency problems. RTE Generator has to apply suitable means
if required.
The following communication mechanisms can be distinguished:
• Communication within one atomic AUTOSAR SW-C:
Communication between Runnables of one atomic AUTOSAR SW-C running
in different task/ISR2 contexts where communication between these Runnables
takes place via commonly accessed data. If the need to support data consistency
by the RTE exists, it must be specified by using the concepts of "ExclusiveAreas"
or "InterRunnableVariables" only.
• Intra-partition communication between AUTOSAR SW-Cs:
Sender/Receiver (S/R) communication between Runnables of different AU-
TOSAR SW-Cs using implicit or explicit data exchange can be realized by the
RTE through commonly accessed RAM memory areas. Data consistency in
Client/Server (C/S) communication can be put down to the same concepts as
S/R communication. Data access collisions must be avoided. The RTE is re-
sponsible for guaranteeing data consistency.
• Inter-Partition communication
The RTE has to guarantee data consistency. The different possibilities provided
to the RTE for the communication between partitions are discussed in section
4.3.4.
• Intra-ECU communication between AUTOSAR SW-Cs and BSW modules with
AUTOSAR interfaces:
This is a special case of the above two.
• Inter ECU communication
COM has to guarantee data consistency for communication between ECUs on
complete path between the COM modules of different ECUs. The RTE on each
ECU has to guarantee that no data inconsistency might occur when it invokes
COM send respectively receive calls supplying respectively receiving data items
which are concurrently accessed by application via RTE API call, especially when
queueing is used since the queues are provided by the RTE and not by COM.
[SWS_Rte_03514] dThe RTE has to guarantee data consistency for communication
via AUTOSAR interfaces.c(SRS_Rte_00032)
4.2.6.3 Concepts
In the AUTOSAR SW-C Template [2] chapter "Interaction between runnables within
one component", the concepts of
1. ExclusiveAreas (see section 4.2.6.5 below)
Additionally exclusive areas are also available for Basic Software Modules to protect
access to module internal data. See [9]. The exclusive areas for Basic Software Mod-
ules are handled by the Basic Software Scheduler.
The AUTOSAR SW-C template specification [2] also states that AUTOSAR SW-Cs may
define PerInstanceMemory or arTypedPerInstanceMemory, allowing reserva-
tion of static (permanent) need of global RAM for the SW-C. Nothing is specified about
the way Runnables might access this memory. RTE only provides a reference to this
memory (see section 5.6) but doesn’t guarantee data consistency for it.
The implementer of an AUTOSAR SW-C has to take care by himself that accesses to
RAM reserved as PerInstanceMemory out of Runnables running in different task/ISR2
contexts don’t cause data inconsistencies. On the other hand this provides more
freedom in using the memory.
because it might influence SW in tasks with higher priority too and the timing of
the complete system.
• Usage of OS resources
Usage of OS resources. Advantage in comparison to Interrupt blocking strat-
egy is that less SW parts with higher priority are blocked. Disadvantage is that
implementation might consume more resources (code, runtime) due to the more
sophisticated mechanism. Appropriateness of this mechanism may vary depend-
ing on the number of OSs/cores and/or the number of available resources.
• Task blocking strategy
Mutual task preemption is prohibited. This might be reached e.g. by assigning
same priorities to affected tasks, by assigning same internal OS resource to af-
fected tasks or by configuring the tasks to be non-preemptive. This mechanism
may be inappropriate in multi-partitioned systems.
• Copy strategy
Idea: The RTE creates copies of data items so that concurrent accesses in dif-
ferent task/ISR2 contexts cannot collide because some of the accesses are redi-
rected to the copies.
How it can work:
– Application for read conflicts:
For all readers with lower priority than the writer a read copy is provided.
Example:
There exist Runnable R1, Runnable R2, data item X and a copy data
item X*. When Runnable R1 is running in higher priority task context than
R2, and R1 is the only one writing X and R2 is reading X it is possible to
guarantee data consistency by making a copy of data item X to variable X*
before activation of R2 and redirecting write access from X to X* or the read
access from X to X* for R2.
Usage of this copy mechanism may make sense if one or more of the following
conditions hold:
– This copy mechanism can handle those cases when only one instance does
the data write access.
– R2 is accessing X several times.
– More than one Runnable R2 has read (resp. write) access to X.
– To save runtime is more important than to save code and RAM.
– Additional RAM requirements to hold the copies is acceptable.
Further issues to be taken into account:
– AUTOSAR SW-Cs provided as source code and AUTOSAR SW-Cs pro-
vided as object code may or have to be handled in different ways. The
redirecting mechanism for source code could use macros for C and C++
very efficiently whereas object-code AUTOSAR SW-Cs most likely are
forced to use references.
Note that the copy strategy is used to guarantee data consistency for implicit
sender-receiver communication (VariableAccesses in the dataReadAccess
or dataWriteAccess role) and for AUTOSAR SW-C internal communication
using InterRunnableVariables with implicit behavior.
The concept of ExclusiveArea is more a working model. It’s not a concrete imple-
mentation approach, although concrete possible mechanisms are listed in AUTOSAR
SW-C template specification [2].
Focus of the ExclusiveArea concept is to block potential concurrent accesses
to get data consistency. ExclusiveAreas implement critical section
ExclusiveAreas are associated with RunnableEntitys. The RTE is forced to guar-
antee data consistency when the RunnableEntity runs in an ExclusiveArea. A
RunnableEntity can run inside one or several ExclusiveAreas completely or can
enter one or several ExclusiveAreas during their execution for one or several times
.
• If an AUTOSAR SW-C requests the RTE to look for data consistency for it’s inter-
nally used data (for a part of it or the complete one) using the ExclusiveArea
concept, the SW designer can use the API calls "Rte_Enter()" in 5.6.30 and
"Rte_Exit()" in 5.6.31 to specify where he wants to have the protection by RTE
applied.
"Rte_Enter()" defines the begin and "Rte_Exit()" defines the end of the code se-
quence containing data accesses the RTE has to guarantee data consistency
for.
4.2.6.6 InterRunnableVariables
In applications with very high SW-C communication needs and much real time con-
straints (like in powertrain domain) the usage of a copy mechanism to get data con-
sistency might be a good choice because during RunnableEntity execution no data
consistency overhead in form of concurrent access blocking code and runtime during
its execution exists - independent of the number of data item accesses.
Costs are code overhead in the RunnableEntity prologue and epilogue which is
often be minimal compared to other solutions. Additional RAM need for the copies
comes in plus.
When InterRunnableVariables with implicit behavior are used the RTE is required to
make the data available to the Runnable using the semantics of a copy operation
but is not necessarily required to use a unique copy for each RunnableEntity.
Focus of InterRunnableVariable with implicit behavior is to avoid concurrent ac-
cesses by redirecting second, third, .. accesses to data item copies.
[SWS_Rte_03517] dThe RTE shall guarantee data consistency for InterRunnableVari-
ables with implicit behavior by avoiding concurrent accesses to data items specified
by implicitInterRunnableVariable using one or more copies and redirecting
accesses to the copies.
c(SRS_Rte_00142, SRS_Rte_00032)
Compared with Sender/Receiver communication
In many applications saving RAM is more important than saving runtime. Also some
application require to have access to the newest data item value without any delay,
even several times during execution of a Runnable.
Both requirements can be fulfilled when RTE supports data consistency by blocking
second/third/.. concurrent accesses to a signal buffer if data consistency is jeopar-
dized. (Most likely RTE has nothing to do if SW is running on a 16bit machine and
making an access to an 16bit value when a 16bit data bus is present.)
Focus of InterRunnableVariables with explicit behavior is to block potential con-
current accesses to get data consistency.
The mechanism behind is the same as in the ExclusiveArea concept (see section
4.2.6.5). But although ExclusiveAreas can handle single data item accesses too, their
API is made to make the RTE to apply data consistency means for a group of in-
structions accessing several data items as well. So when using an ExclusiveArea to
protect accesses to one single common used data item each time two RTE API calls
grouped around are needed. This is very inconvenient and might lead to faults if the
calls grouped around might be forgotten.
The solution is to support InterRunnableVariables with explicit behavior.
[SWS_Rte_03519] dThe RTE shall guarantee data consistency for InterRunnableVari-
ables with explicit behavior by blocking concurrent accesses to data items specified by
explicitInterRunnableVariable.
c(SRS_Rte_00142, SRS_Rte_00032)
The RTE generator is not free to select on it’s own if implicit or explicit behavior shall
be applied. Behavior must be known at AUTOSAR SW-C design time because in case
of InterRunnableVariables with implicit behavior the AUTOSAR SW-C designer might
rely on the fact that several read accesses always deliver same data item value.
[SWS_Rte_03580] dThe RTE shall supply different APIs for InterRunnableVariables
with implicit behavior and InterRunnableVariables with explicit behavior.
c(SRS_Rte_00142)
For API of InterRunnableVariables with explicit behavior see sections 5.6.28 and
5.6.29.
4.2.7 Multiple trigger of Runnable Entities and Basic Software Schedulable En-
tities
Concurrent activation
The AUTOSAR SW-C template specification [2] states that runnable entities (further
called "runnables") might be invoked concurrently several times if the Runnables at-
tribute canBeInvokedConcurrently is set. It’s then in the responsibility of the AU-
TOSAR SW-C designer that no data might be corrupted when the Runnable is activated
several times in parallel.
If a SW-C has multiple instances, they have distinct runnables. Two runnables that
use the same RunnableEntity description of the same SwcInternalBehavior
description but are instantiated with two different SW-C instances are treated as two
distinct runnables in the following. This kind of concurrency is always allowed between
The similar configuration as mentioned for the RunnableEntitys might be used for
BswSchedulableEntitys. Therefore even a BswSchedulableEntity whose ref-
erenced BswModuleEntry in the role implementedEntry has its isReentrant
attribute set to false can be activated by several BswEvents.
[SWS_Rte_07526] dThe Basic Software Scheduler shall support activation of same
instance of a BswSchedulableEntity by multiple BswEvents.c()
[SWS_Rte_07527] dThe Basic Software Scheduler shall support activation of same
instance of a BswSchedulableEntity by BswEvents of different kinds.c()
4.2.8.1 General
A receiver port can only be connected to a compatible provider port. The compatibility
rules are explained in the AUTOSAR Software Component Template [2]. The compat-
ibility mainly depends on the attribute swImplPolicy attached to the element of the
interface. The table 4.13 below gives an overview of compatibility rules.
Provide Port Require Port
Port Interface Prm S/R NvD
Interface Element PDP VDP VDP
swImplPolicy fixed const standard standard queued standard
fixed yes yes yes yes no yes
Prm PDP const no yes yes yes no yes
standard no no yes yes no yes
S/R VDP standard no no no yes no yes
queued no no no no yes no
NvD VDP standard no no no yes no yes
Interface Element
PDP : ParameterDataPrototype
VDP : VariableDataPrototype
Port Interface
Prm : ParameterInterface
S/R : SenderReceiverInterface
NvD : NvDataInterface
For examples, a Require Port that expects a fixed parameter - i.e produced by a macro
#define - can only be connected to a Port that provides a fixed Parameter. This is be-
cause this fixed data may be used in a compilation directive like #IF and only macro
#define (fixed data) can be compiled in this case. On the other hand, this provided fixed
parameter can be connected to almost every require port, except a queued Sender/re-
ceiver interface.
The RTE doesn’t have to check the compatibility between ports since this task is per-
formed at the VFB level. But it shall provide the right implementation of interface el-
ement and API according the attribute swImplPolicy attached to the interface ele-
ment.
3
calibration parameter have to be allocated in RAM if data emulation with SW support is required,
see 4.2.9.3.5
4.2.8.5.1 ApplicationDataType
In case the initial value is provided for a given DataPrototype typed by an Appli-
cationRecordDataType where at least one ApplicationRecordElement has
the attribute isOptional set to TRUE, there is no means to relate to the avail-
abilityBitfield of such a DataPrototype (as the availabilityBitfield is
introduced at the ImplementationDataType level).
Each ApplicationRecordElement (including those where the attribute isOp-
tional is set to TRUE) may be either initialized by an ApplicationValueSpec-
ification or NotAvailableValueSpecification. The usage of a NotAvail-
ableValueSpecification defines that this record element is to be considered not
available already during initialization. The not available record element will also be
initialized with a default pattern (see [TPS_SWCT_01823]). The alternative usage of
ApplicationValueSpecification and NotAvailableValueSpecification
is used to derive the initial value for the availabilityBitfield.
[SWS_Rte_08911] dIf the initial value is provided for a DataPrototype typed by an
ApplicationRecordDataType where at least one ApplicationRecordElement
has the attribute isOptional set to TRUE, then the initial value for the corresponding
availabilityBitfield shall be derived from the existence of ApplicationVal-
ueSpecification and NotAvailableValueSpecification:
• if an ApplicationRecordElement is initialized using an ApplicationVa-
lueSpecification, then the corresponding bit in the availabilityBit-
field shall be set to TRUE (available)
• if an ApplicationRecordElement is initialized using an NotAvailable-
ValueSpecification, then the corresponding bit in the availabilityBit-
field shall be set to FALSE (not available)
c(SRS_Rte_00052, SRS_Rte_00068, SRS_Rte_00116, SRS_Rte_00261)
4.2.8.5.2 ImplementationDataType
Basically the Meta Model defines two different flavors of rule based value specifica-
tions:
• ApplicationRuleBasedValueSpecification
• NumericalRuleBasedValueSpecification
The ApplicationRuleBasedValueSpecification defines the values in the
physical representation whereas the NumericalRuleBasedValueSpecification
defines the values in the numerical representation. (See document [2], section Data
Description) But both are using the RuleBasedValueSpecification to define a
set of values based on a rule and arguments for the rule.
Especially in case of large arrays an high amount of initial values are required. But
many arrays are initialized with identical values or at least filled up to the end with iden-
tical values. For such use case the RuleBasedValueSpecification of category
FILL_UNTIL_END can be used to avoid the creation and maintenance of redundant
ValueSpecifications.
[SWS_Rte_06764] dThe RTE Generator shall support ApplicationRuleBased-
ValueSpecifications for DataPrototypes typed by ApplicationArray-
DataTypes.c(SRS_Rte_00239)
[SWS_Rte_06765] dThe RTE Generator shall support NumericalRuleBasedVal-
ueSpecifications for DataPrototypes typed by ImplementationDataTypes
of category ARRAY and for Compound Primitive Data Types which are
mapped to ImplementationDataTypes of category ARRAY.c(SRS_Rte_00239)
[SWS_Rte_06733] dThe RTE Generator shall support RuleBasedValueSpecifi-
cations with the rule FILL_UNTIL_END.c(SRS_Rte_00239)
[SWS_Rte_08542] dThe RTE Generator shall support RuleBasedValueSpecifi-
cations with the rule FILL_UNTIL_MAX_SIZE.c(SRS_Rte_00239)
[SWS_Rte_06734] dThe RTE shall initialize the elements of the array ac-
cording the values defined by RuleBasedValueSpecification.arguments
if a RuleBasedValueSpecification with the rule FILL_UNTIL_END or
FILL_UNTIL_MAX_SIZE is applicable.
Thereby the order of arguments corresponds to the order of elements in the array, i.e.
the first argument corresponds to the first element of the array, the second argument
corresponds to the second element of the array, and so on.c(SRS_Rte_00239)
AUTOSAR defines a standardized behavior of RuleBasedValueSpecifications
only for the rules FILL_UNTIL_END and FILL_UNTIL_MAX_SIZE. RTE vendors are
free to add additional, non-standardized rules (see [TPS_SWCT_01495]).
[SWS_Rte_06735] dThe RTE Generator shall apply the value of the last RuleBased-
ValueSpecification argument to any following element of the array until the last
element of the array if the rule is set to FILL_UNTIL_END and the number of ar-
guments is smaller than the number of elements of the array to which it is applied.c
(SRS_Rte_00239)
[SWS_Rte_08792] dThe RTE Generator shall apply the value of the last Rule-
BasedValueSpecification argument to so many following elements of the ar-
ray until first maxSizeToFill elements of the array are filled if the rule is set to
FILL_UNTIL_MAX_SIZE and the number of arguments is smaller than the number of
elements of the array to which it is applied.c(SRS_Rte_00239)
[SWS_Rte_06736] dThe RTE Generator shall ignore arguments that go beyond the
last element of the array if the number of arguments exceeds the number of elements
of the array to which it is applied.c(SRS_Rte_00239)
4.2.9.1 General
Calibration is the process of adjusting an ECU SW to fulfill its tasks to control physical
processes respectively to fit it to special project needs or environments. To do this two
different mechanisms are required and have to be distinguished:
1. Measurement
Measure what’s going on in the ECU e.g. by monitoring communication data
(Inter-ECU, Inter-Partition, Intra-partition, Intra-SWC). There are several ways to
get the monitor data out of the ECU onto external visualization and interpretation
tools.
2. Calibration
Based on the measurement data the ECU behavior is modified by changing
parameters like runtime SW switches, process controlling data of primitive or
composite data type, interpolation curves or interpolation fields. In the following
for such parameters the term calibration parameter is used.
It’s possible that different SwDataDefProps settings are specified for a Variable-
DataPrototype and its referenced AutosarDataType. In this case the rules spec-
ified in the SWC-T shall be applied. See as well [SWS_Rte_07196].
SwDataDefProps contain more information how measurement values or characteris-
tics are to be interpreted and presented by external calibration tools. This information
is needed for the ASAM2 respectively A2L file generation. Afterwards the A2L file is
used by ECU-external measurement and calibration tools so that these tools know e.g.
how to interpret raw data received from ECU and how to get them.
The way how measurement and calibration is performed is company, domain and
project specific. Nevertheless two different basic situations can be distinguished and
are important for understanding:
1. Offline calibration
Measure when ECU is running, change calibration data when ECU is off.
Process might look like this:
(a) Flash the ECU with current program file
(b) PowerUp ECU in target (actual or emulated) environment
(c) Measure running ECU behavior - log or monitor via external tooling
(d) Switch off ECU
(e) Change calibration parameters and create a new flashable program file (hex-
file) e.g. by performing a new SW make run
(f) Back to (a).
Do loop as long as a need for calibration parameter change exists or the Flash
survives.
2. Online calibration
4.2.9.2 Measurement
The AUTOSAR SW-C template specification [2] explains to which AUTOSAR proto-
types a measurement pattern can be applied.
RTE provides measurement support for
1. communication between Ports
Measurable are
The way how measurement data is read out of the ECU is not focus of the RTE spec-
ification. But the RTE structure and behavior must be specified in that way that mea-
surement values can be provided by RTE during ECU program execution.
To avoid synchronization effort it shall be possible to read out measurement data asyn-
chronously to RTE code execution. For this the measurement data must be stable. As
a consequence this might forbid direct reuse of RAM locations for implementation of
several AUTOSAR communications which are independent of each other but occurring
sequentially in time (e.g. usage of same RAM cell to store uint8 data sender receiver
communication data between Runnables at positions 3 and 7 and later the same RAM
cell for the communication between Runnables at positions 9 and 14 of same periodi-
cally triggered task). So applying measurable elements might lead to less optimizations
in the generated RTE’s code and to increased RAM need.
There are circumstances when RTE will store same communication data in different
RAM locations, e.g. when realizing implicit sender receiver communication or Inter
Runnable Variables with implicit behavior. In these cases there is only the need to
have the content of one of these stores made accessible from outside.
Please note: In case the Rte implements Inter partition data communication with IOC
the measurement support may become vendor specific since the IOC does not provide
standardized support for measurement of IOC channels. But on the other hand the
creation of distinct measurement buffers in the Rte in addition to the needed buffers in
IOC is also not a worthwhile in any case due to the additional RAM need.
The information that measurement shall be supported by RTE is defined in applied
SwDataDefProps:
The value readOnly or readWrite of the property swCalibrationAccess defines
that measurement shall be supported, any other value of the property swCalibra-
tionAccess is to be ignored for measurement.
Sender-receiver communication
[SWS_Rte_03900] dIf the swCalibrationAccess of a VariableDataPrototype
used in an interface of a sender-receiver port of a SwComponentPrototype is set to
readOnly or readWrite the RTE generator has to provide one reference to a location
in memory where the actual content of the instance specific data of the correspond-
ing VariableDataPrototype of the communication can be accessed.c(SRS_Rte_-
00153)
To prohibit multiple measurement values for same communication:
(Note that affected VariableDataPrototypes might be specified in same or com-
patible port interfaces.)
[SWS_Rte_03972] dFor 1:1 and 1:N sender-receiver communication the RTE shall
provide measurement values taken from sender side if measurement is demanded in
provide and require port.c(SRS_Rte_00153)
[SWS_Rte_03973] d For N:1 intra-ECU sender-receiver communication the RTE shall
provide measurement values taken from receiver side if measurement is demanded in
provide and require ports.c(SRS_Rte_00153)
Note:
See further below for support of queued communication.
Support for unconnected client-server require port makes sense since the measure-
ment is specified on the type level of the Software Component and therefore inde-
pendent of the individual usage of the Software Component. In case of unconnected
client-server require ports the measurement shall return the actually provided and re-
turned values.
[SWS_Rte_03978] dFor sender-receiver communication the RTE generator shall re-
spect measurement demands enclosed in unconnected provide ports.c(SRS_Rte_-
00139, SRS_Rte_00153)
[SWS_Rte_05101] dFor sender-receiver communication the RTE generator shall re-
spect measurement demands enclosed in unconnected require ports and deliver the
initial value.c(SRS_Rte_00139, SRS_Rte_00153)
[SWS_Rte_03980] dFor client-server communication the RTE generator shall ignore
measurement demands enclosed in unconnected provide ports.c(SRS_Rte_00139,
SRS_Rte_00153)
[SWS_Rte_05102] dFor client-server communication the RTE generator shall respect
measurement demands enclosed in unconnected require ports. The behavior shall be
similar as if the require port would be connected and the server does not respond.c
(SRS_Rte_00139, SRS_Rte_00153)
[SWS_Rte_05170] dFor client-server communication the RTE generator shall ignore
measurement requests for queued client-server communication.c(SRS_Rte_00139,
SRS_Rte_00153)
In case the measurement of client-server communication is not possible due
to requirement [SWS_Rte_05170] the McSupportData need to reflect this
(see [SWS_Rte_05172]).
In principle the same thoughts as above are applied to unused VariableDat-
aPrototypes for sender-receiver communication where ports with compatible but
not same interfaces are connected. It’s no issue for client-server due to compati-
bility rules for client-server interfaces since in compatible client-server interfaces all
ClientServerOperations have to be present in provide and require port (see AU-
TOSAR SW-C Template [2]).
[SWS_Rte_03979] dFor sender-receiver communication the RTE generator shall re-
spect measurement demands of those VariableDataPrototypes in connected
ports when provide and require port interfaces are not the same (but only compati-
ble) even when a VariableDataPrototype in the provide port has no assigned
VariableDataPrototype in the require port.
c(SRS_Rte_00153)
General measurement disabling switch
To support saving of ECU resources for projects where measurement isn’t required at
all whereas enclosed AUTOSAR SW-Cs contain SwDataDefProps requiring it, it shall
be possible to switch off support for measurement. This shall not influence support for
calibration (see 4.2.9.3).
[SWS_Rte_03903] dThe RTE generator shall have the option to switch off support for
measurement for generated RTE code. This option shall influence complete RTE code
at once.c(SRS_Rte_00153)
There also might be projects in which monitoring of ECU internal behavior is required
but calibration is not.
[SWS_Rte_03904] dThe enabling of RTE support for measurement shall be indepen-
dent of the enabling of the RTE support for calibration.c(SRS_Rte_00153)
Queued communication
Measurement of queued communication is not supported yet. Reasons are:
• A queue can be empty. What’s to measure then?
• Which of the queue entries is the one to take the data from might differ out of
user view?
• Only quite inefficient solutions possible because implementation of queues en-
tails storage of information dynamically at different memory locations. So always
additional copies are required.
[SWS_Rte_03950] dRTE generator shall reject configurations where measurement for
queued sender-receiver communication is configured.c(SRS_Rte_00153, SRS_Rte_-
00018)
4.2.9.3 Calibration
The RTE and Basic Software Scheduler has to support the allocation of calibration
parameters and the access to them for SW using them. As seen later on for some
calibration methods the RTE and Basic Software Scheduler must contain support SW
too (see 4.2.9.3.5). But in general the RTE and Basic Software Scheduler is not re-
sponsible for the exchange of the calibration data values or the transportation of them
between the ECU and external calibration tools.
The following sections are mentioning only the RTE but this has to be understood in
the context that the support for Calibration is a functionality which affects the Basic
Software Scheduler part of the RTE as well. In case of the Basic Software Scheduler
Generation Phase (see 3.4.1) this functionality might even be provided with out any
other software component related RTE functionality.
With AUTOSAR, a calibration parameter (which the AUTOSAR SW-C template spec-
ification [2] calls ParameterSwComponentType) is instantiated with a Parameter-
DataPrototype that aggregates a SwDataDefProps with properties swCalibra-
tionAccess = readWrite and swImplPolicy = standard. This chapter applies
to this kind of ParameterSwComponentTypes. For other combinations of these prop-
erties, consult the section 4.2.8
[SWS_Rte_07029] dThe generated RTE shall initialize the memory objects implement-
ing ParameterDataPrototypes in p-ports of ParameterSwComponentTypes ac-
cording the ValueSpecification in the role implInitValue of the Calibra-
tionParameterValue referring the FlatInstanceDescriptor associated to the
ParameterDataPrototype if such CalibrationParameterValue is defined.c
(SRS_Rte_00154)
Note: the initialization according [SWS_Rte_07029] and [SWS_Rte_07030] precedes
the initialization values defined in the context of an component type and used in
[SWS_Rte_07185] and [SWS_Rte_07186]. This enables to provide initial values for
calibration parameter instances to:
• predefine start values for the calibration process
• utilizes the result of the calibration process
• take calibration parameter values from previous projects
[SWS_Rte_03959] dIf the SwcInternalBehavior aggregates an ParameterDat-
aPrototype in the role perInstanceParameter the RTE shall support the access
to instance specific calibration parameters of the AUTOSAR SW-C.c(SRS_Rte_00154,
SRS_Rte_00158)
[SWS_Rte_05112] dIf the SwcInternalBehavior aggregates an ParameterDat-
aPrototype in the role sharedParameter the RTE shall create a common access
to the shared calibration parameter.c(SRS_Rte_00154, SRS_Rte_00159)
[SWS_Rte_07096] dIf the BswInternalBehavior aggregates an ParameterDat-
aPrototype in the role perInstanceParameter the Basic Software Scheduler
shall support the access to instance specific calibration parameters of the Basic Soft-
ware Module.c(SRS_Rte_00154, SRS_Rte_00158)
[SWS_Rte_07185] dThe generated RTE and Basic Software Scheduler shall initialize
the memory objects implementing ParameterDataPrototype in the role perIn-
stanceParameter or sharedParameter
• if it has a ValueSpecification in the role initValue according to this Val-
ueSpecification and
• if no CalibrationParameterValue refer to the FlatInstanceDescriptor
associated to the ParameterDataPrototype
This is also applicable if the swImplPolicy = fixed and if the related Parameter-
DataPrototype is implemented as preprocessor define which does not immediately
allocate a memory object.c(SRS_Rte_00154)
[SWS_Rte_07030] dThe generated RTE and Basic Software Scheduler shall initialize
the memory objects implementing ParameterDataPrototypes in the role perIn-
stanceParameter or sharedParameter according the ValueSpecification in
the role the implInitValue of the CalibrationParameterValue referring the
FlatInstanceDescriptor associated to the ParameterDataPrototype if such
CalibrationParameterValue is defined.c(SRS_Rte_00154)
It might be project specific or even project phase specific which calibration parameters
have to be calibrated and which are assumed to be stable. So it shall be selectable
on ParameterSwComponentTypes and AUTOSAR SW-C granularity level for which
calibration parameters RTE shall support calibration.
If an r-port contains a ParameterDataPrototype, the following requirements spec-
ify its behavior if the port is unconnected.
[SWS_Rte_02749] dIn case of an unconnected parameter r-port, the RTE shall set the
values of the ParameterDataPrototypes of the r-port according to the initValue
of the r-port’s ParameterRequireComSpec referring to the ParameterDataPro-
totype.c(SRS_Rte_00139, SRS_Rte_00159)
If the port is unconnected, RTE expects an init value, see [SWS_Rte_02750].
ParameterDataPrototypes in role romBlock
[SWS_Rte_07033] dIf the swCalibrationAccess of a ParameterDataProto-
type in the role romBlock is set to readWrite the RTE generator has to provide
one reference to a location in memory where the actual content of the romBlock can
be accessed.c(SRS_Rte_00154)
[SWS_Rte_07034] dThe generated RTE shall initialize any ParameterDataProto-
type in the role romBlock
• if it has a ValueSpecification in the role initValue according to this Val-
ueSpecification and
• if no CalibrationParameterValue refer to the FlatInstanceDescriptor
associated to the ParameterDataPrototype
c(SRS_Rte_00154)
[SWS_Rte_07035] dThe generated RTE shall initialize the memory objects implement-
ing ParameterDataPrototypes in the role romBlock according the ValueSpec-
ification in the role the implInitValue of the CalibrationParameterValue
referring the FlatInstanceDescriptor associated to the ParameterDataPro-
totype if such CalibrationParameterValue is defined.c(SRS_Rte_00154)
ParameterDataPrototype used as romBlock are instantiated according to
[SWS_Rte_07693].
Configuration of calibration support
[SWS_Rte_03905] dIt shall be configurable for each ParameterSwComponentType
if RTE calibration support for the enclosed ParameterDataPrototypes is enabled
or not.c(SRS_Rte_00154, SRS_Rte_00156)
[SWS_Rte_03906] dIt shall be configurable for each AUTOSAR SW-C if RTE calibra-
tion support for the enclosed ParameterDataPrototypes is enabled or not.c(SRS_-
Rte_00154, SRS_Rte_00156)
Sometimes it is required that one or more calibration parameters out of the mass of cal-
ibration parameters of an ParameterSwComponentType respectively an AUTOSAR
SW-C shall be placed in another memory location than the other parameters of the Pa-
rameterSwComponentType respectively the AUTOSAR SW-C. This might be due to
security reasons (separate normal operation from monitoring calibration data in mem-
ory) or the possibility to change calibration data during a diagnosis session (which the
calibration parameter located in NVRAM).
[SWS_Rte_03907] dThe RTE generator shall support separation of calibration param-
eters from ParameterSwComponentTypes, AUTOSAR SW-Cs and Basic Software
Modules depending on the ParameterDataPrototype property swAddrMethod.c
(SRS_Rte_00154, SRS_Rte_00158)
AUTOSAR SW-Cs or from Basic Software Modules. Nevertheless it’s not goal of this
specification to require direct accesses since this touches implementation. It might be
ECU HW dependent or even be project dependent if other accesses are more efficient
or provide other significant advantages or not.
RTE is significantly involved when SW support is required and has to create calibration
method specific SW. Different calibration methods means different support in Basic
SW which typically is ECU integrator specific. So it does not make sense to support
DIFFERENT data emulation with SW support methods in ANY one RTE build. But
it makes sense that the RTE supports direct access (see section 4.2.9.3.4) for some
AUTOSAR SW-Cs resp. ParameterSwComponentTypes resp. Basic Software Mod-
ules and one of the data emulation with SW support methods (see section 4.2.9.3.5)
for all the other AUTOSAR SW-Cs resp. ParameterSwComponentTypes resp. Basic
Software Modules at the same time.
[SWS_Rte_03909] dThe RTE shall support only one of the data emulation with SW
support methods at once.c(SRS_Rte_00154, SRS_Rte_00156)
For "online calibration" (see section 4.2.9.1) the ECU is provided with additional
hardware which consists of control logic and memory to store modified calibration
parameters in. During ECU execution the brought in control logic redirects memory
accesses to new bought in memory whose content is modified by external tooling
without disturbing normal ECU program flow. Some microcontrollers contain features
supporting this. A lot of smaller microcontrollers don’t. So this methods is highly HW
dependent.
To support these cases the RTE doesn’t have to provide e.g. a reference table like
described in section 4.2.9.3.5. Exchange of ParameterDataPrototype content is
done invisibly for program flow and for RTE too.
[SWS_Rte_03942] dThe RTE generator shall have the option to switch off data emu-
lation with SW support for generated RTE code. This option shall influence complete
RTE code at once.c(SRS_Rte_00154, SRS_Rte_00156)
In case "online calibration" (see section 4.2.9.1) is required, quite often data emulation
without support by special SW constructs isn’t possible. Several methods exist, all
have the consequence that additional need of ECU resources like RAM, ROM/FLASH
and runtime is required.
Data emulation with SW support is possible in different manners. During calibration
process in each of these methods modified calibration data values are kept typically in
RAM. Modification is controlled by ECU external tooling and supported by ECU internal
SW located in AUTOSAR basic SW or in complex driver.
If calibration process isn’t active the accessed calibration data is originated in
ROM/FLASH respectively in NVRAM in special circumstances (as seen later on).
Since multiple instantiation is to be supported several instances of the same
ParameterDataPrototypes have to be allocated. Because the RTE is the only
one SW in an AUTOSAR ECU able to handle the different instances the access to these
calibration parameters can only be handled by the RTE. So the RTE has to provide
additional SW constructs required for data emulation with SW support for calibration.
However the RTE doesn’t know which of the ECU functionality shall be calibrated dur-
ing a calibration session. To allow expensive RAM to be reused to calibrate different
ECU functionalities in one or several online calibration sessions (see 4.2.9.1) in case of
the single and double pointered methods for data emulation with SW support described
below the RTE has only to provide the access to ParameterDataPrototypes dur-
ing runtime but allowing other SW (a BSW module or a complex driver) to redirect the
access to alternative calibration parameter values (e.g. located in RAM) invisibly for
application.
The RTE is neither the instance to supply the alternative values for ParameterDat-
aPrototypes nor in case of the pointered methods for data emulation with SW sup-
port to do the redirection to the alternative values.
[SWS_Rte_03910] dThe RTE shall support data emulation with SW support for cali-
bration.c(SRS_Rte_00154, SRS_Rte_00156)
[SWS_Rte_03943] dThe RTE shall support these data emulation methods with SW
support:
• Single pointered calibration parameter access
further called "single pointered method"
[SWS_Rte_03911] dIf data emulation with SW support is enabled, the RTE generator
shall allocate all ParameterDataPrototypes marked with same property swAd-
drMethod of one instance of a ParameterSwComponentType consecutively. To-
gether they build a separate ParameterElementGroup.c(SRS_Rte_00154, SRS_-
Rte_00156, SRS_Rte_00158)
[SWS_Rte_03912] dIf data emulation with SW support is enabled, the RTE shall guar-
antee that all non-shared ParameterDataPrototypes marked with same property
swAddrMethod of an AUTOSAR SWC instance are allocated consecutively. To-
gether they build a separate ParameterElementGroup.c(SRS_Rte_00154, SRS_-
Rte_00158)
[SWS_Rte_05194] dIf data emulation with SW support is enabled, the RTE shall
guarantee that all shared ParameterDataPrototypes marked with same property
swAddrMethod of an AUTOSAR SWC type are allocated consecutively. Together they
build a separate ParameterElementGroup.c(SRS_Rte_00154, SRS_Rte_00158)
It is not possible to access same calibration parameter inside of a ParameterSwCom-
ponentType via several ports. This is a consequence of the need to support the
use case that a ParameterSwComponentType shall be able to contain several cali-
bration parameters derived from one ParameterDataPrototype which is contained
in one interface applied to several ports of the ParameterSwComponentType. Us-
ing only the ParameterDataPrototype names for the names of the elements of a
ParameterElementGroup would lead to a name clash since then several elements
with same name would have to created. So port prototype and ParameterDataPro-
totype name are concatenated to specify the ParameterElementGroup member
names.
This use case cannot be applied to AUTOSAR SW-C internal calibration parameters
since they cannot be accessed via AUTOSAR ports.
[SWS_Rte_03968] dThe names of the elements of a ParameterElementGroup de-
rived from a ParameterSwComponentType shall be <port>_<element> where
<port> is the short-name of the provided AUTOSAR port prototype and <element>
the short-name of the ParameterDataPrototype within the ParameterInter-
face categorizing the PPort.c(SRS_Rte_00154, SRS_Rte_00156)
There is one calibration reference table in RAM with references to one or several
ParameterElementGroups. Accesses to calibration parameters are indirectly per-
formed via this reference table.
Action during calibration procedure e.g. calibration parameter value exchange is not
focus of this specification. Nevertheless an example is given for better understanding.
Example how the exchange of calibration parameters could be done for single point-
ered method:
1. Fill a RAM buffer with the modified calibration parameter values for complete
ParameterElementGroup
2. Modify the corresponding entry in the calibration reference table so that a redi-
rection to new ParameterElementGroup is setup
Now calibration parameter accesses deliver the modified values.
[SWS_Rte_03913] dIf data emulation with SW support with single pointered method
is enabled, the RTE generator shall create a table located in RAM with references
There is one calibration reference table in ROM respectively Flash with references
to one or several ParameterElementGroups. Accesses to calibration parameters
are performed through a double indirection access. During system startup the base
reference is initially filled with a reference to the calibration reference table.
Action during calibration procedure e.g. calibration parameter value exchange is not
focus of this specification. Nevertheless an example is given for better understanding.
Example how the exchange of calibration parameters could be done for double point-
ered method:
1. Copy the calibration reference table into RAM
2. Fill a RAM buffer with modified calibration parameter values for complete Param-
eterElementGroup
3. Modify the corresponding entry in the RAM copy of the reference table so that a
redirection to new ParameterElementGroup is setup
4. Change the content of the base reference so that it references the calibration
reference table copy in RAM.
Now calibration parameter accesses deliver the modified values.
[SWS_Rte_03914] dIf data emulation with SW support with double pointered method
is enabled, the RTE generator shall create a table located in ROM respectively FLASH
with references to ParameterElementGroups. The type of the table is an array of
void pointers.c(SRS_Rte_00154, SRS_Rte_00156)
Figure 4.27 illustrates the method.
To allow a Basic-SW respectively a complex driver to emulate other calibration param-
eters the standardization of the base reference is required.
[SWS_Rte_03948] dIf data emulation with SW support with double method is enabled
the name (the label) of the calibration base reference shall be <RteParameterBase>.
This label and the base reference type shall be exported and made available to other
SW on same ECU.
c(SRS_Rte_00154, SRS_Rte_00156)
Calibration parameters located in NVRAM are handled same way (also see section
4.2.9.3.6).
For handling of calibration parameters located in NVRAM with single or double point-
ered method see [SWS_Rte_03936] in section 4.2.9.3.5.1. General information is
found in section 4.2.9.3.6).
An implementation simply would have to exchange the content of the RAM cells during
runtime.
[SWS_Rte_03915] dIf data emulation with SW support with initRam parameter method
is enabled, the RTE generator shall create code guaranteeing that
1. calibration parameters are allocated in ROM/Flash and
2. a copy of them is allocated in RAM made available latest during RTE startup
for those ParameterDataPrototypes for which calibration support is enabled.c
(SRS_Rte_00154, SRS_Rte_00156)
RTE access
Copy
... ...
Parameter in Copied parameter in
ROM / FLASH RAM
Figure 4.28: initRam Parameter method setup
For data emulation with SW support with single or double pointered methods the RTE
has to guarantee access to each single member of a ParameterElementGroup for
source code and object code delivery independent if the member is a primitive or a
composite data type. For this the creation of a record type for a ParameterEle-
mentGroup was chosen.
[SWS_Rte_03916] dOne ParameterElementGroup shall be realized as one record
type.c(SRS_Rte_00154, SRS_Rte_00156)
the calibration base reference and the calibration reference table for those Parame-
terDataPrototypes which are in a ParameterElementGroup for which calibra-
tion is enabled.c(SRS_Rte_00154, SRS_Rte_00156)
[SWS_Rte_03934] dIf data emulation with SW support with double pointered method
is enabled, the calibration base reference shall be located in RAM.c(SRS_Rte_00154,
SRS_Rte_00156)
Since only the RTE knows which instances of AUTOSAR SW-Cs, ParameterSwCom-
ponentTypes and Basic Software Modules are present on the ECU the RTE has
to allocate the calibration parameters and reserve memory for them. This approach
is also covering multiple instantiated object code integration needs. So memory for
instantiated ParameterDataPrototypes is neither provided by ParameterSwCom-
ponentTypes nor by AUTOSAR SW-C.
Nevertheless AUTOSAR SW-Cs and Basic Software Modules can define calibration
parameters which are not instantiated by RTE. These are described by Parameter-
DataPrototypes in the role constantMemory. Further on the RTE can not imple-
ment any software support for data emulation for such calibration parameters. Hence
those kind of calibration parameters are not described in the generated McSupportData
of the RTE (see 4.2.9.4).
[SWS_Rte_03961] dThe RTE shall allocate the memory for calibration parameters.c
(SRS_Rte_00154, SRS_Rte_00156)
A ParameterDataPrototype can be defined to be instance specific or can be
shared over all instances of an AUTOSAR SW-C or a ParameterSwComponent-
Type. The input for the RTE generator contains the values the RTE shall apply to the
calibration parameters.
To support online and offline calibration (see section 4.2.9.1) all parameter values for
all instances have to be provided.
Background:
• For online calibration often initially the same default values for calibration param-
eters can be applied. Variation is then handled later by post link tools. Initial
ECU startup is not jeopardized. This allows the usage of a default value e.g. by
AUTOSAR SW-C or ParameterSwComponentType supplier for all instances of
a ParameterDataPrototype.
• On the other hand applying separate default values for the different instances of
a ParameterDataPrototype will be required often for online calibration too, to
make a vehicle run initially. This requires additional configuration work e.g. for
integrator.
• Offline calibration based on new SW build including new RTE build and com-
pilation process requires all calibration parameter values for all instances to be
available for RTE.
Shared ParameterDataPrototypes
[SWS_Rte_03962] dFor accesses to a shared ParameterDataPrototype the RTE
API shall deliver the same one value independent of the instance the calibration pa-
rameter is assigned to.c(SRS_Rte_00154, SRS_Rte_00156)
[SWS_Rte_03963] dThe calibration parameter of a shared ParameterDataProto-
type shall be stored in one memory location only.c(SRS_Rte_00154, SRS_Rte_-
00156)
Requirements [SWS_Rte_03962] and [SWS_Rte_03963] are to guarantee that only
one physical location in memory has to be modified for a change of a shared
ParameterDataPrototype. Otherwise this could lead to unforeseeable confusion.
Multiple locations are possible for calibration parameters stored in NVRAM. But there
a shared ParameterDataPrototype is allowed to have only one logical data too.
Calibration parameters can be located in NVRAM too. One use case for this is to have
the possibility to modify calibration parameters via a diagnosis service without need for
special calibration tool.
To allow NVRAM calibration parameters to be accessed, NVRAM with statically allo-
cated RAM buffer in form of PIM memory for the calibration parameters has to be de-
fined or the ramBlock of a NvBlockSwComponentType defines readWrite access
for the MCD system. Please see as well [SWS_Rte_07174] and [SWS_Rte_07160].
Note:
As the NVRAM Manager might not be able to access the PerInstanceMemory
across core boundaries in a multi core environment, the support of Calibration pa-
rameters in NVRAM for multi core controllers is limited. See also note in 4.2.10.1.
In complex systems the situation occur that calibration parameter values may depend
on the configuration of the vehicle due to functional side effects. The difficulty is that
those dependencies are typically detected after design of the software components and
shall not change the software component design. In addition the overall ECU SW has
to support all vehicle variants and therefore the detection and selection of the concrete
vehicle variant needs to be done post build.
[SWS_Rte_06815] dThe RTE Generator shall provide one separate memory location
per FlatInstanceDescriptor pointing to the identical ParameterDataProto-
type instance in the root software composition.c(SRS_Rte_00154, SRS_Rte_00191)
Thereby the FlatInstanceDescriptor needs to have different postBuildVari-
antConditions as described in [constr_3114]. As a consequence at most one lo-
cation in memory location created according [SWS_Rte_06815] can be active in a
specific post build variant. This value needs to be accessed by the according RTE
APIs Rte_CData and Rte_Prm accessing parameters.
Please note that the resulting names of the memory locations are not standardized but
the applied pattern shall illustrate to which information in the input model they belong
to. Assuming now following configuration in the Flat Map:
’SWC_A_PIP_Z0’ {depends on PostBuildVariantCriterion ’Z’= 0}
’SWC_A_PIP_Z1’ {depends on PostBuildVariantCriterion ’Z’ = 1}
’SWC_B_PIP’
’SWC_A_SWC_B_SP_Z0’ {depends on PostBuildVariantCriterion ’Z’= 0}
’SWC_A_SWC_B_SP_Z1’ {depends on PostBuildVariantCriterion ’Z’= 1}
’SWC_PA_EP_Prm1_Z0’ {depends on PostBuildVariantCriterion ’Z’= 0}
’SWC_PA_EP_Prm1_Z1’ {depends on PostBuildVariantCriterion ’Z’= 1}
’SWC_PB_EP_Prm1’
There are different possibility to implement this mechanism. Nevertheless there are
cross dependencies to the requirements concerning ’Data emulation with SW support’
in section 4.2.9.3.5.
One possibility is to create an array of parameter values which contains one array el-
ement for each different Post Build Variant. The used index for this parameter value
array in the relate RTE API is determined by the chosen variant in the post build con-
figuration of the RTE and indexes the active array element. With this approach its
easier to combine multiple calibration data instances with the ’Data emulation with SW
support’ feature since the number of ParameterElementGroups are not changed.
An other approach is to create one base pointer per identical combination of post-
BuildVariantConditions applied to calibration parameters. The related calibra-
tion parameters are grouped into a structure and for each combination of postBuild-
VariantConditions one instance of the structure is created. The base pointer is
initialized according chosen variant in the post build configuration of RTE and points to
the active structure instance.
The RTE Generator supports the definition, allocation and access to measurement
and calibration data for Software Components as well as for Basic Software. The
specific support of measurement and calibration tools however is neither in the focus
of the RTE Generator nor AUTOSAR. This would require the generation of an "A2L"-
file (like specified in [20]) which is the standard in this domain – but out of the focus of
AUTOSAR.
The RTE Generator however shall support an intermediate exchange format called
McSupportData which is building the bridge between the ECU software and the fi-
nal "A2L"-file needed by the measurement and calibration tools. The details about
the McSupportData format and the involved methodology are described in the Basic
Software Module Description Template document [9].
In this section the requirements on the RTE Generator are collected which elements
shall be provided in the McSupportData element.
Figure 4.32 shows the structure of the McSupportData element. The McSupport-
Data element and its sub-content is part of the Implementation element. In case
of the RTE this is the BswImplementation element which is generated / updated by
the RTE Generator in the Generation Phase (see [SWS_Rte_05086] in chapter 3.4.2).
[SWS_Rte_05118] dThe RTE Generator in Generation Phase shall create the McSup-
portData element as part of the BswImplementation description of the generated
RTE.c(SRS_Rte_00189)
BswImplementation
+ecuExtract 0..1
ARElement
AtpStructureElement
ARElement ARElement System
Implementation SwSystemconstantValueSet
+measurableSystemConstantValues 0..*
«atpVariation,atpSplitable»
«atpSplitable»
+flatMap 0..1
«atpVariation,atpSplitable» ARElement
AtpBlueprint
AtpBlueprintable
FlatMap
«atpVariation»
«atpVariation,atpSplitable»
«atpVariation,atpSplitable»
+mcParameterInstance +mcVariableInstance
+emulationSupport 0..* 0..* 0..* +instance 1..*
Identifiable Identifiable
McSwEmulationMethodSupport
McDataInstance FlatInstanceDescriptor
+ category: Identifier +flatMapEntry
+ shortLabel: Identifier + arraySize: PositiveInteger [0..1] + role: Identifier [0..1]
+ displayIdentifier: McdIdentifier [0..1] 0..1
+ role: Identifier [0..1]
«atpVariation»
«atpSplitable»
+ symbol: SymbolString [0..1] +mcDataAssignment
RoleBasedMcDataAssignment
0..*
+subElement +mcDataInstance + role: Identifier [0..1]
0..* {ordered}
0..*
0..1
+resultingProperties 0..1
+resultingRptSwPrototypingAccess
«atpVariation»
SwDataDefProps RptSwPrototypingAccess
none none
rptLevel1 rptEnablerRam
rptLevel2 rptEnablerRom
rptLevel3 rptEnablerRamAndRom
The individual measurable and calibratable data is described using the element Mc-
DataInstance. This is aggregated from McSupportData in the role mcVariable-
Instance (for measurement) or mcParameterInstance (for calibration).
Usage of the FlatMap
The FlatMap is part of the Ecu Extract of System Description and contains a collection
of FlatInstanceDescriptor elements. The details of the FlatMap are described
in the Specification of the System Template [8].
In particular the FlatMap may be request several parameter instances for the identical
ParameterDataPrototype as described in section 4.2.9.3.7.
Common attributes of McDataInstance
The element McDataInstance specifies one element of the McSupportData. The
following requirement specify common attributes which shall to be filled in a harmo-
nized way.
[SWS_Rte_05130] dThe RTE Generator shall use the shortName of the FlatIn-
stanceDescriptor as the shortName of the McDataInstance.c(SRS_Rte_-
00189)
[SWS_Rte_03998] dThe RTE Generator shall use the AliasNameAssignment.-
shortLabel referencing the according FlatInstanceDescriptor as the dis-
playIdentifier of the McDataInstance.c(SRS_Rte_00189)
[SWS_Rte_05131] dIf the input element (e.g. ApplicationDataType or Imple-
mentationDataType) has a category specified the category value shall be
copied to the McDataInstance element.c(SRS_Rte_00189)
[SWS_Rte_05132] dIf the input element (e.g. ApplicationDataType or Imple-
mentationDataType) specifies an array, the attribute arraySize of McDataIn-
stance shall be set to the size of the array.c(SRS_Rte_00189)
[SWS_Rte_05133] dIf the input element (e.g. ApplicationDataType or Imple-
mentationDataType) specifies a record, the McDataInstance shall aggregate
the record element’s parts as subElements of type McDataInstance.c(SRS_Rte_-
00189)
[SWS_Rte_05119] dThe McSupportData element and its sub-structure shall be self-
contained in the sense that there is no need to deliver the whole upstream descriptions
of the ECU (including the ECU Extract, Software Component descriptions, Basic Soft-
ware Module descriptions, ECU Configuration Values descriptions, Flat Map, etc.) in
order to later generate the final "A2L"-file. This means that the RTE Generator has
to copy the required information from the upstream descriptions into the McSupport-
Data element.c(SRS_Rte_00189)
[SWS_Rte_05129] dThe RTE Generator in Generation Phase shall export the effec-
tive SwDataDefProps (including all of the referenced and aggregated sub-elements
like e.g. CompuMethod or SwRecordLayout) in the role resultingProperties
for each McDataInstance after resolving the precedence rules defined in the SW-
Component Template [2] chapter Properties of Data Definitions. Thereby the Im-
plementationDataType properties compuMethod and dataConstraint are not
taken in consideration for effective SwDataDefProps of the McDataInstance due
to their refinement nature of C and AI.c(SRS_Rte_00189)
[SWS_Rte_05135] dIf a ParameterDataPrototype is associated with a Param-
eterAccess the corresponding SwDataDefProps and their sub-structure shall be
exported.c(SRS_Rte_00189)
For each flatMapEntry referencing to measurable or calibratible data prototype or
measureable ModeDeclarationGroupPrototype the McDataInstance shall be
generated in the McSupportData. Thereby the effected SwDataDefProps shall be
taken from the data prototype according the precedence rules defined in the SWCT.
[SWS_Rte_08313] dThe RTE Generator shall create McDataInstance element(s)
in the McSupportData for each measurable or calibratible DataPrototype / Mod-
eDeclarationGroupPrototype referenced by a FlatInstanceDescriptor.c
(SRS_Rte_00189)
Explanation: In case of connected ports it may occur that the DataPrototype in the
DataInterface of the PPortPrototype and the DataPrototype in the DataInterface
of the RPortPrototype are referenced by FlatInstanceDescriptors. In this
case its intended to get two McDataInstance in order to access the value by MCD
system with two different names and may be with two different scaling (typically offset
and resolution).
In case of composite data FlatInstanceDescriptors may point to one or several
ApplicationCompositeElementDataPrototypes in order to define an individual
name for each record or array element. Thereby it is even possible that a FlatIn-
stanceDescriptor exists for the "whole" DataPrototype typed by an Appli-
cationCompositeDataType and additional FlatInstanceDescriptors exist for
the ApplicationCompositeElementDataPrototypes of such DataPrototype.
In this case a McDataInstance as child of McSupportData exists due to
the FlatInstanceDescriptors for the "whole" DataPrototype and addi-
tional McDataInstances as child of McSupportData exists for each FlatIn-
stanceDescriptor pointing to a ApplicationCompositeElementDataProto-
types in the "whole" DataPrototypes type.
[SWS_Rte_08314] dIf the input element is typed by an ApplicationDataType the
subElements structure of the McDataInstance is determined by the Applica-
tionDataType. This means
• in case of ApplicationRecordDataType the number and shortName
of the subElement is determined by the ApplicationRecordElement if
[SWS_Rte_05133] and [SWS_Rte_08316] is applied,
Sender-Receiver communication
[SWS_Rte_05120] dIf the swCalibrationAccess of a VariableDataPrototype
used in an interface of a sender-receiver port of a SwComponentPrototype is set
to readOnly or readWrite and RteMeasurementSupport is set to true the RTE
Generator shall create a McDataInstance element with
• symbol set to the C-symbol name used for the allocation (see also
[SWS_Rte_03900])
• flatMapEntry referencing to the corresponding FlatInstanceDescriptor
element of the VariableDataPrototype
c(SRS_Rte_00153, SRS_Rte_00189)
Client-Server communication
[SWS_Rte_05121] dIf the swCalibrationAccess of an ArgumentDataProto-
type used in an interface of a client-server port of a SwComponentPrototype is
set to readOnly and RteMeasurementSupport is set to true the RTE Generator
shall create a McDataInstance element with
• symbol set to the C-symbol name used for the allocation (see also
[SWS_Rte_03901])
• flatMapEntry referencing to the corresponding FlatInstanceDescriptor
element of the ArgumentDataPrototype
c(SRS_Rte_00153, SRS_Rte_00189)
[SWS_Rte_05172] dIf the measurement of client-server communication is ignored due
to requirement [SWS_Rte_05170] the corresponding McDataInstance in the Mc-
SupportData shall have a resultingProperties swCalibrationAccess set
to notAccessible.c(SRS_Rte_00153)
Mode Switch Communication
[SWS_Rte_06702] dIf the swCalibrationAccess of a ModeDeclarationGroup-
Prototype used in an interface of a mode switch port of a SwComponentPro-
totype is set to readOnly and RteMeasurementSupport is set to true the RTE
Generator shall create three McDataInstance elements with
• symbol set to the C-symbol name used for the allocation (see also
[SWS_Rte_06700])
• flatMapEntry referencing to the corresponding FlatInstanceDescriptor
element of the ModeDeclarationGroupPrototype
Thereby the McDataInstance element corresponding to the
• current mode has to reference the FlatInstanceDescriptor which role at-
tribute is set to CURRENT_MODE,
• previous mode has to reference the FlatInstanceDescriptor which role
attribute is set to PREVIOUS_MODE and
• next mode has to reference the FlatInstanceDescriptor which role at-
tribute is set to NEXT_MODE
c(SRS_Rte_00153, SRS_Rte_00189)
Calibration can be either actively supported by the RTE using the pre-defined cali-
bration mechanisms of section 4.2.9.3.5 or calibration can be transparent to the RTE.
In both cases the location and attributes of the calibratable data has to be provided
by the RTE Generator in the Generation Phase in order to support the setup of the
measurement and calibration tools.
ParameterDataPrototypes of ParameterSwComponentType
[SWS_Rte_05126] dFor each FlatInstanceDescriptor referencing a Parame-
terDataPrototype instance in a PortPrototype of a ParameterSwComponent-
Type with the swCalibrationAccess set to readOnly or readWrite an entry in
the McSupportData with the role mcParameterInstance shall be created with the
following attributes:
• symbol set to the C-symbol name used for the allocation
• flatMapEntry referencing to the corresponding FlatInstanceDescriptor
element of the ParameterDataPrototype
c(SRS_Rte_00189)
Shared ParameterDataPrototypes
[SWS_Rte_05127] dFor each FlatInstanceDescriptor referencing a Parame-
terDataPrototype instance of a AtomicSwComponentType’s SwcInternalBe-
havior aggregated in the role sharedParameter with the swCalibrationAccess
set to readOnly or readWrite an entry in the McSupportData with the role mcPa-
rameterInstance shall be created with the following attributes:
• symbol set to the C-symbol name used for the allocation
• flatMapEntry referencing to the corresponding FlatInstanceDescriptor
element of the ParameterDataPrototype
c(SRS_Rte_00189)
The RTE does provide several Software Emulation Methods which can be selected in
the Ecu Configuration of the RTE (see section 8.2).
Which Software Emulation Method has been used for a particular RTE Generation shall
be documented in the McSupportData in order to allow measurement and calibration
tools to support the RTE’s Software Emulation Methods. Additionally it is also possible
for an RTE Vendor to add custom Software Emulation Methods which needs to be
«atpSplitable»
«atpVariation,atpSplitable» «atpVariation,atpSplitable»
+mcSupport 0..1
McSupportData
«atpVariation»
0..1
+referenceTable
RteCalibrationSupport:
0..1 EcucEnumerationParamDef
defaultValue = NONE
+elementGroup 0..*
+ramLocation
McParameterElementGroup
1
[SWS_Rte_05137] dThe RTE Generator in Generation Phase shall create the Mc-
SwEmulationMethodSupport element as part of the McSupportData description
of the generated RTE.c(SRS_Rte_00189)
[SWS_Rte_05138] dThe RTE Generator in Generation Phase shall set the value of the
category attribute of McSwEmulationMethodSupport element according to the
implemented Software Emulation Method based on the Ecu configuration parameter
RteCalibrationSupport:
• NONE
• SINGLE_POINTERED
• DOUBLE_POINTERED
• INITIALIZED_RAM
• custom category name: vendor specific Software Emulation Method
c(SRS_Rte_00189)
The description of the generated structures is using the existing mechanisms already
available in the Basic Software Module Description Template [9].
Description of ParameterElementGroup
For the description of the ParameterElementGroup an Implementation-
DataType representing a structure of the group is created ([SWS_Rte_05139]).
[SWS_Rte_05139] dFor each generated ParameterElementGroup an Implemen-
tationDataType shall be created. The contained ParameterDataPrototypes
are aggregated with the role subElement as ImplementationDataTypeEle-
ment.c(SRS_Rte_00189)
In the example figure 4.34 the ImplementationDataTypes are called RteMcSup-
portGroupType1 and RteMcSupportGroupType2.
McSupport description of the InitRam parameter method
For the description of the InitRam parameter method the specific ParameterEle-
mentGroups allocated in ram and rom are specified ([SWS_Rte_05140] and
[SWS_Rte_05141]). Then the collection and correspondence of these groups is spec-
ified (in [SWS_Rte_05142]).
[SWS_Rte_05140] dIf the RTE Generator is configured to support the
(INITIALIZED_RAM) method the RTE Generator in generation phase shall gen-
erate for each ParameterElementGroup a ParameterDataPrototype with the
role constantMemory in the InternalBehavior of the RTE’s Basic Software
Module Description. The ParameterDataPrototype shall have a reference to the
corresponding ImplementationDataType from [SWS_Rte_05139] with the role
type.c(SRS_Rte_00189)
[SWS_Rte_05141] dIf the RTE Generator is configured to support the
(INITIALIZED_RAM) method the RTE Generator in generation phase shall gen-
erate for each ParameterElementGroup a VariableDataPrototype with the
role staticMemory in the InternalBehavior of the RTE’s Basic Software Module
Description. The VariableDataPrototype shall have a reference to the corre-
sponding ImplementationDataType from [SWS_Rte_05139] with the role type.c
(SRS_Rte_00189)
[SWS_Rte_05142] dIf the RTE Generator is configured to support the
(INITIALIZED_RAM) method the RTE Generator in generation phase shall gen-
erate for each ParameterElementGroup a McParameterElementGroup with the
role elementGroup in the McSwEmulationMethodSupport [SWS_Rte_05137]
element.
• The McParameterElementGroup shall have a reference to the corresponding
ParameterDataPrototype from [SWS_Rte_05140] with the role romLoca-
tion.
• The McParameterElementGroup shall have a reference to the correspond-
ing VariableDataPrototype from [SWS_Rte_05141] with the role ramLo-
cation.
c(SRS_Rte_00189)
+swDataDefProps
+initValue
«atpVariation»
RteMcSupportBasePointerInit: RteMcSupportBaseTypePointerDDP:
ReferenceValueSpecification SwDataDefProps
+swPointerTargetProps
RteMcSupportBaseTypePointerTargetP:
SwPointerTargetProps
+swDataDefProps
«atpVariation»
RteMcSupportBaseTypePointerTargetDDP:
SwDataDefProps
+referenceValue +implementationDataType
+initValue +subElement
RteMcSupportPointerTableInit: RteMcSupportPointerTableElement:
ArrayValueSpecification ImplementationDataTypeElement
arraySize = 2
+element +element
RteMcSupportParamGroup1Ref: RteMcSupportParamGroup2Ref:
ReferenceValueSpecification ReferenceValueSpecification
+referenceValue
+constantMemory RteMcSupportParamGroup1:
ParameterDataPrototype
+referenceValue
+constantMemory RteMcSupportParamGroup2:
ParameterDataPrototype
+type
RteMcSupportGroupType2:
ImplementationDataType
+type
+subElement MyCalParam111:
ImplementationDataTypeElement
RteMcSupportGroupType1:
ImplementationDataType
+subElement MyCalParam22:
ImplementationDataTypeElement
+subElement
MyCalParam13:
ImplementationDataTypeElement
The Rte Generator shall provide information on values of system constants. The values
are part of the input information and need to be collected and copied into a dedicated
artifact to be delivered with the McSupportData.
[SWS_Rte_05168] dThe Rte Generator in generation phase shall create an elements
of type SwSystemconstantValueSet and create copies of all system constant val-
ues found in the input information of type SwSystemconstValue where the refer-
enced SwSystemconst element has the swCalibrationAccess set to readOnly.c
(SRS_Rte_00153, SRS_Rte_00191)
In case the SwSystemconstValue is subject to variability and the variability can be
resolved during Rte generation phase
[SWS_Rte_05176] dIf a SwSystemconst with swCalibrationAccess set to read-
Only has an assigned SwSystemconstValue which is subject to variability with
the latest binding time SystemDesignTime or CodeGenerationTime the related
SwSystemconstValue copy in the SwSystemconstantValueSet according to
[SWS_Rte_05168] shall contain the resolved value.c(SRS_Rte_00153, SRS_Rte_-
00191)
[SWS_Rte_05174] dIf a SwSystemconst with swCalibrationAccess set to read-
Only has an assigned SwSystemconstValue which is subject to variability with the
latest binding time PreCompileTime the related SwSystemconstValue copy in the
SwSystemconstantValueSet according to [SWS_Rte_05168] shall have an At-
tributeValueVariationPoint. The PreBuild conditions of the AttributeVal-
ueVariationPoint shall correspond to the PreBuild conditions of the input SwSys-
temconstValue’s conditions.c(SRS_Rte_00153, SRS_Rte_00191)
[SWS_Rte_05169] dThe Rte Generator in generation phase shall create a reference
from the McSupportData element ([SWS_Rte_05118]) to the SwSystemconstant-
ValueSet element ([SWS_Rte_05168]).c(SRS_Rte_00153, SRS_Rte_00191)
In case the RTE Generator implements variability on an element which is accessible
by a MCD system the related existence condition has to be documented in the McSup-
portData structure as well.
[SWS_Rte_05175] dIf an element in the McSupportData is related to an element
in the input configuration which is subject to variability with the latest binding time
PreCompileTime or PostBuild the RTE Generator shall add a VariationPoint for
such element. The PreBuild and PostBuild conditions of the VariationPoint shall
correspond to the PreBuild and PostBuild conditions of the input element’s conditions.c
(SRS_Rte_00153, SRS_Rte_00191)
4.2.10.1 General
There are different methods available for AUTOSAR SW-Cs to access data stored in
NVRAM.
• “Calibration data” – Calibrations can be stored in NVRAM, but are not modified
during a "normal" execution of the ECU. Calibrations are usually directly read from
their memory location, but can also be read from a RAM buffer when the access
time needs to be optimized (e.g. for interpolation tables). They are described in
section 4.2.9.
• “Access to NVRAM blocks” – This method uses PerInstanceMemory as a
RAM Block for the NVRAM blocks. While this method is efficient, its use is
restricted.
The NVRAM Manager [21] is a BSW module which provides services for SW-C
to access NVRAM Blocks during runtime. The NVM block data is not accessed
directly, but through a RAM Block, which can be a PerInstanceMemory in-
stantiated by the RTE, or a SW-C internal buffer. When this method is used, the
RTE does not provide any data consistency mechanisms (i.e. different runnables
from the SW-C and the NVM can access the RAM Block concurrently without
being protected by the RTE).
Note:
This mechanism permits efficient usage of NVRAM data, but requires the SW-C
designer to take care that accesses to the PerInstanceMemory from different
task contexts don’t cause data inconsistencies. The “Access to NVRAM blocks”
should not be used in multi core environments. In AUTOSAR release 4.0, it can
not be expected that the NVRAM Manager can access the PerInstanceMem-
ory of another core. The presence of a shared memory section is not required by
AUTOSAR. Only in the case of arTypedPerInstanceMemory, a SwDataDef-
Props item is available to assign the PerInstanceMemory to a shared memory
section.
• “Access to NVRAM data with a NvBlockSwComponentType” – The data is
accessed through a NvDataInterface connected to a NvBlockSwCompo-
nentTypes. This access is modeled at the VFB level, and, when necessary,
protected by the RTE against concurrent accesses. It will be described further in
this section.
Please note that the terms NVRAM Block, NV Block, RAM Block, ROM Block and
RAM mirror used in this document are defined in the specification of the NVRAM
Manager [21].
AtomicSwComponentType
NvBlockSwComponentType
«atpVariation,atpSplitable»
+nvBlockDescriptor 0..*
AtpStructureElement
Identifiable
NvBlockDescriptor
ValueSpecification
+nvBlockNeeds 0..1
ServiceNeeds «enumeration»
NvBlockNeeds NvBlockNeedsReliabilityEnum
ARElement
AtpType
AutosarDataType
+type 0..1
{redefines atpType}
«isOfType»
«atpVariation,atpSplitable» «atpVariation»
+targetDataPrototype
0..1
0..1
{subsets atpContextElement}
0..1
+rootVariableDataPrototype
+contextDataPrototype
{ordered}
0..*
+rootVariableDataPrototype
«atpVariation»
AtpInstanceRef
ArVariableInImplementationDataInstanceRef
VariableInAtomicSWCTypeInstanceRef
«atpVariation»
+autosarVariableInImplDatatype
+instantiationDataDefProps 0..*
InstantiationDataDefProps AutosarVariableRef
+variableInstance
0..1
0..* +nvBlockDataMapping
+writtenReadNvData
NvBlockDataMapping
0..1
+writtenNvData
0..1
+readNvData
0..1
+nvRamBlockElement
0..1
[SWS_Rte_03866] dThe RTE Generator shall reject any configuration that violates
[constr_1395], [constr_1403] and [constr_1404].c(SRS_Rte_00018)
[SWS_Rte_07621] dThe RTE Generator shall reject configurations where [constr_-
2013] or [constr_1285] is violated.c(SRS_Rte_00018)
Note: This is required to ensure that the default values in romBlock are structurally
matching data in the ramBlock and therefore can be copied to the ramBlock in case
that the callback Rte_NvMNotifyInitBlock of the related NvBlock is called.
[SWS_Rte_07343] dThe RTE Generator shall reject configurations where a Vari-
ableDataPrototype instance in the role ramBlock is accessed by SW-C instances
of different partitions.c(SRS_Rte_00177, SRS_Rte_00018)
The rational for [SWS_Rte_07343] is to allow the implementation of cleanup activities
in case of termination or restart of a partition. These cleanup activities may require to
invalidate the RAM Block or reload data from the NVRAM device, which would impact
other partitions if a the ramBlock is accessed by SW-Cs of different partitions.
A NvBlockSwComponentType can be used to reduce the quantity of NVRAM Blocks
needed on an ECU:
• the same block can be used to store different flags or other small data elements;
• the same data element can be used by different SW-Cs or different instances of
a SW-C.
It also permits to simplify processes and algorithms when it must be guaranteed that
two SW-Cs of an ECU use the same NVRAM data.
Note: this feature can increase the RAM usage of the ECU because it forces the
NVRAM Manager to instantiate an additional RAM buffer, called RAM mirror. How-
ever, when the same data elements have to be shared between SW-Cs, it reduces the
number of RAM Blocks needed to be instantiated by the RTE, and can reduce the
overall RAM usage of the ECU.
[SWS_Rte_07356] dThe RTE Generator shall reject configurations where a Vari-
ableDataPrototype referenced by a NvDataInterface has a queued swIm-
plPolicy.c(SRS_Rte_00018)
[SWS_Rte_CONSTR_09011] NvMBlockDescriptor related to a RAM Block of a
NvBlockSwComponentType shall use NvmBlockUseSyncMechanism dThe NVRAM
Block associated to the NvBlockDescriptors of a NvBlockSwComponentType
shall be configured with the NvMBlockUseSyncMechanism feature enabled, and
the NvMWriteRamBlockToNvCallback and NvMReadRamBlockFromNvCallback
parameters set to the Rte_GetMirror and Rte_SetMirror API of the NvBlock-
Descriptor.c()
An NvBlockSwComponentType may have unconnected p-ports or r-ports (see
[SWS_Rte_01329]).
The NvBlockSwComponentType can also have ports used for NV data management
and typed by Client-Server interfaces derived from the NVRAM Manager [21] stan-
dardized ones. Note that these ports shall always have a PortInterface with the
attribute isService set to FALSE. The definition of blueprints for these interfaces can
be found in document MOD_GeneralBlueprints [22] in the ARPackage AUTOSAR/N-
vBlockSoftwareComponentType/ClientServerInterfaces_Blueprint.
The standardized NvM Client-Server interfaces are composed as follows:
• NvMService
This interface is used to send commands to the NVM. The NvBlockSwCompo-
nentType provides a server port intended to be used by the SW-C users of this
NvBlockSwComponentType.
• NvMNotifyJobFinished
This interface is used by the NVM to notify the end of job. The NvBlockSwCom-
ponentType provides a server port intended to be used by the NVM, and client
AtomicSwComponentType
!
NvBlockSwComponentType
ARElement
AtpBlueprint
AtpBlueprintable
AtpType
PortInterface
+ isService: Boolean [0..1]
+ serviceKind: ServiceProviderEnum [0..1]
«atpVariation,atpSplitable»
+nvBlockDescriptor 0..* ClientServerInterface
AtpStructureElement
«atpVariation,atpSplitable» Identifiable
NvBlockDescriptor
+ supportDirtyFlag: Boolean [0..1]
«atpVariation»
" #
+operation 0..* $
AtpStructureElement
Identifiable
«atpVariation»
ClientServerOperation
+clientServerPort 0..* + diagArgIntegrity: Boolean [0..1]
RoleBasedPortAssignment
+operation 0..1
+ role: Identifier [0..1]
«instanceRef»
+internalBehavior 0..1
InternalBehavior AtpStructureElement
OperationInvokedEvent
SwcInternalBehavior ExecutableEntity
RunnableEntity
AbstractEvent
«atpVariation,atpSplitable» AtpStructureElement
+event
RTEEvent
«atpVariation,atpSplitable» *
+portAPIOption PortAPIOption
«atpVariation,atpSplitable» 0..*
0..*
+portArgValue {ordered}
PortDefinedArgumentValue
+portPrototype
AbstractProvidedPortPrototype AbstractRequiredPortPrototype
AtomicSwComponentType
NvBlockSwComponentType
PPortPrototype PRPortPrototype RPortPrototype
«isOfType»
«atpVariation,atpSplitable»
«isOfType»
+providedRequiredInterface
«isOfType»
+nvBlockDescriptor 0..*
+providedInterface
{redefines atpType}
{redefines atpType}
{redefines atpType}
+requiredInterface
AtpStructureElement
Identifiable
NvBlockDescriptor
+ supportDirtyFlag: Boolean [0..1]
0..1
0..1
0..1
«atpVariation» ARElement
AtpBlueprint
+clientServerPort 0..* AtpBlueprintable
AtpType
RoleBasedPortAssignment
PortInterface
+ role: Identifier [0..1]
+ isService: Boolean [0..1]
+ serviceKind: ServiceProviderEnum [0..1]
ClientServerInterface
«atpVariation»
+operation 0..*
AtpStructureElement
Identifiable
ClientServerOperation
The requests received from the SW-C side are forwarded by the NvBlockSwCompo-
nentType’s runnables to the NVM module, using the NVM C API indicated by the
RoleBasedPortAssignment. See figure 4.38.
Notifications received from the NVM are forwarded to all the SW-C connected to the no-
tification interfaces of the NvBlockSwComponentType with a RoleBasedPortAs-
signment of the corresponding type. See figure 4.39.
[SWS_Rte_07398] dThe RTE Generator shall implement runnables for each con-
nected server port of a NvBlockSwComponentType.c(SRS_Rte_00177)
[SWS_Rte_07399] dThe NvBlockSwComponentType’s runnables used as servers
connected to the SW-C shall forward the request to the NVM by calling the associated
NVM API.c(SRS_Rte_00177)
[SWS_Rte_04535] dThe return values of NvM APIs NvM_WriteBlock
and NvM_SetRAMBlockStatus (See requirements [SWS_Rte_08080],
[SWS_Rte_08081], [SWS_Rte_08082], [SWS_Rte_08083], [SWS_Rte_08084],
[SWS_Rte_08085]) called by the RTE shall be ignored.c(SRS_Rte_00177)
[SWS_Rte_08064] dThe symbol attribute of RunnableEntitys triggered by an Op-
erationInvokedEvent of NvBlockSwComponentTypes shall be used by the RTE
generator to identify the to be called NvM API function (see [constr_1234] in software
component template [2]).c(SRS_Rte_00177)
The NvBlockSwComponentType may define PortDefinedArgumentValues to
provide the BlockId value in case the NvBlockSwComponentType defines server
ports for the call of NvM services. Till R4.2 this was the only possibility to provide
the BlockId value. But these values are not mandatory any longer and are super-
seded by the configuration of RteNvRamAllocation, see [SWS_Rte_06211] and
[SWS_Rte_06212].
[SWS_Rte_06211] dThe RTE generator shall determine the appropriate BlockId
value for the invocation of NvM API functions from the parameter of the NvMBlock-
Descriptor which is mapped via RteNvRamAllocation.RteNvmBlockRef to the
according NvBlockDescriptor.c(SRS_Rte_00177)
Please note: Thereby the relationship of an invocation to a specific NvBlockDe-
scriptor can be determined by following ways:
• NvBlockDescriptor.timingEvent for the cyclic invocation
• NvBlockDescriptor.clientServerPort where attribute role has the value
NvMService or NvMAdmin. In this case all OperationInvokedEvents ref-
erencing an operation in such a PPortPrototype are belonging to the
NvBlockDescriptor.
• VariableDataPrototype instances in AbstractProvidedPortPrototype
mapped to the NvBlockDescriptor.ramBlock via an NvBlockDataMap-
ping. In this case all DataReceivedEvents referencing those Variable-
DataPrototype instances are belonging to the NvBlockDescriptor.
• NvBlockDescriptor.modeSwitchEventTriggeredActivity for the mode
switch based invocation.
[SWS_Rte_06212] dThe RTE generator shall ignore the given PortAPIOp-
tion with PortDefinedArgumentValue applied to a PPortPrototype of a
NvBlockSwComponentType when the BlockId value is determined according
[SWS_Rte_06211].c(SRS_Rte_00177)
Besides forwarding requests from the SW-C side to the NVM module via NvM ser-
vice ports, the NvBlockSwComponentType also supports the dirty flag mechanism
mentioned in chapter 4.2.10.3.1. In order to realize the behavior of the dirty flag mech-
anism the RTE implements RunnableEntitys for each NvBlockDescriptor that
can be triggered by RTEEvents. Depending on the writing strategy different kind of
RTEEvents will be used for triggering the RunnableEntitys.
The configuration of the NvBlockSwComponentType (i.e. defining RTEEvents for
triggering the RunnableEntitys for the NvBlockDescriptors and mapping of
RTEEvents to tasks) is usually not in the responsibility of the SW-C developer. For
this reason the SW-C developer can provide the required writing strategy in the Swc-
ServiceDependency.serviceNeeds by using the attributes storeAtShutdown,
storeCyclic, cyclicWritingPeriod, storeEmergency and storeImmediate
(for more details see Software Component Template [2]).
[SWS_Rte_08086] dThe RTE generator shall implement RunnableEntitys for each
NvBlockDescriptor of an NvBlockSwComponentType with the attribute sup-
portDirtyFlag set to true.c(SRS_Rte_00177, SRS_Rte_00245)
[SWS_Rte_08087] dA RunnableEntity of an NvBlockDescriptor shall be ac-
tivated by a TimingEvent if the storeCyclic writing strategy is enabled (See
[SWS_Rte_04565]).c(SRS_Rte_00177, SRS_Rte_00245)
[SWS_Rte_08088] dA RunnableEntity of an NvBlockDescriptor shall be acti-
vated by a DataReceivedEvent if the storeAtShutdown or storeImmediate is enabled
(See [SWS_Rte_04566], [SWS_Rte_04567]).c(SRS_Rte_00177, SRS_Rte_00245)
[SWS_Rte_08111] dA RunnableEntity of an NvBlockDescriptor shall be acti-
vated by a SwcModeSwitchEvent if the mode switch writing strategy has been en-
abled (See [SWS_Rte_04568]) .c(SRS_Rte_00177, SRS_Rte_00245)
[SWS_Rte_08089] dFor NvBlockDescriptors which need to combine several
writing strategies (See [SWS_Rte_04565], [SWS_Rte_04566], [SWS_Rte_04567]),
the RunnableEntity of the NvBlockDescriptor shall be activated by one
TimingEvent or DataReceivedEvent per writing strategy according to the re-
quirements [SWS_Rte_08087] and [SWS_Rte_08088].c(SRS_Rte_00177, SRS_Rte_-
00245)
[SWS_Rte_08090] dIf no RteEventToTaskMapping is defined for DataRe-
ceivedEvents or SwcModeSwitchEvents which are responsible for activat-
ing RunnableEntitys of NvBlockDescriptors (see [SWS_Rte_08087] and
[SWS_Rte_08088]), the according activities shall be processed in the RTE code is-
suing the DataReceivedEvents or SwcModeSwitchEvents. For explicit communi-
cation this shall be done in the related Rte_Write function and for implicit commu-
nication in the task bodies where the preemption buffers are handled. For SwcMod-
eSwitchEvents using asynchronous mode switch procedure, this shall be done in
the related Rte_Switch function.
Note: For SwcModeSwitchEvents a direct-call requires an asynchronous mode
switch.
c(SRS_Rte_00177, SRS_Rte_00245)
[SWS_Rte_07192] dThe RTE generator shall reject the configuration when an r-port
is connected to an r-port or a p-port is connected to a p-port with an Assem-
blySwConnectorc(SRS_Rte_00018)
For example, a require port (r-port) of a component typed by an AUTOSAR sender-
receiver interface can read data elements of this interface. A provide port (p-port) of
a component typed by an AUTOSAR sender-receiver interface can write data elements
of this interface.
[SWS_Rte_07006] dThe RTE generator shall reject the configuration violating the [con-
str_1032], so when an r-port is connected to a p-port or a p-port is connected
to an r-port with a DelegationSwConnector.c(SRS_Rte_00018)
[SWS_Rte_08767] dIn case of functionality depending on attributes of ComSpecs the
RTE Generator shall consider only the ComSpecs defined in the context of Atomic-
SwComponentTypes or ParameterSwComponentTypes.c(SRS_Rte_00018)
4.3.1 Sender-Receiver
4.3.1.1 Introduction
The RTE supports multiple receive modes for passing data to receivers. The four
possible receive modes are:
• “Implicit data read access” – when the receiver’s runnable executes it shall
have access to a “copy” of the data that remains unchanged during the execution
of the runnable.
[SWS_Rte_06000] dFor data elements specified with implicit data read access,
the RTE shall make the receive data available to the runnable through the se-
mantics of a copy.c(SRS_Rte_00128, SRS_Rte_00019)
[SWS_Rte_06001] dFor data elements specified with implicit data read access
the receive data shall not change during execution of the runnable.c(SRS_Rte_-
00128)
When “implicit data read access” is used the RTE is required to make the data
available as a “copy”. It is not necessarily required to use a unique copy for each
runnable. Thus the RTE may use a unique copy of the data for each runnable
entity or may, if several runnables (even from different components) need the
same data, share the same copy between runnables. Runnable entities can only
share a copy of the same data when the scheduling structure can make sure the
contents of the data is protected from modification by any other party.
[SWS_Rte_06004] dThe RTE shall read the data elements specified with implicit
data read access before the associated runnable entity is invoked.c(SRS_Rte_-
00128)
Composite data types shall be handled in the same way as primitive data types,
i.e. RTE shall make a “copy” available for the RunnableEntity.
[SWS_Rte_06003] dThe “implicit data read access” receive mode shall be valid
for all categories of runnable entity (i.e. 1A, 1B and 2).c(SRS_Rte_00134)
• “Explicit data read access” – the RTE generator creates a non-blocking API
call to enable a receiver to poll (and read) data. This receive mode is an “explicit”
mode since an explicit API call is invoked by the receiver.
The explicit “data read access” receive mode is only valid for category 1B or 2
runnable entities [SRS_Rte_00134].
• “wake up of wait point” – the RTE generator creates a blocking API call that the
receiver invokes to read data.
[SWS_Rte_06002] dThe “wake up of wait point” receive mode shall support a
time-out to prevent infinite blocking if no data is available.c(SRS_Rte_00109,
SRS_Rte_00069)
The “wake up of wait point” receive mode is inherently only valid for a category 2
runnable entity.
A category 2 runnable entity is required since the implementation may need to
suspend execution of the caller if no data is available.
• “activation of runnable entity” – the receiving runnable entity is invoked auto-
matically by the RTE whenever new data is available. To access the new data,
the runnable entity either has to use “implicit data read access” or “explicit data
read access”, i.e. invoke an Rte_IRead, Rte_Read, Rte_DRead or Rte_Re-
ceive call, depending on the input configuration. This receive mode differs from
“implicit data read access” since the receiver is invoked by the RTE in response
to a DataReceivedEvent.
[SWS_Rte_06007] dThe “activation of runnable entity” receive mode shall be
valid for category 1A, 1B and 2 runnable entities.c(SRS_Rte_00134)
The validity of receive modes in conjunction with different categories of runnable entity
is summarized in Table 4.16.
The category of a runnable entity is not an inherent property but is instead determined
by the features of the runnable. Thus the presence of explicit API calls makes the
runnable at least category 1B and the presence of a WaitPoint forces the runnable
to be category 2.
4.3.1.2.1 Applicability
The different receive modes are not just used for receivers in sender-receiver commu-
nication. The same semantics are also applied in the following situations:
• Success feedback – The mechanism used to return transmission acknowledg-
ments to a component. See Section 5.2.6.9.
• Asynchronous client-server result – The mechanism used to return the result
of an asynchronous client-server call to a component. See Section 5.7.5.4.
The following list serves as a reference for how the RTE Generator determines the
Receive Mode from its input [SRS_Rte_00109]. Note that references to “the Vari-
ableDataPrototype” within this sub-section will implicitly mean “the Variable-
DataPrototype for which the API is being generated”.
• “wake up of wait point” – A VariableAccess in the dataReceivePointBy-
Value or dataReceivePointByArgument role references a VariableDat-
aPrototype and a WaitPoint references a DataReceivedEvent which in
turn references the same VariableDataPrototype.
• “activation of runnable entity” – a DataReceivedEvent references the Vari-
ableDataPrototype and a runnable entity to start when the data is received.
• “explicit data read access” – A VariableAccess in the dataReceive-
PointByValue or dataReceivePointByArgument role references the
VariableDataPrototype.
• “implicit data read access” – A VariableAccess in the dataReadAccess
role references the VariableDataPrototype.
A sender-receiver interface can contain one or more data elements. The transmission
and reception of elements is independent – each data element, e.g. AUTOSAR signal,
can be considered to form a separate logical data channel between the “provide” port
and a “require” port.
[SWS_Rte_06008] dEach data element in a sender-receiver interface shall be sent
separately.c(SRS_Rte_00089)
Example 4.5
Consider an interface that has two data elements, speed and freq and that a compo-
nent template defines a provide port that is typed by the interface. The RTE generator
will then create two API calls; one to transmit speed and another to transmit freq.
Where it is important that multiple data elements are sent simultaneously they should
be combined into a composite data structure (Section 4.3.1.11.1). The sender then
creates an instance of the data structure which is filled with the required data before
the RTE is invoked to transmit the data.
[SWS_Rte_06009] dFor each data element in an interface specified with data se-
mantics, the RTE shall support the initValue attribute.c(SRS_Rte_00108)
The initValue attribute is used to ensure that AUTOSAR software-components al-
ways access valid data even if no value has yet been received. This information is re-
quired for inter-ECU, inter-Partition, and intra-Partition communication. For inter-ECU
communication initial values can be handled by COM but for intra-ECU communication
RTE has to guarantee that initValue is handled.
In general, the specification of an initValue is mandatory for each data element
prototype with data semantics, see [SWS_Rte_07642]. If all senders and receivers
are located in the same partition, this restriction is relaxed, see [SWS_Rte_04501].
[SWS_Rte_06010] dThe RTE shall use any specified initial value to prevent the
receiver performing calculations based on invalid (i.e. uninitialized) values when
the swImplPolicy is not queued and if the general initialization conditions in
[SWS_Rte_07046] are fulfilled.c(SRS_Rte_00107)
The above requirement ensures that RTE API calls return the initialized value until a
“real” value has been received, possibly via the communication service. The require-
ment does not apply when “event” semantics are used since the implied state change
when the event data is received will mean that the receiver will not start to process
invalid data and would therefore never see the initialized value.
[SWS_Rte_04500] dAn initial value cannot be specified when the implementation pol-
icy is set to ’queued’ attribute is specified as true.c(SRS_Rte_00107)
For senders, an initial value is not used directly by the RTE (since an AUTOSAR SW-C
must supply a value using Rte_Send) however it may be needed to configure the com-
munication service - for example, an un-initialised signal can be transmitted if multiple
signals are mapped to a single frame and the communication service transmits the
whole frame when any contained signal is sent by the application. Note that it is not
the responsibility of the RTE generator to configure the communication service.
It is permitted for an initial value to be specified for either the sender or receiver. In this
case the same value is used for both sides of the communication.
[SWS_Rte_04501] dIf in context of one partition a sender specifies an initial value and
the receiver does not (or vice versa) the same initial value is used for both sides of the
communication.c(SRS_Rte_00108)
Please note: In case [SWS_Rte_04501] combined with data conversion (section 4.3.7)
applies the init value for the receiver needs to be converted from the sender’s repre-
sentation.
It is also permitted for both sender and receiver to specify an initial value. In this case
it is defined that the receiver’s initial value is used by the RTE generator for both sides
of the communication.
[SWS_Rte_04502] dIf in context of one partition both receiver and sender specify an
initial value the specification for the receiver takes priority.c(SRS_Rte_00108)
and B that both transmit data to the same receiver (i.e. ’n:1’ communication). Trans-
missions by either sender can be made at any time and there is no requirement that
the senders co-ordinate their transmission. However, while the RTE does not impose
any co-ordination on the senders it does ensure that simultaneous transmissions do
not conflict.
In the same way that the RTE does not impose any co-ordination on senders there is no
co-ordination imposed on receivers. For example, consider two receivers P and Q that
both receive the same data transmitted by a single sender (i.e. ’1:m’ communication).
The RTE does not guarantee that multiple receivers see the data simultaneously even
when all receivers are on the same ECU.
[SWS_Rte_06011] dThe RTE shall support ’explicit’ and ’implicit’ data reception
and transmission.c(SRS_Rte_00019, SRS_Rte_00098, SRS_Rte_00129, SRS_Rte_-
00128, SRS_Rte_00141)
Implicit data access transmission means that a runnable does not actively initiate the
reception or transmission of data. Instead, the required data is received automatically
when the runnable starts and is made available for other runnables at the earliest when
it terminates.
Explicit data reception and transmission means that a runnable employs an explicit
API call to send or receive certain data elements. Depending on the category of the
runnable and on the configuration of the according ports, these API calls can be either
blocking or non-blocking.
4.3.1.5.1 Implicit
Implicit Read
For the implicit reading of data, VariableAccesses aggregated with a dataReadAc-
cess role [SRS_Rte_00128], the data is made available when the runnable starts us-
ing the semantics of a copy operation and the RTE ensures that the ’copy’ will
not be modified until the runnable terminates.
If data transformation shall be executed for this data element, the data transformation
takes place after reception of the data from the Com stack and before start of the
runnable execution. (See [SWS_Rte_08570], [SWS_Rte_08108])
When a runnable R is started, the RTE reads all VariableDataPrototypes refer-
enced by a VariableAccess in the dataReadAccess role, if the data elements may
be changed by other runnables a copy is created that will be available to runnable R.
The runnable R can read the data element by using the RTE APIs for implicit read
(see the API description in Section 5.6.18). That way, the data is guaranteed not to
change (e.g. by write operations of other runnables) during the entire lifetime of R. If
several runnables (even from different components) need the data, they can share the
same buffer. This is only applicable when the scheduling structure can make sure the
contents of the data is protected from modification by any other party.
Note that this concept implies that the runnable does in fact terminate. Therefore, while
implicit read is allowed for category 1A and 1B runnable entities as well as category 2
only the former are guaranteed to have a finite execution time. A category 2 runnable
that runs forever will not see any updated data.
VariableAccess in the dataReadAccess role is only allowed for VariableDat-
aPrototypes with their swImplPolicy different from ’queued’ ([constr_2020]).
Implicit Write
Implicit writing, VariableAccesses aggregated with a dataWriteAccess role
[SRS_Rte_00129], is the opposite concept. VariableDataPrototypes referenced
by a VariableAccess in the dataWriteAccess role are sent by the RTE after the
runnable terminates. The runnable can write the data element by using the RTE APIs
for implicit write (see the API description in Sect. 5.6.20 and 5.6.21). The sending is
independent from the position in the execution flow in which the Rte_IWrite is per-
formed inside the Runnable. When performing several write accesses during runnable
execution to the same data element, only the last one will be recognized. Here we
have a last-is-best semantics.
If data transformation shall be executed for this data element, the data transformation
takes place after termination of the runnable and before sending the data to the Com
stack. (See [SWS_Rte_08571], [SWS_Rte_08109])
[SWS_Rte_08418] dThe content of a preemption area specific buffer which is used
exclusively for an implicit write access to a VariableDataPrototype shall
be initialized by the generated RTE with a copy of the global buffer between the begin-
ning of the task and the execution of the first RunnableEntity with access to this
VariableDataPrototype in the task/ISR2.c(SRS_Rte_00129)
Note:
[SWS_Rte_08418] ensures that no undefined values are written back to a preemp-
tion area specific buffer at runnable termination if a VariableDataPrototype is
referenced by a VariableAccess in the dataWriteAccess role and no RTE API
for implicit write of this VariableDataPrototype is called during an execution of the
Runnable. For the first entry to the preemption area the "global buffer" will contain
the initValue of the VariableDataPrototype (if no initValue is configured
then the value will depend on the initialization strategy of the startup code). For sec-
ond and subsequent entries the "global buffer" will contain the previously written value
(if any).
[SWS_Rte_03570] dFor VariableAccesses in the dataWriteAccess role the RTE
shall make the sent data available to others (other runnables, other AUTOSAR SWCs,
Basic SW, ..) with the semantics of a copy.c(SRS_Rte_00129)
Note:
It’s the semantic of implicit communication that a VariableAccess in the
dataWriteAccess role is interpreted as writing the whole dataElement.
Explicit Schedule Points defined by RteOsSchedulePoints are placed between
RunnableEntitys after the data written with implicit write access by the
RunnableEntity are propagated to other RunnableEntitys and before the
preemption area specific buffer used for a implicit read access of the suc-
cessor RunnableEntity are filled with actual data by a copy action according
[SWS_Rte_07020]. This ensures that the data produced by one RunnableEntity
is propagated before RunnableEntitys assigned to other Os Tasks/ISR2s are ac-
tivated due to Task scheduling caused by the explicit Schedule Point. See as well
[SWS_Rte_07042] and [SWS_Rte_07043].
The requirements regarding buffer handling for implicit communication do not apply in
case of filters. Buffer handling of RTE for filters is specified in chapter 4.3.1.9 (require-
ments: [SWS_Rte_08077] and [SWS_Rte_08079]).
Implicit Communication buffer handling for coherent implicit data access
[SWS_Rte_07063] dThe content of a coherency group specific buffer used for an
coherent implicit read access to one or more data elements shall be filled
with actual data by a copy action between the beginning of the task and the execution
of the first RunnableEntity in the task/ISR2 with a coherent implicit read
access belonging to the coherency group.c(SRS_Rte_00128)
[SWS_Rte_07064] dIf the RteImmediateBufferUpdate = TRUE is configured for
coherent implicit read accesses the content of a coherency group spe-
cific buffer used for these VariableAccesses shall be filled with actual data by a
copy action immediately before the first RunnableEntity in the task/ISR2 with a
coherent implicit read access belonging to the coherency group starts.c
(SRS_Rte_00128)
[SWS_Rte_07065] dThe content of a separate write buffer (see [SWS_Rte_03955])
modified by a coherent implicit write access of a RunnableEntity shall
be made available to RunnableEntitys using a coherent implicit read ac-
cess belonging to the same coherency group immediately after the execution of the
RunnableEntity with the related coherent implicit write access.c(SRS_-
Rte_00129)
[SWS_Rte_07066] dThe content of a coherency group specific buffer modified by
coherent implicit write accesses in one task/ISR2 shall be made available
to other RunnableEntitys at earliest after the execution of the last RunnableEn-
tity with a coherent implicit write access belonging to this coherency
group.c(SRS_Rte_00129)
[SWS_Rte_07067] dThe content of a coherency group specific buffer modified by
coherent implicit write accesses in one task/ISR2 shall be made available
to other RunnableEntitys at latest after the execution of the last RunnableEntity
mapped to the task/ISR2.c(SRS_Rte_00129)
Example 4.6
Example 4.7
RteImplicitCommunication "CN_BC_B":
• RteVariableReadAccessRef referencing "DRP_ASWC_B_RUN1_B_B"
• RteVariableReadAccessRef referencing "DRP_ASWC_C_RUN1_B_B"
• RteCoherentAccess = true
"ASWC_B_RUN1_A_A" and "ASWC_C_RUN1_A_A" as well as "ASWC_B_RUN1_B_B"
and "ASWC_C_RUN1_B_B" are in the same coherency group. Therefore the read
data values for "A" and "B" are from the same age in one execution of OsTask
T100MS for ASWC_B_RUN1 and ASWC_C_RUN1.
Please note, since it is not requested that data "A" and "B" are communicated coher-
ently the setup of RteImplicitCommunication for "A" and "B" can be handled
independently from each other. In particular if there a further RunnableEntitys with
dataReadAccesses to "A" or "B" mapped to the OsTask T100MS the buffers for
"A" and "B" can be loaded at different points in the execution sequence. Further on
it is not requested that "A" and "B" is produced in the same recurrence as it is show
in this example.
Example 4.8
4.3.1.5.2 Explicit
The behavior of explicit reception depends on the category of the runnable and on the
configuration of the according ports.
An explicit API call can be either non-blocking or blocking. If the call is non-blocking
(i.e. there is a VariableAccess in the dataReceivePointByValue or dataRe-
ceivePointByArgument role referencing the VariableDataPrototype for which
the API is being generated, but no WaitPoint referencing a DataReceivedEvent
which references the VariableDataPrototype for which the API is being gener-
ated), the API call immediately returns the next value to be read and, if the communi-
cation is queued (event reception), it removes the data from the receiver-side queue,
see Section 4.3.1.10
[SWS_Rte_06012] dA non-blocking RTE API “read” call shall indicate if no data is
available.c(SRS_Rte_00109)
In contrast, a blocking call (i.e. the VariableDataPrototype, referenced by a
VariableAccess in the role dataReceivePointByArgument, and for which the
API is being generated, is referenced by a DataReceivedEvent which is itself refer-
enced by a WaitPoint) will suspend execution of the caller until new data arrives (or
a timeout occurs) at the according port. When new data is received, the RTE resumes
the execution of the waiting runnable. ([SRS_Rte_00092])
To prevent infinite waiting, a blocking RTE API call can have a timeout applied. The RTE
monitors the timeout and if it expires without data being received returns a particular
error status.
[SWS_Rte_06013] dA blocking RTE API “read” call shall indicate the expiry of a time-
out.c(SRS_Rte_00069)
The “timeout expired” indication also indicates that no data was received before the
timeout expired.
Blocking reception of data (“wake up of wait point” receive mode as described in Sec-
tion 4.3.1.2) is only applicable for category 2 runnables whereas non-blocking reception
(“explicit data read access” receive mode) can be employed by runnables of category
2 or 1B. Neither blocking nor non-blocking explicit reception is applicable for category
1A runnable because they must not invoke functions with unknown execution time (see
table 4.16).
[SWS_Rte_06016] dThe RTE API call for explicit sending (VariableAccessin the
dataSendPoint role, [SRS_Rte_00098]) shall be non-blocking.c(SRS_Rte_00098)
Using this API call, the runnable can explicitly send new values of the VariableDat-
aPrototype.
Explicit writing is valid for runnables of category 1b and 2 only. Explicit writing is not al-
lowed for a category 1A runnable since these require API calls with constant execution
time (i.e. macros).
Although the API call for explicit sending is non-blocking, it is possible for a cate-
gory 2 runnable to block waiting for a notification whether the (explicit) send oper-
ation was successful. This is specified by the AcknowledgementRequest attribute
and occurs by a separate API call Rte_Feedback. If the feedback method is
’wake_up_of_wait_point’, the runnable will block and be resumed by the RTE either
when a positive or negative acknowledgment arrives or when the timeout associated
with the WaitPoint expires.
Tables 4.17 and 4.18 summarize the characteristics of implicit versus explicit data re-
ception and transmission.
Implicit Read Explicit Read
Receiving of data element values is Runnable decides when and how often
performed only once when runnable a data element value is received
starts
Values of data elements do not change Runnable can always decide to receive
while runnable is running. the latest value
Several API calls to the same signal Several API calls to the same signal
always yield the same data element may yield different data element values
value
Runnable must terminate (all cate- Runnable is of cat. 1B or 2
gories)
The time-out support (called “deadline monitoring” in COM) provided by COM has
some restrictions which have to be respected when using this mechanism. Since the
COM module is configured based on the System Description the restrictions mainly
arise from the data element to I-PDU mapping. This already has to be considered
when developing the System Description and the RTE Generator can only provide
warnings when inconsistencies are detected. Therefore the RTE Generator needs to
have access to the configuration information of COM.
In case time-out is enabled on a data element with update bit, there shall be a sep-
arate time-out monitoring for each data element with an update bit [SWS_Com_-
00292].
There shall be an I-PDU based time-out for data elements without an update bit
[SWS_Com_00290]. For all data elements without update bits within the same I-PDU,
the smallest configured time-out of the associated data elements is chosen as time-out
for the I-PDU [SWS_Com_00291]. The notification from COM to RTE is performed per
data element.
In case one data element coming from COM needs to be distributed to several
AUTOSAR software-components the AUTOSAR Software Component Template allows
to configure different aliveTimeout values at each Port. In this case the RTE has to
ensure that the time-out notifications for each port will occur according to the configured
aliveTimeout value in the NonqueuedReceiverComSpec.
[SWS_Rte_08103] dThe RTE shall pass time-out notifications to the SW-Cs accord-
ing to the configured aliveTimeout values in the NonqueuedReceiverComSpec.
Depending on the configuration of the COM module following rules shall apply:
• ComSignal.ComTimeout/ComSignalGroup.ComTimeout configured to 0: No
time-out notifications shall occur.
• ComSignal.ComTimeout/ComSignalGroup.ComTimeout not configured to 0
(ComSignals/ComSignalGroups with update bits): Time-out notifications shall
occur according to the greatest multiple of the ComSignal.ComTimeout/Com-
SignalGroup.ComTimeout value of the associated ComSignal/ComSignal-
Group lower than or equal to the aliveTimeout value in the Nonqueue-
dReceiverComSpec.
• I-PDU based time-out not equal to 0 (ComSignals/ComSignalGroups without
update bits): Time-out notifications shall occur according to the greatest multiple
of the I-PDU based time-out value lower than or equal to the aliveTimeout
value in the NonqueuedReceiverComSpec.
c(SRS_Rte_00147)
Following example illustrates how the value of the ComTimeout parameter of a Com-
Signal is derived and the time-out monitoring in RTE is performed in case one data
element coming from COM needs to be distributed to several SW-Cs.
Consider 3 SW-Cs receiving same data element with different aliveTimeout values
specified in the NonqueuedReceiverComSpec:
The Software Component template allows to specify whether a data element, de-
fined in an AUTOSAR Interface, can be invalidated by the sender. The communication
infrastructure shall provide means to set a data element to invalid and also indicate an
invalid data element to the receiving software components. This functionality is called
“data element invalidation”. For an overview see figure 4.46.
[SWS_Rte_05024] dIf the handleInvalid attribute of the InvalidationPolicy
(when present) is set to keep, replace or externalReplacement the invalidation
support for this dataElement is enabled on sender side. The actual value used to
represent the invalid data element shall be specified in the Data Semantics part of the
data element definition defined in invalidValue6 .c(SRS_Rte_00078)
For data element invalidation, it is intended that the Rte_Invalidate() API is used
by the software component. Nevertheless, passing the invalid value as a parameter
of the Rte_Write() API may intentionally occur. In this case, the handleInvalid
is only allowed to be set to the value dontInvalidate in order to avoid undesired
behaviour and additional effort in the RTE implementation (see [TPS_SWCT_01646]
and [constr_1390]).
[SWS_Rte_05032] dOn receiver side the handleInvalid attribute of the associated
InvalidationPolicy specifies how to handle the reception of the invalid value.c
(SRS_Rte_00078)
Data element invalidation is only supported for data elements with a swIm-
plPolicy different from ’queued’. Configurations violating this constraint are rejected
by the RTE generator, see [SWS_Rte_06727].
[SWS_Rte_06727] dThe RTE generator shall reject configurations which are violating
[constr_1219].c(SRS_Rte_00078)
The API to set a dataElement to invalid shall be provided to the RunnableEntitys
on data element level.
In case an invalidated data element is received a software component can be notified
using the activation of runnable entity. If an invalidated data element is read by the
SW-C the invalid status shall be indicated in the status code of the API.
[SWS_Rte_08005] dIf the initValue of an unqueued data element equals the
invalidValue and handleInvalid is set to keep and the handleNever-
Received is set to FALSE, the RTE APIs Rte_Read() and Rte_IStatus()
shall return RTE_E_INVALID until first reception of data element. In this case the
APIs Rte_Read() and Rte_IRead() shall provide the invalidValue.c(SRS_Rte_-
00078, SRS_Rte_00184)
[SWS_Rte_08008] dIf the initValue of an unqueued data element equals the
invalidValue and handleInvalid is set to keep and the handleNever-
Received is not defined, the RTE APIs Rte_Read() and Rte_IStatus() shall
return RTE_E_INVALID until first reception of data element. In this case the APIs
Rte_Read() and Rte_IRead() shall provide the invalidValue.c(SRS_Rte_-
00078, SRS_Rte_00184)
[SWS_Rte_08009] dIf the initValue of an unqueued data element equals the in-
validValue and handleInvalid is set to keep and the handleNeverReceived
is set to TRUE, the RTE APIs Rte_Read() and Rte_IStatus() shall return
RTE_E_NEVER_RECEIVED until first reception of data element. In this case the APIs
Rte_Read() and Rte_IRead() shall provide the initValue.c(SRS_Rte_00078,
SRS_Rte_00184)
6
When InvalidationPolicy is set to keep, replace or externalReplacement but there is
no invalidValue specified it is considered as an invalid configuration.
[SWS_Rte_08007] dThe RTE Generator shall reject configurations in which the init-
Value of an unqueued data element equals the invalidValue and handleIn-
valid is set to replace.c(SRS_Rte_00078)
[SWS_Rte_08046] dIf the initValue of an unqueued data element equals the in-
validValue and handleInvalid is set to dontInvalidate and the handleN-
everReceived is set to FALSE, the RTE APIs Rte_Read() and Rte_IStatus()
shall return RTE_E_OK until first reception of data element. In this case the APIs
Rte_Read() and Rte_IRead() shall provide the initValue.c(SRS_Rte_00078,
SRS_Rte_00184)
[SWS_Rte_08047] dIf the initValue of an unqueued data element equals the in-
validValue and handleInvalid is set to dontInvalidate and the handleN-
everReceived is not defined, the RTE APIs Rte_Read() and Rte_IStatus()
shall return RTE_E_OK until first reception of data element. In this case the APIs
Rte_Read() and Rte_IRead() shall provide the initValue.c(SRS_Rte_00078,
SRS_Rte_00184)
[SWS_Rte_08048] dIf the initValue of an unqueued data element equals the in-
validValue and handleInvalid is set to dontInvalidate and the handleNev-
erReceived is set to TRUE, the RTE APIs Rte_Read() and Rte_IStatus() shall
return RTE_E_NEVER_RECEIVED until first reception of data element. In this case
the APIs Rte_Read() and Rte_IRead() shall provide the initValue.c(SRS_Rte_-
00078, SRS_Rte_00184)
[SWS_Rte_08096] dIf the initValue of an unqueued data element equals the
invalidValue and handleInvalid is set to externalReplacement and
the handleNeverReceived is set to FALSE, the RTE APIs Rte_Read() and
Rte_IStatus() shall return RTE_E_OK until first reception of data element. In this
case the APIs Rte_Read() and Rte_IRead() shall provide the value sourced from
the ReceiverComSpec.replaceWith.c(SRS_Rte_00078, SRS_Rte_00184)
[SWS_Rte_08097] dIf the initValue of an unqueued data element equals the
invalidValue and handleInvalid is set to externalReplacement and
the handleNeverReceived is not defined, the RTE APIs Rte_Read() and
Rte_IStatus() shall return RTE_E_OK until first reception of data element. In this
case the APIs Rte_Read() and Rte_IRead() shall provide the value sourced from
the ReceiverComSpec.replaceWith.c(SRS_Rte_00078, SRS_Rte_00184)
[SWS_Rte_08098] dIf the initValue of an unqueued data element equals the
invalidValue and handleInvalid is set to externalReplacement and
the handleNeverReceived is set to TRUE, the RTE APIs Rte_Read() and
Rte_IStatus() shall return RTE_E_NEVER_RECEIVED until first reception of data
element. In this case the APIs Rte_Read() and Rte_IRead() shall provide the value
sourced from the ReceiverComSpec.replaceWith.c(SRS_Rte_00078, SRS_Rte_-
00184)
Sender:
If data element invalidation is enabled and the communication is Inter-ECU:
• explicit data transmission:
– data transformation for this communication enabled: data element invalida-
tion will be performed by RTE.
– no data transformation enabled: data element invalidation will be performed
by COM (COM needs to be configured properly).
• implicit data transmission: the RTE is responsible for flagging the implicit buffer
in the case of invalidation. An implicit valid transmission may occur before the
write back at the end of the task, resetting the invalidation flag. The actual data
element invalidation after runnable termination is done in COM.
Receiver:
If data element invalidation is enabled and the communication is Inter-ECU
and:
• if all receiving software components requesting the same value for handleIn-
valid attribute of the InvalidationPolicy associated to one dataElement
and no data transformation is configured for the communication:
data element invalidation will be performed by COM (COM needs to be config-
ured properly), see [SWS_Rte_05026], [SWS_Rte_05048].
• if the receiving software components requesting different values for handleIn-
valid attribute of the InvalidationPolicy associated to one dataElement
or data transformation is configured for the communication:
data element invalidation will be performed by RTE, see [SWS_Rte_07031],
[SWS_Rte_07032]. This can occur in case of 1:n communication where for one
connector a VariableAndParameterInterfaceMapping is applied to two
SenderReceiverInterfaces with different InvalidationPolicys for the
mapped VariableDataPrototype.
[SWS_Rte_05026] dIf a data element has been received invalidated in case of Inter-
ECU communication and the attribute handleInvalid is set to keep for all receiving
software components and no data transformation is configured for the communication
– the query of the value shall return the value provided by COM together with an indi-
cation of the invalid case.c(SRS_Rte_00078)
[SWS_Rte_08405] dIn case of Inter-ECU communication with the attribute handleIn-
valid set to keep for all receiving software components, the RTE shall raise a
DataReceiveErrorEvent in case of reception of a data element invalid.c(SRS_-
Rte_00078)
[SWS_Rte_05048] dIf a data element has been received invalidated in case of Inter-
ECU communication and the attribute handleInvalid is set to replace for all re-
ceiving software components – the query of the value shall return the initValue (
ComDataInvalidAction is REPLACE [SWS_Com_00314]).c(SRS_Rte_00078)
[SWS_Rte_08406] dIn case of Inter-ECU communication with the attribute handleIn-
valid set to replace for all receiving software components, in case of reception of
a data element invalid, the RTE shall raise a DataReceivedEvent as if a valid value
would have been received.c(SRS_Rte_00078)
[SWS_Rte_07031] dIf a data element has been invalidated in case of Inter-ECU com-
munication where receiving software components requesting different values for han-
dleInvalid and the attribute handleInvalid is set to keep for a particular r-port
– the query of the value shall return for the r-port the same value as if COM would
have handled the invalidation (copy COM behavior).c(SRS_Rte_00078)
[SWS_Rte_08407] dIn case of Inter-ECU communication where receiving software
components requesting different values for the attribute handleInvalid and this at-
tribute is set to keep for a particular R-Port, in case of reception of a data element
invalid, the RTE shall raise a DataReceiveErrorEvent.c(SRS_Rte_00078)
[SWS_Rte_07032] dIf a data element has been received invalidated in case of Inter-
ECU communication where receiving software components requesting different val-
ues for handleInvalid and the attribute handleInvalid is set to replace for an
particular r-port – RTE shall perform the "invalid value substitution" with the init-
Value for the r-port. Then the reception will be handled as if a valid value would
have been received (activation of runnable entities using the DataReceivedEvent).c
(SRS_Rte_00078)
[SWS_Rte_08049] dIf a data element has been received invalidated in case of Inter-
ECU communication and the attribute handleInvalid is set to dontInvalidate –
the query of the value shall return the value provided by COM. Then the reception will
be handled as if a valid value would have been received (activation of runnable entities
using the DataReceivedEvent).c(SRS_Rte_00078)
[SWS_Rte_08099] dIf a data element has been received invalidated in case of Inter-
ECU communication and the attribute handleInvalid is set to externalReplace-
ment for all receiving software components – the query of the value shall return the
value sourced from the ReceiverComSpec.replaceWith (e.g. constant, NVRAM
parameter).c(SRS_Rte_00078)
[SWS_Rte_08100] dIn case of Inter-ECU communication with the attribute handleIn-
valid set to externalReplacement for all receiving software components, in case
of reception of a data element invalid, the RTE shall raise a DataReceivedEvent as
if a valid value would have been received.c(SRS_Rte_00078)
[SWS_Rte_08101] dIf a data element has been received invalidated in case of Inter-
ECU communication where receiving software components requesting different values
for handleInvalid and the attribute handleInvalid is set to externalReplace-
ment for an particular r-port – RTE shall perform the "invalid value substitution" with
the value sourced from the ReceiverComSpec.replaceWith for the r-port. Then
the reception will be handled as if a valid value would have been received (activation
of runnable entities using the DataReceivedEvent).c(SRS_Rte_00078)
Sender:
[SWS_Rte_05025] dIf data element invalidation is enabled, and the commu-
nication is Intra-ECU, data element invalidation shall be implemented by the RTE.c
(SRS_Rte_00078)
The actual invalid value is specified in the SW-C template invalidValue.
Receiver:
[SWS_Rte_05030] dIf a data element has been invalidated in case of Intra-ECU com-
munication and the attribute handleInvalid is set to keep – the query of the value
shall return the same value as if COM would have handled the invalidation (copy COM
behavior). Then the reception of the invalid value will be handled as an error and the ac-
tivation of runnable entities can be performed using the DataReceiveErrorEvent.c
(SRS_Rte_00078)
[SWS_Rte_05049] dIf a data element has been received invalidated in case of Intra-
ECU communication and the attribute handleInvalid is set to replace – RTE shall
perform the "invalid value substitution" with the initValue. Then the reception will
be handled as if a valid value would have been received (activation of runnable entities
using the DataReceivedEvent).c(SRS_Rte_00078)
[SWS_Rte_08050] dIf a data element has been received invalidated in case of Intra-
ECU communication and the attribute handleInvalid is set to dontInvalidate
– the query of the value shall return the received value. Then the reception will be
handled as if a valid value would have been received (activation of runnable entities
using the DataReceivedEvent).c(SRS_Rte_00078)
[SWS_Rte_02308] dIf data invalidation is enabled for a composite VariableDat-
aPrototype, and the communication is Intra-ECU, the RTE shall invalidate all invali-
dateable primitive elements of the VariableDataPrototype.c()
[SWS_Rte_02309] dThe RTE generator shall reject configurations which are violating
[constr_1302].c(SRS_Rte_00078)
[SWS_Rte_08102] dIf a data element has been received invalidated in case of Intra-
ECU communication and the attribute handleInvalid is set to externalReplace-
ment – RTE shall perform the "invalid value substitution" with the value sourced from
the ReceiverComSpec.replaceWith (e.g. constant, NVRAM parameter). Then the
reception will be handled as if a valid value would have been received (activation of
runnable entities using the DataReceivedEvent).c(SRS_Rte_00078)
4.3.1.9 Filters
be defined, i.e. only signal values fulfilling certain conditions are made available for the
receiving component. The possible filter algorithms are taken from OSEK COM version
3.0.2. They are listed in the meta model (see [2]. According to the SW-C template [2],
filters are only allowed for signals that are compatible to C language unsigned integer
types (i.e. characters, unsigned integers and enumerations). Thus, filters cannot be
applied to composite data types like for instance ApplicationRecordDataType or
ApplicationArrayDataType.
[SWS_Rte_05503] dThe RTE shall provide value-based filters for unqueued S/R-
Communication as specified in the SW-C template [2].c(SRS_Rte_00121)
[SWS_Rte_05500] dFor inter-ECU communication, the filter implementation is per-
formed/done by the COM module. For intra-ECU and inter-Partition communication,
the RTE shall perform the filtering itself.c(SRS_Rte_00019, SRS_Rte_00121)
[SWS_Rte_05501] dThe RTE shall support a different filter specification for each
dataElement in a component’s AUTOSAR interface.c(SRS_Rte_00121)
[SWS_Rte_04581] dIn case that filters are defined both on the sender-side and on the
receiver-side then the filter of the sender-side applies before the filter of the receiver-
side.c(SRS_Rte_00121)
[SWS_Rte_08077] dIn case that filtering applies the input value shall be calculated
from the "unfiltered buffer" before the RunnableEntity starts, the result of the filter
calculation shall be stored in a "filtered buffer" and the RunnableEntity accessing
a dataElement in a Receiver Port with a filter shall get access to the "filtered buffer"
instead of the "unfiltered buffer".c(SRS_Rte_00121)
Note: For optimization reasons only a "filtered buffer" should be provided, if filtering
applies for a dataElement and the "unfiltered buffer" is not used at all.
[SWS_Rte_08079] dSeparate "filtered buffers" shall be provided, if the same
dataElement is accessed by RunnableEntitys via different Receiver Ports and
filters with different semantics are applied in each Port.c(SRS_Rte_00121)
4.3.1.10 Buffering
[SWS_Rte_02516] dOn the receiver side, the buffering of ‘data’ (swImplPolicy not
queued) shall be realized by the RTE by a single data set for each data element
instance.c(SRS_Rte_00107)
The use of a single data set provides the required semantics of a single element queue
with overwrite semantics (new data replaces old). Since the RTE is required to ensure
data consistency, the generated RTE should ensure that non-atomic reads and writes
of the data set (e.g. for composite data types) are protected from conflicting concurrent
access. RTE may use lower layers like COM to implement the buffer.
[SWS_Rte_02517] dThe RTE shall initialize this data set [SWS_Rte_02516] with a
startup value depending on the ports attributes and if the general initialization condi-
tions in [SWS_Rte_07046] are fulfilled.c(SRS_Rte_00068, SRS_Rte_00108)
[SWS_Rte_02518] dImplicit or explicit read access shall always return the last received
data.c(SRS_Rte_00107)
Requirement [SWS_Rte_02518] applies whether or not there is a DataReceivedE-
vent referencing the VariableDataPrototype for which the API is being gener-
ated.
[SWS_Rte_02519] dExplicit read access shall be non blocking in the sense that it does
not wait for new data to arrive. The RTE shall provide mutual exclusion of read and
write accesses to this data, e.g., by ExclusiveAreas.c(SRS_Rte_00109)
[SWS_Rte_02520] dWhen new data is received, the RTE shall silently discard the
previous value of the data, regardless of whether it was read or not.c(SRS_Rte_00107)
In case the swImplPolicy is set to queued the received ‘events’ have to be buffered
in a queue.
Note: A loss of events might occur in inter-ECU communication even if the receiver
queue length is sufficient. The timing of the system has to be set up in a way that it is
ensured that the COM stack on the sender side is processed before the next event is
written by the sender.
[SWS_Rte_02521] dThe RTE shall implement a receive queue for each event-like data
element (swImplPolicy = queued) of a receive port.c(SRS_Rte_00107)
The queueLength attribute of the QueuedReceiverComSpec referencing the event
assigns a constant length to the receive queue.
[SWS_Rte_02522] dThe events shall be written to the end of the queue and read
(consuming) from the front of the queue (i.e. the queue is first-in-first-out).c(SRS_-
Rte_00107, SRS_Rte_00110)
[SWS_Rte_02523] dIf a new event is received when the queue is already filled, the
RTE shall discard the received event and set an error flag.c(SRS_Rte_00107, SRS_-
Rte_00110)
[SWS_Rte_02524] dThe error flag described in [SWS_Rte_02523] shall be reset
during the next explicit read access on the queue. In this case, the status value
RTE_E_LOST_DATA shall be presented to the application together with the data.c
(SRS_Rte_00107, SRS_Rte_00110, SRS_Rte_00094)
[SWS_Rte_02525] dIf an empty queue is polled, the RTE shall return with a status
RTE_E_NO_DATA to the polling function, (see chap. 5.5.1).c(SRS_Rte_00107, SRS_-
Rte_00110, SRS_Rte_00094)
The minimum size of the queue is 1.
[SWS_Rte_02526] dThe RTE generator shall reject a queueLength attribute of an
QueuedReceiverComSpec with a queue length ≤ 0.c(SRS_Rte_00110, SRS_Rte_-
00018)
4.3.1.11 Operation
[SWS_Rte_04505] dThe RTE shall use the ComHandleId of the corresponding Com-
Signal when invoking the COM API for signal.c(SRS_Rte_00091)
The actual COM handle id has to be gathered from the ECU configuration of the COM
module. The input information ComSignalHandleId is used to establish the link
between the ComSignal of the COM module’s configuration and the corresponding
ISignal of the System Template.
When a data prototype has a composite data type the RTE must marshall the data.
This can be achieved by two means: Explicit mapping the atomic sub-elements of the
composite type to their own COM signals or mapping of the whole composite type to
one COM signal if data transformation is used.
The DataMappings element of the ECU configuration and configuration of the data
transformer contain (or references) sufficient information to allow the data item or op-
eration parameters to be transmitted by indicating the COM signals or signal groups to
be used. It is not necessary to provide a mapping for each primitive typed leaf element
within the composite type.
[SWS_Rte_03863] dThe RTE generator shall support the partial mapping to System-
Signals of the leaf elements of a VariableDataPrototype (typed by a composite data
type) in a PPort.c(SRS_Rte_00091)
A partial mapping means that a subset of the composite data type’s leaf elements are
mapped to SystemSignals in the relevant SystemSignalGroup (e. g. a record with
leaf elements A, B, C, D where only B and C are mapped to SystemSignals of the
SystemSignalGroup). Elements omitted from the partial mapping are simply ignored
by the RTE generator.
For RPorts it is necessary to define how the RTE generator handles the partial mapping
of a composite data type, in particular, how elements omitted from the mapping are
treated.
[SWS_Rte_03864] dFor the included element of a partial mapping from SystemSignals
to the leaf elements of a VariableDataPrototype (typed by a composite data type) in a
RPort the RTE generator shall use the data provided by COM.c(SRS_Rte_00091)
[SWS_Rte_03865] dFor the omitted elements from a partial mapping from SystemSig-
nals to the leaf elements of a VariableDataPrototype (typed by a composite data type)
in a RPort the RTE generator shall use the initial value when receiving the composite
data type.c(SRS_Rte_00091)
[SWS_Rte_08793] dIf a data element is a composite data type, the communication
is inter-ECU and data transformation is used (except COM Based Transformer), the
DataMapping element shall map the composite data type directly to one COM signal
to use the data transformation.c(SRS_Rte_00091, SRS_Rte_00247)
The above requirements for mapping atomic sub-elements for them own to distinct
COM signals have two key features; firstly, COM is responsible for endianness con-
version (if any is required) of primitive types and, secondly, differing structure member
alignment between sender and receiver is irrelevant since the COM signals are packed
into I-PDUs by the COM configuration.
The DataMappings shall contain sufficient COM signals to map each primitive element7
of the AUTOSAR signal.
The above requirements for mapping the whole composite data type to one COM signal
on the other hand leaves those features to the data transformation.
7
An AUTOSAR signal that is a primitive data type contains exactly one primitive element whereas a
signal that is a composite data type one or more primitive elements.
[SWS_Rte_04508] dThe RTE generator shall reject configuration violating the con-
straint [constr_3059].c(SRS_Rte_00091)
[SWS_Rte_02557] d
1. Each signal that is mapped to an element of the same composite data item shall
be mapped to the same signal group.
2. If two signals are not mapped to an element of the same composite data item,
they shall not be mapped to the same signal group.
3. If a signal is not mapped to an element of a composite data item, it shall not be
mapped to a signal group.
c(SRS_Rte_00091)
[SWS_Rte_05081] dThe RTE shall use the ComHandleId of the corresponding Com-
SignalGroup when invoking the COM API for signal groups. This also applies for
the array based signal group access with the Com_SendSignalGroupArray() and
Com_ReceiveSignalGroupArray().c(SRS_Rte_00091)
[SWS_Rte_05173] dThe RTE shall use the ComHandleId of the corresponding Com-
GroupSignal when invoking the COM API for group signals.c(SRS_Rte_00091)
The actual COM handle id has to be gathered from the ECU configuration of the COM
module. The input information ComHandleId is used to establish the link between the
ComSignalGroup of the COM module’s configuration and the corresponding ISig-
nalGroup of the System Template.
The input information ComHandleId of group signals is used to establish the link be-
tween the ComGroupSignal of the COM module’s configuration and the correspond-
ing ISignal of the System Template.
4.3.1.11.2 Atomicity
As would be expected, the receiver side is the exact reverse of the transmission side:
the RTE must first call Com_ReceiveSignalGroup precisely once for the signal
group and then call Com_ReceiveSignal to extract the value of each signal within
the signal group.
A signal group has the additional property that COM guarantees to inform the receiver
by invoking a call-back about its arrival only after all signals belonging to the signal
group have been unpacked into a buffer.
The Data Transformation approach is described in section 4.10.
4.3.1.11.3 Fan-out
Fan-out can be divided into two scenarios; PDU fanout where the same I-PDU is sent
to multiple destinations and signal fan-out where the same signal, i.e. data element is
sent in different I-PDUs to multiple receivers.
For Inter-ECU communication, the RTE does not perform PDU fan-out. Instead, the
RTE invokes Com_SendSignal once for a primitive data element or for transformed
data and expects the fan-out to multiple PDU destinations to occur lower down in the
AUTOSAR communication stack. However, it is necessary for the RTE to support
signal fan-out since this cannot be performed by any lower level layer of the AUTOSAR
communication stack.
The data mapping in the System Template[8] is based on the SystemSignal and
SystemSignalGroup. The COM module however uses the ISignal and ISignal-
Group counterparts (ComSignal, ComSignalGroup, ComGroupSignal) to define
the COM API. The RTE Generator needs to identify whether there are several ISig-
nal or ISignalGroup elements defined for the SystemSignal or SystemSignal-
Group and implement the fan-out accordingly. Then the corresponding elements in
the COM ecu configuration (ComSignal, ComSignalGroup, ComGroupSignal) are
required to establish the interaction between Rte and COM.
Please note that in case of a fan-out only ISignal or ISignalGroup elements need
to be considered that are transmitted by the EcuInstance on which the RTE is run-
ning.
With the usage of “Data Transformation” a mixture of different serialization technologies
for signal fan-out in the RTE can be used. This is determined by the ISignal or
ISignalGroup association to DataTransformation.
[SWS_Rte_04585] dThe RTE needs to perform a RTE signal fan-out for a System-
Signal and for a number of connected ISignals for which the following conditions
apply in an Ecu Extract:
• the ISignals reference the SystemSignal in the role systemSignal and
• a DataMapping references the SystemSignal and
For the invocation the ComHandleId from the ComSignal of COM’s ecu configuration
shall be used (see [SWS_Rte_04505]).
If the data element is typed by a composite data type several scenarios shall to be
considered for each of the signal fan-out based on the ISignal or ISignalGroup
association to DataTransformation:
• no “Data Transformation”: RTE invokes Com_SendSignal for each primitive el-
ement (ISignal) in the composite data type and each COM signal to which that
primitive element is mapped, and Com_SendSignalGroup for each ISignal-
Group that does not require a “Data Transformation” to which the data element
is mapped.
• “Data Transformation” without COM Based Transformer: RTE performs the trans-
formation and then invokes Com_SendSignal for each ISignal that has the
dataTransformation association to the DataTransformation defined.
• “Data Transformation” with COM Based Transformer: RTE performs the trans-
formation and then invokes Com_SendSignalGroupArray for each ISignal-
Group that has the comBasedSignalGroupTransformation association to
the DataTransformation defined.
Note:
It is also possible to configure the system to use multiple of these scenarios at the
same time. Then the RTE executes all configured scenarios.
[SWS_Rte_04526] Inter-ECU transmission of composite data without Data Trans-
formation dFor inter-ECU transmission of composite data type where
• a SenderReceiverToSignalGroupMapping to the VariableDataProto-
type is defined
• and the respective ISignalGroup has no comBasedSignalGroupTrans-
formation defined
the RTE shall invoke Com_SendSignal for each ISignal to which an element in
the composite data type is mapped and Com_SendSignalGroup for each ISignal-
Group to which the composite data element is mapped.c(SRS_Rte_00019, SRS_-
Rte_00028)
For the invocation the ComHandleId from the ComGroupSignal and ComSig-
nalGroup of COM’s ecu configuration shall be used (see [SWS_Rte_05173] and
[SWS_Rte_05081]).
[SWS_Rte_08586] Inter-ECU transmission of composite data with COM Based
Data Transformation dFor inter-ECU transmission of composite data type where
• a SenderReceiverToSignalGroupMapping to the VariableDataProto-
type is defined
• and the respective ISignalGroup has a comBasedSignalGroupTransfor-
mation reference defined
the RTE shall perform the transformation and then invoke Com_SendSignal-
GroupArray for the ISignalGroup to which the composite data type is mapped.c
(SRS_Rte_00019, SRS_Rte_00028, SRS_Rte_00251)
For the invocation the ComHandleId from the ComSignalGroup of COM’s ecu con-
figuration shall be used (see [SWS_Rte_05081]).
[SWS_Rte_08587] Inter-ECU transmission of composite data with Data Transfor-
mation dFor inter-ECU transmission of composite data type where
• a SenderReceiverToSignalMapping to the VariableDataPrototype is
defined
• and the respective ISignal has a dataTransformation reference defined
the RTE shall perform the transformation and then invoke Com_SendSignal for the
ISignal to which composite data type is mapped.c(SRS_Rte_00019, SRS_Rte_-
00028, SRS_Rte_00247)
Note:
A SystemSignal can be added to a SystemSignalGroup in the role transform-
ingSystemSignal to support the configuration where a complex data element is
transferred via Sender/Receiver communication both using transformation and tradi-
tional mapping of RTE and COM.
For the invocation the ComHandleId from the ComSignal of COM’s ecu configuration
shall be used (see [SWS_Rte_04505]).
For intra-ECU transmission of data elements, the situation is slightly different; the RTE
handles the communication (the lower layers of the AUTOSAR communication stack
are not used) and therefore must ensure that the data elements are routed to all re-
ceivers. For inter-partition communication, RTE may use the IOC.
[SWS_Rte_06024] dFor inter-partition transmission of data elements, the RTE
shall perform the fan-out to each receiver.c(SRS_Rte_00019, SRS_Rte_00028)
4.3.1.11.4 Fan-in
When receiving data from multiple senders in inter-ECU communication, either the
RTE on the receiver side has to collect data received in different COM signals or COM
signal groups and pass it to one receiver or the RTE on the sender side has to pro-
vide shared access to a COM signal or COM signal group to multiple senders. The
receiver RTE, which has to handle multiple COM signals or signal groups, is notified
about incoming data for each COM signal or COM signal group separately but has
to ensure data consistency when passing the data to the receiver. The sender RTE,
which has to handle multiple senders sharing COM signals or signal groups, has to
ensure consistent access to the COM API, since COM API calls for the same signal
are not reentrant.
[SWS_Rte_04587] dThe RTE needs to perform a RTE signal fan-in for a SystemSig-
nal and for a number of connected ISignals for which the following conditions apply
in an Ecu Extract:
• the ISignals reference the SystemSignal in the role systemSignal and
• a DataMapping references the SystemSignal and
• the DataMapping references an element in a RPortPrototype and
• the ISignals are received by the EcuInstance, i.e. the ComSignal that refers
with the ComSystemTemplateSystemSignalRef in the COM Configuration to
the ISignalToIPduMapping that in turn refers to the ISignal and the ISig-
nalIPdu from which the ComIPdu is derived that has the ComIPduDirection
= RECEIVE.
c(SRS_Rte_00019, SRS_Rte_00028)
In other words if two ISignals reference the same SystemSignal, but one of the
ISignals is received and one is transmitted no RTE signal fan-in is performed. Only
if several ISignals that are received reference the same SystemSignal the RTE
signal fan-in is performed.
[SWS_Rte_04588] dThe RTE needs to perform a RTE signal fan-in for a SystemSig-
nalGroup and for a number of connected ISignalGroups for which the following
conditions apply in an Ecu Extract:
• the ISignalGroups reference the SystemSignalGroup in the role system-
SignalGroup and
• a DataMapping references the SystemSignalGroup and
• the DataMapping references an element in a RPortPrototype and
• each of the contained ISignals of the ISignalGroup refers to its correspond-
ing SystemSignal which in turn is part of the SystemSignalGroup and
• the ISignalGroups are received by the EcuInstance, i.e. the ComSig-
nalGroup and its respective ComGroupSignals that refer with the ComSys-
temTemplateSignalGroupRef resp. ComSystemTemplateSystemSig-
nalRef in the COM Configuration to the ISignalToIPduMapping that in turn
refers to the ISignalGroup resp. ISignals and the ISignalIPdu from which
the ComIPdu is derived that has the ComIPduDirection = RECEIVE.
c(SRS_Rte_00019, SRS_Rte_00028)
In other words if two ISignalGroups reference the same SystemSignalGroup, but
one of the ISignalGroups is received and one is transmitted no RTE signal fan-in
is performed. Only if several ISignalGroups that are received reference the same
SystemSignalGroup the RTE signal fan-in is performed.
[SWS_Rte_03760] dIf multiple senders use different COM signals or signal groups
for inter-ECU transmission of a data element prototype with swImplPolicy different
from queued to a receiver, the RTE on the receiver side has to pass the last received
value to the receiver component while ensuring data consistency.c(SRS_Rte_00019,
SRS_Rte_00131)
[SWS_Rte_03761] dIf multiple senders use different COM signals or signal groups
for inter-ECU transmission of a data element prototype with event semantics to a
receiver, the RTE on the receiver side has to queue all incoming values while ensuring
data consistency.c(SRS_Rte_00019, SRS_Rte_00131)
[SWS_Rte_03762] dIf multiple senders share COM signals or signal groups for inter-
ECU transmission of a data element prototype to a receiver, the RTE on the sender
side shall ensure that the COM API for those signals is not invoked concurrently.c
(SRS_Rte_00019, SRS_Rte_00131)
Figure 4.40 shows a sequence diagram of how Sender Receiver communication for
data transmission and non-blocking reception may be implemented by RTE. The se-
quence diagram also shows the Rte_Read API behavior if an initValue is specified.
In case the COM Based Transformer [23] is used the sequence in figure
4.40 is the same, but Com_SendSignalGroupArray() is used instead of
Com_SendSignal() and Com_ReceiveSignalGroupArray() is used instead of
Com_ReceiveSignal().
Sender Sender's RTE Sender's Sender's COM Receiver's Receiver's RTE Receiver
A pplic ation Transformer Network Receiver's Transformer applic ation
COM
Com_S endSignal()
E_OK()
(8) RTE receives the data
item a from COM and
RTE_E_OK()
(7) The received data item is replace the previous
copied to the COM buffer for data value in the RTE buffer
item a and the notification Rte_COMCbk_<sn>() for data item a.
callback provided by RTE is Note! The callback must
invoked. block the RTERead_p_a
Com_ReceiveSignal() call.
E_OK()
RTE_E_OK()
Figure 4.40: Sender Receiver communication with data semantics and dataReceive-
PointByArgument as reception mechanism
Figure 4.41 shows a sequence diagram of how Sender Receiver communication for
event transmission and non-blocking reception may be implemented by RTE. The se-
quence diagram shows the Rte_Receive API behavior when the queue is empty.
In case the COM Based Transformer [23] is used the sequence in figure
4.41 is the same, but Com_SendSignalGroupArray() is used instead of
Com_SendSignal() and Com_ReceiveSignalGroupArray() is used instead of
Com_ReceiveSignal().
Sender Sender's RTE Sender's RTE Sender's COM Receiver's RTE Receiver's RTE Receiver
A pplic ation Netwok Receiver's applic ation
COM
(3) The data value (2) The RTE - queue for event p_e
provided by the sender is empty => RTE_E_NO_DATA is
is copied to the RTE returned to Receiver application.
allocated queue. RTE_E_NO_DATA()
Rte_Send_p_e()
(4) the provided data is
converted. Only if data
conversion applies
(optional)
X frm_<name>()
(5) The queue entry is
transformed to an array and
transferred to the COM stack
Com_S endSignal()
E_OK()
RTE_E_OK()
E_OK()
Rte_Receive_p_e()
RTE_E_OK()
Inter-ECU communication
Explicit Sender-Receiver communication:
Port name = p (10) The received
Data element name = e event item a is
VariableDataPrototype with a queued swImplPolicy (Event distribution) stored in the
The sender VariableDataPrototype is referenced by a VariableAccess in role dataSendPoint receiver's OUT
The receiver VariableDataPrototype is referenced by a VariableAccess in role dataReceivePointByArgument parameter
No WaitPoint is referencing the DataReceivedEvent that references the VariableDataPrototype (non-blocking
reception)
Figure 4.41: Sender Receiver communication with event semantics and dataReceive-
PointByArgument as reception mechanism
Figure 4.42 shows a sequence diagram of how Sender Receiver communication for
event transmission and activation of runnable entity on the receiver side may be imple-
mented by RTE.
In case the COM Based Transformer [23] is used the sequence in figure
4.42 is the same, but Com_SendSignalGroupArray() is used instead of
Com_SendSignal() and Com_ReceiveSignalGroupArray() is used instead of
Com_ReceiveSignal().
Sender Sender's RTE Sender's RTE Sender's COM Receiver's RTE Receiver's RTE Receiver runnable
A pplication Netwok Receiver's
COM
Rte_Send_p_e()
X frm_<name>()
Com_S endSignal()
E_OK()
RTE_E_OK()
Rte_COMCbk_<sn>()
ReceiversRunnable()
(3) The AUTOSAR OS
Inter-ECU communication task that will execute
Port name = p the receiver's runnable
Data element name = e is started.
VariableDataPrototype with a queued swImplPolicy (Event distribution)
The sender VariableDataPrototype is referenced by a VariableAccess in role
dataSendPoint
The receiver VariableDataPrototype is referenced by a DataReceivedEvent (4) RTE fetches an event
which in turn references the receiver RunnableEntity. from the event e queue
and calls the receiver's
(5) The task is
runnable. completed
Figure 4.42: Sender Receiver communication with event semantics and activation of
runnable entity as reception mechanism
Figure 4.43 shows a sequence diagram of how Sender Receiver communication for
data transmission and non-blocking reception may be implemented by RTE when using
LdCom.
Sender Application Sender's RTE Sender Transformer Sender's LdCom - Reciever Transformer Receiver's RTE Receiver Application
and Detransformer Netwok- Receiver's and Detransformer
LdCom
Rte_Write_p_a()
opt Transformer
Xfrm()
(2) RTE transforms all data
E_OK() elements into a byte array
LdCom_Transmit()
(3) RTE calls LdCom_Transmit for the transformed
E_OK() byte array. In case LdComApiType == LDCOM_TP the
RTE buffer is now locked.
RTE_E_OK()
RTE_E_COM_BUSY()
copy_data()
BUFREQ_OK()
Rte_LdComTpTxConfirmation()
copy_data()
E_OK()
[LdComApiType == LDCOM_IF]
Rte_LdComCbkRxIndication_<sn>()
copy_data()
Inter-ECU communication
Explicit Sender-Receiver communication:
Port name = p
Data element name = a
VariableDataPrototype with a standard swImplPolicy (Data distribution)
The sender VariableDataPrototype is referenced by a VariableAccess in role
dataSendPoint E_OK()
The receiver VariableDataPrototype is referenced by a VariableAccess in role
dataReceivePointByArgument
Rte_Read_p_a()
Xfrm_Inv()
(10) The re-transformed
data is converted. Only if
data conversion applies
(optional)
Figure 4.43: Sender Receiver communication with data semantics over LdCom
The Software Component template allows specifying whether an unqueued data, de-
fined in an AUTOSAR Interface, has been updated since system start (or partition
restart) or not. This additional optional status establishes the possibility to check
whether a data element has been changed since system start (or partition restart).
[SWS_Rte_07381] dOn receiver side the handleNeverReceived attribute of the
NonqueuedReceiverComSpec shall specify the handling of the never received sta-
tus.c(SRS_Rte_00184)
[SWS_Rte_07382] dThe initial status of the data elements with the attribute handleN-
everReceived set to TRUE shall be RTE_E_NEVER_RECEIVED.c(SRS_Rte_00184)
[SWS_Rte_07383] dThe initial status of the data elements with the attribute handleN-
everReceived set to TRUE shall be cleared when the first reception occurs.c(SRS_-
Rte_00184)
[SWS_Rte_07645] dThe status of data elements shall be reset on the receiver side
to RTE_E_NEVER_RECEIVED when the receiver’s partition is restarted.c(SRS_Rte_-
00184, SRS_Rte_00224)
[SWS_Rte_04529] dThe configuration of the attribute handleNeverReceived to
TRUE shall have no effect for data elements received from an NvBlockSwCompo-
nentType, since these data elements are automatically received during initialization
of the RTE.c(SRS_Rte_00184)
The Software Component template allows specifying whether an unqueued data, de-
fined in an AUTOSAR Interface, has been updated since last read or not. This addi-
tional optional status establishes the possibility to check, whether a data element has
been updated since last read.
On receiver side the “enableUpdate” attribute of the NonqueuedReceiverComSpec
has to activate the handling of the update flag.
[SWS_Rte_07385] dThe RTE shall provide one update flag per dataElement
in a RPortPrototype where the “enableUpdate” attribute of the Nonqueue-
dReceiverComSpec is set to true and where at least one RunnableEntity defines
a VariableAccess in the dataReceivePointByArgument or dataReceive-
PointByValue role.c(SRS_Rte_00179)
[SWS_Rte_07386] dThe update flag of the data elements configured with the “en-
ableUpdate” attribute shall be set by receiving new data from COM or from a local
software-component (including NvBlockSwComponentType).c(SRS_Rte_00179)
• Size of the signal exceed the size of the L-PDU (large signals)
• Size of the signal group exceed the size of the L-PDU
In the current release of SWS_COM, COM APIs to access signal values might return
the error code COM_BUSY for the signals mapped to N-PDU. This error code indicates
that the access to the signal value has failed (internally rejected by COM) and should
be retried later. This situation might only be possible when the transmission or the
reception of the corresponding PDU is in progress in COM at the time the access to
the signal value is requested.
This is a problem for the handling of data with data semantic (last is best behavior)
because:
• "COM_BUSY like" errors are not compatible with real time systems that should
have predictable response time.
• Forwarding this error code to the application implies that every applications
should handle it (implement a retry) even if it will never comes (data is not be
mapped to N-PDU).
• Error code can not be forwarded to the application in case of direct read or implicit
write.
This is not a problem for the handling of data with event semantic (queued behav-
ior) because:
• The COM_BUSY error should not be possible during the execution of COM call-
backs (Rx indication and Tx confirmation) that can be used by the RTE to handle
the queue.
• Data are queued internally by RTE and accessible at any time by the application.
Note: First point is especially true if the ComIPduSignalProcessing is configured
as IMMEDIATE. But if the ComIPduSignalProcessing is configured as DEFFERED
and 2 events are closely received, it is possible that at the time the RTE tries to access
the corresponding COM signal the second event reception has already started. In this
case the RTE will received COM_BUSY and the event will be lost but it is more a
problem of configuration than a limitation from COM.
As a consequence it has been decided to limit the data mapped to N-PDU to the event
semantic (queued behavior). See [SWS_Rte_07811].
Note: As the data mapping is not mandatory for the RTE contract phase, it is possible
that a configuration is accepted at contract phase but rejected at generation phase
when the data mapping is known.
Dynamic data are always mapped to N-PDU in case of inter-ECU communication. So
in order to avoid such situation (late rejection at generation phase) and in order to
respect the VFB concept (intra and inter-ECU should be equal) it has been decided
to extend this limitation to every dynamic data whatever the communication is intra or
inter-ECU. See [SWS_Rte_07812].
4.3.1.16.1 COM
The rules for the decision whether to use Efficient COM for large data (LdCom) are
described in System Template [8], chapter 6.2.
[SWS_Rte_01376] dThe RTE shall use LdCom for sending/receiving arrays of bytes if
the corresponding ISignal is mapped to LdComIPdu.c(SRS_Rte_00246)
Transmission
[SWS_Rte_01377] dThe RTE shall use the LdCom_Transmit API if LdComApiType
is set to LDCOM_IF in LdComIPdu.c(SRS_Rte_00231)
In case If-API is used upon LdCom_Transmit, the transmit request is passed imme-
diately to the lower layer. After return of the API the data does not need to be locked.
[SWS_Rte_01378] dThe RTE shall use the LdCom_Transmit API if LdComApiType
is set to LDCOM_TP in LdComIPdu.c(SRS_Rte_00231)
In case TP-API is used, after LdCom_Transmit one or more invocations of Rte_-
LdComCbkCopyTxData_<sn> by LdCom will occur asynchronously. The Transmission
is finalized by Rte_LdComCbkTpTxConfirmation_<sn>.
During this time the data has to be available for being passed to LdCom.
[SWS_Rte_01379] dThe RTE shall lock the signal buffer after it initiated a Tp Trans-
mission (LdCom_Transmit returned E_OK).c(SRS_Rte_00246)
During the signal buffer is locked no further transmit requests are permitted on
that item. For data semantics this means that Rte_Write/Rte_Call will return
RTE_E_COM_BUSY.
[SWS_Rte_01380] dThe RTE shall unlock the signal buffer after Rte_LdComCbkTp-
TxConfirmation_<sn> has been invoked (independent of the result).c(SRS_Rte_-
00246)
[SWS_Rte_01381] dThe RTE shall copy the indicated number of bytes to the pro-
vided destination in each invocation of Rte_LdComCbkCopyTxData_<sn>.c(SRS_-
Rte_00246)
[SWS_Rte_01382] dFor signals for which the Rte_LdComCbkTriggerTransmit_-
<sn> API is configured the data of the corresponding signal has to be available during
the whole runtime of the RTE.c(SRS_Rte_00246)
Rationale: A call to TriggerTransmit may happen at any time, since it originates from
lower BSW layers.
Hint: Main use case for [SWS_Rte_01382] is the transmission of the current value for
newly (late) subscribed receivers in ServiceDiscovery.
[SWS_Rte_01383] dIf Rte_LdComCbkTriggerTransmit_<sn> is invoked, data
shall be copied to the provided destination.c(SRS_Rte_00246)
Reception
[SWS_Rte_01384] dIf Rte_LdComCbkRxIndication_<sn> is invoked RTE shall
provide the following steps:
• copy the passed signal data to the buffer
• fire a DataReceivedEvent (if configured)
• return
c(SRS_Rte_00246)
[SWS_Rte_01385] dIf Rte_LdComCbkStartOfReception_<sn> is invoked RTE
shall lock the corresponding reception buffer.c(SRS_Rte_00246)
[SWS_Rte_01386] dIf Rte_LdComCbkCopyRxData_<sn> is invoked RTE shall copy
the passed signal data (or the indicated portion) to the previously locked reception
buffer.c(SRS_Rte_00246)
[SWS_Rte_01387] dIf Rte_LdComCbkTpRxIndication_<sn> is invoked RTE shall
unlock the previously locked reception buffer.c(SRS_Rte_00246)
[SWS_Rte_01388] dWhen Rte_LdComCbkTpRxIndication_<sn> is invoked and
the passed result code is RTE_E_OK, it shall fire the DataReceivedEvent. For other
result codes, the signal value shall be set to the invalidValue for data elements if in-
validValue was configured.c(SRS_Rte_00246)
[SWS_Rte_03620] dThe RTE shall forward meta data of a data element to/from COM
or LdCom to/from the application if a data element
• is used for inter-ECU communication
• and it is referenced by a MetaDataItemSet of its SenderReceiverInter-
face
c(SRS_Rte_00322)
Note: If the data element data is buffered by the Rte, then the meta data must be
buffered as well.
The Software Component Template Specification [2] describes the modeling of meta
data in the context of a SenderReceiverInterface. The specification of AUTOSAR COM
[3] describes the extended COM APIs while for LdCom the already existing SduMeta-
DataPtr struct member of PduInfoType shall be used.
[SWS_Rte_03621] dThe RTE shall provide access to single meta data items if a data
element is referenced by a MetaDataItemSet of its SenderReceiverInterfacec
(SRS_Rte_00322)
4.3.2 Client-Server
4.3.2.1 Introduction
Client-server communication involves two entities, the client which is the requirer (or
user) of a service and the server that provides the service.
The client initiates the communication, requesting that the server performs a ser-
vice, transferring a parameter set if necessary. The server, in the form of the RTE,
waits for incoming communication requests from a client, performs the requested
service and dispatches a response to the client’s request. So, the direction of initia-
tion is used to categorize whether a AUTOSAR software-component is a client or a
server.
A single component can be both a client and a server depending on the software
realization.
The invocation of a server is performed by the RTE itself when a request is made by
a client. The invocation occurs synchronously with respect to the RTE (typically via
a function call) however the client’s invocation can be either synchronous (wait for
server to complete) or asynchronous with respect to the server.
Note: servers which have an asynchronous operation (i.e. they accept a request
and another provide a feedback by invoking a server of the caller) should be avoided
as the RTE does not know the link between these 2 client-server communications. In
particular, the server should have no OUT (or INOUT) parameters because the RTE
cannot perform the copy of the result in the caller’s environment when the request was
processed.
[SWS_Rte_06019] dThe only mechanism through which a server can be invoked is
through a client-server invocation request from a client.c(SRS_Rte_00029)
The above requirement means that direct invocation of the function implementing the
server outside the scope of the RTE is not permitted.
A server has a dedicated provide port and a client has a dedicated require port.
To be able to connect a client and a server, both ports must be categorized by the
same interface.
The client can be blocked (synchronous communication) respectively non-blocked
(asynchronous communication) after the service request is initiated until the response
of the server is received.
A server implemented by a RunnableEntity with attribute canBeInvokedCon-
currently set to FALSE is not allowed to be invoked concurrently and since a
server can have one or more clients the server may have to handle concur-
rent service calls (n:1 communication) the RTE must ensure that concurrent calls do
not interfere.
[SWS_Rte_04515] dThe RTE shall ensure that call serialization8 of the operation
is enforced when the server runnable attribute canBeInvokedConcurrently is
FALSE.c(SRS_Rte_00019, SRS_Rte_00033)
Note that the same server may be called using both synchronous and asynchronous
communication.
Note also that even when canBeInvokedConcurrently is FALSE, an Atomic-
SwComponentType might be instantiated multiple times. In this case, the implemen-
tation of the RunnableEntity can still be invoked concurrently from several tasks.
However, there will be no concurrent invocations of the implementation with the same
instance handle.
[SWS_Rte_04516] dThe RTE’s implementation of the client-server communication
shall ensure that a service result is dispatched to the correct client if more than
one client uses a service.c(SRS_Rte_00019, SRS_Rte_00080)
The result of the client/server operation can be collected using “wake up of wait point”,
“explicit data read access” or “activation of runnable entity”.
[SWS_Rte_07409] dIf all the following conditions are satisfied:
• the server runnable’s property canBeInvokedConcurrently is set to TRUE
• the client and server execute in the same partition, i.e. intra-partition
Client-Server communication
• the ServerCallPoint is Synchronous
• the OperationInvokedEvent is not mapped to an OsTask
8
Call Serialization ensures at most one thread of control is executing an instance of a runnable
entity at any one time. An AUTOSAR software-component can have multiple instances (and therefore
a runnable entity can also have multiple instances). Each instance represents a different server and
can be executed in parallel by different threads of control thus serialization only applies to an individual
instance of a runnable entity – multiple runnable entities within the same component instance may also
be executed in parallel.
4.3.2.2 Multiplicity
Example 4.9
Consider a client-server interface that has two operations, op1 and op2 and that an
AUTOSAR software-component definition requires a port typed by the interface. As
a result, the RTE generator will create two API calls; one to invoke op1 and another
to invoke op2. The calls can invoke the server operations either synchronously or
asynchronously depending on the configuration.
The RTE is not required to support multiple server operations invoked by a single client
component request (’1:n’ communication where n > 1) (see [constr_1037] in [2]).
Each client can invoke the server simultaneously and therefore the RTE is required to
support multiple requests of servers. If the server requires call serialization, the RTE
has to ensure it.
[SWS_Rte_04520] dThe RTE shall support simultaneous invocation requests of a
server operation.c(SRS_Rte_00019, SRS_Rte_00080)
The ServerCallPoint allows to specify a timeout so that the client can be notified
that the server is not responding and can react accordingly. If the client invokes the
server synchronously, the RTE API call to invoke the server reports the timeout. If
the client invokes the server asynchronously, the timeout notification is passed to the
client by the RTE as a return value of the API call that collects the result of the server
operation.
[SWS_Rte_03763] dThe RTE shall ensure that timeout monitoring is performed for
client-server communication, regardless of the receive mode for the result.c(SRS_-
Rte_00069, SRS_Rte_00029)
Several Basic Software Modules use an integer identifier to represent an object that
should be acted upon. For instance, the NVRAM Manager uses an integer identifier
to represent the NVRAM block to access. This identifier is not known to the client,
as the client must be location independent, and the NVRAM block to access for a
given application software component cannot be identified until components have been
mapped onto ECUs.
There is therefore a mismatch between the information available to the client and that
required by the server. Port-defined argument values bridge that gap.
The required port-defined arguments (the fact that they are required, their data type
and their values) are specified within the input to the RTE generator.
[SWS_Rte_01360] dWhen invoking the runnable entity specified for an OperationIn-
vokedEvent, the RTE shall include the port-defined argument values between the in-
stance handle (if it is included) and the operation-specific parameters, in the order they
are given in the Software Component Template Specification [2].c(SRS_Rte_00152)
Requirement [SWS_Rte_01360] means that a client will make a request for an opera-
tion on a require (Client-Server) port including only its instance handle (if required) and
the explicit operation parameters, yet the server will be passed the implicit parameters
as it requires.
Note that the values of implicit parameters are constant for a particular server runnable
entity; it is therefore expected that using port-defined argument values imposes no
RAM overhead (beyond any extra stack required to store the additional parameters).
4.3.2.5 Buffering
RTE is responsible to map a response to the corresponding request. With this map-
ping, RTE can activate or resume the corresponding runnable and provide the re-
sponse to the correct client. The following situations can be distinguished:
• Mapping of a response to the correct request within one ECU. In general, this is
solved already by the call stack. The details are implementation specific and will
not be discussed in this document.
• Mapping of a response coming from a different partition or a different ECU.
The problem of request to response mapping in inter-ECU and inter-Partition commu-
nication can be split into:
of the request and pass the meta data along with the response without modification.c
(SRS_Rte_00322)
Since the meta data for C/S operation is neither required for the Application SW-C nor
for transformer operations it can be kept within the RTE.
In case of a server on one ECU with clients on other ECUs, the inter-ECU client-server
communication is using one SystemSignal for the Call and one SystemSignal for
the Response. Meta data is used for distinction of calling ECUs. Please note that
in former AUTOSAR releases the usage of different SystemSignals for each client-
ECU was used for the identification of the client-ECU. This is no longer supported by
the AUTOSAR System Template [8] and the usage of meta data for distinction of calling
ECUs is mandatory.
With this mechanism, the server-side RTE must handle the fan-in. This is done in the
same way as for sender-receiver communication.
However it is allowed to have several clients in one client-ECU communicating using
inter-ECU client-server communication with a server on a different ECU, if the client
identifier is used to distinguish the different clients (see [constr_3264]).
[SWS_Rte_03769] dIf multiple clients have access to one server, the RTE on the server
side has to queue all incoming server invocations while ensuring data consistency.c
(SRS_Rte_00019, SRS_Rte_00029, SRS_Rte_00080)
4.3.2.6.2 SequenceCounter
[SWS_Rte_02655] dRTE shall initialize all sequence counters with zero during Rte_-
Start.c(SRS_Rte_00082)
[SWS_Rte_02656] dRTE shall increase each sequence counter in a cyclic manner
after a client server operation has finished successfully or with a timeout.c(SRS_Rte_-
00082)
[SWS_Rte_02657] dRTE shall ignore incoming responses that do not match the se-
quence counter.c(SRS_Rte_00027, SRS_Rte_00082)
4.3.2.8 Operation
The client server protocol defines how a client call and the server response are mapped
onto the communication infrastructure of AUTOSAR in case of inter-ECU communica-
tion. This allows RTE implementations from different vendors to interpret the client
server communication in the same way.
The AUTOSAR System Template [8] does specify a protocol for the client server com-
munication in AUTOSAR.
4.3.2.8.2 Atomicity
The requirements for atomicity from Section 4.3.1.11.2 also apply for the composite
data types described in Section 4.3.2.8.1.
Figure 4.44 shows a sequence diagram of how asynchronous client server communi-
cation may be implemented by RTE.
Client Application Client's RTE Client's Transformer Client's COM Netwok Server's Transformer Server's RTE Server
Server's COM
Rte_Call_p_o()
Xfrm_<name1>()
(1) RTE transforms all IN
E_OK() parameters of the operation
[dynamicLength == true]
Com_SendDynSignalWithMetaData()
E_OK()
(2) RTE calls Com_SendSignal for the byte
array to transfer all IN parameters using it's
COM
[dynamicLength == false]
Com_SendSignalWithMetaData()
E_OK()
RTE_E_OK()
Rte_COMCbk_<sg>()
E_OK()
E_OK()
(7) RTE calls the transformer for
the response OUT parameters and
sends the resulting array back to
alt dynamicLength of SystemSignal
the client
[dynamicLength == true]
Com_SendDynSignalWithMetaData()
E_OK()
[dynamicLength == false]
Com_SendSignalWithMetaData()
E_OK()
Rte_COMCbk_<sg>()
[dynamicLength == true]
Com_ReceiveDynSignalWithMetaData()
E_OK()
[dynamicLength == false]
Com_ReceiveSignalWithMetaData()
E_OK()
Xfrm_Inv_<name2>()
E_OK()
ClientResponseRunnable()
(9) RTE deserializes all OUT parameters and activates the Client's
response runnable.
Figure 4.45 shows a sequence diagram of how synchronous client server communica-
tion may be implemented by RTE.
Client Application Client's RTE Client's Transformer Client's COM Netwok Server's Transformer Server's RTE Server
Server's COM
Rte_Call_p_o()
Xfrm_<name1>()
(1) RTE transforms all IN
parameters of the operation into a
E_OK()
byte array
E_OK()
[dynamicLength == false]
Com_SendSignalWithMetaData()
E_OK()
WaitEvent(EventXY)
Client Application is
blocked. Client task is
set waiting Rte_COMCbk_<sg>()
Com_ReceiveSignalWithMetaData()
E_OK()
The client runnable that invokes the server call is referencing Activate Server's task()
an SynchronousServerCallPoint
The server runnable is refered by an OperationInvokedEvent
ServerComSpec attribute queueLength = number of possible
queued server calls ServerRunnable()
(6) RTE fetches the server parameter
from its queue and calls the Server
runnable.
Xfrm_<name2>()
E_OK()
[dynamicLength == false]
Com_SendSignalWithMetaData()
E_OK()
Rte_COMCbk_<sg>()
[dynamicLength == true]
Com_ReceiveDynSignalWithMetaData()
E_OK()
[dynamicLength == false]
Com_ReceiveSignalWithMetaData()
E_OK()
Xfrm_Inv_<name2>()
(8) RTE receives
byte array and
transforms it back
Client task is to the OUT
released SetEvent(ClientTask, EventXY)
parameters
Client Application
continues
RTE_E_OK()
Partitions are used to decompose an ECU into functional units. Partitions can con-
tain both SW-Cs and BSW modules. The partitioning is done to protect the software
contained in the partitions against each other or to increase the performance by run-
ning the partitions on different cores of a multi core controller.
Since the partitions may be separated by core boundaries or memory boundaries and
since the partitions can be stopped and restarted independently, the observable be-
havior to the SW-Cs for the communication between different partitions is rather similar
to the inter ECU communication than to the intra partition communication. The RTE
needs to use special mechanisms to communicate from one partition to another.
Like for the inter ECU communication, inter partition communication uses the connec-
tionless communication paradigm. This means, that a send operation is successful for
the sender, even if the receiving partition is stopped. A receiver will only, by means of
a timeout, be notified if the partition of the sender is stopped.
Unlike most basic software, the RTE does not have a main processing function. The
execution logic of the RTE is contained in the generated task bodies, the wrapper code
around the runnables whose execution RTE manages.
As the tasks that contain the SW-Cs runnables are uniquely assigned to partitions (see
page 11EER of [15]), the execution logic of the RTE is split among the partitions. It
can not be expected that the RTE generated wrapper code running in one partition can
directly access the memory objects assigned to the RTE part of another partition.
In this sense, there is one RTE per partition, that contains runnable entities.
The general idea to allow the data communication between partitions in a most efficient
way and still be independent of the micro controller implementation is to take the buffers
and queues from the intra partition communication case and replace them with so
called IOC communication objects in the inter partition communication case.
In the ideal case, the access macros to the IOC communication object resolve to a
direct access to shared memory.
The IOC (Inter OS-Application Communication) is a feature of the AUTOSAR OS, which
provides a data oriented communication mechanism between partitions. The IOC pro-
vides communication buffers, queues, and protected access functions/macros to these
buffers that can be used from any pre-configured partitions concurrently.
The IOC offers communication of data to another core or between memory protected
partitions with guarantee of data consistency.
All data communications including the passing of parameters and return values in client
server communication, can be implemented by using the IOC. The basic principle for
using the IOC is to replace the RTE internal communication buffers by IOC buffers.
The IOC supports 1:1 and N:1 communication. For 1:N communication, N IOC com-
munication objects have to be used. The IOC is configured and provides generated
APIs for each IOC communication object. In case of N:1 communication, each sender
has a separate API.
The IOC API is not reentrant.
[SWS_Rte_02737] dRTE shall prevent concurrent access to the same IOC API from
different ExecutableEntity execution-instances.c()
The IOC will use the appropriate mechanism to communicate between the partitions,
whether it requires communicating with another core, communicating with a partition
with a different level of trust, or communicating with another memory partition.
The IOC channels are configured in the OS Configuration. Their configurations has to
be provided as inputs for the RTE generator when the external configuration switch
strictConfigurationCheck [SWS_Rte_05148] is set to true, and can be pro-
vided by the RTE Generator or RTE Configuration Editor when strictConfigura-
tionCheck is set to false (see [SWS_Rte_05150]).
The IOC APIs use:
1. types declared by user on input to RTE (sender-receiver communication across
OsApplication boudaries).
2. types created by RTE to collect client-server operation arguments into single data
structure.
For the second item, RTE uses internal types that have to be described as Imple-
mentationDataTypes (see [SWS_Rte_08400]).
The signaling between partitions is not covered by the IOC. The callbacks of IOC are
in interrupt context and are mainly intended for direct use by BSW. For the signaling
between partitions, RTE can use the activation of tasks or setting of events, see section
4.3.4.4.
[SWS_Rte_02736] dThe RTE shall not execute ExecutableEntitys in the context
of IOC callbacks.c()
This is necessary to ensure that ExecutableEntitys will not be executed in interrupt
context or when a partition is terminated or restarted.
it calls just before it starts signal evaluation and handing over the data to PduR.
The RTE can call the COM APIs from there if new data is available.
2. The data producer and the COM instance responsible for the signal related
to this data are in different partitions on the same core.
The RTE can use the same mechanisms as above. It could also a trusted
function call (see section 4.3.4.5) to call the COM APIs.
3. The data producer and the COM instance responsible for the signal related
to this data are in the same partition.
The RTE can call the COM APIs directly. But it can also use the transmission
preparation callback (Rte_COMCbkTxPrep_mn) for runtime optimization.
The following scenarios are possible for inter-ECU communication in receiving direc-
tion:
1. The data consumer and the COM instance responsible for the signal related
to this data are in different partitions on different cores.
The RTE can be informed via the notification callback (Rte_COMCbk_sn/Rte_-
COMCbk_sg) about the reception of the signal or signal group. This callback
is called by the COM instance responsible for this signal or signal group. If
ComIPduSignalProcessing is configured to DEFERRED, the notification call-
back is called by the related ComMainFunctionRx (see [SWS_Com_00301]). If
ComIPduSignalProcessing is configured to IMMEDIATE the notification call-
back is called by the related Com_RxIndication from COM instance’s partition
(see [SWS_Com_00300]). The RTE can call the COM APIs to receive the signal
data directly in the callback. It can then use the IOC to pass the data into the
consumer’s partition.
2. The data consumer and the COM instance responsible for the signal related
to this data are in different partitions on the same core.
The RTE can use the same mechanism as above. It could also use a trusted
function call (see section 4.3.4.5) to call the COM APIs from arbitrary posi-
tions in the data consumer’s partition.
3. The data consumer and the COM instance responsible for the signal related
to this data are in the same partition.
The RTE can call the COM APIs directly from arbitrary positions in the data con-
sumer’s partition. But it can also use the COM notification callback (Rte_COM-
Cbk_sn/Rte_COMCbk_sg) for runtime optimization.
4.3.4.4 Signaling and control flow support for inter partition communication
Please note that the word "use" in the requirement above means that the RTE has to
use the OS mechanism of a trusted function call and has to implement the used trusted
function. In case strictConfigurationCheck is set to FALSE it additionally has to
configure the used trusted function in the OS.
Note that it is not strictly necessary to use a dedicated trusted function per Exe-
cutableEntity callpoint. An RTE implementation could also decide to use the same
trusted function for many callpoints of the same ExecutableEntity or even the
same trusted function for multiple ExecutableEntitys. This could especially be
used to reduce the runtime overhead in cases where multiple ExecutableEntitys
of the same partition are executed in a row. As the complete callpoint is moved into the
trusted function, also the VFB Tracing hooks have to be executed there and potentially
also related RTE implementation specific flag manipulation (e.g. for Rte_IsUpdated)
or implicit buffering code.
[SWS_Rte_07606] dDirect start of an ExecutableEntity execution-instance by the
mean of a trusted function shall only be used for the start of an ExecutableEntity
in a Trusted Partition.c(SRS_Rte_00195, SRS_Rte_00210)
The OS ensures that the partition of the caller is not terminated or restarted when a
trusted function is executed unless the termination of the partition calling the trusted
function is caused by another TRUSTED partition. If needed, the termination or restart
of the caller’s partition is delayed after the trusted function returns.
RTE has to ensure, that the OS does not kill an RTE-generated task due to stopping
or restarting a partition while this task is executing a function call to BSW or to the
software component of another partition when this call is not a pure function.
For this purpose, RTE can use either the OS mechanism of trusted function call, or it
can allocate the callee to a different task than the caller.
[SWS_Rte_02761] dIn a partitioned system that supports stop or restart of partitions,
the RTE shall not use a direct function call (without use of OS call trusted function)
from a task of an untrusted partition to BSW or to the SW-C of another partition.c
(SRS_Rte_00196)
Please note that [SWS_Rte_02761] might require the use of OS call trusted function
for a partitioned system even without memory protection.
In a memory protected ECU, a SW-C from an untrusted partition might misuse the
transition to the trusted context to modify memory in another partition. This can occur
when a pointer to a different memory partition is passed from the untrusted partition to
the trusted context. The RTE shall avoid this misuse by at least checking the validity
of the address of the pointer, and, where possible, also checking the integrity of the
associated memory object.
AUTOSAR supports the connection of an R-port to a P-port with an interface that is not
compatible in the sense of the AUTOSAR compatibility rules. In addition, for sender-
receiver communication it is possible to specify how data elements are represented
given that the communication requires the usage of a dedicated communication bus.
In these cases the generated RTE has to support the conversion and re-scaling of
data.
Per default the shortNames of PortInterface elements are used to identify the
matching element pairs of connected ports. In case of non fitting names — might
be caused due to distributed development, off-the-shelf development, or re-use of soft-
ware components — it is required to explicitly specify which PortInterface elements
shall correlate. This is modelled with PortInterfaceMappings. A connection of two
ports can be associated with a set of PortInterfaceMappings. If two ports are
connected and a PortInterfaceMapping for the pair of interfaces of the two ports
is associated with the connection, the interface elements are mapped and converted
as specified in the PortInterfaceMapping. If no PortInterfaceMapping for the
respective pair of interfaces is associated with the connection, the ordinary interface
compatibility rules are applied.
The general approach is to perform the data conversion in the RTE of the ECU imple-
menting the R-port. The reason for this design decision is that in case of 1:n sender-
receiver communication it is inefficient to perform all the data conversions for the mul-
tiple receivers on the sender side and then send multiple sets of the same data just in
different representations over the communication bus.
[SWS_Rte_03815] dThe RTE shall support the mapping of sender-receiver interfaces,
parameter interfaces, non-volatile data interface elements, and NvBlockDescrip-
tors.c(SRS_Rte_00182)
[SWS_Rte_03816] dIf a P-port specified by a SenderReceiverInterface or Nv-
DataInterface is connected to an R-port with an incompatible interface and a
VariableAndParameterInterfaceMapping for both interfaces is associated with
the connection, the RTE of the ECU implementing the R-port shall map and convert the
data elements of the sender’s interface to the data elements of the receiver’s interface.c
(SRS_Rte_00182)
[SWS_Rte_07091] dThe RTE shall support the Mapping of elements of composite data
types in the context of a mapping of SenderReceiverInterface, NvDataInter-
face or ParameterInterface elements.c(SRS_Rte_00182, SRS_Rte_00234)
[SWS_Rte_07092] dThe RTE of the ECU implementing the R-port shall map and con-
vert the composite data type elements of DataPrototypes of the sender’s interface
to the composite data type elements of DataPrototypes of the receiver’s interface
according the SubElementMapping
if a P-port specified by a SenderReceiverInterface, NvDataInterface or Pa-
rameterInterface is connected to an R-port with an incompatible interface and
a VariableAndParameterInterfaceMapping exists for both interfaces and is as-
sociated with the connection and
the SubElementMapping maps composite data type elements of the provided inter-
face to composite data type elements of the required interface.c(SRS_Rte_00182,
SRS_Rte_00234)
[SWS_Rte_07099] dThe RTE of the ECU implementing the R-port shall map and con-
vert the composite data type elements of DataPrototype of the sender’s interface
to the primitive DataPrototype of the receiver’s interface according the SubEle-
mentMapping
if a P-port specified by a SenderReceiverInterface, NvDataInterface or Pa-
rameterInterface is connected to a R-port with an incompatible interface and
a VariableAndParameterInterfaceMapping exists for both interfaces and is as-
sociated with the connection and the SubElementMapping exclusively maps one
composite data type element of the provided interfacec(SRS_Rte_00182, SRS_Rte_-
00234)
According to [TPS_SWCT_01551], incomplete SubElementMappings are allowed
for unqueued communication, when unmapped dataElements on the receiver side
have an initValue.
Please note that the DataPrototypes of the provide port and DataPrototypes of
the require port might use exclusively ApplicationDataTypes, exclusively Imple-
mentationDataTypes or both kinds of AutosarDataTypes in a mixed manner.
[SWS_Rte_02307] dThe RTE generator shall reject configurations that violate [constr_-
1300].c()
[SWS_Rte_03817] dIf a P-port specified by a SenderReceiverInterface or Nv-
DataInterface is connected to an R-port with an incompatible interface and no
VariableAndParameterInterfaceMapping for this pair of interfaces is associ-
ated with the connection, the RTE generator shall reject the input as an invalid config-
uration.c(SRS_Rte_00182, SRS_Rte_00018)
[SWS_Rte_03818] dThe RTE shall support the mapping of client-server interface ele-
ments.c(SRS_Rte_00182)
[SWS_Rte_03819] dIf a P-port specified by a ClientServerInterface is con-
nected to an R-port with an incompatible interface and a ClientServerInter-
faceMapping for both interfaces is associated with the connection, the RTE of the
ECU implementing the R-port, i. e. the client, shall map the operation and map and
convert the operation arguments of the client’s interface to the operation arguments of
the server’s interface.c(SRS_Rte_00182)
[SWS_Rte_07925] dIf a ClientServerApplicationErrorMapping exists, the
RTE shall translate the error codes of the server into the corresponding error codes
described by the mapping.c(SRS_Rte_00182, SRS_Rte_00123)
[SWS_Rte_07926] dIf a ClientServerApplicationErrorMapping exists and a
particular error of the server is not mapped, this error shall be translated to RTE_E_OK.c
(SRS_Rte_00182, SRS_Rte_00123)
[SWS_Rte_03820] dIf a P-port specified by a ClientServerInterface is con-
nected to an R-port with an incompatible interface and no ClientServerInter-
faceMapping for this pair of interfaces is associated with the connection, the RTE
generator shall reject the input as an invalid configuration.c(SRS_Rte_00182, SRS_-
Rte_00018)
[SWS_Rte_03821] dThe RTE shall support the mapping of ModeSwitchInterface
elements.c(SRS_Rte_00182)
[SWS_Rte_03822] dIf a P-port specified by a ModeSwitchInterface is connected
to an R-port with an incompatible interface and a ModeInterfaceMapping for both
interfaces is associated with the connection, the RTE of the ECU implementing the
R-port shall map and convert the mode elements of the sender’s interface to the mode
elements of the receiver’s interface.c(SRS_Rte_00182)
[SWS_Rte_03823] dIf a P-port specified by a ModeSwitchInterface is connected
to an R-port with an incompatible interface and no ModeInterfaceMapping for this
pair of interfaces is associated with the connection, the RTE generator shall reject the
input as an invalid configuration.c(SRS_Rte_00182, SRS_Rte_00018)
[SWS_Rte_03824] dThe RTE shall support the mapping of trigger interface elements.c
()
[SWS_Rte_03825] dIf a P-port specified by a TriggerInterface is connected to
an R-port with an incompatible interface and a TriggerInterfaceMapping for both
interfaces is associated with the connection, the RTE of the ECU implementing the
R-port shall map the trigger of the sender’s interface to the trigger of the receiver’s
interface.c()
[SWS_Rte_03826] dIf a P-port specified by a TriggerInterface is connected to an
R-port with an incompatible interface and no TriggerInterfaceMapping for this
pair of interfaces is associated with the connection, the RTE generator shall reject the
input as an invalid configuration.c(SRS_Rte_00018)
[SWS_Rte_03875] dIf a PPortPrototype specified by a NvDataInterface
is mapped to a NvBlockDescriptor.ramBlock and the respective NvBlock-
DataMapping defines a mapping of bitfields (see [TPS_SWCT_01799]), the RTE shall
convert the data element of the NvBlockDescriptor.ramBlock to the data element
of the NvDataInterface.c(SRS_Rte_00018)
[SWS_Rte_03876] dIf an RPortPrototype specified by a NvDataInterface
is mapped to a NvBlockDescriptor.ramBlock and the respective NvBlock-
DataMapping defines a mapping of bitfields (see [TPS_SWCT_01799]), the RTE
shall convert the data element of the NvDataInterface to the data element of the
NvBlockDescriptor.ramBlock.c(SRS_Rte_00018)
[SWS_Rte_03877] dIf a PRPortPrototype specified by a NvDataInterface
is mapped to a NvBlockDescriptor.ramBlock and the respective NvBlock-
DataMapping defines a mapping of bitfields (see [TPS_SWCT_01799]), the RTE shall
convert the data element of the NvBlockDescriptor.ramBlock to the data element
of the NvDataInterface, and convert the data element of the NvDataInterface
to the data element of NvBlockDescriptor.ramBlock.c(SRS_Rte_00018)
In order to generate the RTE for the ECU implementing the R-ports, the RTE gener-
ator has to know the interfaces of the P-ports that are connected over the bus. This
information is provided in the ECU extract via the networkRepresentationProps
(see section 4.3.6) specified at the ISignal representing the data element.
to be considered by the RTE to find the communication graph from/to the communi-
cation element (e.g. a VariableDataPrototype) of the innerPort to/from the
related bus signal(s). It is also important to note that at the time of the RTE genera-
tion phase an Inter-ECU communication will always involve an outerPort and never
connect an innerPort to a SystemSignal(Group) directly (see System Template [8],
chapter "External Communication"). The potentially existing senderToSignalText-
TableMappings or signalToReceiverTextTableMappings related to a System-
Signal(Group) have to be considered for the conversion.
[SWS_Rte_04536] dThe RTE of the transmitting ECU shall perform the conversion of
each primitive element, which belongs to the data to be transformed and sent over
a communication bus to the representation specified by the baseType and com-
puMethod of the ISignal.TransformationISignalProps. DataPrototype-
TransformationProps.networkRepresentationProps for the respective primi-
tive element, if the dataTypePolicy of the ISignal is set to transformingISig-
nal. The converted data shall be passed to the first transformer in the chain.c(SRS_-
Rte_00181)
[SWS_Rte_04538] dThe RTE of the receiving ECU shall pass the data received over
a communication bus to the retransformers and then perform the conversion of each
primitive element from the representation specified by the baseType and the com-
puMethod of the ISignal.TransformationISignalProps. DataPrototype-
TransformationProps.networkRepresentationProps, if the dataTypePol-
icy of the ISignal is set to transformingISignal.c(SRS_Rte_00181)
Example 4.10
1
4
= 2−2 . The port SenderPort is connected to the port ReceiverPort of a soft-
ware component SwcB that is deployed on a different ECU EcuB. The sent data el-
ement u is mapped to a data element u of a uint16 type t_VoltageAtReceiver on
the receiving side that references a CompuMethod named cm_VoltageAtReceiver.
cm_VoltageAtReceiver describes a fixpoint representation with offset 16 8
= 2 and
1 −3
LSB 8 = 2 . For transportation over the bus a networkRepresentation that refer-
ences a uint8 type t_VoltageOnNetwork is specified, using a fixpoint representation
described by the CompuMethod cm_VoltageOnNetwork with offset 21 = 0.5 and LSB
1
2
= 2−1 .
Definition of the CompuMethods in XML:
<COMPU-METHOD>
<SHORT-NAME>cm_VoltageAtSender</SHORT-NAME>
<CATEGORY>LINEAR</CATEGORY>
<COMPU-INTERNAL-TO-PHYS>
<COMPU-SCALES>
<COMPU-SCALE>
<COMPU-RATIONAL-COEFFS>
<COMPU-NUMERATOR><V>0</V><V>1</V></COMPU-NUMERATOR>
<COMPU-DENOMINATOR><V>4</V></COMPU-DENOMINATOR>
</COMPU-RATIONAL-COEFFS>
</COMPU-SCALE>
</COMPU-SCALES>
</COMPU-INTERNAL-TO-PHYS>
</COMPU-METHOD>
<COMPU-METHOD>
<SHORT-NAME>cm_VoltageAtReceiver</SHORT-NAME>
<CATEGORY>LINEAR</CATEGORY>
<COMPU-INTERNAL-TO-PHYS>
<COMPU-SCALES>
<COMPU-SCALE>
<COMPU-RATIONAL-COEFFS>
<COMPU-NUMERATOR><V>16</V><V>1</V></COMPU-NUMERATOR>
<COMPU-DENOMINATOR><V>8</V></COMPU-DENOMINATOR>
</COMPU-RATIONAL-COEFFS>
</COMPU-SCALE>
</COMPU-SCALES>
</COMPU-INTERNAL-TO-PHYS>
</COMPU-METHOD>
<COMPU-METHOD>
<SHORT-NAME>cm_VoltageOnNetwork</SHORT-NAME>
<CATEGORY>LINEAR</CATEGORY>
<COMPU-INTERNAL-TO-PHYS>
<COMPU-SCALES>
<COMPU-SCALE>
<COMPU-RATIONAL-COEFFS>
<COMPU-NUMERATOR><V>1</V><V>1</V></COMPU-NUMERATOR>
<COMPU-DENOMINATOR><V>2</V></COMPU-DENOMINATOR>
</COMPU-RATIONAL-COEFFS>
</COMPU-SCALE>
</COMPU-SCALES>
</COMPU-INTERNAL-TO-PHYS>
</COMPU-METHOD>
Example 4.11
<DATA-MAPPINGS>
<DATA-PROTOTYPE-MAPPING>
<FIRST-DATA-PROTOTYPE-REF DEST="VARIABLE-DATA-PROTOTYPE">
/Example/Interfaces/One/LDW
</FIRST-DATA-PROTOTYPE-REF>
<SECOND-DATA-PROTOTYPE-REF DEST="VARIABLE-DATA-PROTOTYPE">
/Example/Interfaces/Two/bitfield
</SECOND-DATA-PROTOTYPE-REF>
<TEXT-TABLE-MAPPINGS>
<TEXT-TABLE-MAPPING>
<IDENTICAL-MAPPING>false</IDENTICAL-MAPPING>
<MAPPING-DIRECTION>bidirectional</MAPPING-DIRECTION>
<BITFIELD-TEXTTABLE-MASK-SECOND>
0b00000100
</BITFIELD-TEXTTABLE-MASK-SECOND>
<VALUE-PAIRS>
<TEXT-TABLE-VALUE-PAIR>
<FIRST-VALUE>0</FIRST-VALUE>
<SECOND-VALUE>0</SECOND-VALUE>
</TEXT-TABLE-VALUE-PAIR>
<TEXT-TABLE-VALUE-PAIR>
<FIRST-VALUE>1</FIRST-VALUE>
<SECOND-VALUE>4</SECOND-VALUE>
</TEXT-TABLE-VALUE-PAIR>
</VALUE-PAIRS>
</TEXT-TABLE-MAPPING>
</TEXT-TABLE-MAPPINGS>
</DATA-PROTOTYPE-MAPPING>
</DATA-MAPPINGS>
</VARIABLE-AND-PARAMETER-INTERFACE-MAPPING>
</PORT-INTERFACE-MAPPINGS>
</PORT-INTERFACE-MAPPING-SET>
Example 4.12
The intention of this specification is not to describe any mechanism that supports the
generation of identical conversion code for each implementation of an RTE generator.
Even if the generated C code for the conversion would be the same, the numerical
result of the conversion still depends on the microcontroller target and the compiler.
Strategies how to handle the conversion of values that are out of range of the target
representation are described in section 4.3.8.
[SWS_Rte_03833] dFor the conversion between two texttable data representations
(enumerations or bitfields) described either by an ApplicationDataType or an Im-
plementationDataType (used for the specification of the network representation)
the RTE generator shall generate the data conversion code according to the Text-
TableMapping. This requirement also applies to the texttable part of a mixed linear
scaled and texttable data representation.c(SRS_Rte_00182)
A software component might try to send a value that is outside the range that is
specified at a dataElement or ISignal. In case of different ranges the result of a
data conversion might also be a value that is out of range of the target representation.
For a safe handling of these use cases the RTE provides range checks during runtime
. For an overview see figure 4.46.
[SWS_Rte_08024] dRange checks during runtime shall occur after data invalidation,
i.e. first the handleNeverReceived check, then the invalidation check and lastly the
range check shall be effected.c(SRS_Rte_00180)
[SWS_Rte_03861] dThe range check is intended to be performed according to the
following rule: If a upper/lower limit is specified at the DataConstr, this value shall be
taken for the range check. If it is not specified at the DataConstr, the highest/lowest
representable value of the datatype shall be used.c(SRS_Rte_00180)
Whether a range check is required is specified in case of intra ECU communication at
the handleOutOfRange attribute of the respective SenderComSpec or Receiver-
ComSpec and in case of inter ECU communication at the handleOutOfRange at-
tribute of ISignalProps of the sending or receiving ISignal.
Range checks during runtime for intra ECU communication at the sender’s side are
described in the following requirements:
[SWS_Rte_08026] dThe RTE shall implement a range check of sent data in the send-
ing path of a particular component if the handleOutOfRange is defined at the
SenderComSpec and has any value other than none. In this case all receivers re-
ceive the value after the range check was applied.c(SRS_Rte_00180)
[SWS_Rte_08039] dThe RTE shall use the preceding limits ([SWS_Rte_07196]) from
the DataPrototype in the PPortPrototype or PRPortPrototype for the range
check of sent data in the sending path of a particular component if the handleOut-
OfRange is defined at the SenderComSpec.c(SRS_Rte_00180)
Range checks during runtime for intra ECU communication at the receiver’s side are
described in the following requirements:
[SWS_Rte_08028] dThe RTE shall implement a range check in the receiving path of a
particular component if the handleOutOfRange is defined at the ReceiverComSpec
and has any value other than none. In this case the range check applies only for data
received by the particular component.c(SRS_Rte_00180)
[SWS_Rte_08041] dThe RTE shall use the preceding limits ([SWS_Rte_07196]) from
the DataPrototype in the rPort for the range check of received data in the re-
ceiving path of a particular component if the handleOutOfRange is defined at the
ReceiverComSpec.c(SRS_Rte_00180)
[SWS_Rte_03845] dIf for a dataElement to be received a ReceiverComSpec with
handleOutOfRange=ignore is provided, a range check shall be implemented in the
receiving component. If the value is out of bounds, the reception of the dataElement
shall not be propagated. This means for a non-queued communication that the last
valid value will be propagated and for a queued communication that no value will be
enqueued.
If the value of the received dataElement is out of bounds and a Nonqueue-
dReceiverComSpec with handleOutOfRangeStatus=indicate is provided, the
return value of the RTE shall be RTE_E_OUT_OF_RANGE.
In case of a composite datatype the reception of the whole dataElement shall not
be propagated, if any of the composite elements is out of bounds. If the handleOut-
OfRangeStatus attribute is set to indicate, the return value of the RTE shall be
RTE_E_OUT_OF_RANGE.c(SRS_Rte_00180)
[SWS_Rte_03846] dIf for a dataElement to be received a ReceiverComSpec with
handleOutOfRange=saturate is provided, a range check shall be implemented in
the receiving component. If the value is out of bounds, the value actually received shall
be set to the lower respectively the upper limit.
If the value of the received dataElement is out of bounds and a Nonqueue-
dReceiverComSpec with handleOutOfRangeStatus=indicate is provided, the
return value of the RTE shall be RTE_E_OUT_OF_RANGE.
In case of a composite datatype each composite element whose actual value is out
of bounds shall be saturated. If the handleOutOfRangeStatus attribute is set to
indicate, the return value of the RTE shall be RTE_E_OUT_OF_RANGE, if any of the
composite elements is out of bounds.c(SRS_Rte_00180)
[SWS_Rte_03847] dIf for a dataElement to be received a NonqueuedReceiver-
ComSpec with handleOutOfRange=default is provided, a range check shall be
implemented in the receiving component. If the value is out of bounds and the init-
Value is not equal to the invalidValue, the value actually received shall be set to
the initValue.
If the value of the received dataElement is out of bounds and a Nonqueue-
dReceiverComSpec with handleOutOfRangeStatus=indicate is provided, the
return value of the RTE shall be RTE_E_OUT_OF_RANGE.
In case of a composite datatype each composite element whose actual value is out of
bounds shall be set to the initValue. If the handleOutOfRangeStatus attribute
is set to indicate, the return value of the RTE shall be RTE_E_OUT_OF_RANGE, if
any of the composite elements is out of bounds.c(SRS_Rte_00180)
[SWS_Rte_03848] dIf for a dataElement to be received a NonqueuedReceiver-
ComSpec with handleOutOfRange=invalid is provided, a range check shall be im-
plemented in the receiving component. If the value is out of bounds, the value actually
received shall be set to the invalidValue.
If the value of the received dataElement is out of bounds and a ReceiverComSpec
with handleOutOfRangeStatus=indicate is provided, the return value of the RTE
shall be RTE_E_INVALID.
In case of a composite datatype each composite element whose actual value is out
of bounds shall be set to the invalidValue. If the handleOutOfRangeStatus
attribute is set to indicate, the return value of the RTE shall be RTE_E_INVALID, if
any of the composite elements is out of bounds.c(SRS_Rte_00180)
[SWS_Rte_08016] dIf for a dataElement to be received a ReceiverComSpec with
handleOutOfRange=externalReplacement is provided, a range check shall be
implemented in the receiving component. If the value is out of bounds, the value ac-
tually received shall be replaced by the value sourced from the ReceiverComSpec.
replaceWith (e.g. constant, NVRAM parameter).
If the value of the received dataElement is out of bounds and a Nonqueue-
dReceiverComSpec with handleOutOfRangeStatus=indicate is provided, the
return value of the RTE shall be RTE_E_OUT_OF_RANGE.
In case of a composite datatype the value actually received shall be completely re-
placed by the external value, if any of the composite elements is out of bounds. If the
handleOutOfRangeStatus attribute is set to indicate, the return value of the RTE
shall be RTE_E_OUT_OF_RANGE.c(SRS_Rte_00180)
[SWS_Rte_03849] dIf for a dataElement to be received a QueuedReceiver-
ComSpec with handleOutOfRange set to default or invalid is provided, the
RTE generator shall reject the input as an invalid configuration, since for a Queue-
dReceiverComSpec the attribute initValue is not defined (see SW-C Template [2])
and data invalidation is not supported (see [SWS_Rte_06727]).c(SRS_Rte_00180)
[SWS_Rte_08025] dIf for a dataElement to be received a QueuedReceiverCom-
Spec is provided and the handleOutOfRangeStatus attribute is set to indicate,
the RTE generator shall reject the input as an invalid configuration.c(SRS_Rte_00180)
Range checks during runtime for inter ECU communication at the receiver’s side are
described in the following requirements:
[SWS_Rte_08029] dThe RTE shall implement a range check in the receiving path of a
particular signal if the handleOutOfRange is defined at the ISignalProps and has
any value other than none. In this case all receivers of the specific ISignal on that
ECU receive the value after the range check was applied.c(SRS_Rte_00180)
[SWS_Rte_08042] dThe RTE shall use the limits from the ISignal for the range
check of received data in the receiving path of a particular signal if the handleOut-
OfRange is defined at the ISignalProps.c(SRS_Rte_00180)
[SWS_Rte_08034] dIf for an ISignal to be received an ISignalProps with han-
dleOutOfRange=ignore is provided, a range check shall be implemented in the
receiving signal. If the value is out of bounds, the reception of the ISignal shall
not be propagated. In this case the RTE shall behave as if no reception occurred.c
(SRS_Rte_00180)
[SWS_Rte_08035] dIf for an ISignal to be received an ISignalProps with han-
dleOutOfRange=saturate is provided, a range check shall be implemented in the
receiving signal. If the value is out of bounds, the value actually received shall be set
to the lower respectively the upper limit.c(SRS_Rte_00180)
[SWS_Rte_08036] dIf for an ISignal to be received an ISignalProps with han-
dleOutOfRange=default is provided, a range check shall be implemented in the
receiving signal. If the value is out of bounds and the initValue is not equal to the
invalidValue, the value actually received shall be set to the initValue.c(SRS_-
Rte_00180)
no
RTE status
Configuration
DE propagation
handleOutOfRange handleOutOfRange handleOutOfRange
Status == silent5 Status == indicate4,5
RTE_E_
ignore RTE_E_OK last valid value2
OUT_OF_RANGE
out of yes
RTE_E_
bounds? saturate RTE_E_OK lower/upper limit
OUT_OF_RANGE
RTE_E_
default4 RTE_E_OK init value3
OUT_OF_RANGE
no
invalid4 RTE_E_INVALID RTE_E_INVALID invalid value
1. If no valid value was received previously then the init value shall be propagated
2. In case of queued communication the RTE behaves as if no value was enqueued
3. Init value shall not be equal to invalid value
DE 4. Applicable only in combination with a non-queued COMSPEC
RTE status 5. Applicable only in combination with a receiver COMSPEC
propagation
RTE_E_OK value
4.4 Modes
AtpStructureElement AbstractEvent
SwcModeSwitchEvent
ExecutableEntity +startOnEvent AtpStructureElement
RunnableEntity 0..1 RTEEvent + activation: ModeActivationKind [0..1]
«atpVariation,atpSplitable»
+modeSwitchPoint *
«enumeration»
AbstractAccessPoint ModeActivationKind
AtpStructureElement
onEntry «instanceRef» «instanceRef»
Identifiable
onExit
ModeSwitchPoint
onTransition
«instanceRef»
0..2
+modeGroup 0..1 +disabledMode 0..* +mode {ordered}
AtpPrototype «atpVariation» +modeDeclaration AtpStructureElement
«isOfType»
ModeDeclarationGroupPrototype 0..* Identifiable
+initialMode ModeDeclaration
+ swCalibrationAccess: SwCalibrationAccessEnum [0..1] 0..1
{redefines 0..1 + value: PositiveInteger [0..1]
+type atpType}
+disabledInMode 0..* +mode 1..2
+managedModeGroup 0..* +accessedModeGroup 0..*
ARElement {ordered}
AtpBlueprint
AtpBlueprintable
«atpVariation» «atpVariation» AtpType
ModeDeclarationGroup
«instanceRef»
+startsOnEvent 1
AbstractEvent BswScheduleEvent
BswSchedulableEntity
BswEvent BswModeSwitchEvent
+ activation: ModeActivationKind
The status of the modes will be notified to the AUTOSAR software-component mode
user by mode communication - mode switch notifications - as described in
the subsection 4.4.7. The port for receiving (or sending) a mode switch notifi-
cation is called
mode switch port.
A Basic Software Module mode users and the Basic Software Module mode man-
ager are not necessarily using ports. Basic Software Modules without AUTOSAR
Interfaces are connected via the configuration of the Basic Software Scheduler.
Entering and leaving modes is initiated by a mode manager. A mode manager might
be a basic software module, for example the Basic Software Mode Manager (BswM),
the communication manager (ComM), or the ECU state manager (EcuM). The mode
manager may also be an AUTOSAR SW-C. In this case, it is called an application
mode manager.
The mode manager contains the master state machine to represent the modes.
To provide modes, an AUTOSAR software-component (mode manager) has to ref-
erence a ModeDeclarationGroup by a ModeDeclarationGroupPrototype of a
provide mode switch port, see section 4.4.7. The ModeDeclarationGroup con-
tains the provided modes.
An Basic Software Module (mode manager) has to define a providedModeGroup
ModeDeclarationGroupPrototype. The ModeDeclarationGroup referred by
these ModeDeclarationGroupPrototype contains the provided modes.
The RTE / Basic Software Scheduler will take the actions necessary to switch between
the modes. This includes the termination and execution of several ExecutableEntities
from all mode users that are connected to the same ModeDeclarationGroupPrototype
of the mode manager. To do so, the RTE / Basic Software Scheduler needs a state
machine to keep track of the currently active modes and transitions initiated by the
mode manager. The RTE’s / Basic Software Scheduler ’s mode machine is called
mode machine instance. There is exactly one mode machine instance for
each ModeDeclarationGroupPrototype of a mode manager’s provide mode switch
port respectively providedModeGroup ModeDeclarationGroupPrototype.
It is the responsibility of the mode manager to advance the RTE’s / Basic Soft-
ware Scheduler ’s mode machine instance by sending mode switch notifi-
cations to the mode users. The mode switch notifications are imple-
mented by a non blocking API (see 5.6.6 / 6.5.7). So, the mode switch notifi-
cations alone provide only a loose coupling between the state machine of the mode
manager and the mode machine instance of the RTE / Basic Software Scheduler.
To prevent, that the mode machine instance lags behind and the states of the
mode manager and the RTE / Basic Software Scheduler get out of phase, the mode
manager can use acknowledgment feedback for the mode switch notification.
RTE / Basic Software Scheduler can be configured to send an acknowledgment of the
mode switch notification to the mode manager when the requested transition
is completed.
At the mode manager, the acknowledgment results in an ModeSwitchedAckEvent.
As with DataSendCompletedEvents, this event can be picked up with the polling
or blocking Rte_SwitchAck API. And the event can be used to trigger a Mod-
eSwitchAck ExecutableEntity to pick up the status. Note: The Basic Soft-
ware Scheduler do not support WaitPoints. Therefore the SchM_SwitchAck never
blocks.
Some possible usage patterns for the acknowledgement are:
• The most straight forward method is to use a sequence of Rte_Switch and a
blocking Rte_SwitchAck to send the mode switch notification and wait
for the completion. This requires the use of an extended task.
• Another possibility is to have a cyclic RunnableEntity / BswSchedulableEn-
tity (maybe the same that switches the modes via Rte_Switch / SchM_-
Switch) to poll for the acknowledgement using Rte_SwitchAck / SchM_-
SwitchAck.
• The acknowledgement can also be polled from a RunnableEntity or
BswSchedulableEntity that is started by the ModeSwitchedAckEvent.
The mode manager can also use the Rte_Mode / SchM_Mode API to read the cur-
rently active mode from the RTE’s / Basic Software Scheduler ’s perspective.
To implement the logic of mode switches, the RTE / Basic Software Scheduler needs
some basic information about the available modes. For this reason, RTE / Basic Soft-
ware Scheduler will make the following additional assumptions about the modes of one
ModeDeclarationGroup:
1. [SWS_Rte_CONSTR_09013] Exactly one mode or one mode transition shall
be active dWhenever any RunnableEntity or BswSchedulableEntity is
running, there shall always be exactly one mode or one mode transition active of
each ModeDeclarationGroupPrototype.c()
2. Immediately after initialization of a mode machine instance, RTE / Basic
Software Scheduler will execute a transition to the initial mode of each Mod-
eDeclarationGroupPrototype (see [SWS_Rte_02544]).
RTE / Basic Software Scheduler will enforce the mode disablings of the initial
modes and trigger the on-entry ExecutableEntitys (if any defined) of the
initial modes of every ModeDeclarationGroupPrototype immediately after
initialization of the RTE / Basic Software Scheduler.
In other words, RTE / Basic Software Scheduler assumes, that the modes of one
ModeDeclarationGroupPrototype belong to exactly one state machine without
nested states. The state machines cover the whole lifetime of the atomic AUTOSAR
SW-Cs9 and mode dependent AUTOSAR Basic Software Modules 10 .
4.4.4 Order of actions taken by the RTE / Basic Software Scheduler upon inter-
ception of a mode switch notification
This section describes what the ‘communication’ of a mode switch to a mode user
actually does. What does the RTE Basic Software Scheduler do to switch a mode and
especially in which order.
Mode switch procedures
Depending on the needs of mode users for synchronicity, the mode machine instance
can be implemented with two different realizations.
• synchronous mode switching procedure
• asynchronous mode switching procedure
The differences between these two realizations are the omitted waiting conditions in
case of asynchronous mode switching procedure. For instance with asynchronous
9
The lifetime of an atomic AUTOSAR SW-C is considered to be the time span in which the SW-C’s
runnables are being executed.
10
The lifetime of an mode dependent AUTOSAR Basic Software Module is considered to be the time
span in which the Basic Software Schedulable Entities are being executed.
behavior a software component can not rely that all mode disabling dependent
ExecutableEntitys of the previous mode are terminated before on-entry Exe-
cutableEntitys and on-exit ExecutableEntitys are started. On one hand
this might put some effort to the software component designer to enable the compo-
nents implementation to support this kind of scheduling but on the other hand it enables
fast and lean mode switching.
[SWS_Rte_07150] dThe RTE generator shall use the synchronous mode switching
procedure if at least one mode user of the mode machine instance does not sup-
port the asynchronous mode switch behavior.c(SRS_Rte_00143, SRS_Rte_00213)
[SWS_Rte_07151] dThe RTE generator shall apply the asynchronous mode switch
behavior, if all mode users support the asynchronous mode switch behavior and if
it is configured for the related mode machine instance.c(SRS_Rte_00143, SRS_-
Rte_00213)
Typical usage of modes to protect resources
RTE / Basic Software Scheduler can start and prevent the execution of RunnableEn-
titys and BswSchedulableEntity. In the context of mode switches,
• RTE / Basic Software Scheduler starts on-exit ExecutableEntitys for
leaving the previous mode. This is typically used by ‘clean up ExecutableEn-
titys’ to free resources that were used during the previous mode.
• RTE / Basic Software Scheduler starts on-entry ExecutableEntitys for
entering the next mode. This is typically used by ‘initialization ExecutableEn-
titys’ to allocate resources that are used in the next mode.
• And RTE / Basic Software Scheduler can prevent the execution of mode dis-
abling dependent ExecutableEntitys within a mode. This is typically
used with time triggered ‘work ExecutableEntity’ that use a resource which is not
available in a certain mode.
According to this use case, during the execution of ‘clean up ExecutableEntitys’
and ‘initialization ExecutableEntitys’ the ‘work ExecutableEntitys’ should be
disabled to protect the resource. Also, if the same resource is used (by different SW-
C’s) in two successive modes, the ‘clean up ExecutableEntitys’ should be safely
terminated before the ‘initialization ExecutableEntitys’ of the next mode are exe-
cuted (synchronous mode switching procedure). In summary, this would lead to the
following sequence of actions by the RTE / Basic Software Scheduler upon reception
of the mode switch notification:
1. activate mode disablings for the next mode
2. wait for the newly disabled ExecutableEntitys to terminate in case of syn-
chronous mode switching procedure
3. execute ‘clean up ExecutableEntitys’
4. wait for the ‘clean up ExecutableEntitys’ to terminate in case of synchronous
mode switching procedure
Figure 4.48: This figure shall illustrate what kind of ExecutableEntities will run in what or-
der during a synchronous mode transition. The boxes indicate activated ExecutableEn-
tities. Mode disabling dependant ExecutableEntities are printed in blue (old mode) and
pink (new mode). on-exit, on-transition, and on-entry ExecutableEntity are printed in
red, yellow, and green.
Figure 4.49: This figure shall illustrate what kind of ExecutableEntity will run in what
order during an asynchronous mode transition where the ExecutableEntities are trig-
gered on a mode change are mapped to a higher priority task than the Mode Dependent
ExecutableEntity. The boxes indicate activated ExecutableEntity. Mode disabling de-
pendant ExecutableEntity are printed in blue (old mode) and pink (new mode). on-exit,
on-transition, and on-entry ExecutableEntity are printed in red, yellow, and green.
The remainder of this section lists the requirements that guarantee the behavior de-
scribed above.
All runnables with dependencies on modes have to be executed or terminated during
mode transitions. Restriction [SWS_Rte_02500] requires these runnables to be of
category 1 to guarantee finite execution time.
For simplicity of the implementation to guarantee the order of runnable executions, the
restriction [SWS_Rte_02662] applies.
A mode machine instance implementing an asynchronous mode switch procedure
might be fully implemented inside the Rte_Switch or SchM_Switch API. In this case
the on-entry ExecutableEntitys, on-transition ExecutableEntitys,
on-exit ExecutableEntitys and ModeSwitchAck ExecutableEntitys are
not mapped to tasks as described in chapter 8.5.1.
[SWS_Rte_07173] dThe RTE generator shall support invocation of on-en-
try ExecutableEntitys, on-transition ExecutableEntitys, on-exit
ExecutableEntitys and ModeSwitchAck ExecutableEntitys via direct
function call, if all following conditions are fulfilled:
• if the asynchronous mode switch behavior is configured (see [SWS_Rte_07151])
ARElement
AtpBlueprintable
AtpBlueprint +port AtpPrototype
AtpBlueprintable
AtpType «atpVariation,atpSplitable» 0..* PortPrototype
SwComponentType
AbstractRequiredPortPrototype AbstractProvidedPortPrototype
AtomicSwComponentType
ModeSwitchInterface
«atpVariation»
+synchronizedModeGroup
0..* +modeGroup 0..1
AtpPrototype
SwcBswSynchronizedModeGroupPrototype +bswModeGroup
ModeDeclarationGroupPrototype
1
+swcModeGroup + swCalibrationAccess: SwCalibrationAccessEnum [0..1]
«instanceRef» 1
ARElement +providedModeGroup
AtpBlueprint
AtpBlueprintable «atpVariation,atpSplitable» 0..*
AtpStructureElement
BswModuleDescription +requiredModeGroup
+ moduleId: PositiveInteger [0..1] «atpVariation,atpSplitable» 0..*
«isOfType»
0..1
{redefines
+type atpType}
ARElement
AtpBlueprint
AtpBlueprintable
AtpType
ModeDeclarationGroup
«atpVariation»
+modeDeclaration 0..* +initialMode 0..1
AtpStructureElement
Identifiable
ModeDeclaration
In case of mode switch communication, the mode manager may specify a Mod-
eSwitchedAckEvent or BswModeSwitchedAckEvent to receive a notification from
the RTE that the mode transition has been completed, see [SWS_Rte_02679] and
[SWS_Rte_07559].
The ModeSwitchedAckEvent is triggered by the RTE regardless which runnable en-
tity has requested the mode switch notification, even if the meta model implies a link to
a specific ModeSwitchPoint.
[SWS_Rte_02679] dIf acknowledgment is enabled for a provided ModeDec-
larationGroupPrototype and a ModeSwitchedAckEvent references a
RunnableEntity as well as the ModeDeclarationGroupPrototype, the
RunnableEntity shall be activated when the mode switch acknowledgment occurs
or when the RTE detects that any partition to which the mode users are mapped was
stopped or restarted or when a timeout was detected by the RTE.c(SRS_Rte_00051,
SRS_Rte_00143)
The related Entry Point Prototype is defined in [SWS_Rte_02512].
[SWS_Rte_07559] dIf acknowledgment is enabled for a provided (providedMode-
Group) ModeDeclarationGroupPrototype and a BswModeSwitchedAckEvent
references a BswSchedulableEntity as well as the ModeDeclarationGroup-
Prototype, the BswSchedulableEntity shall be activated when the mode switch
acknowledgment occurs or when a timeout was detected by the Basic Software Sched-
uler. [SWS_Rte_02587].c(SRS_Rte_00213, SRS_Rte_00143)
The related Entry Point Prototype is defined in [SWS_Rte_04542].
Requirement [SWS_Rte_02679] and [SWS_Rte_07559] merely affects when the runn-
able is activated. The Rte_SwitchAck and SchM_SwitchAck shall still be created,
according to requirement [SWS_Rte_02678] and [SWS_Rte_07558] to actually read
the acknowledgment.
[SWS_Rte_02730] dA ModeSwitchedAckEvent that references a RunnableEn-
tity and is referenced by a WaitPoint shall be an invalid configuration which is
rejected by the RTE generator.c(SRS_Rte_00051, SRS_Rte_00018, SRS_Rte_00143)
The attributes ModeSwitchedAckRequest and BswModeSwitchAckRequest allow
to specify a timeout.
[SWS_Rte_07056] dIf ModeSwitchedAckRequest or BswModeSwitchAckRe-
quest with a timeout greater than zero is specified, the RTE shall ensure that time-
out monitoring is performed, regardless of the receive mode of the acknowledgment.c
(SRS_Rte_00069, SRS_Rte_00143)
[SWS_Rte_07060] dRegardless of an occurred timeout during a mode transition the
RTE shall complete the transition of a mode machine instance as defined in
[SWS_Rte_02665].c(SRS_Rte_00069, SRS_Rte_00143)
Since the mode switch communication may cross partitions basically two error scenar-
ios are possible:
• The partition of the mode users gets terminated.
• The partition of the mode manager gets terminated.
In both cases additionally the terminated partition may be restarted. For both error
scenarios the RTE offers functionality to handle the errors.
When a mode manager is getting out of sync with the mode user(s) (because the
partition of the mode user has been terminated) a sequence of error reactions is
defined.
This shall support on the one hand to inform the mode manager about the fact that the
mode users are absent. This might be used by the mode manager to set internal
states. This supports an active error handling by the mode manager as well as a
synchronization of the mode manager to the mode user’s partition restart.
Furthermore the RTE offers the ability to switch into a default mode automatically. This
feature can be used to ensure that either the mode users are re-initialized as during
ECU start (default mode is initial mode) or that the mode users are re-initialized by
a dedicated mode (default mode is different from initial mode) which in turn may be
used to ensure a secure behavior of the mode user’s, for instance suppressing the
actuator self tests in the running system.
Please note that the application of a default mode during mode user partition restart for
modes communicated cross partitions cannot be applied since this would disturb the
execution of the fault free partitions. For this scenario the only applicable error reaction
is modeManagerErrorBehavior.errorReactionPolicy set to lastMode. Other
configurations are rejected, see [SWS_Rte_08788].
[SWS_Rte_06794] dThe RTE Generator shall take the modeManagerErrorBehav-
ior from the ModeDeclarationGroup typing the ModeDeclarationGroupPro-
totype in the ModeSwitchInterface of the PPortPrototype/PRPortProto-
type.c(SRS_Rte_00143, SRS_Rte_00144)
[SWS_Rte_06772] dThe RTE shall clear all mode switch notifications in the
queue when all partitions of the mode userss are terminated.c(SRS_Rte_00143,
SRS_Rte_00144)
[SWS_Rte_06773] dThe RTE shall activate RunnableEntitys triggered by a Swc-
ModeManagerErrorEvent when all partitions of the mode userss are terminated.c
(SRS_Rte_00143, SRS_Rte_00144)
[SWS_Rte_06774] dIf ModeSwitchedAckRequest or BswModeSwitchAckRe-
quest is specified, the RTE shall detect a timeout when mode users partitions are
terminated during an ongoing transition.c(SRS_Rte_00143, SRS_Rte_00144)
Also see [SWS_Rte_02679], [SWS_Rte_07559], and [SWS_Rte_03853].
The further behavior of the mode machine instance depends on the attribute
ModeDeclarationGroup.modeUserErrorBehavior.
[SWS_Rte_06775] dIf the attribute
modeManagerErrorBehavior.errorReactionPolicy is set to lastMode the
mode machine instance stays in the last mode before the termination of the mode
users. If the partition of the mode users gets terminated during an ongoing transition
the last mode is the next mode of the transition.c(SRS_Rte_00143, SRS_Rte_00144)
Please note: In case the partition of the mode users gets terminated during an on-
going transition logically the transition is still completed even if the mode users didn’t
"survive" the transition.
[SWS_Rte_06776] dIf the attribute
modeManagerErrorBehavior.errorReactionPolicy is set to defaultMode
the RTE shall enqueue the mode defined by modeManagerErrorBehavior.de-
faultMode to the mode switch notification queue.c(SRS_Rte_00143, SRS_-
Rte_00144)
If the ModeSwitchInterface does not define a specific modeManagerErrorBe-
havior the RTE uses the initialMode as a default mode.
[SWS_Rte_06777] dIf the attribute modeManagerErrorBehavior is not defined the
RTE shall enqueue the mode defined by initialMode to the mode switch noti-
fication queue.c(SRS_Rte_00143, SRS_Rte_00144)
[SWS_Rte_06778] dThe RTE shall execute the error reactions in case the partition of
the mode users gets terminated in following order:
1. [SWS_Rte_06772]
2. [SWS_Rte_06773]
3. [SWS_Rte_06774]
4. [SWS_Rte_06775] or [SWS_Rte_06776] or [SWS_Rte_06777]
c(SRS_Rte_00143, SRS_Rte_00144)
If the partition of the mode users is capable to restart (PartitionCanBeRestarted
== true) the mode manager shall be able to enqueue new mode switch requests
during the restart of the partition. This shall support a dedicated error handling by the
mode manager depending on other environmental conditions. In this case the mode
manager may decide which transitions are appropriate to get the mode users either
back in an operational mode or in a secure default mode. Therefore the errorReac-
tionPolicy equals lastMode avoids any automatically forced mode transitions by
the error handling of the RTE.
[SWS_Rte_06779] dRTE shall support the enqueueing of new mode switch requests
during the restart of the mode user’s partition by the mode manager after the call of
Rte_PartitionRestarting.c(SRS_Rte_00143, SRS_Rte_00144)
[SWS_Rte_06780] dWhen the partition with the mode users is restarted (after call of
Rte_PartitionRestart), RTE shall dequeue queued mode switch notifica-
tions.c(SRS_Rte_00143, SRS_Rte_00144)
When the first mode switch notification after a partition restart is dequeued
the previous mode is defined as "last mode" or "on transition" depending on the
modeManagerErrorBehavior.errorReactionPolicy. See [SWS_Rte_06783]
and [SWS_Rte_06784].
Initialization of mode machine instance during mode user’s partition restart
Depending on the modeManagerErrorBehavior the RTE has to re-initialize the
mode machine instance during the restart of the mode user’s partition. In
case modeManagerErrorBehavior.errorReactionPolicy is set to default-
Mode the behavior is similar as during the transition to the initial mode (see
[SWS_Rte_02544]). During the initialization of the RTE resources for a restarting mode
user partition only a subset of the single steps of a mode transition is applicable.
[SWS_Rte_06796] dDuring the transition to the default mode (next mode is default
mode) of mode machine instances when the mode user’s partition restarts, the
steps defined in the following requirements have to be omitted as no previous mode is
applicable:
• [SWS_Rte_02562],
• [SWS_Rte_07153],
• [SWS_Rte_02707],
• [SWS_Rte_02708],
• [SWS_Rte_02563],
• [SWS_Rte_02587]
If applicable, the steps described by the following requirements still have to be executed
for entering the default mode:
• [SWS_Rte_02661],
• [SWS_Rte_02564]
c(SRS_Rte_00143, SRS_Rte_00144)
In case modeManagerErrorBehavior.errorReactionPolicy is set to last-
Mode the behavior indicates a stable mode during the re-initialization in order to provide
the means to the mode manager to explicitly decide on the appropriate mode to han-
dle the fault.
[SWS_Rte_06797] dIf the attribute
modeManagerErrorBehavior.errorReactionPolicy is set to lastMode the
RTE / Basic Software Scheduler shall activate the mode disablings of the last mode
during the partition restart, if any mode disabling dependencys for that mode are
defined.c(SRS_Rte_00143, SRS_Rte_00144)
When a mode user gets out of sync with the mode manager (because the partition
of the mode manager has been terminated) a sequence of error reactions is defined.
Hereby the RTE offers the ability to automatically switch into a default mode. This
feature can be used to ensure that the mode users are automatically switched into
a defined mode which in turn may be used to ensure a secure behavior of the mode
users, for instance switching off some actuators.
As an alternative the mode machine instance can stay in the last mode which can
be used to keep the "status quo" until the mode manager is restarted.
[SWS_Rte_06795] dThe RTE Generator shall take the modeUserErrorBehavior
from the ModeDeclarationGroup typing the ModeDeclarationGroupProto-
type in the ModeSwitchInterface of the PPortPrototype/PRPortPrototype.c
(SRS_Rte_00143, SRS_Rte_00144)
[SWS_Rte_06785] dIf the partition of the mode manager gets terminated during an
ongoing transition, the RTE shall complete the transition.c(SRS_Rte_00143, SRS_-
Rte_00144)
[SWS_Rte_06786] dIf the partition of the mode manager gets terminated during an
ongoing transition, the RTE shall skip the mode switch acknowledgment.c(SRS_Rte_-
00143, SRS_Rte_00144) For mode switch acknowledgment see [SWS_Rte_02587]
and section 4.4.8
[SWS_Rte_06787] dThe RTE shall clear all mode switch notifications in the
queue when the partition of the mode manager gets terminated and after an ongoing
transition is completed.c(SRS_Rte_00143, SRS_Rte_00144)
[SWS_Rte_06788] dIf the attribute
modeUserErrorBehavior.errorReactionPolicy is set to lastMode the mode
machine instance stays in the last mode before the termination of the mode man-
ager.c(SRS_Rte_00143, SRS_Rte_00144)
[SWS_Rte_06789] dIf the attribute
modeUserErrorBehavior.errorReactionPolicy is set to defaultMode the
RTE shall enqueue the mode defined by modeUserErrorBehavior.defaultMode
to the mode switch notification queue.c(SRS_Rte_00143, SRS_Rte_00144)
[SWS_Rte_06790] dIf the attribute modeUserErrorBehavior is not defined the RTE
shall enqueue the mode defined by initialMode to the mode switch notifica-
tion queue.c(SRS_Rte_00143, SRS_Rte_00144)
[SWS_Rte_06791] dThe RTE shall execute the error reactions in case the partition of
the mode manager gets terminated in the following order:
1. [SWS_Rte_06785], [SWS_Rte_06786]
2. [SWS_Rte_06787]
3. [SWS_Rte_06788] or [SWS_Rte_06789] or [SWS_Rte_06790]
c(SRS_Rte_00143, SRS_Rte_00144)
[SWS_Rte_06792] dThe RTE shall dequeue queued mode switch notifica-
tions and execute them regardless whether the partition with the mode manager
is terminated, restarting or restarted. Thereby the restart of the mode manager’s par-
tition shall not abort the ongoing transition of a mode machine instance.c(SRS_-
Rte_00143, SRS_Rte_00144)
This ensures that the defaultMode in the mode switch notification queue
gets effective.
[SWS_Rte_06793] dThe RTE shall activate RunnableEntitys triggered by a Swc-
ModeManagerErrorEvent when the partition of the mode manager is restarted.c
(SRS_Rte_00143, SRS_Rte_00144)
There exist several use cases (especially if software is reused), where mode users
are connected to mode managers providing ModeDeclarationGroups with differ-
ent ModeDeclarations than the user.
Examples:
• A mode manager can be able to differentiate more fin grained sub states as it
is required by the generic mode user. But due to the definition of the mode
communication it is not possible to use two p-ports at the mode manager be-
cause this would lead to two independent and unsynchronized mode machine
instances in the RTE.
• A generic mode user can support additionally modes which are not used by all
mode managers.
This would normally lead to an error as incompatible ports are connected. To overcome
this limitation the Software Component Template [2] provides a mapping between dif-
ferent ModeDeclarations so that the RTE can translated on mode to the other.
[SWS_Rte_08511] dIf a ModeDeclaration of a mode user is mapped to a sin-
gle ModeDeclaration of a mode manager the related mode of the mode user is
entered or exit when the mapped mode of the mode manager is entered or exit.c
(SRS_Rte_00236)
[SWS_Rte_08512] dIf one ModeDeclaration of a mode user is mapped to sev-
eral ModeDeclarations of a mode manager the related mode of the mode user
is entered when any of the mapped modes of the mode manager mapped by one
modeDeclarationMapping is entered. The related mode of the mode user is exit
when any of the mapped modes of the mode manager mapped by one modeDecla-
rationMapping is exit and if the new mode is not mapped by the same modeDec-
larationMapping to related mode of the mode user.c(SRS_Rte_00236)
Note: If one ModeDeclaration of a mode user is mapped to several ModeDecla-
rations of a mode manager by the means of several modeDeclarationMappings
the semantics is defined in a way that the individual mode transitions of the mode man-
ager are getting visible as “exit” and “enter” events for the mode user. Further on the
transition phase gets visible by the RTE_TRANSITION return value in the case that
Rte_Mode-API is called during such a transition phase.
If one ModeDeclaration of a mode user is mapped to several ModeDeclara-
tions of a mode manager by the means of a single modeDeclarationMapping
the semantics is defined in a way that the individual mode transitions of the mode
manager are not visible for the mode user.
Example:
The mode manager and the mode user have different ModeDeclaration-
Groups which are mapped by several modeDeclarationMappings. The Mode-
DeclarationGroup of the mode manager is more fine grained, so more than one
Table 4.20 shows a possible scenario how mode transitions of a mode manager
will be seen from the point of view of a mode user when the modeDeclaration-
Mapping maps more than one ModeDeclaration of the mode manager’s Mode-
DeclarationGroup onto the same ModeDeclaration of the mode user’s Mode-
DeclarationGroup.
Mode transitions of the Mode transitions of the
mode manager mode user resulting out of the mapping
Undefined → StartUp Undefined → STARTUP
StartUp → Run STARTUP → RUN
Run → PostRun1 RUN → POST_RUN
PostRun1 → PostRun2 — (no transition)
PostRun2 → ShutDown POST_RUN → SHUTDOWN
ShutDown → Sleep SHUTDOWN → SHUTDOWN
Sleep → Hibernate — (no transition)
Table 4.20: Possible scenario of mode transitions by the mode manager and the result-
ing transitions from the point of view of the mode user
Note: It is only supported that modes of the mode user might not be mapped.
In case different mode state machines are switched via synchronous mode switches,
the order of their execution is basically undefined. Limited possibilities exist by using
separate tasks for the different mode state machines. But these would globally give
switches of one mode machine instance a higher priority than switches of another
mode machine instance. In some cases it is required to keep the strict order of
the mode switches, independent to which mode state machine they belong. One ex-
ample, could be the key state (ON, OFF) and the engine state (RUNNING, STOPPED)
which are technically independent mode machine instances, but have a functional
connection. If the mode switch from key ON to OFF occurs first, followed by the switch
from engine RUNNING to STOPPED, it was obviously the user’s intention to stop the
engine. If the two transitions are executed in the reverse order, the system will see a
switch from engine RUNNING to STOPPED while the key state is still ON which in-
dicates a stalled engine which a start stop system might try to restart. This example
shows how important it is for the application software to see the execution of the mode
switches in the order they have been requested. As a result, it is required to have a
mechanism to define a FIFO order for the mode switches of at least a subset of the
mode machine machines in the ECU.
A similar issue occurs in multi core systems in which user components on multiple
cores have to react directly or indirectly on a mode switch. On one side it is already
clear that in case mode disabling dependencies exist on multiple cores, to fulfill the
requirements about the synchronous switching of these disabling dependencies, it
is necessary to have one mode switch task per partition having mode disabling de-
pendencies. But also in case there are SwcModeSwitchEvents in components of
different partitions which react on switches of the same mode machine instance
there have to be multiple tasks performing these switches as it is not legal to execute
RunnableEntitys of a software component assigned to one partition in tasks be-
longing to another partition. To avoid that one partition is already in the new state while
the other one didn’t even start the transition, it is also necessary to synchronize the
mode switch tasks of multiple partitions, especially if they reside on different cores.
This is important for the same reason as above. A component might expect a certain
behavior of the system in a certain state. If now one partitions is still in the old state
while another one is already in the new state, the expectation does not match reality
with the consequence of functional misbehavior.
A distributed shared mode queue is characterized by a set of mode machine
instances and a set of OsTasks in which the mode switches of the participating
mode state machines will be executed.
[SWS_Rte_06832] dThe RTE Generator shall retrieve the set of mode machine in-
stances belonging to one distributed shared mode queue from the set of Rt-
eDSMQModeMachineInstanceRef.c(SRS_Rte_00143, SRS_Rte_00310)
[SWS_Rte_06833] dThe RTE Generator shall retrieve the set of DSMQ transition Os-
Tasks belonging to one distributed shared mode queue from the set of Rt-
eDSMQOsTaskRefs.c(SRS_Rte_00143, SRS_Rte_00310)
The OsTasks participating in a single distributed shared mode queue may or
may not belong to a separate partition. If such OsTasks are belonging to OsAppli-
cations executed on the same micro controller core such DSMQ transition OsTasks
have to be chained via the EcuC configuration. But not necessarily each partition will
have an OsTask participating in a distributed shared mode queue.
The OsTasks participating in a single distributed shared mode queue will only
contain ExecutableEntitys mapped to this OsTasks via SwcModeSwitchEvents,
BswModeSwitchEvents, ModeSwitchedAckEvents or BswModeSwitchedAck-
Events referencing one of the mode machine instance participating in this dis-
tributed shared mode queue.
[SWS_Rte_CONSTR_09102] Exclusive usage of OsTasks used for distributed
shared mode queue dAn OsTask belonging to a distributed shared mode
queue shall have only mapped on-entry ExecutableEntitys, on-transition
ExecutableEntitys, on-exit ExecutableEntitys, and ModeSwitchAck
ExecutableEntitys to it which are triggered by mode machine instances be-
longing to the identical distributed shared mode queue.c()
Thereby [SWS_Rte_06839] constraints the order of the event to task mappings.
Similar to the behavior defined in [SWS_Rte_02665] the execution of the mode switch
may be triggered for each partition in parallel. If the partitions are executed on the
same micro controller core the order depends on the priorities of the OsTasks or on a
configured task chaining. In case partitions are executed on different micro controller
cores, execution of the on-entry ExecutableEntitys, on-transition Exe-
cutableEntitys, and on-exit ExecutableEntitys may run concurrently.
[SWS_Rte_06834] dThe RTE shall trigger all OsTasks belonging to a distributed
shared mode queue simultaneously, except the ones which are chained after an-
other OsTask belonging to this distributed shared mode queue.c(SRS_Rte_-
00143, SRS_Rte_00310)
[SWS_Rte_06835] dThe RTE shall execute the mode switches of the mode ma-
chine instances participating in a distributed shared mode queue in the
order of the calls of the related Rte_Switch or SchM_Switch APIs.c(SRS_Rte_-
00143, SRS_Rte_00310)
Thereby the queued mode switches of the mode machine instances of the same
distributed shared mode queue are processed one after the other according
the FIFO principle.
[SWS_Rte_06838] dThe RTE shall switch at most one mode machine instance
of the set of mode machine instances participating in a distributed shared
mode queue at the same time into transition.c(SRS_Rte_00143, SRS_Rte_00310)
Thereby:
• Step 1. - 2 shall be executed synchronously in each partition for the whole mode
machine instance.
• Step 3. - 8. may be executed in parallel on the different cores and therefore are
triggered in parallel for each partition.
• Step 9. shall be executed synchronously in each partition for the whole mode
machine instance.
The step 10. is executed if the step 1. - 9. is finished for the whole mode machine
instance.c(SRS_Rte_00143, SRS_Rte_00310)
4.5.1.1 Introduction
ARElement AtpBlueprintable
AtpBlueprint +port AtpPrototype
AtpBlueprintable Components::PortPrototype
AtpType «atpVariation,atpSplitable» 0..*
Components::SwComponentType
Components::AtomicSwComponentType
Components:: Components::
AbstractRequiredPortPrototype AbstractProvidedPortPrototype
PortInterface::TriggerInterface
«atpVariation»
+synchronizedTrigger 0..* +trigger 0..*
+swcTrigger AtpStructureElement
SwcBswMapping::
SwcBswSynchronizedTrigger «instanceRef» Identifiable
1
TriggerDeclaration::Trigger
1
ARElement
AtpBlueprint +releasedTrigger
AtpBlueprintable
«atpVariation,atpSplitable» 0..*
AtpStructureElement
BswOverview::BswModuleDescription +requiredTrigger
[SWS_Rte_07542] dThe Basic Software Scheduler shall support the activation of Ba-
sic Software Schedulable Entities occurrence of External Trigger Events.c(SRS_Rte_-
00216)
4.5.1.4 Multiplicity
The concept of external event communication supports, that a trigger source ac-
tivates one or more triggered ExecutableEntitys in one or more trigger
sinks.
[SWS_Rte_07216] dThe RTE generator shall support triggered ExecutableEn-
titys triggered by the same Trigger of a trigger source (‘1 : n’ communication
where n ≥ 1).c(SRS_Rte_00162, SRS_Rte_00216)
The execution order of the triggered ExecutableEntitys in the trigger sinks
depends from the RteEventToTaskMapping described in chapter 8.5.1 and the
configured priorities of the operating system.
The RTE generator does not support multiple trigger sources communicating
events to the same Trigger in a trigger sink (‘n : 1’ communication where n > 1).
[SWS_Rte_07039] dThe RTE generator shall reject configurations where multiple
trigger sources communicating events to the same Trigger in a trigger sink
(‘n : 1’ communication where n > 1).c(SRS_Rte_00018)
[SWS_Rte_CONSTR_09008] The same Trigger in a trigger sink must not be
connected to multiple trigger sources dThe same Trigger in a trigger sink must
not be connected to multiple trigger sources.c()
3. BswTriggerDirectImplementation
c(SRS_Rte_00216, SRS_Rte_00217, SRS_Rte_00018)
[SWS_Rte_CONSTR_09009] Synchronized Trigger shall not be referenced by
more than one type of access method dA synchronized Trigger shall only be ref-
erenced by either ExternalTriggeringPoints, issuedTriggers or BswTrig-
gerDirectImplementations.c()
Note: This shall ensure in the combination with the existence conditions of the Rte_-
Trigger and SchM_Trigger that only one kind of Trigger API ([SWS_Rte_07201]
and [SWS_Rte_07264]) or the direct task activation is offered to the implementation of
the trigger source.
With the mechanism of Inter Runnable Triggering one Runnable Entity is able to re-
quest the activation of Runnable Entities of the same software-component instance.
[SWS_Rte_07220] dThe RTE shall support Inter Runnable Triggering.c(SRS_Rte_-
00163)
Similar to External Trigger Event Communication (described in chapter 4.5.1) the acti-
vation of triggered runnables can be implemented by means of activating an Operating
System Task or by direct or trusted function call.
[SWS_Rte_07555] dThe call of the Rte_IrTrigger API shall activate all triggered
runnables which InternalTriggerOccurredEvents are associated with the related In-
ternalTriggeringPoint of the same software-component instance if the trigger queue is
empty.c(SRS_Rte_00163)
[SWS_Rte_07221] dThe RTE shall support for Inter Runnable Triggering that trig-
gered runnables entities are invoked via OS Task activation.c(SRS_Rte_00163)
[SWS_Rte_07224] dThe RTE shall support for Inter Runnable Triggering that trig-
gered runnables are invoked via direct function call if all of the following conditions
are fulfilled:
• none of the triggered BswSchedulableEntitys activated by this In-
ternalTriggeringPoint define a ‘minimum start distance’
c(SRS_Rte_00163)
4.5.2.1 Multiplicity
The Inter Basic Software Module Entity Triggering is similar to the mechanism of In-
ter Runnable Triggering (see chapter 4.5.2) with the exception that it is used inside a
Basic Software Module. It can be used to request the activation of a BswSchedula-
bleEntity by a Basic Software Entity of the same a Basic Software Module instance.
[SWS_Rte_07551] dThe Basic Software Scheduler shall support Inter Basic Software
Module Entity Triggering.c(SRS_Rte_00230)
Similar to External Trigger Event Communication (described in chapter 4.5.1) the acti-
vation of triggered BswSchedulableEntity can be implemented by means of acti-
vating an Operating System Task or by direct or trusted function call.
[SWS_Rte_07552] dThe call of the SchM_ActMainFunction API shall activate all
triggered BswSchedulableEntitys which BswInternalTriggerOccurredEvents
are associated by the related activationPoint of the same a Basic Software Module
instance if the trigger queue is empty.c(SRS_Rte_00230)
[SWS_Rte_07553] dThe Basic Software Scheduler shall support for Inter Basic Soft-
ware Module Entity Triggering that triggered BswSchedulableEntitys are in-
voked via OS Task activation.c(SRS_Rte_00230)
[SWS_Rte_07554] dThe Basic Software Scheduler shall support for Inter Basic Soft-
ware Module Entity Triggering that triggered BswSchedulableEntitys are in-
voked via direct or trusted function call if
• the triggered BswSchedulableEntitys do not define a ‘minimum start dis-
tance’
• if the preconditions of constraint [constr_4086] are fulfilled
c(SRS_Rte_00230)
Note: Typically the feature of Inter Basic Software Module Entity Triggering is used
to decouple the execution context of Basic Software Entities. But if this decoupling
is really required depends from the particular scheduling concept and microcontroller
performance.
Conceptually triggers are always queued. The queuing of triggers ensures that the
number of executions of triggered ExecutableEntitys is equal to the number
of released triggers. Further on it ensures that the number of activations of triggered
ExecutableEntitys is equal for all associated triggered ExecutableEntitys
of a trigger emitter if the associated triggered ExecutableEntitys are not
activated by other RTEEvents.
Note: The conceptional queue can be implemented in various ways, depending on
the SWC or BSWM integration and RTE vendor’s choice. In some cases the trigger
queue can be implemented by simple counter. While in other cases the queue is not
even implemented in the RTE at all. For example, in case of using the OS task queue
as the trigger queue (see further down in this chapter), the trigger enqueue operation
boils down to calling ActivateTask and the dequeue operation to the termination of
the activated task(s). In case of trigger events not being mapped to an OsTask the
enqueue and dequeue operations are even both reduced to the same moment when
the execution of the related RunnableEntitys in the Trigger API starts.
RTE and Basic Software Scheduler have a nested life cycle. It is only
permitted to initialize the RTE if the Basic Software Scheduler is initialized
([SWS_Rte_CONSTR_09036]). Further on it is only supported to finalize the Basic
Software Scheduler after the RTE is finalized ([SWS_Rte_CONSTR_09056]).
EcuM Basic Software RTE
Scheduler
SchM_Init()
RTE initialized
Rte_Stop()
SchM_Deinit()
Figure 4.53: Nested life cycle of RTE and Basic Software Scheduler
Before the Basic Software Scheduler is initialized only the API calls SchM_Enter and
SchM_Exit are available ([SWS_Rte_07578]).
The ECU state manager calls the startup routine SchM_Init of the Basic Software
Scheduler before any Basic Software Module needs to be scheduled.
The initialization routine of the Basic Software Scheduler will return within finite execu-
tion time (see [SWS_Rte_07273]).
The Basic Software Scheduler will initialize the mode machine instances
([SWS_Rte_02544])assigned to the Basic Software Scheduler. This will activate the
mode disablings of all initial modes during SchM_Init and trigger the execution
of the on-entry ExecutableEntitys of the initial modes. After initialization of the
Basic Software Scheduler internal data structure and mode machine instances
the activation of Basic Software Schedulable Entities triggered by BswTimingEvents
starts.
[SWS_Rte_07574] dThe call of SchM_StartTiming shall start the activation of
BswSchedulableEntitys triggered by BswTimingEvents.c(SRS_Rte_00211)
[SWS_Rte_07584] dThe call of SchM_Init shall start the activation of BswSchedu-
lableEntitys triggered by BswBackgroundEvents.c(SRS_Rte_00211)
Note: In case of OS task where BswEvents and RTEEvents are mapped to the RTE
Generator has to ensure, that RunnableEntitys are not activated before the RTE is
initialized or after the RTE is finalized. See [SWS_Rte_07580] and [SWS_Rte_02538].
[SWS_Rte_07580] dThe Basic Software Scheduler has to prevent the activation of
RunnableEntitys before the RTE is initialized.c(SRS_Rte_00220)
The ECU state manager calls the startup routine Rte_Start of the RTE at the end of
startup phase II when the OS is available and all basic software modules are initialized.
The initialization routine of the RTE will return within finite execution time (see
[SWS_Rte_02585]).
Before the RTE is initialized completely, there is only a limited capability of RTE to
handle incoming data from COM:
The RTE will initialize the mode machine instances ([SWS_Rte_02544]) assigned
to the RTE. This will activate the mode disablings of all initial modes during Rte_-
Start and trigger the execution of the on-entry ExecutableEntitys of the initial
modes. Further on for common mode machine instances the on-entry Runnable
Entities of the current active mode are executed during the initialization of the RTE
([SWS_Rte_07582]). common mode machine instances can not enter the transi-
tion phase during RTE initialization ([SWS_Rte_07583]).
Partitions of the ECU can be stopped and restarted. In a stopped or restarting parti-
tion, the OS has killed all running tasks. RTE has to react to stopping and restarting
partitions.
The RTE does not execute ExecutableEntitys of a terminated or restarting parti-
tion.
[SWS_Rte_07604] dThe RTE shall not activate, start or release ExecutableEntity
execution-instances of a terminated or restarting partition.c(SRS_Rte_00195)
The RTE is notified of the termination (respectively, the beginning of restart) of a parti-
tion by the Rte_PartitionTerminated (respectively, Rte_PartitionRestart-
ing) API. At this point in time, the tasks containing the runnables of this partition are
already killed by the OS. In case of restart, RTE is notified by the Rte_RestartPar-
tition API when the communication can be re-initialized and re-enabled.
[SWS_Rte_07604] also applies to ExecutableEntitys whose execution started be-
fore the notification to the RTE. RTE can rely on the OS functionality to stop or restart
an OS application and all related OS objects.
When a partition is restarted, the RTE will restore an initial environment for its SW-Cs.
[SWS_Rte_02735] dWhen the Rte_RestartPartition API for a partition is called,
the RTE shall restore an initial environment for its SW-Cs on this partition.c()
The SW-Cs themselves are responsible to restore their internal initial environment and
should not rely on any initialization performed by the compiler. This should be done in
initialization runnables.
[SWS_Rte_07610] dThe RTE Generator shall reject configurations where the han-
dleTerminationAndRestart attribute of a SW-C is not set to canBeTermi-
natedAndRestarted and this SW-C is mapped on a Partition with the Par-
titionCanBeRestarted parameter set to TRUE.c(SRS_Rte_00018, SRS_Rte_-
00196)
When a partition is terminated or is being restarted, it is important that the runnable
entities of this partition are not activated before the partition returns to the ACTIVE
state.
In case of partition restart or termination, event sent to this partition or activation of
tasks of this partition are discarded. The RTE can use these mechanism to ensure that
ExecutableEntitys are not activated.
The finalization routine Rte_Stop of the RTE is called by the ECU state manager at
the beginning of shutdown phase I when the OS is still available. (For details of the
ECU state manager, see [7]. For details of Rte_Start and Rte_Stop see section
5.8.)
[SWS_Rte_02538] dThe RTE shall not activate, start or release RunnableEntitys
on a core after Rte_Stop has been called on this core.c(SRS_Rte_00116, SRS_Rte_-
00220)
Note: RTE does not kill the tasks during the ‘running’ state of the runnables.
[SWS_Rte_02535] dRTE shall ignore incoming client server communication requests,
before RTE is initialized completely and when it is stopped.c(SRS_Rte_00116)
[SWS_Rte_02536] dIncoming data and events from sender receiver communication
shall be ignored, before RTE is initialized completely and when it is stopped.c(SRS_-
Rte_00116)
The ECU state manager calls the finalization routine SchM_Deinit of the Basic Soft-
ware Scheduler if the scheduling of Basic Software Modules has to be stopped.
[SWS_Rte_07586] dThe BSW Scheduler shall neither activate nor start BswSchedu-
lableEntitys on a core after SchM_Deinit has been called on this core.c(SRS_-
Rte_00116)
Note: The BSW Scheduler does not kill the tasks during the ‘running’ state of the
BswSchedulableEntitys.
[SWS_Rte_04552] dThe basic software scheduler shall ignore incoming client server
communication requests, before the basic software scheduler is initialized completely
or after it is stopped.c(SRS_Rte_00116)
For the initialization and finalization of AUTOSAR software components, RTE provides
the mechanism of mode switches. A SwcModeSwitchEvent of an appropriate Mod-
eDeclaration can be used to trigger a corresponding initialization or finalization
runnable (see [SWS_Rte_02562]). Runnables that shall not run during initialization
or finalization can be disabled in the corresponding modes with a mode disabling
dependency (see [SWS_Rte_02503]).
Since category 2 runnables have no predictable execution time and can not be ter-
minated using ModeDisablingDependencies, it is the responsibility of the imple-
menter to set meaningful termination criteria for the cat 2 runnables. These criteria
could include mode information. At latest, all runnables will be terminated by RTE
during the shutdown of RTE, see [SWS_Rte_02538].
It is appropriate to use user defined modes that will be handled in a proprietary ap-
plication mode manager.
All runnables that are triggered by entering an initial mode, are activated immediately
after the initialization of RTE. They can be used for initialization. In many cases it might
be preferable to have a multi step initialization supported by a sequence of different
initialization modes.
In addition to the mode-based approach RunnableEntitys to be used for initializa-
tion purposes can be activated by InitEvents as well. More information is provided
in section 4.2.2.11.
4.7.1 Overview
The AUTOSAR Templates support the creation of Variants in a subset of its model
elements. The Variant Handling support in the in AUTOSAR Templates is driven by
the purpose to describe variability in a AUTOSAR System on several aspects, e.g.
• Virtual Functional Bus
• Component SwcInternalBehavior and SwcImplementation
• Deployment of the software components to ECUs
• Communication Matrix
• Basic Software Modules
This approach requires that the RTE Generator is able to process the described Vari-
ability in input configurations and partially to implement described variability in the gen-
erated RTE and Basic Software Scheduler code.
In the meta-model all locations that may exhibit variability are marked with the stereo-
type atpVariation. This allows the definition of possible variation points.
Tagged Values are used to specify additional information.
There are four types of locations in the meta-model which may exhibit variability:
• Aggregations
• Associations
• Attribute Values
• Classes providing property sets
More details about the AUTOSAR Variant Handling Concept can be found in the AU-
TOSAR Generic Structure Template [10].
[SWS_Rte_06543] dThe RTE generator shall support the VariationPoints defined
in the AUTOSAR Meta Modelc(SRS_Rte_00201, SRS_Rte_00202, SRS_Rte_00229,
SRS_Rte_00191)
The list of VariationPoints shall provide an overview about the most prominent
ones which impacting the generated RTE code. Further on tables will show which
implementation of variability is standardized due to the relevance for contract phase.
(see tables 4.23, 4.25, 4.26, 4.27, 4.28, 4.29, 4.33, 4.34, 4.36 and 4.37. But please
note that these tables are not listing all possible variation of the input configuration. For
that the related Template Specifications are relevant.
To understand the later definition it is required to clarify the difference between Choos-
ing a Variant and Resolving Variability.
A particular PreBuild Variant in a variant rich input configuration is chosen by assigning
particular values to the SwSystemconsts with the means of PredefinedVariants
and associated SwSystemconstantValueSets. With this information SwSystem-
constDependentFormulas can be evaluated which determines PreBuild conditions
of VariationPoints and attribute values. Nevertheless the input configuration con-
tains still the information of all potential variants.
A particular PostBuild Variant in a variant rich input configuration is chosen by as-
signing particular values to the PostBuildVariantCriterion with the means
of PredefinedVariants and associated PostBuildVariantCriterionValue-
Sets. With this information PostBuildVariantConditions can be evaluated for
instance to check the consistency of chosen PostBuild Variant. Nevertheless the input
configuration contains still the information of all potential variants.
From an RTE perspective this information is mainly used to generate the RTE Post
Build Variant Sets which are used to bind the post-build variability during
initialization of the RTE (call of SchM_Init).
The variability of an input configuration is bound if information related to other variants
is removed and only the information of the bound variant is kept. Binding respectively
resolving variability in the scope of this specification means that the generated code
only implements the particular variant which results out of the chosen variant of the
input configuration.
If the variability can not be resolved in a particular phase of the RTE Generation Pro-
cess (see chapter 3) the generated RTE files have to be able to support the potential
variants by implementing all potential variants.
If the variability is relevant for the software components contract the RTE Generator
uses standardized Condition Value Macros to implement the pre-build variabil-
ity. These Condition Value Macros are set in the RTE PreBuild Data Set Contract
Phase and RTE PreBuild Data Set Generation Phase to the resulting value of the eval-
uated ConditionByFormula of the related VariationPoint.
For further definition see sections 4.7.2.3, 4.7.2.4, 4.7.2.5, 4.7.2.6 and 4.7.2.7.
A particular variant of the variant rich input configuration is chosen via the ECU con-
figuration For that purpose a set of PredefinedVariants is configured to chosen
a variant in the input configuration and to later on bind the variability in subsequent
phases of the RTE Generation Process 3. For further information see document [10].
[SWS_Rte_06500] dFor each pre-build variability in the input configuration
the RTE Generator shall choose a particular variant according to the Predefined-
Variants selected by the parameter EcucVariationResolver.c(SRS_Rte_00201,
SRS_Rte_00202, SRS_Rte_00229, SRS_Rte_00191)
[SWS_Rte_06546] dFor each post-build variability in the input configura-
tion the RTE Generator shall choose a particular variant according to the Prede-
finedVariants selected by the parameter RtePostBuildVariantConfigura-
tion.c(SRS_Rte_00201, SRS_Rte_00202, SRS_Rte_00229, SRS_Rte_00191)
Having variants chosen the RTE generator can apply further consistency checks on
the particular variants.
4.7.2.3 SystemDesignTime
4.7.2.4 CodeGenerationTime
During RTE Contract Phase, RTE Generation Phase and Basic Software Scheduler
Generation Phase the variability with latest binding time CodeGenerationTime (called
CodeGenerationTime variability) has to be bound and the RTE generator re-
solves the variability. This denotes that the code is generated for a particular variant. To
do this it is required that a particular variant for each CodeGenerationTime vari-
ability has to be chosen.
[SWS_Rte_06507] dThe RTE generator shall bind CodeGenerationTime vari-
ability in the RTE Contract Phase, Basic Software Scheduler Contract Phase, RTE
Generation Phase and Basic Software Scheduler Generation Phase (see sections
3.1.1, 3.1.2, 3.4.1 and 3.4.2).c(SRS_Rte_00229, SRS_Rte_00191)
[SWS_Rte_06547] dThe RTE Generator shall reject input configurations during the
RTE Contract Phase where not a particular variant is chosen for each CodeGener-
ationTime variability affecting the software components contract.c(SRS_Rte_-
00191, SRS_Rte_00018)
[SWS_Rte_06548] dThe RTE Generator shall reject input configurations during the
Basic Software Scheduler Contract Phase where not a particular variant is chosen for
each CodeGenerationTime variability affecting the Basic Software Scheduler
contract.c(SRS_Rte_00229, SRS_Rte_00018)
[SWS_Rte_06508] dThe RTE Generator shall reject input configurations during the Ba-
sic Software Scheduler Generation Phase where not a particular variant is chosen for
each CodeGenerationTime variability affecting the Basic Software Scheduler
generation.c(SRS_Rte_00229, SRS_Rte_00018)
[SWS_Rte_06509] dThe RTE Generator shall reject input configurations during the
RTE Generation Phase where not a particular variant is chosen for each CodeGener-
ationTime variability affecting the RTE generation.c(SRS_Rte_00191, SRS_-
Rte_00018)
4.7.2.5 PreCompileTime
statements in the generated RTE code (see sections 3.1.1, 3.1.2, 3.4.1 and 3.4.2).c
(SRS_Rte_00191)
[SWS_Rte_06553] dThe RTE Generator shall use the defined Attribute Value Macro
instead of immediate values if the value depends on an AttributeValueVaria-
tionPoint where the bindingTime is set to preCompileTime.c(SRS_Rte_00191)
4.7.2.6 LinkTime
The latest Binding Time LinkTime will not be supported for VariationPoints relevant for
the RTE Generator.
[SWS_Rte_06511] dThe RTE generator shall reject configuration which defines RTE
or Basic Software Scheduler relevant LinkTime variability.c(SRS_Rte_00018)
4.7.2.7 PostBuild
This section describes the affects of the existence of variation points with regards to
compositions. Though the application software compositions have been flattened and
effectively eliminated after allocation to an ECU there is still one composition to con-
sider for the RTE (i.e. the RootSwCompositionPrototype). The RootSwCompo-
sitionPrototype contains the atomic software components allocated to the respec-
tive ECU, its assembly connections,its delegation connections and the connections of
the delegation ports to system signals. Once the variability is resolved for a varia-
tion point it must adhere to the constraints and limitations that apply to a model that
does not have any variations. For example dangling connectors are not allowed and
as such their existence will lead to undefined behavior if such configurations still exist
after resolving post-build variation points.
Also within this specification section the wording "‘a variant is enabled or disabled"’
refers to the variation point’s SwSystemconstDependentFormula and/or PostBuildVari-
antCondition evaluating to "‘true or false"’ respectively.
This section describes the impact on the RTE interaction with the COM layer as a
result of variability of DataMappings (i.e. SenderReceiverToSignalMapping and
SenderReceiverToSignalGroupMapping in the SystemMapping) as well as the
existence of variants for ISignals The Meta Model allows for mapping the same data
to different SystemSignals as well as associating a SystemSignal with 1 or more
ISignals.
[SWS_Rte_06603] dIf a variant is enabled for a SystemMapping aggregating a
DataMapping then the RTE shall call the appropriate API’s for the applicable map-
ping type.c(SRS_Rte_00206, SRS_Rte_00207)
[SWS_Rte_06604] dThe appropriate API shall be determined based on the existence
of variants of ISignals to which a SystemSignal is associated to. For each enabled
ISignal the RTE shall call the proper COM API to send and receive data System-
Signalsc(SRS_Rte_00206, SRS_Rte_00207)
For example for an instance mapping from a VariableDataPrototype to a Sys-
temSignal the RTE shall call the corresponding Com_SendSignal with the proper
SignalId and SignalDataPtr based on the selected variant DataMapping.
The existence of variants of ISignals is determined by the System element (see also
[constr_3028]).
[SWS_Rte_06605] dDelegation ports on a RootSwCompositionPrototype for
which no DataMapping exists (i.e. no variant DataMapping is enabled) shall be con-
sidered unconnected because no path exists to a designated SystemSignal. Since
this is a delegation port all enabled delegation connectors linking SWC R-ports to the
respective delegation port must be considered unconnected (see section 5.2.7). P-
Ports shall behave as documented in section 4.7.3.1.2.c(SRS_Rte_00206, SRS_Rte_-
00207)
column description
kind infix The column kind infix defines infix strings to differentiate condition value
macros belonging to variation points of different API sets
form The column form specifies which names for the macro of the condition
value are concatenated to ensure a unique name space of the macro.
form description
component port The related API is provide for the whole software component and belongs
to a software components port
entity port The related API is provide for a particular RunnableEntity and belongs
to a software components port
component internal The related API is provide for the whole software component and belongs
to a software component internal functionality
entity internal The related API is provide per RunnableEntity and belongs to a soft-
ware component internal functionality
[SWS_Rte_06517] dThe RTE generator shall treat RTE API as variant RTE API only
if all elements (e.g. VariableAccess) in the input configuration controlling the exis-
tence of the same RTE API are subject to variability.c(SRS_Rte_00203)
Following variation points in the Meta Model do control the variant properties of RTE
API or allocated Memory.
Variation Point Subject to variability
Condition Value Macro
PortAPIOption with attribute portArgValue PortDefinedArgument-
Value is passed to a
RunnableEntity
not standardized
PortAPIOption with attribute indirectAPI Number of Ports which are sup-
porting indirect API, see Rte_-
NPorts and Rte_Ports
not standardized
Following variation points in the Meta Model do control the variant existence and acti-
vation of RunnableEntitys.
Variation Point Subject to variability
Condition Value Macro
RunnableEntity Existence of the RunnableEn-
tity prototype
[SWS_Rte_06530]
RTEEvent Activation of the RunnableEn-
tity
not standardized
Following variation points in the Meta Model do control the variant existence of RTE
memory allocation for the software component instance.
Variation Point Subject to variability
Condition Value Macro
implicitInterRunnableVariable variable definition implementing
the implicitInterRunnabl-
eVariable
not standardized
explicitInterRunnableVariable variable definition implementing
the explicitInterRunnabl-
eVariable
not standardized
arTypedPerInstanceMemory variable definition implementing
the arTypedPerInstance-
Memory
not standardized
PerInstanceMemory variable definition implementing
the PerInstanceMemory
not standardized
perInstanceParameter constant definition implementing
the perInstanceParameter
not standardized
sharedParameter variable definition implementing
the sharedParameter
not standardized
InstantiationDataDefProps, SwDataDefProps Allocation of the memory
objects described via swAd-
drMethod, accessibility for
MCD systems described via
swCalibrationAccess,
displayFormat, mcFunc-
tion
not standardized
Following variation points in the Meta Model do control the variant generation of data
types.
Variation Point Subject to variability
Condition Value Macro
ImplementationDataTypeElement Existence of the structure or
union element
[SWS_Rte_06542]
4.7.3.6 Constants
It is possible to instruct the RTE Generator to provide various instances for a Pa-
rameterDataPrototype in the component description. Therefore one FlatIn-
stanceDescriptor per expected parameter instance has to point to the Param-
eterDataPrototype. Thereby the FlatInstanceDescriptors needs to define
post build variation points to resolve the access to the various parameter instances.
Further details are described in section 4.2.9.3.7.
The VariationPoints listed in table 4.34 in the input configuration are controlling
the variant existence of Basic Software Scheduler API.
Variation Point Subject to variability form kind infix
Condition Value Macro
ExclusiveArea SchM_Enter, SchM_Exit module ExAr
internal
[SWS_Rte_06535]
managedModeGroup association to SchM_Switch, SchM_- module MMod
providedModeGroup ModeDeclara- SwitchAck external
tionGroupPrototype
[SWS_Rte_06536]
accessedModeGroup association to pro- SchM_Mode module AMod
videdModeGroup or requiredModeGroup external
ModeDeclarationGroupPrototype
[SWS_Rte_06536]
issuedTrigger association to re- SchM_Trigger module Tr
leasedTrigger Trigger external
[SWS_Rte_06536]
BswModuleCallPoint SchM_Call module SrvCall
external
[SWS_Rte_06536]
BswAsynchronousServerCallResult- SchM_Result module SrvRes
Point external
[SWS_Rte_06536]
dataSendPoint association to provided- SchM_Send module DSP
Data external
[SWS_Rte_06536]
dataReceivePoint association to re- SchM_Receive module DRP
quiredData external
[SWS_Rte_06536]
BswInternalTriggeringPoint SchM_ActMainFunction entity ITr
internal
[SWS_Rte_06536]
perInstanceParameter Parameter- SchM_CData module PIP
DataPrototype internal
[SWS_Rte_06535]
column description
kind infix The column kind infix defines infix strings to differentiate condition value
macros belonging to variation points of different API sets
form The column form specifies which names for the macro of the condition
value are concatenated to ensure a unique name space of the macro.
form description
module external The related API is provide for the whole module and belongs to a module
interface
module internal The related API is provide for the whole module and belongs to a module
internal functionality
entity internal The related API is provide per ExecutableEntity and belongs to a mod-
ule internal functionality
[SWS_Rte_06537] dThe RTE generator shall treat the existence of Basic Software
Scheduler API as subject to variability only if all elements (e.g. managedModeGroup
association) in the input configuration controlling the existence of the same Basic Soft-
ware Scheduler API are subject to variability.c(SRS_Rte_00229)
The VariationPoints listed in table 4.36 in the input configuration are controlling the
variant existence of BswModuleEntitys and the variant activation of BswSchedula-
bleEntitys.
Variation Point Subject to variability
Condition Value Macro
BswSchedulableEntity Existence of the BswSchedu-
lableEntity prototype
[SWS_Rte_06532]
BswEvent Activation of the BswSchedu-
lableEntity
not standardized
The VariationPoints listed in table 4.37 in the input configuration are controlling
the variant behavior of Basic Software Scheduler API.
Variation Point Subject to variability
Condition Value Macro
BswModeSenderPolicy Queue length in the mode ma-
chine instance dependent
from the attribute
not standardized
BswModeReceiverPolicy attribute supportsAsyn-
chronousModeSwitch has to
be considered according the
bound variant
not standardized
In this section some examples will be given in order to describe the affects of variability
with regard to SWC implementation. The implemented variability in SWCs is described
through VariationPointProxys and can be resolved by pre-build evaluation, by
post-build evaluation or by the combination of them. Furthermore for each Varia-
tionPointProxy AUTOSAR defines the categorys VALUE and CONDITION (see
Software Component Template [2]). In the following code examples one scenario for
each category will be described. The first scenario addresses the post-build case
and the second one the case of combination of pre-build and post-build.
Scenario for category VALUE
VariationPointProxy FRIDA
postBuildValueAccess Rte_PBCon_FRIDA = 3
might result for example in something like:
1 /* Generated RTE-Code */
2
3 const Rte_PBCon_FRIDA 3
1 /* SWC-Code */
2
3 if (Rte_PBCon_FRIDA == 3) {
4 /* code depending on proxy FRIDA */
5 }
6 else {
7 /* functional alternative, if FRIDA is not selected */
8 }
1 /*SWC-Code*/
2
3 /* ensure that no code for HUGO remains in
4 the binary, if HUGO is not selected */
5 #if Rte_SysCon_HUGO
6
7 /* check during run time, if HUGO is
8 active due to post-build conditions */
9 if (Rte_PBCon_HUGO) {
10 /* code depending on proxy HUGO */
11 }
12 else {
13 /* functional alternative, if HUGO is not selected */
14 }
15
16 #else
17 /* functional alternative is always
18 active since HUGO is not selected */
19 #endif
Since the post-build data structure is not standardized the algorithm for the evaluation
of the expressions RteInternal_EvalPostBuildVariantCondition_HUGO_A
and RteInternal_EvalPostBuildVariantCondition_HUGO_B is up to the im-
plementer.
In contrast to Rte_SysCon the Rte_PBCon API has no guarantee, that it can be re-
solved in the pre-processor. It is subject to the optimization of the compiler to reduce
code size. If one wants to be absolutely sure, that no superfluous code exists even with
non optimizing compilers, he needs to implement a pre-processor directive in addition
(see example).
[SWS_Rte_06631] dThe RTE shall use the OS Application Identifier as the Instance
Id to enable the developer to identify in which runtime section of the RTE the error
occurs. This Instance ID is even unique across multi cores and so implicitly allows the
development error to be traced to a specific core.c(SRS_BSW_00337)
[SWS_Rte_06632] dThe RTE shall use the Service Id as identified in the table 4.39.
Each RTE API template, RTE callback template and RTE API will have an Identifier.
This ID Service ID must be used when running code in the context of the respective
RTE call.c(SRS_BSW_00337)
Only a limited set of development identifiers are currently recognized. Each of these
need to be detected either at runtime or during initialization of the RTE. To report these
errors extra development code must be generated by the RTE generator.
[SWS_Rte_06633] dAn RTE_E_DET_ILLEGAL_SIGNAL_ID (0x01) shall be reported
at runtime by the RTE when it receives a COM callback for a signal name (e.g.
Rte_COMCbk_<sn>, Rte_COMCbkTAck_<sn>) which was not expected within the
context of the currently-selected postBuild variant. See section 5.9.2.1 for the list of
possible COM callback template API.c(SRS_BSW_00337)
[SWS_Rte_06634] dAn RTE_E_DET_ILLEGAL_VARIANT_CRITERION_VALUE
(0x02) shall be reported by the RTE when it determines that a value is assigned to a
variant criterion which is not in the list of possible values for that criterion. This error
shall be detected during the RTE initialization phase.c(SRS_BSW_00337)
[SWS_Rte_07684] dAn RTE_E_DET_ILLEGAL_VARIANT_CRITERION_VALUE
(0x02) shall be reported by the Basic Software Scheduler when the SchM_Init API
is called with a NULL parameter.c(SRS_BSW_00337)
[SWS_Rte_06635] dAn RTE_E_DET_ILLEGAL_INVOCATION (0x03) shall be re-
ported by the RTE when it determines that an RTE API is called by a Runnable which
should not call that RTE API. The RTE can identify the active Runnable when it dis-
patches the RTE Event and if it subsequently receives a call from that Runnable to
an API that is not part of its contract then this particular error ID must me logged.c
(SRS_BSW_00337)
[SWS_Rte_06637] dAn RTE_E_DET_WAIT_IN_EXCLUSIVE_AREA (0x04) shall be
reported by the RTE when an application has called an Rte_Enter API and subse-
quently asks the RTE to enter a wait state. This is illegal because it would lock the
ECU.c(SRS_BSW_00337)
[SWS_Rte_07675] dAn RTE_E_DET_ILLEGAL_NESTED_EXCLUSIVE_AREA
(0x05) shall be reported by the RTE when an application violates
[SWS_Rte_CONSTR_09029].c(SRS_BSW_00337)
[SWS_Rte_07685] dAn RTE_E_DET_SEG_FAULT (0x06) shall be reported by the
RTE when the parameters of an RTE API call contain a direct or indirect reference to
memory that is not accessible from the callers partition as defined in [SWS_Rte_02752]
and [SWS_Rte_02753].c(SRS_BSW_00337)
[SWS_Rte_07682] dIf RteDevErrorDetectUninit is enabled, an RTE_E_UNINIT
(0x07) shall be reported by the RTE when one of the APIs :
• Specified in 5.6.
• Rte_NvMNotifyInitBlock.
• Rte_PartitionTerminated.
• Rte_PartitionRestarting.
• Rte_RestartPartition.
is called before Rte_Start, after Rte_Stop or After the partition to which the API
belongs is terminated.c(SRS_BSW_00337)
Note:
• In production mode, No checks are performed.
• In development mode, if an error is detected the API behaviour is undefined and
it is left to the Rte implementer.
Rational: The introduction of this developpement check should not introduce big
changes to production mode configuration.
The following abbreviations are used to identify the DET error in table 4.39.
Abbreviation RTE DET Error
ISI RTE_E_DET_ILLEGAL_SIGNAL_ID
IVCV RTE_E_DET_ILLEGAL_VARIANT_CRITERION_VALUE
II RTE_E_DET_ILLEGAL_INVOCATION
INEA RTE_E_DET_ILLEGAL_NESTED_EXCLUSIVE_AREA
WIEA RTE_E_DET_WAIT_IN_EXCLUSIVE_AREA
UNINIT RTE_E_UNINIT
The following table 4.39 indicates which DET errors are relevant for the various RTE
APIs, and the service ID associated with the RTE APIs (see [SWS_Rte_06632]):
UNINIT
IVCV
INEA
WIEA
ISI
II
The component wrapper method consists in wrapping the original software component
implementation with a CDD that implements the bypass. With this method the CDD is
able to take the control of the AUTOSAR interfaces of the software component because
there is no more direct call between RTE and the SWC but everything go through the
CDD.
RTE RTE
SWC B
RPT CDD
The RTE supports the component wrapper method by generating the SWC interfaces
with a c-namespace including an additional [Byps_] infix for the bypassed SWC (i.e.
SWC B in Figure 4.54). This includes:
• naming of Application Header File
• naming of the Application Type Header File
• naming of the RTE APIs (excepted life cycle APIs)
• naming of the runnables
• naming of the instance handle
• naming of the Component Data Structure type
• naming of the memory sections
The component wrapper method for bypass support is enabled per software compo-
nent type.
[SWS_Rte_07840] dThe component wrapper method for bypass support is enabled
for a software component type if the general switch RteBypassSupport is set to
COMPONENT_WRAPPER and the individual switch for this software component type
RteBypassSupportEnabled is set to true.c(SRS_Rte_00244)
The direct buffer access method provides runtime direct read and write access to the
RTE buffers that implement the ECU communication infrastructure.
The RTE supports the direct buffer access method by generating the McSupportData
for these buffers. This is already supported by the RTE measurement and calibration
support but for the rapid prototyping purpose additional elements shall be generated.
The component wrapper method for bypass support is enabled per software compo-
nent type.
The component wrapper method for bypass support is enabled for a software compo-
nent type if the individual switch for this software component type RteBypassSup-
portEnabled is set to true.
[SWS_Rte_07836] dIf the direct buffer access method for bypass support is enabled for
a software component type, the RTE generator shall generate McSupportData with
mcDataAccessDetails for each preemption area specific buffer that implements the
implicit communication for this software component type.c(SRS_Rte_00244)
The extended buffer access method enhances the support for rapid prototyping (RP) to
support the bypass use case where the RTE cannot be regenerated by the bypass user.
The goal is to ensure that all VariableDataPrototypes that are communicated
via RTE APIs are written to and read back from a RP global buffer that can be
modified by rapid prototyping tools (RPT). The method applies to all RTE APIs and not
just those for implicit access and hence is termed the extended buffer access method.
RTE RTE
Table 4.41: Summary of enable/disable options for Extended Buffer Access method
the generated code also includes an RP enabler flag that is used to make update
of the RP global buffer conditional.
The RP enabler flag can be in either (calibratable) ROM or RAM based on Rpt-
Container.rptEnablerImplType.
• Level 3 – When RptImplPolicy.rptPreparationLevel is set to
rptLevel3 then in addition to the requirements of rptLevel2, the generated
code also records the original ECU-generated value as well as the RP replace-
ment value.
When rptImplPolicy of a RptContainer is used the RptContainer can refer-
ence:
• VariableDataPrototype – the preparation level applies to a single data item
(and hence, for example, related Sender-Receiver APIs).
• ArgumentDataPrototype – the preparation level applies to a single opera-
tion argument (and hence related Client-Server APIs).
• ModeDeclarationGroupPrototype – the preparation level applies to a single
ModeDeclaration argument (and hence related Mode APIs).
• operation – the preparation level applies to all ClientServerOperation’s
ArgumentDataPrototypes (and hence related Client-Server APIs).
• RunnableEntity – the preparation level applies to a all data items / arguments
accessed by the RunnableEntity.
• SwComponentPrototype – the preparation level applies to all RunnableEn-
titys (and hence all accessed data items and arguments) in the software com-
ponent.
This level is intended to be used by post-build hooking tools that patch writes to buffers
such that a bypass value is written into a buffer rather than the value calculated by the
ECU.
Logically this means that a C statement like:
1 buffer = ecu_value;
is patched to be:
1 buffer = f(ecu_value);
As an example of the changes to generated RTE code when rptLevel1 of the Ex-
tended Buffer Access method is enabled, consider an Rte_Write API that sends
VariableDataPrototype D via port P using explicit semantics. A “typical” imple-
mentation might look something like Example 4.13:
Example 4.13
1 Std_ReturnType Rte_Write_P_D(<type> data)
2 {
3 <send> data;
4 return <result of send>;
5 }
Example 4.14
1 /* RP global buffer */
2 volatile <type> SWCA_Bypass_P_D;
3
4 Std_ReturnType Rte_Write_P_D(<type> data)
5 {
6 SWCA_Bypass_P_D = data;
7 <send> SWCA_Bypass_P_D;
8 return <result of send>;
9 }
The changes as a result of rptLevel1 support revolve around the reads/writes of the
RP global buffer. These changes are summarized by the following two require-
ments:
[SWS_Rte_06033] dWhen rptLevel1 support is enabled for a VariableDataPro-
totype accessed using explicit semantics the RTE generator shall write each associ-
ated IN or INOUT API parameter to a RP global buffer.c(SRS_Rte_00244)
Subsequent accesses to the actual parameter within the generated function are re-
placed by use of the RP global buffer instead.
[SWS_Rte_06034] dWhen rptLevel1 support is enabled for a VariableDataPro-
totype accessed using explicit semantics then within RTE APIs the RTE generator
shall read the value of the associated IN and INOUT parameters from the RP global
buffer rather than use the formal parameter.c(SRS_Rte_00244)
These modifications ensure that if an RP tool patches the write to the RP global
buffer SWCA_Bypass_P_D then the value that is written by the RP tool to
SWCA_Bypass_P_D will be sent instead of the actual function parameter data.
The requirements inherently cause the RP global buffer to exist thus there is no
explicit requirement to create the global buffer. However the characteristics of this
buffer are constrained as follows.
[SWS_Rte_06035] dAn RP global buffer used for rptLevel1 data shall be
marked as volatile.c(SRS_Rte_00244)
The volatile keyword is essential to ensure that compiler optimization does not elide
the read of SWCA_Bypass_P_D in <send> SWCA_Bypass_P_D.
[SWS_Rte_06036] dThe RP global buffer contents shall be valid for at least the
lifetime of the accessing RTE function (i.e. the lifetime of the runnable that calls the RTE
function) and any related measurement and stimulation services.c(SRS_Rte_00244)
[SWS_Rte_06037] dThe same RP global buffer shall always be used for the
same SWCI/API-type/port/variable-data-prototype.c(SRS_Rte_00244)
Requirement [SWS_Rte_06037] ensures stability for post-build hooking tools, e.g. if
we have Rte_Write_P_D for SWCA then the same RP global buffer is used irre-
spective of when or how SWCA calls Rte_Write_P_D. Since the RTE API is created
per-SWC instance then different instances will use different RP global buffers.
Note that requirement [SWS_Rte_06036] indicates the minimum lifetime required; in
an implementation the actual lifetime may be longer.
The above requirements are not intended to indicate that a dedicated RP global
buffer must be created. In particular, if the generated RTE already contains a buffer
whose characteristics satisfy those of an RP global buffer then an implementation
is free to reuse the existing buffer.
As an additional example, consider an Rte_Read API that receives VariableDat-
aPrototype D via port P. A “typical” implementation might look something like Exam-
ple 4.15:
Example 4.15
1 Std_ReturnType Rte_Read_P_D(<type>* const data)
2 {
3 *data = <receive>;
4 <notifications>;
5 return <result of receive>;
6 }
When using the Extended buffer access method and the rptPreparationLevel is
rptLevel1, the RptContainer references D and rptReadAccess is rptReadAc-
cess the generated RTE API from Example 4.15 is modified to become Example
4.16:
Example 4.16
1 volatile <type> SWCB_Bypass_P_D; /* RP global buffer */
2 Std_ReturnType Rte_Read_P_D(<type>* const data)
3 {
4 SWCB_Bypass_P_D = <receive>;
5 *data = SWCB_Bypass_P_D;
6 <notifications>;
7 return <result of receive>;
8 }
Example 4.17
1 /* RP global buffer */
2 volatile <type2> SWCA_Bypass_P_D;
3
4 Std_ReturnType Rte_Write_P_D(<type> data)
5 {
6 SWCA_Bypass_P_D = f(data);
7 <send> SWCA_Bypass_P_D;
8 return <result of send>;
9 }
For implicit Sender-Receiver and IRV communication, RP global buffers are used
when the context-local implicit communication buffers are initialized and written back.
Consider an Rte_IWrite API that sends VariableDataPrototype D via port P
and an Rte_IRead API that reads VariableDataPrototype E via port Q. A “typical”
implementation might look like:
1 local_P_D = global_P_D;
2 local_Q_E = global_Q_E;
3 Runnable();
4 global_P_D = local_P_D;
To enable the RP tool to intercept the update of the context-local buffer used by the
implicit APIs the Extended Buffer Access method uses an RP global buffer in a
similar fashion to the explicit APIs.
[SWS_Rte_06040] dWhen rptLevel1 support is enabled for a VariableDataPro-
totype accessed by implicit semantics the RTE generator shall first update the RP
global buffer from the RTE global variable / COM signal and then update the pre-
emption area specific buffer from the RP global buffer before runnable invoca-
tionc(SRS_Rte_00244)
[SWS_Rte_06087] dWhen rptLevel1 support is enabled for a VariableDataPro-
totype accessed by implicit semantics the RTE generator shall, after runnable termi-
nation, perform any write-back by first writing the preemption area specific buffer to the
RP global buffer and then updating the RTE global variable / COM signal from
the RP global buffer.c(SRS_Rte_00244)
The Runnable() sequence can comprise of one or more calls to different runnables.
Each runnable has a unique implicit API and therefore can, potentially, access different
context-local buffers.
Finally, the write to the preemption area specific buffer and subsequent use could be
used as the write-read cycle required for post-build hooking. A distinct RP global
buffer may therefore be optimized away in some circumstances and the preemption
area specific buffer used to enforce the requirement memory access pattern.
[SWS_Rte_06091] dWhen rptLevel1 support is enabled the RTE generator should
avoid dedicated RP global buffer variables for implicit communication by imple-
menting the preemption area specific buffers according to the (implementation) require-
ments on a RP global buffer ([SWS_Rte_06035],[SWS_Rte_06036]).c(SRS_-
Rte_00244)
For instance in this case the preemption area specific buffers needs to be declared as
volatile.
Mode APIs are handled in a similar manner to explicit Sender-receiver APIs with the
actual function parameters being written to an associated RP global buffer before
use.
[SWS_Rte_06107] dWhen rptLevel1 support is enabled for a ModeDeclara-
tionGroupPrototype the RTE generator shall write the API parameter to a RP
global buffer.c(SRS_Rte_00244)
Subsequent accesses to the actual parameter within the generated function are re-
placed by use of the RP global buffer instead.
[SWS_Rte_06108] dWhen rptLevel1 support is enabled for a ModeDeclara-
tionGroupPrototype then within RTE APIs the RTE generator shall read the value
of the associated parameter from the RP global buffer rather than use the formal
parameter.c(SRS_Rte_00244)
These modifications ensure that if an RP tool patches the write to the RP global
buffer then the value that is written by the RP tool will be used as the new mode
instead of the actual function parameter.
As an additional example, consider the typical implementation for an Rte_Switch API
shown in Example 4.18 (error handling omitted for clarity):
Example 4.18
1 Std_ReturnType Rte_Switch_P_M( <type> newMode )
2 {
3 if ( ! <in_transition> )
4 {
5 mode = newMode;
6 <notifications>
7 }
8 else
9 {
10 <enQueue>( newMode );
11 }
12 return E_OK;
13 }
When using the Extended buffer access method and the rptPreparationLevel is
rptLevel1 the generated RTE API from Example 4.18 is modified to become Exam-
ple 4.19:
Example 4.19
1 /* RP global buffer */
2 volatile <type> SWCA_Bypass_P_M;
3
4 Std_ReturnType Rte_Switch_P_M( <type> newMode )
5 {
6 SWCA_Bypass_P_M = newMode;
7
8 if ( ! <in_transition> )
9 {
10 mode = SWCA_Bypass_P_M;
11 <notifications>
12 }
13 else
14 {
15 <enQueue>( SWCA_Bypass_P_M );
16 }
17 return E_OK;
18 }
4.9.4.3.5.1 IN Parameters
Example 4.20
1 Std_ReturnType Rte_Call_P_OP([IN] <type> a)
2 {
3 Server( a );
4 return E_OK;
5 }
Example 4.21
1 /* RP global buffer */
2 volatile <type> SWCA_Bypass_P_OP_a;
3
4 Std_ReturnType Rte_Call_P_OP([IN] <type> a)
5 {
Example 4.22
1 Std_ReturnType Rte_Call_P_OP([OUT] <type> a)
2 {
3 Server( a );
4 return E_OK;
5 }
Example 4.23
1 /* RP global buffer */
2 volatile <type> SWCA_Bypass_P_OP_a;
3
4 Std_ReturnType Rte_Call_P_OP([OUT] <type> a)
5 {
6 /* Pass reference to RP global buffer to server */
7 Server( &SWCA_Bypass_P_OP_a );
8
9 /* Copy server value (possible modified by RPT) to client */
10 <deep-copy>( a, &SWCA_Bypass_P_OP_a );
11 return E_OK;
12 }
Example 4.24
1 Std_ReturnType Rte_Call_P_OP([IN-OUT] <type> a)
2 {
3 Server( a );
4 return E_OK;
5 }
Example 4.25
1 /* RP global buffer */
2 volatile <type> SWCA_Bypass_P_OP_a;
3
4 Std_ReturnType Rte_Call_P_OP([IN-OUT] <type> a)
5 {
6 /* Copy in value (possible modified by RPT) to RP global buffer */
7 <deep-copy>( &SWCA_Bypass_P_OP_a, a );
8
9 /* Pass reference to RP global buffer to server */
10 Server( &SWCA_Bypass_P_OP_a );
11
12 /* Copy server value (possible modified by RPT) to client */
13 <deep-copy>( a, &SWCA_Bypass_P_OP_a );
14 return E_OK;
15 }
This level is used for bypass scenarios where the binary code remains unchanged after
RTE generation – in particular any code level requirements for bypass are inserted
when the RTE is generated. For example, RP global buffers may be inserted as
for rptLevel1 however run-time RP enabler flags are also added to allow control
of how the buffers are used.
The typical Rte_Write Example 4.13 becomes Example 4.26:
Example 4.26
1 /* RP global buffer */
2 volatile <type> SWCA_Bypass_P_D;
3
4 /* RP enabler flag */
5 volatile <flag> SWCA_Bypass_P_D_Enable = FALSE;
6
7 Std_ReturnType Rte_Write_P_D(<type> data)
8 {
9 if ( FALSE == SWCA_Bypass_P_D_Enable )
10 {
11 SWCA_Bypass_P_D = data;
12 }
13 <send> SWCA_Bypass_P_D;
14 <notifications>;
15 return <result of send>;
16 }
Example 4.27
1 /* RP global buffer */
2 volatile <type> SWCB_Bypass_P_D;
3
4 /* RP enabler flag */
5 volatile <flag> SWCB_Bypass_P_D_Enable = FALSE;
6
7 Std_ReturnType Rte_Read_P_D(<type>* const data)
8 {
9 <type> temp = <receive>;
10 if ( FALSE == SWCB_Bypass_P_D_Enable )
11 {
12 SWCB_Bypass_P_D = temp;
13 }
14 *data = SWCB_Bypass_P_D;
15 <notifications>;
16 return <result of receive>;
17 }
11
The RP enabler flags are described using inverted logic to reflect the requirements of bypass en-
able/disable. When rptLevel2/rptLevel3 bypass is disabled we want the API to use the value from
the API’s “data” argument whereas when rptLevel2/rptLevel3 bypass is enabled we do not want
the API to use the value from the “data” argument because the RP service point will have written
the bypass value into the RP global buffer before the runnable containing the API runs.
Example 4.28
1 /* Input-side bypass */
2 volatile <type> SWCA_BypassIN_P_OP_a;
3 volatile <flag> SWCA_BypassIN_P_OP_Enable = FALSE;
4
5 /* Output-side bypass */
6 volatile <type> SWCA_BypassOUT_P_OP_a;
7 volatile <flag> SWCA_BypassOUT_P_OP_Enable = FALSE;
8
9 Std_ReturnType Rte_Call_P_OP([IN-OUT] <type> a)
10 {
11 if ( FALSE == SWCA_BypassIN_P_OP_Enable )
12 {
13 /* RP disabled... use IN value */
14 <deep-copy>( &SWCA_BypassIN_P_OP_a, a );
15 }
16
17 /* Pass reference to RP global buffer to server */
18 Server( &SWCA_BypassIN_P_OP_a );
19
20 if ( FALSE == SWCA_BypassOUT_P_OP_Enable )
21 {
22 /* Output-side bypass disabled: use server value */
23 <deep-copy>( a, &SWCA_BypassIN_P_OP_a );
24 }
25 else
26 {
27 /* Copy RPT-initialized value to client */
28 <deep-copy>( a, &SWCA_BypassOUT_P_OP_a );
29 }
30
31 return E_OK;
32 }
The RP enabler flags control how the generated APIs interact with the RP
global buffers (e.g. as updated by a post build hooking tool) depending on the
flag state:
Disabled – When the RP enabler flag for a VariableDataPrototype is dis-
abled the values received by the APIs are written to the RP global buffers
and the APIs behave as normal.
Enabled – When the RP enabler flag for a VariableDataPrototype is en-
abled the write defined by [SWS_Rte_06043] does not occur and thus the API
ignores data generated by runnables and uses bypass values written into the RP
global buffers.
[SWS_Rte_06075] dWhen rptLevel2 support is enabled for a ModeDeclara-
tionGroupPrototype or a VariableDataPrototype accessed using explicit se-
mantics then within RTE APIs the RTE generator shall support RP enabler flags
to permit the write to the RP global buffer to be disabled.c(SRS_Rte_00244)
The RP enabler flags can be variables in RAM (as in the example), calibration
characteristics or both - as specified in the input configuration. The <type> used for
RP enabler flag is implementation dependent, e.g. an AUTOSAR Boolean or a
bit-packed type, but is described in the generated RP description to enable access by
RPT.
[SWS_Rte_06073] dThe RTE generator shall create RP enabler flags in RAM
when rptEnablerImplType is rptEnablerRam or rptEnablerRamAndRom.c
(SRS_Rte_00244)
[SWS_Rte_06074] dThe RTE generator shall create RP enabler flags as calibra-
tion characteristics when a rptEnablerImplType is rptEnablerRom.c(SRS_Rte_-
00244)
To enable the bypass to take effect the generated API must use the RP global
buffers (as updated according to [SWS_Rte_06043], [SWS_Rte_06073] and
[SWS_Rte_06074]) within the generated code rather than the values on input to the
API.
[SWS_Rte_06079] dWhen the rptEnablerImplType is rptEnablerRamAndRom
the two RP enabler flags are logically AND’d.c(SRS_Rte_00244)
When both RAM and calibration characteristics are used the formulation would be
something like:
Example 4.29
1 /* RP enabler flag (in RAM) */
2 volatile <flag> SWCA_Bypass_P_D_Enable = FALSE;
3
4 /* RP enabler flag (as a characteristic) */
5 volatile const <flag> SWCA_Bypass_P_D_Enable_Char = FALSE;
6
7 if ( ( FALSE == SWCA_Bypass_P_D_Enable ) &&
8 ( FALSE == SWCA_Bypass_P_D_Enable_Char ) )
9 {
10 SWCA_Bypass_P_D = data;
11 }
In the above examples <flag> represents the RP enabler flag data type. Imple-
mentations are at liberty to provide optimized implementations of the enablers, e.g.
packing multiple enabler flags into a single variable, depending on known hardware
characteristics.
rptLevel3 is an extension of rptLevel2 but also records the value the ECU calcu-
lated. For example:
Example 4.30
1 /* RP global buffer */
2 volatile <type> SWCA_Bypass_P_D;
3
4 /* RP global measurement buffer */
5 volatile <type> SWCA_Bypass_P_D_Original;
6
7 /* RP enabler flag */
8 volatile <flag> SWCA_Bypass_P_D_Enable = FALSE;
9
10 Std_ReturnType Rte_Write_P_D(<type> data)
11 {
12 SWCA_Bypass_P_D_Original = data;
13 if ( FALSE == SWCA_Bypass_P_D_Enable )
14 {
15 SWCA_Bypass_P_D = data;
16 }
17 <send> SWCA_Bypass_P_D
18 return <result of send>
19 }
Example 4.31
1 /* RP global buffer */
2 volatile <type> SWCB_Bypass_P_D;
3
Example 4.32
1 /* Input-side bypass */
2 volatile <type> SWCA_BypassIN_P_OP_a;
3 volatile <type> SWCA_BypassINMeasurementBuf_P_OP_a;
4 volatile <flag> SWCA_BypassIN_P_OP_Enable = FALSE;
5
6 /* Output-side bypass */
7 volatile <type> SWCA_BypassOUT_P_OP_a;
8 volatile <type> SWCA_BypassOUTMeasurementBuf_P_OP_a;
9 volatile <flag> SWCA_BypassOUT_P_OP_Enable = FALSE;
10
11 Std_ReturnType Rte_Call_P_OP([IN-OUT] <type> a)
12 {
13 /* rptLevel3: Retain input value */
14 <deep-copy>( &SWCA_BypassINMeasurementBuf_P_OP_a, a );
15 if ( FALSE == SWCA_BypassIN_P_OP_Enable )
16 {
17 /* RP disabled... use IN value */
18 <deep-copy>( &SWCA_BypassIN_P_OP_a, a );
19 }
20 else
21 {
22 /* RP enabled... do nothing & use value from RPT */
23 }
24
For IN and OUT parameters the generated code is similar to Example 4.32 but with
either the input-side or output-side bypass omitted as appropriate.
For implicit communication the context-local buffer is updated from the global master
via an interception if the RP enabler flag is disabled. For rptLevel3 the original
(master) data is also preserved in the RP global measurement buffer. A typi-
cal implementation for the initialization of the context-local buffer within a task (when
rptLevel3 support is enabled) would therefore look like:
Example 4.33
1 /* RP global buffer */
2 volatile <type> SWCB_Bypass_P_D;
3
4 /* RP global measurement buffer */
5 volatile <type> SWCB_Bypass_P_D_Original;
6
7 /* RP enabler flag */
8 volatile <flag> SWCB_Bypass_P_D_Enable = FALSE;
9
10 TASK(X)
11 {
When the RP enabler flag is disabled the global master data is used to update
SWCB_Bypass_P_D and hence the RP generated value is not used. Conversely when
bypass is enabled the value written by the RPT into SWCB_Bypass_P_D is used rather
than overwriting with the global master.
[SWS_Rte_06051] dWhen rptLevel3 is enabled for a VariableDataPrototype
accessed by implicit semantics the RTE generator shall update the RP global mea-
surement buffer before the context-local buffer is updated (via the RP global
buffer).c(SRS_Rte_00244)
[SWS_Rte_06052] dWhen rptLevel2 or rptLevel3 is enabled for a Variable-
DataPrototype accessed by implicit semantics and the RP enabler flag is dis-
abled the RTE generator shall write the value from the global master data to the RP
global buffer.c(SRS_Rte_00244)
[SWS_Rte_06053] dWhen rptLevel2 or rptLevel3 is enabled for a Variable-
DataPrototype accessed by implicit semantics the RTE generator shall write the
value from the RP global buffer to the context-local buffer after the RP global
buffer is updated.c(SRS_Rte_00244)
[SWS_Rte_06054] dThe RTE generator shall perform the above requirements in
the sequence [SWS_Rte_06051] [SWS_Rte_06052] [SWS_Rte_06053].c(SRS_Rte_-
00244)
After runnable termination the value produced must be written back to the global mas-
ter. The write-back occurs via an interception if the RP enabler flag is disabled.
For rptLevel3 the original data produced by the runnable is also preserved in the
RP global measurement buffer. A typical implementation for the initialization
of the context-local buffer within a task (when rptLevel3 support is enabled) would
therefore look like:
Example 4.34
1 /* RP global buffer */
2 volatile <type> SWCB_Bypass_P_D;
3
4 /* RP global measurement buffer */
4.9.4.7 Export
The RTE generator must describe the various buffers and flags created to support the
configured RptImplPolicy.rptPreparationLevel for a VariableDataProto-
type so that the information can be accessed by the RP system after RTE genera-
tion12 .
12
To be fully used by an RPT system the information exported by the RTE generator may need sub-
sequent augmentation to add details that are not known to the RTE generator, e.g. address information.
Example 4.35
Where:
• The RTE event identifier, <rptEventId>, identifies the RTE event and is
within the range specified in the interval [minRptEventId. . .maxRptEventId)
of the RptExecutableEntityProperties.
• The RP service point ids, <spId1> and <spId2>, identify the ser-
vice point and are within the interval [minServicePointId. . .maxService-
PointId) of the RptProfile.
• <stim> is the RP stimulation enabler flag to control RP stimulation.
Example 4.36
Each RP service function use the same RTE event identifier, i.e.
<rptEvendId>, since all four calls wrap the same runnable invocation however each
uses a different RP service point id.
Multiple RptProfiles can lead to multiple RP service functions for the same
RTEEvent. All such calls are ordered alphabetically ([SWS_Rte_06061]) and have the
same RTE event identifier but different RP service point ids.
The RP service function is responsible for sampling the required data. The pa-
rameters of the RP service function do not include the data, instead, the param-
eters identify the RTE EVent and service point:
<rptEventId> – RTE event identifier indicating the associated RTE Event.
This parameter is defined by the RptContainer’s RptExecutableEnti-
tyProperties and is therefore the same for all RptProfiles aggregated
within the RptContainer.
<servicePointId> – The RP service point id is used by the RP service
component to identify the particular service point.
This parameter is defined by the RptProfile and is therefore differentfor each
profile.
<stimEnabler> – Calibratable value to control RP Stimulation. This parameter is
optional, if not configured zero is passed to the RP service function.
This parameter is defined by the RptProfile and is therefore differentfor each
profile.
[SWS_Rte_06059] dA RP service point id shall have the type uint16.c(SRS_-
Rte_00244)
[SWS_Rte_06060] dAn invocation of a RP service function shall conform to the
prototype:
void <RptServiceSymbol>( uint16 <rptEventId>,
uint16 <servicePointId>
uint8 <stimEnabler> );
The “pre” and “post” positions provide the ability to differentiate RP service points
that are invoked before and after runnable invocation if this is required. The two calls
will have a common RP event ids but different RP service point ids.
To permit one RptProfile to describe variable preparation and/or service points the
rptServicePoint within the RptContainer defines an enable/disable switch:
[SWS_Rte_06120] dThe RTE generator shall create calls to RP service func-
tions defined by an RptProfile only when the RptContainer’s rptService-
Point parameter is enabled.c(SRS_Rte_00244)
Example 4.37
1 ServiceFunc1_pre(<rptEventId>, <spId1>, <stimEnabler>);
2 if (! <rp_disabler_flag>)
3 {
4 re1();
5 }
6 ServiceFunc1_post(<rptEventId>, <spId2>, <stimEnabler>);
The <stimEnabler> parameter has a fixed datatype of uint8 and is, when config-
ured, exported into RptSupportData as calibratable.
[SWS_Rte_06111] dWhen RptProfile.stimEnabler is rptEnablerRam or
rptEnablerRom the value of the <stimEnabler> shall be passed as the third pa-
rameter of the RP service function invocation.c(SRS_Rte_00244)
[SWS_Rte_06112] dWhen RptProfile.stimEnabler is none the third parameter
of the RP service function invocation shall be 0 (zero).c(SRS_Rte_00244)
[SWS_Rte_06115] dThe RTE generator shall reject configurations where the RptPro-
file.stimEnabler is rptEnablerRamAndRom.c(SRS_Rte_00244)
Each RP service point has its own <stimEnabler> parameter. As a conse-
quence, there are as many <stimEnabler> parameters as there are enabled RP
service points, i.e. 1000 Service points with enabled RptProfile.stimEnabler
will result in 1000 calibratable <stimEnabler> parameters.
As well as instantiating the <stimEnabler> parameter the RTE generate must output
information in the generated RptSupportData to enable down-stream tools to locate
the calibratable parameter.
4.9.5.3 Integration
There are two possibilities on how to integrate a RP service point pre-build; either
as SWC Internal inserted by the SWC developer or as RTE Assigned created by the
RTE generator.
SWC Internal In this scenario the RP service function signature of the BSW that
provides the service is known by the SWC developer.
The SWC developer implements the RP service function calls at required
positions within the RunnableEntity code, typically one right before and a sec-
ond one right after every area to be prepared for bypassing. This mechanism is
typically used in migration scenarios where a single RunnableEntity contains
multiple functionality.
The SWC developer has to document the integrated RP service point,
whether used for sampling or stimulating RP data, in the context of the
RunnableEntity information of the AUTOSAR SWC description.
In this scenario there is no requirement for the RTE generator to insert RP ser-
vice point calls within generated code. In addition, the RTE generator is not
responsible for assignment of RP service point ids instead these are se-
lected when the RP service functions invocations are created. However
the RTE generator must ensure that the description of the SWC’s service hooks
is exported for subsequent tools.
RTE Assigned In this scenario the RTE generator evaluates the SWC descriptions
for required SWC RP service points and adds them at dedicated positions
before and after the invocation of a RunnableEntity.
In the following discussion the positions for the invocation of SWC RP service
points is defined by the following pseudo-code for the invocation of a runnable
entity:
Example 4.38
1 [Point A]
2 <update context-local buffers>
3 <VFB Runnable Start>();
4 [runnable invocation]
5 <VFB Runnable Return>();
6 [Point B]
7 <update global buffers>
8 <RTE notifications>
The RTE input configuration may include SWCs from multiple suppliers that each con-
tain SWC-Internal RP service point ids. The same RP service point id
must never be used twice within the same ECU application and therefore the RTE
generator is required to reject input configurations that result in duplications – it is not
permitted to remap RP service point ids.
[SWS_Rte_06066] dThe RTE generator shall reject configurations that contain SWCs
with duplicate SWC-Internal RP service point ids.c(SRS_Rte_00244)
Example 4.39
1 if ( FALSE == <RPRunnableDisablerFlag> )
2 {
3 [VFB Trace event - runnable start]
4 symbol() /* runnable invocation */
5 [VFB Trace event - runnable return]
6 }
The conditional execution of the original symbol is unrelated to the normal condi-
tionality of the invocation, e.g. due to the presence of prescalers created by the RTE
generator when multiple RTEEvents are mapped to the task. Mofication, e.g. incre-
ment, of the prescalers should occur even when the RP runnable disabler flag
is TRUE. Example 4.40 shows the combination of RP runnable disabler flag
with RTE generated conditional execution that invokes the runnable once every five
task activations.
Example 4.40
1 if ( --Rte_RunnableDivide == 0 )
2 {
3 Rte_RunnableDivide = 5u;
4 if ( FALSE == <RPRunnableDisablerFlag> )
5 {
6 [VFB Trace event - runnable start]
7 symbol() /* runnable invocation */
8 [VFB Trace event - runnable return]
9 }
10 }
Example 4.41
1 /* RP global measurement buffer = global master data */
2 SWCB_Bypass_P1_D_Original = global_P1_D;
3
4 if ( FALSE == SWCB_Bypass_P1_D_Enable )
5 {
6 /* Bypass disabled */
7 /* RP global buffer = global master data */
8 SWCB_Bypass_P1_D = SWCB_Bypass_P1_D_Original;
9 }
10
11 /* context-local buffer */
12 local_P1_D = SWCB_Bypass_P1_D;
Example 4.42
1 /* RP global measurement buffer = context-local buffer */
2 SWCB_Bypass_P2_D_Original = local_P2_D;
3
4 if ( FALSE == SWCB_Bypass_P2_D_Enable )
5 {
6 /* Bypass disabled */
7 /* RP global buffer = context-local buffer */
8 SWCB_Bypass_P2_D = local_P2_D;
9 }
10
11 global_P2_D = SWCB_Bypass_P2_D;
4.9.5.7 Export
For both SWC-Internal and RTE-Assigned RP service point ids the RTE gener-
ator must describe the invoked RP service functions so that the information can
be accessed by the RP system after RTE generation13 .
The exported RTE McSupportData is used to describe the generated configuration and
consists of:
• RptSupportData describing RP execution contexts
• Invoked RP service points (whether SWC-Internal or RTE-Assigned).
• Relationship between RptExecutableEntityEvent and pre-functional RP
service point.
• Relationship between RptExecutableEntityEvent and post-functional RP
service point.
• Relationship between RptExecutableEntityEvent and RP runnable
disabler flag.
13
To be fully used by an RPT system the information exported by the RTE generator may need sub-
sequent augmentation to add details that are not known to the RTE generator, e.g. address information.
transformers following the first one then have a generic signature with just a byte array
as IN and OUT parameter. Such an architecture could be used to design systems,
where you can flexibly add functionality like safety or security protection to a serialized
stream.
The transformers for inter-ECU communication are configured in the System Descrip-
tion.
Furthermore the RTE can execute transformers for intra-ECU communication to trans-
form different representations of data structures between software components or ba-
sic software modules within one ECU. Transformers for intra-ECU communication are
restricted to unqueued S/R communication. In addition no transformer chains are appli-
cable. Those limitations are formulated since for the currently known use-cases there
is no need for introducing this functionality.
The execution of the transformers and the necessary buffer handling is coordinated by
the RTE.
[SWS_Rte_08794] dThe RTE shall execute data transformation for inter-ecu commu-
nication if a DataTransformation is referenced by an ISignal that references a
SystemSignal which
1. is referenced by a SenderReceiverToSignalMapping, ClientServer-
ToSignalMapping or TriggerToSignalMapping
2. or is referenced by a SystemSignalGroup in the role transformingSys-
temSignal if the SystemSignalGroup is referenced by a SenderReceiver-
ToSignalGroupMapping
c(SRS_Rte_00247)
Note:
In case of fan-in of inter-ECU communication where the ISignals use different data
transformations, the RTE has to ensure that it executes the correct transformer chain
that belongs to exactly that ISignal. This could be achieved for example by remem-
bering within the Com callback which DataTransformation belongs to the received
data.
[SWS_Rte_08795] dThe RTE shall execute all transformers of a transformer chain
in their execution order for queued (event semantics) sender-receiver communication
even when the queue is empty (because no data are available) if executeDespite-
DataUnavailability of DataTransformation is enabled and the Rte_Receive
API has non-blocking characteristics according to [SWS_Rte_01288]. The input to all
the transformers in the chain shall be NULL with a dataLength equal to 0.c(SRS_Rte_-
00247)
Please note: This functionality is only available on the receiving side of queued
Sender/Receiver communication. Furthermore, if Signal fan-in is used, no signal shall
have the attribute executeDespiteDataUnavailability set to true (see [constr_-
3208]).
There are two main cases considered when executeDespiteDataUnavailabil-
ity is important: an empty queue in case of queued S/R communication and errors in
the COM stack so that the RTE doesn’t get data from Com or LdCom.
[SWS_Rte_08796] dFor VariableAccesses in the roles dataReceivePointB-
yArgument, dataReceivePointByValue or dataSendPoint the RTE shall ex-
ecute data transformation from within the called RTE API.c(SRS_Rte_00247)
In case of explicit sender-receiver communication, the execution of the data transfor-
mation takes place inside the RTE API which is called by the SWC.
In case of implicit sender-receiver communication, the execution of the data transfor-
mation takes place on sender side between execution of the runnable and handover of
the data to the Com stack and on receiver side between reception of the data from the
Com stack and start of the runnable.
[SWS_Rte_08570] dFor VariableAccesses in the dataReadAccess role the RTE
shall execute data transformation after reception of the data from the Com stack and
before start of the runnable/coherency group.c(SRS_Rte_00247)
[SWS_Rte_08571] dFor VariableAccesses in the dataWriteAccess role the RTE
shall execute data transformation after termination of the runnable/coherency group
and before handing the data over to the Com stack.c(SRS_Rte_00247)
[SWS_Rte_08596] dFor ExternalTriggeringPoints the RTE shall execute data
transformation from within the called RTE API Rte_Trigger.c(SRS_Rte_00247)
In case of external trigger communication, the execution of the data transformation
takes place inside the RTE API which is called by the SWC.
[SWS_Rte_08797] dIf transformer is configured to have access to original data, the
RTE shall ensure that these are unchanged until the end of the execution of the trans-
former chain.c(SRS_Rte_00247)
[SWS_Rte_08105] dThe RTE shall execute data transformation for intra-ecu commu-
nication if a DataTransformation is referenced by a DataPrototypeMapping.c
(SRS_Rte_00253)
[SWS_Rte_08107] dFor VariableAccess in the roles dataReceivePointB-
yArgument, dataReceivePointByValue or dataSendPoint the RTE shall ex-
ecute data transformation from within the called RTE API.c(SRS_Rte_00253)
[SWS_Rte_08517] dIf data conversion does not apply, the input of the first transformer
(in execution order) on sender side for sender-receiver communication shall be the
data from the VariableDataPrototype by the SWC.c(SRS_Rte_00247)
[SWS_Rte_04540] dIf data conversion applies, the input of the first transformer (in exe-
cution order) on sender side for sender-receiver communication shall be the converted
data from the VariableDataPrototype by the SWC.c(SRS_Rte_00247)
[SWS_Rte_08518] dThe input for the first transformer (in execution order) on receiver
side for inter-ECU sender-receiver communication shall be the received data from the
Com stack.c(SRS_Rte_00247)
[SWS_Rte_08519] dThe input for the first transformer (in execution order) on client side
for client-server communication shall be the data from the ClientServerOperation
by the SWC.c(SRS_Rte_00247)
[SWS_Rte_08520] dThe input for the first transformer (in execution order) on server
side for the request of a client-server communication shall be the received data from
the Com stack.c(SRS_Rte_00247)
[SWS_Rte_08521] dThe input for the first transformer (in execution order) on server
side for the response of a client-server communication shall be the data from the
ClientServerOperation by the SWC.c(SRS_Rte_00247)
[SWS_Rte_08522] dThe input for the first transformer (in execution order) on client
side for the response of a client-server communication shall be the received data from
the Com stack.c(SRS_Rte_00247)
The input for the first transformer (in execution order) on the Trigger Source side for
external trigger communication contains no payload data (See [SWS_Xfrm_00102] in
[26, ASWS Transformer General]).
[SWS_Rte_08597] dThe input for the first transformer (in execution order) on Trigger
Sink side for external trigger communication shall be the received data from the Com
stack.c(SRS_Rte_00247)
[SWS_Rte_08523] dThe output of the last transformer (in execution order) on sender
side for inter-ECU sender-receiver communication shall be transmitted to the Com
stack.c(SRS_Rte_00247)
[SWS_Rte_08524] dIf data conversion does not apply, the output of the last trans-
former (in execution order) on receiver side for sender-receiver communication shall
be handed over to the SWC.c(SRS_Rte_00247)
[SWS_Rte_04541] dIf data conversion applies, the RTE shall convert the output of the
last transformer (in execution order) on receiver side for sender-receiver communica-
tion before handing it over to the SWC.c(SRS_Rte_00247)
[SWS_Rte_08525] dThe output of the last transformer (in execution order) on client
side for the request of a client-server communication shall be transmitted to the COM
or Com stack.c(SRS_Rte_00247)
[SWS_Rte_08598] dThe output of the last transformer (in execution order) on Trigger
Source side for external trigger communication shall be transmitted to the Com stack.c
(SRS_Rte_00247)
[SWS_Rte_08599] dOn Trigger Sink side for external trigger communication, the RTE
shall trigger the execution of the triggered RunnableEntity if no transformer in the
transformer chain returns a hard error.c(SRS_Rte_00247)
This means that only the RunnableEntity for the TransformerHardErrorEvents
but not the RunnableEntitys for ExternalTriggerOccurredEvents shall be
triggered if a hard transformer error occurred.
[SWS_Rte_08526] dOn server side for client/server communication, the RTE shall trig-
ger the execution of the triggered RunnableEntity and hand the output of the last
transformer over to the triggered RunnableEntity if and only if no transformer in the
transformer chain returns a hard error.c(SRS_Rte_00247)
[SWS_Rte_08527] dThe output of the last transformer (in execution order) on server
side for the response of a client-server communication shall be transmitted to the Com
stack.c(SRS_Rte_00247)
[SWS_Rte_08528] dThe output of the last transformer (in execution order) on client
side for the response of a client-server communication shall be handed over to the
SWC.c(SRS_Rte_00247)
[SWS_Rte_08529] dThe output of a non-last transformer (in execution order) in a trans-
former chain shall be the input for the next transformer in the execution order of the
chain.c(SRS_Rte_00247)
If there is a signal fanout, it is possible to optimize the execution of the transformers. If
multiple transformer chains in case of a signal fanout have the same set of transform-
ers at the beginning of the transformer chain, the RTE optimizes and executes those
transformers only once for all transformer chains together. The result can be shared
between all transformers chains. This is only possible if no ComBasedTransformer
is involved.
[SWS_Rte_08530] dIf the XfrmImplementationMapping (see [ECUC_Xfrm_-
00001]) maps multiple transformers (which are used to transform different ISignals)
to the same BswModuleEntry, the RTE shall execute those first transformers only
once using the mapped BswModuleEntry and take the result as input for the further
transformers for those ISignals.c(SRS_Rte_00247)
Transformer 4 Transformer 4
Transformer 5 Transformer 5
Transformer 6 Transformer 6
Receiving Receiving
ISignal1 Application ISignal2 ISignal1 Application ISignal2
SWC SWC
[SWS_Rte_03867] dThe RTE shall calculate the InputBufferLength (used for output
buffer calculation; see [SWS_Rte_08535]) the following way:
• For External Triggers:
The InputBufferLength shall be 0.
• For Sender/Receiver communication:
The InputBufferLength shall be equal to the size needed for VariableDataPro-
totype of the dataElement of the SenderReceiverInterface that shall be
transformed.
• For Client/Server communication:
The InputBufferLength shall be the sum of
– the size of the TransactionHandle
– for the request: the sizes of the VariableDataPrototypes of all
IN and INOUT arguments of the ClientServerOperation of the
ClientServerInterface
– or for the response:
∗ the sizes of the VariableDataPrototypes of all INOUT and OUT
arguments of the ClientServerOperation of the ClientServer-
Interface
∗ 1 Byte for the return code of the ClientServerOperation of the
ClientServerInterface if at least one possibleError is defined
for the ClientServerInterface.
c(SRS_Rte_00248)
The BufferProperties contain a CompuScale in the role bufferComputation
which describes the computation formula how to create the size of the output buffer
depending of the size of the input buffer. Because transformer chains are modeled for
the sending side, the formula has to be inversed for the receiving side.
The input of this formula is the size of the AUTOSAR data type of the interface.
[SWS_Rte_08536] dThe RTE shall consider the headerLength information in the
BufferProperties if inPlace in the BufferProperties is set:
• On the sending side (transformation) the RTE shall increase the buffer from the
beginning by the size given in headerLength.
• On the receiving side (retransformation) the RTE shall decrease the buffer from
the beginning by the size given in headerLength.
c(SRS_Rte_00248)
If a transformer with in-place buffering on the sending side for example is configured to
add a header, the RTE is responsible for handing over a buffer which is large enough.
So the buffer grows beween two transformers if the second of those adds a header
with in-place buffering. To realize this, the RTE can have a buffer which stays the same
size and is large enough to hold the output of the last transformer but only subsets of
the buffer are handed over to the transformers depending on the buffer size needs of
the specific transformers in the chain. This can be achieved by pointers. A free space
in front of the existing data to insert the header there can be provided by the RTE by
descreasing the pointer address which is handed over to the transformer. This adds
a free space to the beginning of the buffer. It can be determined how long the header
shall be by headerLength of BufferProperties.
The corresponding retransformer on the receiving side (which implements the inverse
operation) has to remove the header. For this, the transformer simply has to make sure
that no part of its output is inside the place of the header which shall be removed. From
this transformer to the next one, the RTE increases the pointer address by the length
of the header and hence removes the header using that mechanism.
[SWS_Rte_08537] dIf the attribute inPlace in the BufferProperties of a Trans-
formationTechnology is set and a fanout in the transformer optimization is directly
done before this transformer, the RTE shall duplicate the buffer beforehand.c(SRS_-
Rte_00248)
[SWS_Rte_08550] dThe RTE shall hand over the original data provided by a software
component to a transformer on the sender side if the attribute needsOriginalData
is set to true.c(SRS_Rte_00248)
The interfaces of the transformers depend on the transformer chain in which the trans-
former is placed and the transformed data. They are specified in [26, ASWS Trans-
former General].
Also see chapter 5.10.4.
[SWS_Rte_08538] dThe RTE shall determine which data are passed up from a trans-
former to the SWC by using the PortInterfaceMapping or ISignal.Transfor-
mationISignalProps. DataPrototypeTransformationProps.networkRep-
resentationProps (See Chapter 4.3.6.2.c(SRS_Rte_00247)
is possible on the server side to trigger an autonomous error reaction which generates
the response of the client server communication automatically without involvement of
any runnable.
[SWS_Rte_03608] dIf there is a PortAPIOption with the attribute errorHan-
dling set to transformerErrorHandling referencing a PortPrototype to
which no data transformation applies, the Std_TransformerClass shall be set to
STD_TRANSFORMER_UNSPECIFIED and Std_TransformerErrorCode to E_OK.c
(SRS_Rte_00249)
Rationale: The generation condition of the optional OUT parameter transformer-
Error only depends on the attribute errorHandling. Nevertheless it is possible to
integrate such SW-Cs supporting transformerErrorHandling without any trans-
formers. And in this case the data transformation is always logically assumed to be
successful.
[SWS_Rte_08540] dThe RTE shall continue with the execution of a transformer chain
if a transformer returns a soft error.c(SRS_Rte_00249)
[SWS_Rte_08541] dThe RTE shall abort the execution of a transformer chain if a
transformer returns a hard error and executeDespiteDataUnavailability of the
DataTransformation is set to false.c(SRS_Rte_00249)
[SWS_Rte_08424] dThe RTE shall continue with the execution of a transformer chain
if a transformer returns a hard error and executeDespiteDataUnavailability of
the DataTransformation is set to true.c(SRS_Rte_00249)
A transformer shall not modify its output buffer, when it returns a hard error to the RTE
(see [SWS_Xfrm_00051]).
To return the transformer errors to the runnables, the RTE APIs which can trigger
transformer executions have a parameter which is written by the RTE and read by the
SWC if the attribute errorHandling of PortAPIOption is set to transformer-
ErrorHandling.
[SWS_Rte_08558] dIf a transformer which doesn’t transform the request of a client
server communication on the server side (i.e., a transformer that either transforms the
request of a client server communication on the client side or transforms the response
of a client server communication or transforms an sender receiver communication)
returns a hard error, the Rte shall notify this hard error to the runnable which called the
RTE API that triggered the transformer execution.c(SRS_Rte_00249)
[SWS_Rte_07417] dIf a transformer which transforms the request of a client server
communication on the server side returns a hard error, the Rte shall not trigger the
assigned OperationInvokedEvents for the server runnables.c(SRS_Rte_00249)
[SWS_Rte_07418] dIf a transformer which transforms the request of a client server
communication on the server side returns a hard error, the Rte shall trigger the as-
signed TransformerHardErrorEvents.c(SRS_Rte_00249)
There exist use-cases where the application software needs to influence the behav-
ior of the sending transformer chain. One prominent example is a signal to ser-
vice translation application where the forwarding of E2E status information into the
E2ETransformer on the sending side is required. In case E2E protection is to be ap-
plied for a communication path with signal to service translation on the way, then the
E2E status assessed for the received data needs to be forwarded to the E2E informa-
tion generated for the sending side. Thus the application which is going to use the data
can identify data exchange faults by using the standard E2E check function.
There are use-cases where a transformer and its corresponding inverse transformer
are not completely independent, but actually are part of a transaction chain. One promi-
ment example of this is the inverse transformer for the reception of the request and the
transformer for the transmission of the reply in the handling of an inter-ECU call of a
ClientServerOperation. In those scenarios it is often required that information
is propagated between the corresponding transformers of such a transaction chain. In
case of the an inter-ECU call of a ClientServerOperation information propagation
from the inverse transformer for the reception to the transformer for the transmission
of the reply is sometimes needed.
To address this need, each implementation of a transformer may advertise this need
of information propagation via the dedicated configuration element XfrmCSTansac-
tionHandleImplementationDataTypeRef. If existing, this configuration element
refers to an ImplementationDataType of category STRUCTURE in the trans-
former’s BSWMD. This referenced ImplementationDataType defines the type (ac-
cording to [SWS_Rte_07114] and [SWS_Rte_06812]) of a so-called transaction han-
dle which is allocated by the RTE, filled by the inverse transformer for the reception of
the request, and forwarded by the RTE without modification to the transformer for the
transmission of the response.
[SWS_Rte_03885] Ensuring correct type of the transaction handle dThe RTE gen-
erator shall reject configuration where an existing XfrmCSTansactionHandleIm-
plementationDataTypeRef attribute (see [ECUC_Xfrm_00021]) of an XfrmIm-
plementationMapping (see [ECUC_Xfrm_00001]) refers to something different
than an ImplementationDataType of category STRUCTURE.c(SRS_Rte_00018)
[SWS_Rte_03886] Ensuring consistency of the transaction handle dThe RTE gen-
erator shall reject configuration where the XfrmCSTansactionHandleImplemen-
tationDataTypeRef attributes (see [ECUC_Xfrm_00021]) of the XfrmImplemen-
tationMappings (see [ECUC_Xfrm_00001]) of the corresponding transformer im-
plementations (i.e., implementation of the inverse transformer handling the received
request and the transformer handling the to be transmitted response) refer to different
ImplementationDataTypes.c(SRS_Rte_00018)
[SWS_Rte_03887] Allocation of transaction handle dIf the XfrmImplementa-
tionMapping (see [ECUC_Xfrm_00001]) of a transformer contains an Xfrm-
CSTansactionHandleImplementationDataTypeRef attribute (see [ECUC_-
Xfrm_00021]), the RTE shall allocate a transaction handle of the type (according to
5 RTE Reference
“Everything should be as simple as possible, but no simpler.”
– Albert Einstein
5.1 Scope
This chapter presents the RTE API from the perspective of AUTOSAR applications
and basic software – the same API applies to all software whether they are AUTOSAR
software-components or basic software.
Section 5.2 presents basic principles of the API including naming conventions and
supported programming languages. Section 5.3 describes the header files used by the
RTE and the files created by an RTE generator. The data types used by the API are
described in Section 5.5 and Sections 5.6 and 5.7 provide a reference to the RTE API
itself including the definition of runnable entities. Section 5.11 defines the events that
can be monitored during VFB tracing.
The RTE is required to support components written using the C and C++ programming
languages [SRS_Rte_00126] as well as legacy software modules. The ability for mul-
tiple languages to use the same generated RTE is an important step in reducing the
complexity of RTE generation and therefore the scope for errors.
[SWS_Rte_01167] dThe RTE shall be generated in C.c(SRS_Rte_00126)
[SWS_Rte_01168] dAll RTE code, whether generated or not, shall conform to the
MISRA C standard [27]. In technically reasonable, exceptional cases MISRA viola-
tions are permissible. Except for MISRA rules #5.1 to #5.5 and and directive #1.1,
such violations shall be clearly identified and documented. Specified MISRA violations
are defined in Appendix C. In realistic use cases, the RTE will generate C identifiers
(functions, types, variables, etc) whose name will be longer than the maximum size
supported by the MISRA C standard (rules #5.1 to #5.5 and directive #1.1). Users
should configure the RTE to indicate the maximum C identifiers’ size supported by
their tool chain to make sure that no issues will be caused by these MISRA violations.c
(SRS_BSW_00007)
Specified MISRA violations are defined in Appendix C.
In realistic use cases, the RTE will generate C identifiers (functions, types, variables,
etc) whose name will be longer than the maximum size supported by the MISRA C
standard. Users should configure the RTE to indicate the maximum C identifiers’ size
supported by their tool chain to make sure that no issues will be caused by these
MISRA violation.
Compatibility mode is either enabled in the default operating mode for an RTE genera-
tor or specific for a SW-C that is delivered as object code (i.e. object-code SW-C) and
guarantees compatibility even between RTE generators from different vendors through
the use of well-defined, “standardized”, data structures. The data structures that are
used by the generated RTE in the compatibility mode are defined in Section 5.4.
Support for compatibility mode is required and therefore is guaranteed to be imple-
mented by all RTE generators.
[SWS_Rte_01151] dThe compatibility mode shall be the default operating mode and
shall be supported by all RTE generators, whether they are for the “RTE Contract” or
“RTE Generation” phases.c(SRS_Rte_00145)
[SWS_Rte_03871] dThe RTE generator shall enable the compatibility mode for all SW-
Cs that are delivered as object code.c(SRS_Rte_00145)
Note: Whether a SW-C is delivered as source code or object code can be determined
from the codeDescriptor of the respective SW-C implementation.
The compatibility mode uses custom (generated) functions with standardized names
and data structures that are defined during the “RTE Contract” phase and used when
compiling object-code components.
[SWS_Rte_01216] dSW-Cs that are compiled against an “RTE Contract” phase appli-
cation header file (i.e. object-code SW-Cs) generated in compatibility mode shall be
compatible with an RTE that was generated in compatibility mode.c(SRS_Rte_00145)
The use of well-defined data structures imposes tight constraints on the RTE imple-
mentation and therefore restricts the freedom of RTE vendors to optimize the solution
of object-code components but have the advantage that RTE generators from different
vendors can be used to compile a binary-component and to generate the RTE.
Note that even when an RTE generator is operating in compatibility mode the data
structures used for source-code components are not defined thus permitting vendor-
specific optimizations to be applied.
Vendor mode is an optional operating mode where the data structures defined in the
“RTE Contract” phase and used in the “RTE Generation” phase are implementation
specific rather than “standardized”.
[SWS_Rte_01152] dAn RTE generator may optionally support vendor mode.c(SRS_-
Rte_00083)
The data structures defined and declared when an RTE generator operates in vendor
mode are implementation specific and therefore not described in this document. This
omission is deliberate and permits vendor-specific optimizations to be implemented for
object-code components. It also means that RTE generators from different vendors
are unlikely to be compatible when run in the vendor mode.
The actual RTE code is generated – based on the input information – for each ECU
individually. To allow optimization during the RTE generation one of the two general
optimization directions can be specified: MEMORY consumption or execution RUNTIME.
[SWS_Rte_05053] dThe RTE Generator shall optimize the generated RTE code ei-
ther for memory consumption or execution runtime depending on the provided input
information RteOptimizationMode.c(SRS_Rte_00023)
The generated RTE code has to respect several rules in order to be integrated with
other AUTOSAR software in the build process.
[SWS_Rte_05088] dAll memory1 allocated by the RTE shall be wrapped in the Mem-
ory Allocation Keyword as defined in the Specification of Memory Mapping [28] using
RTE_<SCOPE> as the <PREFIX> where <SCOPE> is either
• the shortName of the AtomicSwComponentType
or
• the shortName of the EcucPartition the allocated memory object belongs to
or
• one of the defined <SCOPE>s in [SWS_Rte_07421], [SWS_Rte_07422],
[SWS_Rte_07423], [SWS_Rte_07424], or [SWS_Rte_07425].
c(SRS_Rte_00148, SRS_Rte_00169)
Due to the structure of the AUTOSAR Meta Model the input configuration might contain
several DataPrototypes which are resulting only in one memory object. In this case
1
memory refers to all elements in the generated RTE which will later occupy space in the ECU’s
memory and is directly associated with the RTE. This includes code, static data, parameters, etc.
it is required to define rules which SwAddrMethod is used to allocate the memory and
to decide about its initialization. Therefore precedence rules for SwAddrMethods are
defined by [SWS_Rte_07590] and [SWS_Rte_07591].
In order to ensure proper allocation of the variables and code instantiated by RTE, the
RTE code utilizes the memory mapping mechanism described in document [28]. The
requirements below follow the principles of the document [28], section "Requirements
on implementations using memory mapping header files for BSW Modules and Soft-
ware Components". However the basic granularity of constants and variables created
due to DataPrototypes in the input configuration is driven by the properties of the
applied data types and the applied SwAddrMethods.
[SWS_Rte_07421] dFor component data structure (CDS) instances the <SCOPE> for
the Memory Allocation Keyword shall be set to the shortName of the AtomicSwCom-
ponentType they belong to.c(SRS_Rte_00148, SRS_Rte_00169)
[SWS_Rte_07422] dFor AutosarDataPrototype implementations the <SCOPE> for
the Memory Allocation Keyword shall be set to the shortName of the AtomicSwCom-
ponentType they belong to.c(SRS_Rte_00148, SRS_Rte_00169)
[SWS_Rte_07423] dFor mode machine instance implementations the <SCOPE>
for the Memory Allocation Keyword shall be set to the shortName of the Atomic-
SwComponentType they belong to.c(SRS_Rte_00148, SRS_Rte_00169)
[SWS_Rte_07424] dFor RTE APIs implemented as functions the <SCOPE> for the
Memory Allocation Keyword shall be set to the shortName of the AtomicSwCom-
ponentType they belong to.c(SRS_Rte_00148, SRS_Rte_00169)
[SWS_Rte_07425] dFor RTE Call-back implementations the <SCOPE> for the Memory
Allocation Keyword shall be set according table 5.1 where:
<sn> is the name of the COM signal,
<sg> is the name of the COM signal group,
<sn> is the name of the LdCom signal/I-PDU,
<c> is the shortName of the NvBlockSwComponentType, and
<d> is the shortName of the NvBlockDescriptor
c(SRS_Rte_00148, SRS_Rte_00169)
4
Callback Function SCOPE
shortName of the EcucPar-
Rte_RestartPartition
tition
Rte_COMCbkTAck_<sn> SIG_<sn>
Rte_COMCbkTErr_<sn> SIG_<sn>
Rte_COMCbkInv_<sn> SIG_<sn>
Rte_COMCbkRxTOut_<sn> SIG_<sn>
Rte_COMCbkTxTOut_<sn> SIG_<sn>
Rte_COMCbk_<sg> SIG_<sg>
Rte_COMCbkTAck_<sg> SIG_<sg>
Rte_COMCbkTErr_<sg> SIG_<sg>
Rte_COMCbkInv_<sg> SIG_<sg>
Rte_COMCbkRxTOut_<sg> SIG_<sg>
Rte_COMCbkTxTOut_<sg> SIG_<sg>
Rte_COMCbk_<sn> SIG_<sg>
Rte_LdComCbkRxIndication_<sn> SIG_<sn>
Rte_LdComCbkStartOfReception_<sn> SIG_<sn>
Rte_LdComCbkCopyRxData_<sn> SIG_<sn>
Rte_LdComCbkTpRxIndication_<sn> SIG_<sn>
Rte_LdComCbkCopyTxData_<sn> SIG_<sn>
Rte_LdComCbkTpTxConfirmation_<sn> SIG_<sn>
Rte_LdComCbkTriggerTransmit_<sn> SIG_<sn>
Rte_LdComCbkTxConfirmation_<sn> SIG_<sn>
Rte_SetMirror <c>_<d>
Rte_GetMirror NVM_<c>_<d>
Rte_NvMNotifyJobFinished <c>_<d>
Rte_NvMNotifyInitBlock <c>_<d>
Table 5.1: <SCOPE> for the Memory Allocation Keywords of RTE Call-back implementa-
tions
The concept of RTE requires that objects and definitions which are related to one soft-
ware component are generated in a global name space. Nevertheless in this global
name space labels have to be unique for instance to support a correct linkage by
C Linker Locater. To ensure unique labels such objects and definitions related to a
specific software component are typically prefixed or infixed with the component type
symbol.
When AtomicSwComponentTypes of several vendors are integrated in the same
ECU name clashes might occur if the identical component type name is accidentally
used twice. To ease the dissolving of name clashes the RTE supports the supersed-
ing of the AtomicSwComponentType.shortName with the SymbolProps.symbol
attribute.
The resulting name related to an AtomicSwComponentType is called component
type symbol in this document.
[SWS_Rte_06714] dThe component type symbol shall be the value of the Sym-
bolProps.symbol attribute of the AtomicSwComponentType if the symbol attribute
is defined.c()
[SWS_Rte_06715] dThe component type symbol shall be the shortName of the
AtomicSwComponentType if no symbol attribute for this AtomicSwComponent-
Typeis defined.c()
Please note that the component type symbol is not applied for file names, e.g
Application Header File or includes of Memory Mapping Header files. Its expected that
a build environment can handle two equally named files.
There are use-cases where there is need to influence the behavior of the RTE Gen-
erator without changing the RTE Configuration description. In order to support such
use-cases this section collects the external configuration switches.
Note: it is not specified how these switches shall be implemented in the actual RTE
Generator implementation.
Unconnected R-Port check
[SWS_Rte_05099] dThe RTE Generator shall support the external configuration switch
strictUnconnectedRPortCheck which, when enabled, forces the RTE Generator
to consider unconnected R-Ports as an error.c(SRS_Rte_00139)
Missing input configuration check
[SWS_Rte_05148] dThe RTE Generator shall support the external configuration switch
strictConfigurationCheck which, when enabled, forces the RTE Generator to
mapping but has the advantage that the handle used to access the API can be stored
in memory and accessed, via an iterator, to apply the same API to multiple ports.
[SWS_Rte_03619] dIf the RTE emits a <suffix> as a result of an Autosar-
DataType being used (See [SWS_Rte_08802] for the meaning of the term "used")
in the input, it shall
• be set to "U" if the ImplementationDataType boils down to a SwBaseType
with baseTypeEncoding set to NONE and the baseTypeSize <= 16
• be set to "UL" if the ImplementationDataType boils down to a SwBaseType
with baseTypeEncoding set to NONE and the baseTypeSize > 16 and <= 32
• be set to "ULL" if the ImplementationDataType boils down to a SwBaseType
with baseTypeEncoding set to NONE and the baseTypeSize > 32
• be set to "L" if the ImplementationDataType boils down to a SwBaseType
with baseTypeEncoding set to 2C and the baseTypeSize > 16 and <= 32
• be set to "LL" if the ImplementationDataType boils down to a SwBaseType
with baseTypeEncoding set to 2C and the baseTypeSize > 32
• be set to "F" if the ImplementationDataType boils down to a SwBaseType
with baseTypeEncoding set to IEEE754 and the baseTypeSize <= 32
• be left empty if the ImplementationDataType boils down to
– a SwBaseType with baseTypeEncoding set to BOOLEAN
or
– a SwBaseType with baseTypeEncoding set to IEEE754 and the base-
TypeSize > 32
or
– a SwBaseType with baseTypeEncoding set to 2C and baseTypeSize
<= 16
.
c(SRS_Rte_00167)
All RTE symbols (e.g. function names, global variables, etc.) visible within the global
namespace are required to use the “Rte” prefix.
[SWS_Rte_01171] dAll externally visible symbols created by the RTE generator shall
use the prefix Rte_.
This rule shall not be applied for the following symbols:
The direct invocation form is the form used to present the RTE API in Section 5.6. The
RTE direct API mapping is designed to be optimizable so that the instance handle is
elided (and therefore imposes zero run-time overhead) when the RTE generator can
determine that exactly one instance of a component is mapped to an ECU.
All runnable entities for a AUTOSAR software-component type are passed the same
instance handle type (as the first formal parameter) and can therefore use the same
type definition from the component’s application header file.
The direct API can also be further optimized for source code components via the API
mapping.
The direct API is typically implemented as macros that are modified by the RTE gen-
erator depending on configuration. This technique places certain restrictions on how
the API can be used within a program, for example, it is not possible in C to take the
address of a macro and therefore direct API functions cannot be placed within a func-
tion table or array. If it is required by the implementation of a software-component to
derive a pointer to an object for the port API the PortAPIOption enableTakeAd-
dress can be used. For instance in an implementation of an AUTOSAR Service this
feature might be used to setup a constant function pointer table storing the configura-
tion of callback functions per ID. Additionally the indirect API provides support for API
addresses and iteration over ports.
[SWS_Rte_07100] dIf a PortPrototype is referenced by PortAPIOption with en-
ableTakeAddress = TRUE the RTE generator shall provide true/native C functions
(as opposed to function-like preprocessor macros) for the API related to this port.c()
The PortAPIOption enableTakeAddress = TRUE is not supported for software-
components supporting multiple instantiation.
The indirect API is an optional form of API invocation that uses indirection through
a port handle to invoke RTE API functions rather than direct invocation. This form
is less efficient (the indirection cannot be optimized away) but supports a different
programming style that may be more convenient. For example, when using the indirect
API, an array of port handles of the same interface and provide/require direction is
provided by RTE and the same RTE API can be invoked for multiple ports by iterating
over the array.
Both direct and indirect forms of API call are equivalent and result in the same gener-
ated RTE function being invoked.
Whether the indirect API is generated or not can be specified for each software com-
ponent and for each port prototype of the software component separately with the
indirectAPI attribute.
The semantics of the port handle must be the same in both the “RTE Contract” and
“RTE Generation” phases since the port handle accesses the standardized data struc-
tures of the RTE.
It is possible to mix the indirect and direct APIs within the same SW-C, if the indirect
API is present for the SW-C.
The indirect API uses port handles during the invocation of RTE API calls. The type
of the port handle is determined by the port interface that types the port which means
that if a component declares multiple ports typed by the same port interface the port
handle points to an array of port data structures and the same API invoked for each
element.
The port handle type is defined in Section 5.4.2.5.
An AUTOSAR SW-C needs to obtain port handles using the instance handle before the
indirect API can be used. The definition of the instance handle in Section 5.4.2 defines
the “Port API” section of the component data structure and these entries can be used
to access the port handles in either object-code or source-code components.
The API Rte_Ports and Rte_NPorts provides port data handles of a given interface.
Example 5.1 shows how the indirect API can be used to apply the same operation to
multiple ports in a component within a loop.
Example 5.1
The port handle points to an array that can be used within a loop to apply the same
operation to each port. The following example sends the same data to each receiver:
1 void TT1(Rte_Instance instance)
2 {
3 Rte_PortHandle_interface1_P my_array;
4 my_array=Rte_Ports_interface1_P(instance);
5 uint8 s;
6 for(s = 0u; s < Rte_NPorts_interface1_P(instance); s++) {
7 my_array[s].Send_a(23);
8 }
9 }
The RTE is required to support access to data with implicit semantics. The required
semantics are subject to two constraints:
• For VariableAccess in the dataReadAccess role, the data accessed by a
runnable entity must not change during the lifetime of the runnable entity.
• For VariableAccess in the dataWriteAccess role, the data written by a
runnable entity is only visible to other runnable entities after the accessing runn-
able entity has terminated.
The generated RTE satisfies both requirements through data copies that are created
when the RTE is generated based on the known task and runnable mapping.
Example 5.2
The RTE API includes three API calls to support VariableAccesses in the
dataReadAccess and dataWriteAccess roles for a software-component; Rte_-
IRead (see Section 5.6.18), Rte_IWrite, and Rte_IWriteRef (see Section 5.6.20
and 5.6.21). The API calls Rte_IRead and Rte_IWrite access the data copies
(for read and write access respectively). The API call Rte_IWriteRef returns a ref-
erence to the data copy, thus enabling the runnable to write the data directly. This
is especially useful for Structure Implementation Data Type and Array Im-
plementation Data Type. The use of an API call for reading and writing enables
the definition to be changed based on the task and runnable mapping without affecting
the software-component code.
Example 5.3
The API calls are used by re1 and re2 as required. The definitions of the API depend
on where the data copies are defined. If both re1 and re2 are mapped to the same
task then each can access the same copy. However, if re1 and re2 are mapped to
different (pre-emptable) tasks then the RTE will ensure that each API access a different
copy.
The Rte_IRead and Rte_IWrite use the “data handles” defined in the component
data structure (see Section 5.4.2).
Note: This shall support, that a Software Component Type can define several PerIn-
stanceMemory’s using the identical ’C’ type.
[SWS_Rte_07135] dThe RTE generator shall reject configurations, violating [constr_-
2007], where ’C’ typed PerInstanceMemorys with identical type attributes but differ-
ent typeDefinition attributes in the same Software Component Type are defined.c
(SRS_Rte_00013, SRS_Rte_00018)
Note: This would lead to an compiler error due to incompatible redefinition of a ’C’ type.
[SWS_Rte_02305] dThe generated RTE shall instantiate (or allocate) declared
PerInstanceMemory.c(SRS_Rte_00013, SRS_Rte_00077)
[SWS_Rte_07182] dThe generated RTE shall initialize declared PerInstanceMem-
ory according the initValue attribute if
• an initValue is defined
AND
• no SwAddrMethod is defined for PerInstanceMemory.
c(SRS_Rte_00013, SRS_Rte_00077)
[SWS_Rte_08304] dVariables implementing PerInstanceMemory shall be initialized
by RTE if
• an initValue is defined
AND
• a SwAddrMethod is defined for PerInstanceMemory
AND
• the RteInitializationStrategy for the sectionInitializationPol-
icy of the related SwAddrMethod is NOT configured to RTE_INITIALIZA-
TION_STRATEGY_NONE.
c(SRS_Rte_00013, SRS_Rte_00077)
[SWS_Rte_07183] dThe generated RTE shall instantiate (or allocate) declared
arTypedPerInstanceMemory.c(SRS_Rte_00013, SRS_Rte_00077)
[SWS_Rte_07184] dThe generated RTE shall initialize declared arTypedPerIn-
stanceMemory according the ValueSpecification of the VariableDataPro-
totype defining the arTypedPerInstanceMemory if the general initialization con-
ditions in [SWS_Rte_07046] are fulfilled.c(SRS_Rte_00013, SRS_Rte_00077)
[SWS_Rte_05062] dIn case the PerInstanceMemory or arTypedPerInstance-
Memory is used as a permanent RAM Block for the NvRam manager the name for the
instantiated PerInstanceMemory or arTypedPerInstanceMemory shall be taken
from the input information RteNvmRamBlockLocationSymbol. Otherwise the RTE
generator is free to choose an arbitrary name.c(SRS_Rte_00013, SRS_Rte_00077)
Example 5.4
In Rte.c:
1 /* declare and instantiate mem1 */
2 /* "mem1" name may be taken from RteNvmRamBlockLocationSymbol */
3 Rte_PimType_TheSwc_MyMemType mem1;
Note that the name used for the definition of the PerInstanceMemory may be used
outside of the RTE. One use-case is to support the definition of the link between the
NvRam Manager’s permanent blocks and the software-components. The name in
RteNvmRamBlockLocationSymbol is used to configure the location at which the
NvRam Manager shall store and retrieve the permanent block content. For a detailed
description please refer to the AUTOSAR Software Component Template [2].
The RTE API is implemented by macros and generated API functions that are created
(or configured, depending on the implementation) by the RTE generator during the
“RTE Generation” phase. Typically one customized macro or function is created for
each “end” of a communication though the RTE generator may elide or combine custom
functions to improve run-time efficiency or memory overheads.
[SWS_Rte_01274] dThe API mapping shall be implemented in the application
header file.c(SRS_BSW_00330, SRS_Rte_00027, SRS_Rte_00051, SRS_Rte_-
00083, SRS_Rte_00087)
The RTE generator is required to provide a mapping from the RTE API name to the
generated function [SRS_Rte_00051]. The API mapping provides a level of indirec-
tion necessary to support binary components and multiple component instances. The
indirection is necessary for two reasons. Firstly, some information may not be known
when the component is created, for example, the component’s instance name, but
are necessary to ensure that the names of the generated functions are unique. Sec-
ondly, the names of the generated API functions should be unique (so that the ECU
image can link correctly) and the steps taken to ensure this may make the names not
“user-friendly”. Therefore, the primary rationale for the API mapping is to provide the
required abstraction that means that a component does not need to concern itself with
the preceding problems.
The requirements on the API mapping depend on the phase in which an RTE gen-
erator is operating. The requirements on the API mapping are only binding for RTE
generators operating in compatibility mode.
Within the “RTE Contract” phase the API mapping is required to convert from the
source API call (as defined in Section 5.6) to the runnable entity provided by a software-
component or the implementation of the API function created by the RTE generator.
When compiled against a “RTE Contract” phase header file a software-component that
can be multiple instantiated is required to use a general API mapping that uses the
instance handle to access the function table defined in the component data structure.
[SWS_Rte_03706] dIf a software-component supportsMultipleInstantiation,
the “RTE Contract” phase API mapping shall access the generated RTE functions using
the instance handle to indirect through the generated function table in the component
data structure.c(SRS_Rte_00051)
Example 5.5
For a require client-server port ‘p1’ with operation ‘a’ with a single argument, the gen-
eral form of the API mapping would be:
1 #define Rte_Call_p1_a(instance,v) ((instance)->p1.Call_a(v))
[SWS_Rte_06516] dThe RTE Generator shall wrap each API mapping and API func-
tion definition of a variant existent API according table 4.23 if the variability shall be
implemented.
1 #if (<condition> [||<condition>])
2
3 <API Mapping>
4
5 #endif
where condition are the condition value macro(s) of the VariationPoints rel-
evant for the conditional existence of the RTE API (see table 4.23), API Map-
ping is the code according an invariant API Mapping (see also [SWS_Rte_01274],
[SWS_Rte_03707], [SWS_Rte_03837], [SWS_Rte_01156])c(SRS_Rte_00201)
Note: In case of explicit communication any existent access points in the meta model
might result in the related API which results in a or condition for the pre processor.
Example 5.6
For a require client-server port ‘p1’ with operation ‘a’ with a single argument of the
component ‘c1’ defining a ServerCallPoint which is subject of variability in runn-
able ‘run1’, the general form of the conditional API mapping would be:
1
2 #if (Rte_VPCon_c1_run1_p1_a==TRUE)
3
4 #define Rte_Call_p1_a(instance,v) ((instance)->p1.Call_a(v))
5
6 #endif
• Rte_IWrite
• Rte_IWriteRef
• Rte_IStatus
• Rte_IFeedback
• Rte_IInvalidate
c(SRS_Rte_00051)
Note: For [SWS_Rte_01156] and [SWS_Rte_06831] when the APIs are implemented
as macros the API mapping in the application header file directly uses relevant fields of
the component data structure. However the enableTakeAddress attribute only ap-
plies for single instantiated SWCs and therefore the body of the generated function can
directly access the relevant data if required without indirection through the component
data structure.
The functions generated that are the destination of the API mapping, which is created
during the “RTE Contract” phase, are created by the RTE generator during the second
“RTE Generation” phase.
[SWS_Rte_01153] dThe generated function (or runnable) shall take the same param-
eters, in the same order, as the API mapping.c(SRS_Rte_00051)
Example 5.7
For a require client-server port ‘p1’ with operation ‘a’ with a single argument for compo-
nent type ‘c1’ for which multiple instantiation is forbidden, the following mapping would
be generated:
1 #define Rte_Call_p1_a Rte_Call_c1_p1_a
There are no requirements on the form that the API mapping created during the “RTE
Generation” phase should take. This is because the application header files defined
during this phase are used by source-code components and therefore compatibility
between the generated RTE and source-code components is automatic.
The RTE generator is required to produce the component data structure instances re-
quired by object-code components and multiple instantiated source-code components.
If multiple instantiation of a software-component is forbidden, then the API mapping
specified for the “RTE Contract” phase (Section 5.2.6.1) defines the names of the
generated functions. If multiple instantiation is possible, there are no corresponding
requirements that define the name of the generated function since all accesses to the
generated functions are performed via the component data structure which contains
well-defined entries (Sections 5.4.2.5 and 5.4.2.5).
Using the “RTE Generation” phase API mapping, it is possible for the RTE generator
to elide the use of generated RTE functions.
[SWS_Rte_01146] dIf the API mapping elides an RTE function the “RTE Generation”
phase API mapping mechanism shall ensure that the invoking component still receives
a “return value” so that no changes to the AUTOSAR software-component are neces-
sary.c(SRS_Rte_00051)
In C, the elision of API calls can be achieved using a comma expression2
Example 5.8
Furthermore, assume that the communication attributes are specified such that the
sender-receiver communication can be performed as a direct assignment and there-
fore no RTE API call needs to be generated. However, the component source cannot
be modified and expects to receive an Std_ReturnType as the return. The “RTE
Generation” phase API mapping could then be rewritten as:
1 #define Rte_Send_p1_a(s,a) (<var> = (a), RTE_E_OK)
Where <var> is the implementation dependent name for an RTE created cache be-
tween sender and receiver.
As described above, the RTE API mapping is responsible for mapping the RTE API
name to the correct generated RTE function. The API mapping permits an RTE gener-
ator to include targeted optimization as well as removing the need to implement func-
tions that act as routing functions from generic API calls to particular functions within
the generated RTE.
For C and C++ the RTE API names introduce symbols into global scope and therefore
the names are required to be prefixed with Rte_ [SWS_Rte_01171].
All API parameters fall into one of two classes; parameters that are strictly read-only
(“In” parameters) and parameters whose value may be modified by the API function
(“In/Out” and “Out” parameters).
The type of these parameters is taken from the data element prototype or operation
prototype in the interface that characterizes the port for which the API is being gener-
ated.
In the following, requirement [SWS_Rte_06806] reflects the standard defined by [29].
The remaining requirements are include to ensure the consistency between different
RTE implementations. The rules described below regarding the default argument pass-
ing strategy may be overwritten by more specific requirements, e.g. ServerArgu-
mentImplPolicy.
[SWS_Rte_06804] dAll input parameters using the P2CONST macro shall use memclass
AUTOMATIC and ptrclass RTE_APPL_DATA.c(SRS_Rte_00060, SRS_BSW_00007)
[SWS_Rte_06805] dAll parameters using the VAR macro shall use memclass AUTO-
MATIC.c(SRS_Rte_00059, SRS_BSW_00007)
[SWS_Rte_06806] dAll output and bi-directional parameters (i.e. both input and out-
put) parameters shall use the P2VAR macro.c(SRS_Rte_00061, SRS_BSW_00007)
[SWS_Rte_06807] dAll parameters using the P2VAR macro shall use memclass AU-
TOMATIC and ptrclass RTE_APPL_DATA.c(SRS_Rte_00059, SRS_Rte_00060, SRS_-
BSW_00007)
• “In” Parameters
[SWS_Rte_01017] dAll input parameters that are a Primitive Implemen-
tation Data Type shall be passed by value.c(SRS_Rte_00059, SRS_Rte_-
00061)
[SWS_Rte_01018] dAll input parameters that are of type Structure Imple-
mentation Data Type or Union Implementation Data Type shall be
passed by reference.c(SRS_Rte_00060, SRS_Rte_00061)
”OUT”, and ”INOUT”. These direction qualifiers are not part of the actual API proto-
types. Especially, the user cannot expect that these direction qualifiers are available
for the application.
Example 5.9
This would be the Rte_Write API generated for the example 5.5 (example of a two
dimension array typed by an ImplementationDataType):
1 FUNC(Std_ReturnType, RTE_CODE) Rte_Write_<p>_<o>(P2CONST(uint8,
AUTOMATIC, AUTOMATIC) data)
A subset of the RTE API’s returning the values instead of using OUT Parameters. In
the API section these API signatures defining a <return> value. In addition to the
following rules some of the APIs might specify additionally const qualifiers.
[SWS_Rte_07069] dThe RTE Generator shall determine the <return> type according
the applicable ImplementationDataType of the DataPrototype for which the API
provides access.c(SRS_Rte_00059)
[SWS_Rte_08300] dA pointer return value of an RTE API shall be declared as pointer
to const with the means of the FUNC_P2CONST macro or P2CONST if the pointer is not
used to modify the addressed object.c(SRS_Rte_00059)
Please note that the FUNC_P2CONST macro is applicable if the RTE API is implemented
as an real function and the P2CONST might be used if the RTE API is implemented as
a macro.
Requirement [SWS_Rte_08300] applies for instance for the RTE APIs Rte_Prm,
Rte_CData, Rte_IrvRead, Rte_IrvIRead in the cases where the API grants ac-
cess to composite data (arrays, structures, unions).
Please note, that the the implementation of the C data types are specified in section
5.3.4 "RTE Types Header File".
[SWS_Rte_07070] dIf the DataPrototype is associated to a Primitive Imple-
mentation Data Type the RTE API shall return the value of the DataPrototype
for which the API provides access. The type name shall be equal to the shortName
of these ImplementationDataType.c(SRS_Rte_00059)
Example 5.10
Consider an RTE API call return a primitive as defined in the example 5.2 for a singly
instantiated SW-C. The signature of the API will be:
1 MyUint8 Rte_IRead_<re>_<p>_<o>(void);
Please note that the usage of Compiler Abstraction is not shown in the example.
Example 5.11
Consider an RTE API call return a structure as defined in the example 5.6 for a singly
instantiated SW-C. The signature of the API will be:
1
Please note that the usage of Compiler Abstraction assumes that the SwAddrMethod
of the accessed VariableDataPrototype is named "‘VAR_FAST_INIT"’. Further
on the example does not respect the principles of API mapping.
Example 5.12
Consider an RTE API call return an array as defined in the example 5.4 for a singly
instantiated SW-C. The signature of the API will be:
1 FUNC_P2CONST(unsigned char, RTE_VAR_POWER_ON_INIT, RTE_CODE)
2 Rte_IRead_<re>_<p>_<o>(void);
Please note that the usage of Compiler Abstraction assumes that the SwAddrMethod
of the accessed VariableDataPrototype is named "‘VAR_POWER_ON_INIT"’.
Further on the example does not respect the principles of API mapping.
Example 5.13
Consider an RTE API call return an array as defined in the example 5.5 for a singly
instantiated SW-C. The signature of the API will be:
1 FUNC_P2CONST(uint8, RTE_VAR_NO_INIT, RTE_CODE)
2 Rte_IRead_<re>_<p>_<o>(void);
Please note that the usage of Compiler Abstraction assumes that the SwAddrMethod
of the accessed VariableDataPrototype is named "‘VAR_NO_INIT"’. Further on
the example does not respect the principles of API mapping.
A subset of the RTE API’s returning a reference to the memory location where the data
can be accessed instead of using IN/OUT Parameters. In the API section these API
signatures defining a <return reference> value.
[SWS_Rte_06808] dA <return reference> shall use the FUNC_P2VAR or P2VAR
macro.c(SRS_BSW_00007)
[SWS_Rte_06809] dA <return reference> which uses either the P2VAR or the
FUNC_P2VAR macro shall use memclass AUTOMATIC and ptrclass RTE_DATA.c(SRS_-
BSW_00007)
[SWS_Rte_07076] dThe RTE Generator shall determine the <return reference>
type according the applicable ImplementationDataType of the DataPrototype
for which the API provides access.c(SRS_Rte_00059)
Please note, that the the implementation of the C data types are specified in section
5.3.4 "RTE Types Header File".
[SWS_Rte_07077] dIf the DataPrototype is associated to a Primitive Imple-
mentation Data Type the RTE API shall return a pointer to variable holding the
data of the value of the DataPrototype for which the API provides access. The
type name shall be equal to the shortName of these ImplementationDataType.c
(SRS_Rte_00059)
Example 5.14
Consider an RTE API call return a reference to a primitive as defined in the example
5.2 for a singly instantiated SW-C. The signature of the API will be:
1 MyUint8 * Rte_IWriteRef_<re>_<p>_<o>(void);
Please note that the usage of Compiler Abstraction is not shown in the example.
Example 5.15
Consider an RTE API call return a reference to a structure as defined in the example
5.6 for a singly instantiated SW-C. The signature of the API will be:
1 RecA * Rte_IWriteRef_<re>_<p>_<o>(void);
Please note that the usage of Compiler Abstraction is not shown in the example.
Example 5.16
Consider an RTE API call return a reference to an array as defined in the example 5.4
for a singly instantiated SW-C. The signature of the API will be:
1 unsigned char * Rte_IWriteRef_<re>_<p>_<o>(void);
Example 5.17
Consider an RTE API call return a reference to an array as defined in the example 5.5
for a singly instantiated SW-C. The signature of the API will be:
1 uint8 * Rte_IWriteRef_<re>_<p>_<o>(void);
Please note that the usage of Compiler Abstraction is not shown in the examples.
In RTE, error and status information is defined with the data type Std_ReturnType,
see Section 5.5.1.
It is possible to distinguish between infrastructure errors and application errors. Infras-
tructure errors are caused by a resource failure or an invalid input parameter. Infras-
tructure errors usually occur in the basic software or hardware along the communica-
tion path of a data element. Application errors are reported by a SW-C or by AUTOSAR
services. RTE has the capability to treat application errors that are forwarded
• by return value in client server communication or
• by signal invalidation in sender receiver communication with data semantics.
Errors that are detected during an RTE API call are notified to the caller using the API’s
return value.
[SWS_Rte_01034] dError states (including ’no error’) shall only be passed as return
value of the RTE API to the AUTOSAR SW-C.c(SRS_Rte_00094)
Requirement [SWS_Rte_01034] ensures that, irrespective of whether the API is block-
ing or non-blocking, the error is collected at the same time the data is made available
to the caller thus ensuring that both items are accessed consistently.
Certain RTE API calls operate asynchronously from the underlying communication
mechanism. In this case, the return value from the API indicates only errors detected
during that API call. Errors detected after the API has terminated are returned using a
different mechanism [SWS_Rte_01111]. RTE also provides an ’implicit’ API for direct
access to virtually shared memory. This API does not return any errors. The underlying
[SWS_Rte_01329] dThe RTE shall handle both require and provide ports that are not
connected.c(SRS_Rte_00139)
The handling of require ports as an error is described in requirement
[SWS_Rte_05099].
[SWS_Rte_06030] dThe RTE shall consider a PRPortPrototype as always con-
nected.c(SRS_Rte_00139)
Note: [SWS_Rte_06030] is the consequence of [TPS_SWCT_01573]. This is because
a PRPortPrototype is logically an overlay of require and provide semantics hence
the PRPortPrototype needs no further explicitly defined connection in the form of
an SwConnector or signal mapping.
RTE event handling and the API calls for unconnected ports are specified to behave
as if the port was connected but the remote communication point took no action.
Unconnected require ports are regarded by the RTE generator as an invalid
configuration (see [SWS_Rte_03019]) if the strict handling has been enabled
(see [SWS_Rte_05099]).
For the mode user an unconnected mode switch port behaves as if it was connected
to a mode manager that never sends a mode switch notification.
5.2.7.3 Client-Server
Two ports are permitted to be connected provided that they are characterized by com-
patible, but not necessarily identical, interfaces. For the full definition of whether two
interfaces are compatible, see the Software Component Template [2].
[SWS_Rte_01368] dThe RTE generator shall report an error if the [constr_1036] and
the [constr_1069] are violated so if two connected ports are connected by incompatible
interfaces.c(SRS_Rte_00137)
A significant issue in determining whether two interfaces are compatible is that the
interface characterizing the require port may be a strict subset of the interface char-
acterizing the provide port. This means that there may be provided data elements or
operations for which there is no corresponding element in the require port. This can be
imagined as a multi-strand wire between the two ports (the assembly connector) where
each strand represents the connection between two data elements or operations, and
where some of the strands from the ‘provide’ end are not connected to anything at the
‘require’ end.
Define, for the purposes of this section, an “unconnected element” as a data element
or operation that occurs in the provide interface, but for which no corresponding data
element or operation occurs in a particular R-Port’s interface.
[SWS_Rte_01369] dFor each data element or operation within the provide interface,
every connected requirer with an “unconnected element” must be treated as if it were
not connected.c(SRS_Rte_00137)
Note that requirement [SWS_Rte_01369] means that in the case of a 1:n Sender-
Receiver the Rte_Write call may transmit to some but not all receivers.
The extreme is if all connected requirers have an “unconnected element”:
[SWS_Rte_01370] dFor a data element or operation in a provide interface which is
an unconnected element in every connected R-Port, the generated Rte_Send, Rte_-
Write, Rte_IWrite, or Rte_IWriteRef APIs must act as if the port were uncon-
nected.c(SRS_Rte_00137)
See Section 5.2.7 for the required behavior in this case.
functioning, the OS cannot accept more task activations etc. There are integration
scenarios however in which just no error can occur. E.g. if a trigger source raises
a trigger with lower frequency than the trigger sinks can consume it or if a Sender-
Receiver communication is a pure intra-partition communication without transformers.
Many components in an ECU are designed for a specific system and can therefore as-
sume a certain integration scenario and omit the evaluation of the error code returned
by the RTE APIs. This way those components can reduce CPU resource consump-
tion by omitting the status evaluation and also the RTE does not have to compute the
status.
The RTE can usually not check if such an optimization is valid in a given SWC integra-
tion as it does not have the full knowledge about e.g. the call frequency of a trigger or
write API. It is the SWC’s integrator who has to ensure that the SWC’s assumptions
are fulfilled. But the RTE offers the technical possibility to omit the Std_ReturnType
and generate an API with return type void instead. This is achieved via the at-
tribute returnValueProvision which can be set to noReturnValueProvided.
If it is not set or set to returnValueProvided the standard behavior of return type
Std_ReturnType will be used. Please note that returnValueProvision is only
meaningful for AccessPoints resulting in an API with return type Std_ReturnType.
Also note that APIs with the purpose of retrieving the communication status (e.g.
Rte_Feedback or Rte_IStatus) are not affected by any setting of returnValue-
Provision as it doesn’t make sense to ask for a status and at the same time ignoring
it.
The output of an RTE generator can consist of both generated code and configuration
for “library” code that may be supplied as either object code or source code. Both
configured and generated code reference standard definitions that are defined in the
RTE Header File.
The relationship between the RTE header file, Application Header Files, the Lifecycle
Header File and AUTOSAR software-components is illustrated in Figure 5.1.
In general a RTE can be partitioned in several files. The partitioning depends from
the RTE vendors software design and generation strategy. Nevertheless it shall be
possible to clearly identify code and header files which are part of the RTE module.
[SWS_Rte_07139] dEvery file of the RTE beside Rte.h and Rte.c shall be named with
the prefix Rte_.c(SRS_BSW_00300)
The RTE header file defines fixed elements of the RTE that do not need to be generated
or configured for each ECU.
[SWS_Rte_01157] dFor C/C++ AUTOSAR software-components, the name of the RTE
header file shall be Rte.h.c(SRS_BSW_00300)
Typically the contents of the RTE header file are fixed for any particular implementation
and therefore it is not created by the RTE generator. However, customization for each
generated RTE is not forbidden.
[SWS_Rte_01164] d The RTE header file shall include the file Std_Types.h.c(SRS_-
Rte_00149, SRS_Rte_00150, SRS_BSW_00353)
The file Std_Types.h is the standard AUTOSAR file [31] that defines basic data types
including platform specific definitions of unsigned and signed integers and provides
access to the compiler abstraction.
The contents of the RTE header file are not restricted to standardized elements that
are defined within this document – it can also contain definitions specific to a particular
implementation.
[SWS_Rte_08309] dThe RTE generator shall provide declarations for RTE and SchM
Lifecycle APIs (see Section 5.8 and 6.7) through the Lifecycle header file.c(SRS_-
Rte_00051)
[SWS_Rte_01158] dFor C/C++ AUTOSAR software-components, the name of the life-
cycle header file shall be Rte_Main.h.c(SRS_BSW_00300)
[SWS_Rte_01159] dThe lifecycle header file shall include the RTE header file.c(SRS_-
Rte_00051)
The application header file [SRS_Rte_00087] is central to the definition of the RTE API.
An application header file defines the RTE API and any associated data structures that
are required by the SW-C to use the RTE implementation. But the application header
file is not allowed to create objects in memory.
[SWS_Rte_01000] dThe RTE generator shall create an application header file for each
software-component type (excluding ParameterSwComponentTypes and NvBlock-
SwComponentTypes) defined in the input.c(SRS_Rte_00087, SRS_Rte_00024,
SRS_Rte_00140)
[SWS_Rte_03786] dThe application header file shall not contain code that creates
objects in memory.c(SRS_Rte_00087, SRS_BSW_00308)
RTE generation consists of two phases; an initial “RTE Contract” phase and a second
“RTE Generation” phase (see Section 2.3). Object-code components are compiled
after the first phase of RTE generation and therefore the application header file should
conform to the form of definitions defined in Sections 5.4.1 and 5.5.2. In contrast,
source-code components are compiled after the second phase of RTE generation and
therefore the RTE generator produces an optimized application header file based on
knowledge of component instantiation and deployment.
Example 5.18
should result in the application header file Rte_Source.h being generated when the
component wrapper method for bypass support is disabled.
The component type name is used rather than the component instance name for two
reasons; firstly the same component code is used for all component instances and,
secondly, the component instance name is an internal identifier, and should not appear
outside of generated code.
5.3.3.2 Scope
RTE supports two approaches for the scope of the application header file, a SW-C
based, and a runnable based approach.
1. Always, the application header file provides only the API that is specific for one
atomic SW-C, see [SWS_Rte_01004].
2. The scope of the application header file can be further reduced to one runnable
by using the mechanism described in [SWS_Rte_02751].
Many of the RTE APIs are specific to runnables. The restrictions for the usage of the
generated APIs are defined in the ‘Existence’ parts of each API subsection in 5.6. To
prevent run time errors by the misuse of APIs that are not supported for a runnable, it
is recommended to use the runnable based approach of the application header file.
[SWS_Rte_01004] dThe application header file for a component shall contain only
information relevant to that component.c(SRS_Rte_00087, SRS_Rte_00017, SRS_-
Rte_00167)
[SWS_Rte_02751] dIf the pre-compiler Symbol RTE_RUNNABLEAPI_<rn> is defined
for a runnable with short name <rn> when the application header file is included,
the application header file shall not declare APIs that are not valid to be used by the
runnable rn.c(SRS_Rte_00017)
For example, to restrict the application header file of the SW-C mySwc to the API of the
runnable myRunnable, the following sequence can be used:
1 #define RTE_RUNNABLEAPI_myRunnable
2 #include <Rte_mySwc.h>
3
4 // runnable source code
Note that this mechanism does not support to restrict the application header file to the
super set of two or more runnable APIs. In other words, runnables should be kept in
separate source files, if the runnable based approach is used.
Requirements [SWS_Rte_01004] and [SWS_Rte_02751] mean that compile time
checks ensure that a component (or runnable) that uses the application header file
only accesses the generated data structures and functions to which it has been con-
figured. Any other access, e.g. to fields not defined in the customized data structures
or RTE API, will fail with a compiler error [SRS_Rte_00017].
The definitions of the RTE API contained in the application header file can be opti-
mized during the “RTE Generation” phase when the mapping of software-components
to ECUs and the communication matrix is known. Consequently multiple application
header files must not be included in the same source module to avoid conflicting defi-
nitions of the RTE API definitions that the files contains.
Listing 5.1 illustrates the code structure for the declaration of the entry point of a
runnable entity that provides the implementation for a ServerPort in component c1.
The RTE generator is responsible for creating the API and tasks used to execute the
server and the symbol name of the entry point is extracted from the attribute symbol
of the runnable entity. The example shows that the first parameter of the entry point
function is the software-component’s instance handle [SWS_Rte_01016].
Listing 5.1: Skeleton server runnable entity
1 #include <Rte_c1.h>
2
3 void runnable_entry(Rte_Instance instance)
4 {
5 /* ... server code ... */
6 }
Listing 5.1 includes the component-specific application header file Rte_c1.h created
by the RTE generator. The RTE generator will also create the supporting data struc-
tures and the task body to which the runnable is mapped.
The RTE is also responsible for preventing conflicting concurrent accesses when the
runnable entity implementing the server operation is triggered as a result of a request
from a client received via the communication service or directly via inter-task commu-
nication.
Multiple application header file must not be included in the same module ([
SWS_Rte_01004]) and therefore the file contents should contain a mechanism to en-
force this requirement.
[SWS_Rte_01006] dAn application header file shall include the following mechanism
before any other definitions.
1 #ifdef RTE_APPLICATION_HEADER_FILE
2 #error Multiple application header files included.
3 #endif /* RTE_APPLICATION_HEADER_FILE */
4 #define RTE_APPLICATION_HEADER_FILE
c(SRS_Rte_00087)
[SWS_Rte_07131] dThe application header file shall include the Application Types
Header File.c(SRS_Rte_00087)
The name of the Application Types Header File is defined in Section 5.3.6.
[SWS_Rte_07924] dThe application header file shall include the RTE Data Handle
Types Header File (see Section 5.3.5).c(SRS_Rte_00087)
[SWS_Rte_01005] dThe application header file shall be valid for both C and C++
source.c(SRS_Rte_00126, SRS_Rte_00138)
Requirement [SWS_Rte_01005] is met by ensuring that all definitions within the appli-
cation header file are defined using C linkage if a C++ compiler is used.
[SWS_Rte_03709] dAll definitions within in the application header file shall be pre-
ceded by the following fragment;
1 #ifdef __cplusplus
2 extern "C" {
3 #endif /* __cplusplus */
c(SRS_Rte_00126, SRS_Rte_00138)
[SWS_Rte_03710] dAll definitions within the application header file shall be suffixed by
the following fragment;
1 #ifdef __cplusplus
2 } /* extern "C" */
3 #endif /* __cplusplus */
c(SRS_Rte_00126, SRS_Rte_00138)
[SWS_Rte_03628] dThe Rte shall generate the APIs [SWS_Rte_03622],
[SWS_Rte_03624] and [SWS_Rte_03626] as macros in the Application Header
File of each software component.c(SRS_Rte_00322)
The RTE uses an instance handle to identify different instances of the same component
type. The definition of the instance handle type [SWS_Rte_01148] is unique to each
component type and therefore should be included in the application header file.
[SWS_Rte_01007] dThe application header file shall define the type of the instance
handle for the component.c(SRS_Rte_00012)
All runnable entities for a component are passed the same instance handle type (as
the first formal parameter [SWS_Rte_01016]) and can therefore use the same type
definition from the component’s application header file.
The example 5.23 illustrates the definition of an instance handle.
The application header file also includes a prototype for each runnable entity entry
point ([SWS_Rte_01132]) and the API mapping ([SWS_Rte_01274]).
[SWS_Rte_05078] dThe Application Header File shall define the init value of non-
queued VariableDataPrototypes of sender receiver or non volatile data ports and
typed by an ImplementationDataType or ApplicationDataType of category
VALUE.
1 #define Rte_InitValue_<Port>_<DEPType> <initValue><suffix>
5.3.3.3.4 PerInstanceMemory
The Application Header File shall type definitions for PerInstanceMemory’s as defined
in Chapter 5.2.5, [SWS_Rte_07133].
The application header file defines the “interface” between a component and the RTE.
The interface consists of the RTE API for the component and the prototypes for runn-
able entities. The definition of the RTE API requires that both relevant data structures
and API calls are defined.
The data structures required to support the API are defined in the Application Header
file (CDS) (see chapter 5.3.3), in the Application Types Header file (see chapter 5.3.6),
in the RTE Types Header file (see chapter 5.3.1) and in the RTE Data Handle Types
Header file (see chapter 5.3.5).
The data structure types are declared in the header files whereas the instances are
defined in the generated RTE. The necessary data structures for object-code software-
components are defined in chapter 5.5.2 and chapter 5.4.2.
The RTE generator is required [SWS_Rte_01004] to limit the contents of the applica-
tion header file to only that information that is relevant to that component type. This
requirement includes the definition of the API mapping. The API mapping is described
in chapter 5.2.6.
Requirement [SWS_Rte_01004] and [SWS_Rte_01006] ensure that attempts to invoke
invalid API calls will be rejected as a compile-time error [SRS_Rte_00017].
The concept of client server supports application specific error codes. Symbolic
names for Application Errors are defined in the application header file to avoid con-
flicting definitions between several AtomicSwComponentTypes mapped one ECU.
See [SWS_Rte_02575] and [SWS_Rte_02576].
The RTE Types Header File includes the RTE specific type declarations derived from
the ImplementationDataTypes created from the definitions of AUTOSAR meta-
model classes within the RTE generator’s input. The available meta-model classes
are defined by the AUTOSAR software-component template and include classes for
defining primitive values, structures, arrays and pointers.
The types declared in the RTE Types Header File intend to be used for the implemen-
tation of RTE internal data buffers as well as for RTE API.
[SWS_Rte_01160] dThe RTE generator shall create the RTE Types Header File includ-
ing the type declarations corresponding to the ImplementationDataTypes defined
in the input configuration as well as the RTE implementation types.c()
The RTE Data Types header file should be output for “RTE Contract” and “RTE Gener-
ation” phases.
[SWS_Rte_02648] dThe RTE Types Header File shall include the type declarations,
structure defintions, and union definitions for all the AUTOSAR Data Types according
to [SWS_Rte_07104], [SWS_Rte_07110], [SWS_Rte_06706], [SWS_Rte_06707],
[SWS_Rte_06708] [SWS_Rte_07111], [SWS_Rte_07114], [SWS_Rte_06812],
[SWS_Rte_07144], [SWS_Rte_06813], [SWS_Rte_07109] and [SWS_Rte_07148]
depending on the values of attributes typeEmitter and nativeDeclaration but
irrespective of their use by the generated RTE.c()
The attribute typeEmitter controls which part of the AUTOSAR toolchain is sup-
posed to provide data type definitions. For legacy reasons the RTE generator is sup-
posed to generate the corresponding data type if the ImplementationDataType
defines no typeEmitter.
[SWS_Rte_06709] dThe RTE generator shall generate the corresponding data type
definition if the value of attribute typeEmitter is NOT defined.c()
[SWS_Rte_06710] dThe RTE generator shall generate the corresponding data type
definition if the value of attribute typeEmitter is set to "RTE".c()
[SWS_Rte_06711] dThe RTE generator shall reject configurations where the attribute
typeEmitter is not defined or set to "RTE", and the ImplementationDataType
references a SwBaseType without defined nativeDeclaration.c()
[SWS_Rte_06712] dThe RTE generator shall silently not generate the corresponding
data type definition if the value of attribute typeEmitter is set to anything else but
"RTE".c()
This requirement ensures the availability of ImplementationDataTypes for the in-
ternal use in AUTOSAR software components.
Nevertheless the RTE Types Header File does not contain any data type belonging
to an ImplementationDataType where typeEmitter is set to anything else but
"RTE" regardless if the ImplementationDataType references SwBaseTypes and if
this SwBaseTypes define nativeDeclarations.
[SWS_Rte_08732] dThe RTE generator shall generate the type
Rte_Cs_TransactionHandleType of the transaction handle for inter-ECU
Client-Server communication as a structure:
typedef struct {
uint16 clientId;
uint16 sequenceCounter;
} Rte_Cs_TransactionHandleType;
where clientId and sequenceCounter contain the client identifier and sequence
counter as specified in [SWS_Rte_02649].
c()
The types header file may need types in terms of BSW types (from the file
Std_Types.h) or from the implementation specific RTE header file to declare types.
However, since the RTE header file includes the file Std_Types.h already so only the
RTE header file needs direct inclusion within the types header file.
[SWS_Rte_01163] dThe RTE Types Header File shall include the RTE Header File.c
(SRS_BSW_00353)
The RTE Types Header File declares C types for all Primitive Implementation
Data Types where the referred BaseType has a nativeDeclaration attribute.
[SWS_Rte_07104] dFor each Primitive Implementation Data Type with a
nativeDeclaration attribute, the RTE Types Header File shall include the corre-
sponding type declaration as:
typedef <nativeDeclaration> <name>;
where <nativeDeclaration> is the nativeDeclaration attribute of the re-
ferred BaseType and <name> is the Implementation Data Type symbol of the
Primitive Implementation Data Type.c(SRS_Rte_00055, SRS_Rte_00166,
SRS_Rte_00168, SRS_BSW_00353)
Note: All Primitive Implementation Data Types where the referred Base-
Type has no nativeDeclaration attribute resulting not in a type declaration. This
is intended to prevent the redeclaration of the predefined Standard Types and Platform
Types.
In addition to the primitive data-types defined in the previous section, it is also neces-
sary for the RTE generator to declare composite data-types: arrays and records.
An array definition following information:
• the array type
• the number of dimensions
• the number of elements for each dimension.
[SWS_Rte_07110] dFor each Array Implementation Data Type which leaf Im-
plementationDataTypeElement is typed by a BaseType and the respective ar-
rayImplPolicy is not defined or set to payloadAsArray, the RTE Types Header
File shall include the corresponding type declaration as:
typedef <nativeDeclaration> <name>[<size 1>]{[<size 2>]...
[<size n>]};
where <nativeDeclaration> is the nativeDeclaration attribute of the referred
BaseType,
<name> is the Implementation Data Type symbol of the Array Implemen-
tation Data Type,
[<size x>] is the arraySize of the Array’s ImplementationDataTypeElement.
For each array dimension defined by one Array’s ImplementationDataTypeEle-
ment one array dimension definition [<size x>] is defined. The array dimension
definitions [<size 1>], [<size 2>] ... [<size n>] ordered from the root to
the leaf ImplementationDataTypeElement.c(SRS_Rte_00055, SRS_Rte_00164)
[SWS_Rte_02317] dFor each Array Implementation Data Type which leaf Im-
plementationDataTypeElement is typed by a BaseType and the respective ar-
rayImplPolicy is set to payloadAsPointerToArray, the RTE Types Header File
shall include the corresponding type declaration as:
typedef <nativeDeclaration> * <name>;
where <nativeDeclaration> is the nativeDeclaration attribute of the referred
BaseType,
The array dimension definitions [<size 1>], [<size 2>] ... [<size n>]
ordered from the root to the last ImplementationDataTypeElement belonging to
the array definition.c(SRS_Rte_00055, SRS_Rte_00164)
[SWS_Rte_06708] dFor each Array Implementation Data Type which last Im-
plementationDataTypeElement is of category DATA_REFERENCE, the RTE Types
Header File shall include the corresponding type declaration as:
typedef <tqlA> <addtqlA> <type> * <tqlB> <addtqlB> <name> [<size
1>]{[<size 2>]...[<size n>]};
where <name> is the Implementation Data Type symbol of the Array Im-
plementation Data Type and
[<size x>] is the arraySize of the Array’s ImplementationDataTypeElement.
For each array dimension defined by one Array’s ImplementationDataTypeEle-
ment one array dimension definition [<size x>] is defined. The array dimension
definitions [<size 1>], [<size 2>] ... [<size n>] ordered from the root
to the last ImplementationDataTypeElement belonging to the array definition.c
(SRS_Rte_00055, SRS_Rte_00164)
For the definition of <tqlA> and <tqlB> see [SWS_Rte_07149] and
[SWS_Rte_07166].
For the definition of <addtqlA> and <addtqlB> see [SWS_Rte_07036] and
[SWS_Rte_07037].
[SWS_Rte_07112] dIf more than one Array Implementation Data Type with
equal shortName of the ImplementationDataType and equal nativeDeclara-
tion attribute of the referred BaseType are defined, the RTE Types Header File shall
include only once the corresponding type declaration according to [SWS_Rte_07110].c
(SRS_Rte_00165)
[SWS_Rte_07113] dIf more than one Array Implementation Data Type with
equal shortName of the ImplementationDataType and equal shortName of the
referred ImplementationDataType are defined, the RTE Types Header File shall in-
clude only once the corresponding type declaration according to [SWS_Rte_07111].c
(SRS_Rte_00165)
Note: This avoids the redeclaration of C types due to the multiple descriptions of equiv-
alent Array Implementation Data Types in the ECU extract.
ArrA: ImplementationDataType ArrAElement:
+swDataDefProps
category = FIXED_LENGTH
nativeDeclaration = unsigned char
FirstDim: SecondDim:
ArrArrD: ImplementationDataTypeElement +subElement ImplementationDataTypeElement
ImplementationDataType +subElement
category = ARRAY category = TYPE_REFERENCE
arraySize = 15 arraySize = 10
category = ARRAY
+swDataDefProps
uint8:
:SwDataDefProps +implementationDataType ImplementationDataType
category = VALUE
ANSI C does not allow a type declaration to have zero elements and therefore we
require that the “number of elements” to be a positive integer.
[SWS_Rte_CONSTR_09042] Array Implementation Data Types needs at
least one element dThe arraySize defining number of elements in one dimension of
an Array Implementation Data Type shall be an integer that is ≥ 1 for each dimension.c
()
where <elements> is the record element specification and <name> is the Implemen-
tation Data Type symbol of the Structure Implementation Data Type.
For each record element defined by one ImplementationDataTypeElement one record
element specification <elements> is defined. The record element specifications are
ordered according the order of the related ImplementationDataTypeElements in
the input configuration. Sequent record elements are separated with a semicolon.c
(SRS_Rte_00055, SRS_Rte_00164)
[SWS_Rte_06812] dFor each Structure Implementation Data Type, the RTE
Types Header File shall include the corresponding type declaration as:
where <elements> is the union element specification and <name> is the Implemen-
tation Data Type symbol of the Union Implementation Data Type.
For each union element defined by one ImplementationDataTypeElement one
union element specification <elements> is defined. The union element specifications
are ordered according the order of the related ImplementationDataTypeElements
in the input configuration. Sequent union elements are separated with a semicolon.c
(SRS_Rte_00055, SRS_Rte_00164)
[SWS_Rte_06813] dFor each Union Implementation Data Type, the RTE
Types Header File shall include the corresponding type declaration as:
where <name> is the Implementation Data Type symbol of the Union Im-
plementation Data Type.c(SRS_Rte_00055, SRS_Rte_00164)
[SWS_Rte_07115] dRecord and Union element specifications <elements> shall be
generated as
<nativeDeclaration> <name>;
if the ImplementationDataTypeElement has the category attribute set to
VALUE and if it refers to an BaseType. The meaning of the fields is identical to
[SWS_Rte_07104]c(SRS_Rte_00055, SRS_Rte_00164)
[SWS_Rte_07116] dRecord and Union element specifications <elements> shall be
generated as
<type> <name>;
if the ImplementationDataTypeElement has the category attribute set to
TYPE_REFERENCE and if it refers to an ImplementationDataType. <type>
is the Implementation Data Type symbol of the referred Implementation-
DataType and <name> is the shortName of the ImplementationDataTypeEle-
ment.c(SRS_Rte_00055, SRS_Rte_00164)
[SWS_Rte_07117] dRecord and Union element specifications <elements> shall be
generated as
<nativeDeclaration> <name>[<size 1>]{[<size 2>]...[<size n>]};
if the ImplementationDataTypeElement has the category attribute set to ARRAY
and which leaf ImplementationDataTypeElement has the category attribute set
+swDataDefProps
MyUint8:
+implementationDataType
ImplementationDataType
:SwDataDefProps
category = VALUE
+subElement N: ImplementationDataTypeElement
category = VALUE
+swDataDefProps
+baseType MyUint16Base: SwBaseType
:SwDataDefProps
category = FIXED_LENGTH
nativeDeclaration = unsigned short
O: ImplementationDataTypeElement
+subElement
category = TYPE_REFERENCE
+swDataDefProps
uint8:
+implementationDataType
:SwDataDefProps ImplementationDataType
category = VALUE
+swDataDefProps
MyUint8:
:SwDataDefProps +implementationDataType ImplementationDataType
category = VALUE
N:
+subElement ImplementationDataTypeElement
category = VALUE
+swDataDefProps
MyUint16Base: SwBaseType
+baseType
:SwDataDefProps category = FIXED_LENGTH
nativeDeclaration = unsigned short
+baseType
O:
+subElement ImplementationDataTypeElement
category = TYPE_REFERENCE
uint8:
+swDataDefProps ImplementationDataType
+implementationDataType
:SwDataDefProps category = VALUE
+implementationDataType
P: PA:
ImplementationDataTypeElement +subElement ImplementationDataTypeElement
category = STRUCTURE category = TYPE_REFERENCE
+swDataDefProps
+subElement :SwDataDefProps
PB:
+subElement ImplementationDataTypeElement
category = VALUE
+swDataDefProps
:SwDataDefProps
category = VALUE
category = STRUCTURE
+subElement +swDataDefProps
«atpVariation»
:SwDataDefProps
+subElement SecondByte:
ImplementationDataTypeElement
category = VALUE
+swDataDefProps
«atpVariation»
:SwDataDefProps
+baseType +baseType
MyUint8Base: SwBaseType
category = FIXED_LENGTH
nativeDeclaration = unsigned char
+implementationDataType
+swPointerTargetProps
[SWS_Rte_06539] d
The RTE Generator shall wrap each code related to ImplementationDataType-
Elements which are subject to variability in Structure Implementation Data
Type and Union Implementation Data Type (see 4.30 if the variability shall be
implemented.
1 #if (<condition>)
2
3 <elements>
4
5 #endif
where <condition> are the condition value macro(s) of the VariationPoints ac-
cording table 4.30 and
<elements> is the code according invariant ImplementationDataType-
Elements (see also [SWS_Rte_07115], [SWS_Rte_07116], [SWS_Rte_07117],
[SWS_Rte_07118], [SWS_Rte_07119], [SWS_Rte_07145], [SWS_Rte_07146])
c(SRS_Rte_00201)
[SWS_Rte_06540] dThe RTE Generator shall implement the <size x> of an Array
Implementation Data Type for each arraySize which is subject to variability
with the corresponding attribute value macro according table 4.30 if the variability shall
be implemented.c(SRS_Rte_00201)
Example 5.19
The Primitive Implementation Data Type in example 5.2 results in the type
definition:
1 /* RTE Types Header File */
2 typedef unsigned char MyUint8;
[SWS_Rte_06718] dIf the RTE Types Header File contains a generated C data type
whose Implementation Data Type symbol differs from the Implementation-
DataType shortName, the Application Type Header Files of each software compo-
nent using the type shall contain a definition which redefines the Implementation
Data Type symbol to the shortName of the ImplementationDataType.c(SRS_-
Rte_00167)
+symbolProps :SymbolProps
symbol = MyUint8OfVendorNil
Example 5.20
The Application Types Header File an using component contain the remapping to the
original name:
1 /* Application Types Header File */
2 define MyUint8 MyUint8OfVendorNil;
5.3.4.11 C/C++
The RTE Data Handle Types Header File contains the Data Handle type declarations
necessary for the component data structures (see Section 5.4.2). The RTE Data
Handle Types Header File code is not allowed to create objects in memory.
[SWS_Rte_07920] dThe RTE generator shall create the RTE Data Handle Types
Header File including the type declarations of
data element without status ([SWS_Rte_01363], [SWS_Rte_01364],
[SWS_Rte_02607]),
data element with status ([SWS_Rte_01365], [SWS_Rte_01366],
[SWS_Rte_03734], [SWS_Rte_02666], [SWS_Rte_02589], [SWS_Rte_02590]),
and data element with extended status ([SWS_Rte_06817],
[SWS_Rte_06818], [SWS_Rte_06819], [SWS_Rte_06820], [SWS_Rte_06821],
[SWS_Rte_06822], [SWS_Rte_06823], [SWS_Rte_06824], [SWS_Rte_06825],
[SWS_Rte_06826]).c()
[SWS_Rte_07921] dThe RTE Data Handle Types Header File shall not contain code
that creates object in memory.c(SRS_BSW_00308)
The RTE Data Handle Types Header File should be an output of the “RTE Contract”
and “RTE Generation” phases.
[SWS_Rte_07922] dThe name of the RTE Data Handle Types Header File shall be
Rte_DataHandleType.h.c(SRS_BSW_00300)
The RTE Data Handle Types Header File contains the type declarations of data el-
ement without status and data element with status (see Section 5.4.2).
[SWS_Rte_07923] dThe RTE Data Handle Types Header File shall include the follow-
ing mechanism to prevent multiple inclusions.
1 #ifndef RTE_DATA_HANDLE_TYPE_H
2 #define RTE_DATA_HANDLE_TYPE_H
3
4 /* File contents */
5
6 #endif /* RTE_DATA_HANDLE_TYPE_H */
c(SRS_Rte_00126)
The Application Types Header File provides a component local name space for enu-
meration literals and range values. The Application Types Header File is not allowed to
create objects in memory.
The Application Types Header File file should be identical output for “RTE Contract”
and “RTE Generation” phases.
[SWS_Rte_07120] dThe RTE generator shall create an Application Types Header File
for each software-component type (excluding ParameterSwComponentTypes and
NvBlockSwComponentTypes) defined in the input.c(SRS_Rte_00024, SRS_Rte_-
00140, SRS_BSW_00447)
[SWS_Rte_07121] dThe Application Types Header File shall not contain code that
creates objects in memory.c(SRS_BSW_00308)
[SWS_Rte_07122] dThe name of the Application Types Header File shall be formed
by prefixing the AUTOSAR software-component type name with Rte_[Byps_] and
appending the result with _Type.h. [Byps_] is an optionnal infix used when compo-
nent wrapper method for bypass support is enabled for the related software component
type (See chapter 4.9.2).c(SRS_BSW_00300, SRS_Rte_00167)
Example 5.21
should result in the Application Types Header File Rte_Source_Type.h being gen-
erated when the component wrapper method for bypass support is disabled.
5.3.6.2 Scope
[SWS_Rte_07124] dThe Application Types Header File shall be valid for both C and
C++ source.c(SRS_Rte_00126, SRS_Rte_00138)
Requirement [SWS_Rte_07124] is met by ensuring that all definitions within the Appli-
cation Types Header File are defined using C linkage if a C++ compiler is used.
[SWS_Rte_07125] dAll definitions within in the Application Types Header File shall be
preceded by the following fragment;
1 #ifdef __cplusplus
2 extern "C" {
3 #endif /* __cplusplus */
c(SRS_Rte_00126, SRS_Rte_00138)
[SWS_Rte_07126] dAll definitions within the application types header file shall be suf-
fixed by the following fragment;
1 #ifdef __cplusplus
2 } /* extern "C" */
3 #endif /* __cplusplus */
c(SRS_Rte_00126, SRS_Rte_00138)
[SWS_Rte_07678] dThe Application Types Header File shall be protected against mul-
tiple inclusions:
1 #ifndef RTE_<SWC>_TYPE_H
2 #define RTE_<SWC>_TYPE_H
3 ...
4 /*
5 * Contents of file
6 */
7 ...
8 #endif /* !RTE_<SWC>_TYPE_H */
In contrast to the Application Header File the Application Types Header File supports
that multiple Application Types Header File’s are included in the same module. This is
necessary if for instance a BSW module uses several AUTOSAR Services.
3
No additional capitalization is applied to the names.
[SWS_Rte_07127] dThe Application Types Header File shall include the RTE Types
Header File.c(SRS_Rte_00087)
The name of the RTE Types Header File is defined in Section 5.3.4.
The Application Types Header File shall contain identifiers for the ModeDeclarations
and type definitions for ModeDeclarationGroup’s as defined in Chapter 5.5.3
The Application Types Header File shall contain the enumeration constants as defined
in Chapter 5.5.4
The Application Types Header File shall contain definitions of Range constants as
defined in Chapter 5.5.5
The Application Types Header File may contain definitions to redefine the Imple-
mentation Data Type symbol to the shortName of the Implementation-
DataType in order to provide the expected type name to the software component
implementation. See section 5.3.4.10.
AUTOSAR supports that elements of Structure Implementation Data Types are defined
as optional. In the meta model, the attribute isOptional of those Implementa-
tionDataTypeElements is set to True. These members may or may not exist at
runtime.
Structure Implementation Data Types with optional members have to fulfill special
structural requirements (see [2] for details). The availability information is stored in
a special ImplementationDataTypeElement with the shortName availabili-
tyBitfield which is a fixed-size array of uint8.
The software component needs support to evaluate and set the availability information
for optional members.
Where
• <i> is the shortName of the ImplementationDataType
• <e> is the shortName of the ImplementationDataTypeElement
• <pos> is the position of the optional ImplementationDataTypeElement
among all optional ImplementationDataTypeElements within the Imple-
mentationDataType starting with pos = 0.
c(SRS_Rte_00261)
[SWS_Rte_03618] dA macro to set the availability information shall be generated
for each ImplementationDataTypeElement of an ImplementationDataType
where the attribute isOptional is set true. The macro shall be generated in the
Application Types Header File of each software component using this type as follows:
1 #define Rte_SetAvailable_<i>_<e>(data, available) \
2 ( \
3 (data)->availabilityBitfield[<pos/8>] = ((available) ? \
4 (data)->availabilityBitfield[<pos/8>] | (1<<(<pos mod 8>)) : \
5 (data)->availabilityBitfield[<pos/8>] & ~(1<<(<pos mod 8>)) ) \
6 )
Where
• <i> is the shortName of the ImplementationDataType
• <e> is the shortName of the ImplementationDataTypeElement
• <pos> is the position of the optional ImplementationDataTypeElement
among all optional ImplementationDataTypeElements within the Imple-
mentationDataType starting with pos = 0.
c(SRS_Rte_00261)
Note: Non-optional ImplementationDataTypeElements do not count since they
do not need a bit in the availabilityBitfield. So the bit position within the
availabilityBitfield is determined by the order of the optional Implementa-
tionDataTypeElements.
Examples:
• 1st optional ImplementationDataTypeElement (pos=0): (availabilityBitfield[0] &
0x01) != 0
The VFB Tracing Header File defines the configured VFB Trace events.
[SWS_Rte_01319] dThe VFB Tracing Header File shall be created by the correspond-
ing VFB Trace client for RTE Generation Phase or Basic Software Scheduler Genera-
tion Phase only.c(SRS_Rte_00045)
The VFB Tracing Header Files are included by the generated RTE and may also be
included by the corresponding VFB Trace client. The header file includes the decla-
rations (in case of function implementation) or definitions (in case of inline or macro
implementation) of the configured functions to ensure consistency between the invo-
cation by the RTE and the definition by the user.
5.3.7.1 C/C++
[SWS_Rte_08901] dThe VFB Tracing Header File shall be self-contained. I.e. it shall
include all header files necessary to compile the defined or declared data, code and
types.c(SRS_Rte_00003, SRS_Rte_00004, SRS_Rte_00008, SRS_Rte_00045)
Note that the requirement above might especially lead to inclusion of Os.h, the RTE
Types Header File or the RTE Configuration Header File.
[SWS_Rte_01236] dFor each trace event hook function defined in Section 5.11.5, the
VFB Trace client shall define the implementation (in case of inline function or macro) or
declare the trace event hook function (in case of C function) in the VFB Tracing Header
Example 5.22
and
1 Rte_tcd_WriteHook_c_p1_a_Return
The trace client tcd would now have to provide declarations or definitions for those
hook functions. It might emit in Rte_Hook_tcd.h:
1 extern void Rte_tcd_WriteHook_c_p1_a_Start(SwcCsType data); // tcd
chose a function implementation of this hook
2 #define Rte_tcd_WriteHook_c_p1_a_Return(data) ((void)(0)) // tcd chose
not being interested in this hook
The RTE Configuration Header File contains user definitions that affect the behavior of
the generated RTE.
The RTE Configuration Header File is generated by the RTE generator.
5.3.8.1 C/C++
[SWS_Rte_07641] dThe RTE Configuration Header File shall include the file
Std_Types.h.c(SRS_Rte_00149, SRS_Rte_00150, SRS_BSW_00353)
The Condition Value Macros are generated in the PreBuild Data Set Contract Phase
and PreBuild Data Set Generation Phase. To do this a particular variant out of the
pre-build variability of the input configuration has to be chosen by the means
described in by [SWS_Rte_06500].
[SWS_Rte_06514] dIf evaluated BooleanValueVariationPoints or Condition-
ByFormulas are resulting to true the <value> for Condition Value Macros shall be
coded as TRUE and if these are resulting to false the value shall be coded as FALSE.c
(SRS_Rte_00201, SRS_Rte_00203)
[SWS_Rte_06513] dFor each VariationPointProxy which bindingTime = Pre-
CompileTime the RTE Configuration Header File shall contain a definition of a Con-
dition Value Macro in the RTE PreBuild Data Set Contract Phase and RTE PreBuild
Data Set Generation Phase
#define Rte_SysCon_<cts>_<name> <value><suffix>
Where
<bsnp> is the BSW Scheduler Name Prefix according [SWS_Rte_07593] and
[SWS_Rte_07594],
<vi> is the vendorId of the BSW module,
<ai> is the vendorApiInfix of the BSW module,
<ki> is the kind infix according table 4.34,
<name> is the short name of the element which is subject to variability in table 4.34
defining the Basic Software Scheduler API name infix and
<value> is the evaluated value of the AttributeValueVariationPoint or Con-
ditionByFormula.
The sub part in squared brackets [_<vi>_<ai>] is omitted if no vendorApiInfix
is defined for the Basic Software Module. See [SWS_Rte_07528].c(SRS_Rte_00229,
SRS_BSW_00347)
This requirement makes the SwSystemconst value available to resolve the
pre-build variability in the BSW module via the Preprocessor. This might be
used to
• read the actual value of the value assigned to a SwSystemconst
• read the setting of an attribute (e.g. array size) dependent from a SwSystem-
const
• check the existence of a conditional existent object, e.g. a code fragment imple-
menting a particular functionality
[SWS_Rte_06518] dFor each RTE API which is subject to variability and following the
form component internal in table 4.23 the RTE Configuration Header File shall contain
one definition of a Condition Value
#define Rte_VPCon_<cts>_<ki>_<name>_<sl> <value>
where here
<bsnp> is the BSW Scheduler Name Prefix according [SWS_Rte_07593] and
[SWS_Rte_07594],
<vi> is the vendorId of the BSW module,
<ai> is the vendorApiInfix of the BSW module,
<ki> is the kind infix according table 4.34,
<name> is the short name of the element which is subject to variability in table 4.34
defining the Basic Software Scheduler API name infix and
<sl> is the shortLabel of the elements’ VariationPoint defining the API name
infix.
<value> is the evaluated value of the ConditionByFormula of the Variation-
Point defining the variant existence of the Basic Software Scheduler API in table
4.34.
The sub part in squared brackets [_<vi>_<ai>] is omitted if no vendorApiInfix
is defined for the Basic Software Module. See [SWS_Rte_07528].c(SRS_Rte_00229,
SRS_BSW_00347)
[SWS_Rte_06536] dFor each Basic Software Scheduler API which is subject to vari-
ability and which variability shall be implemented and which is following the form mod-
ule external and entity internal in table 4.34 the RTE Configuration Header File shall
contain one definition of a Condition Value
#define SchM_VPCon_<bsnp>[_<vi>_<ai>]_<ki>_
<entity>[_<esl>]_<name>[_<sl>] <value>
where here
<bsnp> is the BSW Scheduler Name Prefix according [SWS_Rte_07593] and
[SWS_Rte_07594],
<vi> is the vendorId of the BSW module,
<ai> is the vendorApiInfix of the BSW module,
<ki> is the kind infix according table 4.34,
entity is the shortName of the BswModuleEntity
<esl> is the shortLabel of the BswModuleEntity’s VariationPoint containing
the subject to variability,
<name> is the shortName of the element/referenced element which is subject to vari-
ability in table 4.34 defining the Basic Software Scheduler API name infix and
<sl> is the shortLabel of the elements’s VariationPoint defining the API name
infix.
<value> is the evaluated value of the ConditionByFormula of the Variation-
Point defining the variant existence of the Basic Software Scheduler API in table
4.34.
The sub part in squared brackets [_<vi>_<ai>] is omitted if no vendorApiInfix
is defined for the Basic Software Module. See [SWS_Rte_07528].
If there is no VariationPoint at the BswModuleEntity referring to the subject to
variability in table 4.34 the <esl> with leading underscore is omitted ([_<esl>]).
If there is no VariationPoint at the elements defining the Basic Software Scheduler
API name infix 4.34 the <sl> with leading underscore is omitted ([_<sl>]).c(SRS_-
Rte_00229, SRS_BSW_00347)
[SWS_Rte_06532] dFor each BswSchedulableEntity which is subject to variability
and which variability shall be implemented the RTE Configuration Header File shall
contain one definition of a Condition Value
#define SchM_VPCon_<bsnp>[_<vi>_<ai>]_<entry>_<esl> <value>
where here
<bsnp> is the BSW Scheduler Name Prefix according [SWS_Rte_07593] and
[SWS_Rte_07594],
Figure 5.1 defines the relationship between generated and standardized header files.
It is not necessary to standardize the relationship between the C module, Rte.c,
and the header files since when the RTE is generated the application header files are
created anew along with the RTE. This means that details of which header files are
included by Rte.c can be left as an implementation detail.
[SWS_Rte_01257] dIn compatibility mode, the Generated RTE module shall include
Os.h.c(SRS_Rte_00145)
[SWS_Rte_03794] dIn compatibility mode, the generated RTE module shall include
Com.h.c(SRS_Rte_00145)
[SWS_Rte_01279] dIn compatibility mode, the Generated RTE module shall include
Rte.h.c(SRS_Rte_00145)
[SWS_Rte_01326] dIn compatibility mode, the Generated RTE module shall include
the VFB Tracing Header Files.c(SRS_Rte_00045, SRS_Rte_00145)
[SWS_Rte_03788] dExcept for the declaration of entry points for components (see
[SWS_Rte_07194]), the RTE shall map its memory objects in files in the RTE’s own
namespace using the AUTOSAR memory mapping mechanism (see [28]).c(SRS_-
Rte_00148)
[SWS_Rte_07692] dThe Generated RTE module shall perform Inter Module Checks
to avoid integration of incompatible files. The imported included files shall be checked
by preprocessing directives.
In the example in Figure 5.12, the generated RTE C module requires access to the data
structures created for each AUTOSAR software-component and therefore includes
each application header file4 . In the example, the generated RTE also includes the
RTE header file and the lifecycle header file in order to obtain access to RTE and
lifecycle related definitions.
Note: Inclusion of Application Header Files of different software components into the
RTE C module needs support in the Application Header Files in order to avoid that
some local definitions of software components are producing name clashes. If the
RTE C module does not include any Application Header File, some type definitions
(e.g. component data structure) might have to be generated twice.
4
The requirement that a software module include at most one application header file applies only to
modules that actually implement a software-component and therefore does not apply to the generated
RTE.
5.3.9.2 C/C++
By its very nature the contents of the generated RTE is largely vendor specific. It is
therefore only possible to define those common aspects that are visible to the “outside
world” such as the names of generated APIs and the definition of component data
structures that apply any operating mode.
The Component Data Structure (Section 5.4.2) is a per-component data type used to
define instance specific information required by the generated RTE.
[SWS_Rte_03711] dThe generated RTE shall contain an instance of the relevant Com-
ponent Data Structure for each software-component instance on the ECU for which the
RTE is generated.c(SRS_Rte_00011)
[SWS_Rte_03712] dThe name of a Component Data Structure instantiated by the RTE
generator shall be Rte_Instance_<name> where <name> is an automatically gen-
erated name, created in some manner such that all instance data structure names
are unique. The name of a Component Data Structure instantiated by the RTE gen-
erator shall be Rte_Instance_<name> where <name> is an automatically gener-
ated name, created in some manner such that all instance data structure names are
unique.c(SRS_BSW_00307)
The software component instance name referred to in [SWS_Rte_03712] is never
made visible to the users of the generated RTE. There is therefore no need to specify
the precise form that the unique name takes. The Rte_Instance_ prefix is mandated
in order to ensure that no name clashes occur and also to ensure that the structures
are readily identifiable in map files, debuggers, etc.
The Rte_Instance_ prefix does NOT mean that the Component Data Structure in-
stance is identical to the instance handle type Rte_Instance described in section
5.5.2; the prefix is mandated in order to ensure that no name clashes occur and also
to ensure that the structures are readily identifiable in map files, debuggers, etc.
[SWS_Rte_01266] dThe RTE module shall define the generated functions that will be
invoked when an AUTOSAR software-component makes an RTE API call.c(SRS_Rte_-
00051)
The semantics of the generated functions are not defined (since these will obviously
vary depending on the RTE API call that it is implementing) nor are the implementation
details (which are vendor specific). However, the names of the generated functions
defined in Section 5.2.6.1.
The signature of a generated function is the same as the signature of the relevant RTE
API call (see Section 5.6) with the exception that the instance handle can be omitted
since the generated function is applicable to a specific software-component instance.
5.3.9.3.3 Callbacks
In addition to the generated functions for the RTE API, the RTE module includes call-
backs invoked by COM when signal events (receptions, transmission acknowledge-
ment, etc.) occur.
[SWS_Rte_01264] dThe RTE module shall define COM callbacks for relevant signals.c
(SRS_Rte_00019)
The required callbacks are defined in Section 5.9.
[SWS_Rte_03795] dThe RTE generator shall generate a separate header file contain-
ing the prototypes of callback functions.c(SRS_Rte_00019)
[SWS_Rte_03796] dThe name of the header file containing the callback prototypes
shall be Rte_Cbk.h in a C/C++ environment.c(SRS_Rte_00019)
[SWS_Rte_03796] refers to the callbacks defined in section 5.9.
The RTE module define task bodies for tasks created by the RTE generator only in
compatibility mode.
[SWS_Rte_01277] dIn compatibility mode [SWS_Rte_01257], the RTE module shall
define all task bodies created by the RTE generator.c(SRS_Rte_00145)
Note that in vendor mode it is assumed that greater knowledge of the OS is available
and therefore the above requirement does not apply so that specific optimizations,
such as creating each task in a separate module, can be applied.
[SWS_Rte_01197] dThe RTE module shall define the RTE lifecycle API.c(SRS_Rte_-
00051)
The RTE lifecycle API is defined in Section 5.8.
5.3.9.4 Reentrancy
All code invoked by generated RTE code that can be subject to concurrent execution
must be reentrant. This requirement for reentrancy can be overridden if the gener-
ated code is not subject to concurrent execution, for example, if protected by a data
consistency mechanism to ensure that access to critical regions is call serialized.
[SWS_Rte_06620] dThe RTE generator shall generate in the Rte_PBcfg.h file the
SchM_ConfigType type declaration of the predefined post build variants data struc-
ture. This header file must be used by other RTE modules to resolve their runtime
variabilities.c(SRS_Rte_00201)
[SWS_Rte_06638] dThe RTE generator must generate a Rte_PBcfg.c file containing
the declarations and initializations of one or more RTE post build variants. Only one of
these variants can be active at runtime.c(SRS_Rte_00201, SRS_BSW_00346)
Within an RTE with post build variants, one active RtePostBuildVariantConfig-
uration will exist. It is a pointer to this structure that shall be passed to SchM_Init.
Also note that the container PredefinedVariant is only a Meta Model construct to
allow the designer to create a validated collection of values assigned to a criterion. It
is up to the implementer of the RTE generator to optimize variant configurations either
for size and/or performance by using different levels of indirection to the PostBuild-
VariantCriterionValues. For the least amount of indirection for example one can
have the criterion values at the level of the Sch_ConfigType. If you use post build
loadable then you may want to reduce memory storage by reusing variant sets if they
remain unchanged across two or more predefined variants.
The following subsections provide examples for the SchM_ConfigType declaration
and instantiation only for demonstration purposes. No requirement what so ever is
implied.
An example of a flat data structure to represent the criterion values defined in the
Rte_PBcfg.h file containing theSchM_ConfigType type which can contain the list of
unique PostBuildVariantCriterion members. This approach immediately en-
forces that only one single criterion assignment can exist. The member names can,
for example, follow the template defined below where <sn> is the PostBuildVari-
antCriterion shortName.
1 struct SchM_ConfigType {
2 /* The PostBuildVariantCriterion shortname */
3 int VarCri_<sn>;
4 .
5 .
6 .
7 };
An example showing an additional level of indirection and as such allows for reuse of
variant sets to optimize memory storage acorss for example several predefined vari-
ants is shown below. The RTE generator in this case can reuse some PostBuild-
VariantCriterionValueSets to reduce the memory resource consumption of an
ECU. The RTE generator can declare in the Rte_PBcfg.h file a structure type for each
distinct unique collection of PostBuildVariantCriterionValueSets containing
the PostBuildVariantCriterions as members. This implies that if two Prede-
finedVariants are defined each referring to a named PostBuildVariantCrite-
rionValueSet and the list of PostBuildVariantCriterions in each of these
PostBuildVariantCriterionValueSets is identical that only one type is defined
for these two named PostBuildVariantCriterionValueSets. The name of the
type can, for example, follow the pattern below where the <id> is a unique identifier
for that type (e.g. a counter).
1 struct Rte_VarSet_<id>_t {
2 /* The PostBuildVariantCriterion shortname */
3 int VarCri_<sn>;
4 .
5 .
6 .
7 };
Now the SchM_ConfigType type can be declared with pointers to these variant sets.
The member names of this struct can, for example, follow the template below where
<id> is a unique identifier.
1 struct SchM_ConfigType {
2 /* The PostBuildVariantCriterion shortname */
3 Rte_VarSet_<id>_t* VarSet_<id>_Ptr;
4 .
5 .
6 .
7 };
In correlation with example 1 of the header file the RTE generator can declare and op-
tionally initialize a default variant configuration named Rte_VarCfg in the Rte_PBcfg.c
file of the SchM_ConfigType type.
For example (the initializers are the criterion values):
1 const struct SchM_ConfigType Rte_VarCfg = {1,2,3,4,5};
And likewise for the example 2 header file the RTE generator can declare and initialize
in the Rte_PBcfg.c file all possible PostBuildVariantCriterionValueSets and
the RtePostBuildVariantConfiguration using references to these variant sets.
For example:
Another type of optimization strategy (besides flattening) that can be applied is double
buffering for frequently used variant criterion values. The additional buffer can then be
used in the conditions to optimize the performance of the RTE, e.g.
1 BufferedVarCri_1 = Rte_VarCfgPtr->VarSet_1->VarCri_1;
The instance handle is passed to each runnable entity in a component when it is ac-
tivated by the RTE as the first parameter of the function implementing the runnable
entity [SWS_Rte_01016]. The instance handle is then passed back by the runnable
entity to the RTE, as the first parameter of each direct RTE API call, so that the RTE
can identify the correct component instance making the call. This scheme permits
multiple instances of a component on the same ECU to share code.
The instance handle indirection permits the name of the RTE API call that is used within
the component to be unique within the scope of a component as well as independent
of the component’s instance name. It thus enables object-code AUTOSAR software-
components to be compiled before the final “RTE Generation” phase when the instance
name is fixed.
[SWS_Rte_01013] dFor the RTE C/C++ API, any call that can operate on different
instances of a component that supports multiple instantiation supportsMultiple-
Instantiation shall have an instance handle as the first formal parameter.c(SRS_-
Rte_00011)
[SWS_Rte_03806] dIf a component does not support multiple instantiation, the in-
stance handle parameter shall be omitted in the RTE C/C++ API and in the signature
of the RTE Hook functions.c(SRS_Rte_00011)
If the component does not support multiple instantiation, the instance handle is not
passed to the API calls and runnable entities as parameters. In order to support access
to the component data structure the name of the CDS is specified.
[SWS_Rte_03793] dIf a software component does not support multiple instantiation,
the name of the component data instance shall be Rte_Inst_<cts>, where <cts>
is the component type symbol of the AtomicSwComponentType.c(SRS_Rte_-
00011)
The data type of the instance handle is defined in Section 5.5.2.
Example 5.23
1 // --------------------------------------
2 // Application header file
3 // --------------------------------------
4
5 // ComponentDataStructure declaration
6 // [SWS_Rte_02310],[SWS_Rte_03733]
7 struct Rte_CDS_c
8 {
9 Rte_DE_uint8* re1_p_a;
10 Rte_DES_uint8* re2_p_a;
11 ...
12 };
13
14 // [SWS_Rte_02311]
15 typedef struct Rte_CDS_c Rte_CDS_c;
16
17 // Instance handle type
18 // [SWS_Rte_01007], [SWS_Rte_01148],[SWS_Rte_01150],[SWS_Rte_06810]
Different component instances share many common features - not least of which is
support for shared code. However, each instance is required to invoke different RTE
API functions and therefore the instance handle is used to access the component data
structure that defines all instance specific data.
It is necessary to define the component data structure to ensure compatibility between
the two RTE phases when operating in compatibility mode – for example, a “clever”
compiler and linker may encode type information into a pointer type to ensure type-
safety. In addition, the structure definition cannot be empty since this is an error in
ANSI C.
[SWS_Rte_02310] dThe Application Header File shall include a structure declaration
for the component data structure as follows:
The data handles section is required to support the Rte_IRead and Rte_IWrite
calls (see Section 5.2.4).
[SWS_Rte_03733] dData Handles shall be named <re>_<p>_<o> where <re> is the
runnable entity name that reads (or writes) the data item, <p> the port name, <o> the
data element.c(SRS_BSW_00305, SRS_Rte_00051)
A RunnableEntity can read and write to the same port/data element in case of a
PRPortPrototypes where as PPortPrototypes and RPortPrototypes are in-
herently uni-directional (a provide port can only be written, a require port can only be
read). Please note that for read and write access of a runnable to data in a PRPort-
Prototype only one data handle exist.
[SWS_Rte_06827] dThe Data Handle shall be a pointer to a data element with
extended status if and only if the runnable has write access via a PRPortPro-
totype and acknowledgement is enabled for this data element.c(SRS_Rte_00051,
SRS_Rte_00185)
[SWS_Rte_02608] dThe Data Handle shall be a pointer to a data element with
status if and only if either
• the runnable has read access (via a RPortPrototype or PRPortPrototype)
and either
– data element outdated notification or
– data element invalidation or
– data element never received status or
– data element range check or
– handleDataStatus
is activated for this data element, or
• the runnable has write access via a PPortPrototype and acknowledgement is
enabled for this data element.
c(SRS_Rte_00051, SRS_Rte_00185)
[SWS_Rte_02588] dOtherwise, the data type for a Data Handle shall be a pointer to a
data element without status.c(SRS_Rte_00051)
See below for the definitions of these terms.
[SWS_Rte_06529] dThe RTE Generator shall wrap each entry of Data Handles Sec-
tion in the component data structure of a variant existent Rte_IRead or Rte_IWrite
API if the variability shall be implemented.
1 #if (<condition>)
2
3 <Data Handles Section Entry>
4
5 #endif
where condition is the condition value macro of the VariationPoint relevant for
the variant existence of the Rte_IRead or Rte_IWrite API (see [SWS_Rte_06515]),
Data Handles Section Entry is the code according an invariant Data Handles
Section Entry (see also [SWS_Rte_03733], [SWS_Rte_02608], [SWS_Rte_02588])c
(SRS_Rte_00201)
[SWS_Rte_08777] dIn compatibility mode, if the software component does not support
multiple instantiation the data handles section shall be empty.c(SRS_Rte_00051)
[SWS_Rte_01363] dThe data type for a “data element without status” shall be named
Rte_DE_<dt> where <dt> is the data element’s ImplementationDataType
name.c(SRS_Rte_00051)
[SWS_Rte_01364] dA data element without status shall be a structure con-
taining a single member named value.c(SRS_Rte_00051)
[SWS_Rte_02607] dThe value member of a data element without status
shall have the same data type as the corresponding data element.c(SRS_Rte_00051,
SRS_Rte_00147, SRS_Rte_00078)
Note that requirements [SWS_Rte_01364] and [SWS_Rte_02607] together imply that
creating a variable of data type Rte_DE_<dt> allocates enough memory to store the
data copy.
[SWS_Rte_01365] dThe data type for a “data element with status” shall be named
Rte_DES_<dt> where <dt> is the data element’s ImplementationDataType
name.c(SRS_Rte_00051)
[SWS_Rte_01366] dA data element with status shall be a structure containing
exactly two members.c(SRS_Rte_00051)
[SWS_Rte_03734] dThe first member of each data element with status shall
be named ’value’c(SRS_Rte_00051)
[SWS_Rte_02666] dThe value member of a data element with status shall
have the type of the corresponding data element.c(SRS_Rte_00051, SRS_Rte_00147,
SRS_Rte_00078, SRS_Rte_00185)
[SWS_Rte_02589] dThe second member of each data element with status
shall be named ’status’.c(SRS_Rte_00051, SRS_Rte_00147, SRS_Rte_00078,
SRS_Rte_00185)
[SWS_Rte_02590] dThe status member of a data element with status shall
be of the Std_ReturnType type.c(SRS_Rte_00147, SRS_Rte_00078, SRS_Rte_-
00185)
[SWS_Rte_02609] dIn case of read access, the status member of a data element
with status shall contain the error status corresponding to the value member.c
(SRS_Rte_00147, SRS_Rte_00078)
[SWS_Rte_03836] dIn case of write access, the status member of a data element
with status shall contain the transmission status corresponding to the value mem-
ber.c(SRS_Rte_00185)
[SWS_Rte_06817] dThe data type for a data element with extended status
(applies only for PRPortPrototypes) shall be named Rte_DEX_<dt> where <dt>
is the data element’s ImplementationDataType name.c(SRS_Rte_00051)
[SWS_Rte_06818] dA data element with extended status shall be a struc-
ture containing exactly three members.c(SRS_Rte_00051)
[SWS_Rte_06819] dThe first member of each data element with extended
status shall be named ’value’.c(SRS_Rte_00051)
[SWS_Rte_06820] dThe value member of a data element with extended sta-
tus shall have the type of the corresponding data element.c(SRS_Rte_00051, SRS_-
Rte_00147, SRS_Rte_00078, SRS_Rte_00185)
[SWS_Rte_06821] dThe second member of each data element with extended
status shall be named ’status’.c(SRS_Rte_00051, SRS_Rte_00147, SRS_Rte_-
00078, SRS_Rte_00185)
[SWS_Rte_06822] dThe status member of a data element with extended
status shall be of the Std_ReturnType type.c(SRS_Rte_00147, SRS_Rte_00078,
SRS_Rte_00185)
[SWS_Rte_06823] dThe third member of each data element with extended
status shall be named ’feedback’.c(SRS_Rte_00051, SRS_Rte_00147, SRS_Rte_-
00078, SRS_Rte_00185)
[SWS_Rte_06824] dThe feedback member of a data element with extended
status shall be of the Std_ReturnType type.c(SRS_Rte_00147, SRS_Rte_00078,
SRS_Rte_00185)
[SWS_Rte_06825] dIn case of read access, the status member of a data element
with extended status shall contain the error status corresponding to the value
member.c(SRS_Rte_00147, SRS_Rte_00078)
[SWS_Rte_06826] dIn case of write access, the feedback member of a data ele-
ment with extended status shall contain the transmission status corresponding
to the value member.c(SRS_Rte_00185)
5.4.2.1.4 Usage
A definition for every required data element with status, every data element
without status, and every data element with extended status is emitted
in the RTE Data Handle Types Header File (see Section 5.3.5).
Example 5.24
The values assigned to data handles within instances of the component data structure
created within the generated RTE depend on the mapping of tasks and runnables –
See Section 5.2.4.
The Per-instance Memory Section Handles section enables to access instance specific
memory (sections).
[SWS_Rte_02301] dThe CDS shall contain a handle for each Per-instance Memory.
This handle member shall be named Pim_<name> where <name> is the per-instance
memory name.c(SRS_BSW_00305, SRS_Rte_00051, SRS_Rte_00013)
The Per-instance Memory Handles are typed; [SWS_Rte_02302] dThe data type of
each Per-instance Memory Handle shall be a pointer to the type of the per instance
memory that is defined in the Application Header file.c(SRS_Rte_00051, SRS_Rte_-
00013)
The RTE supports the access to the per-instance memories by the Rte_Pim API.
[SWS_Rte_06527] dThe RTE Generator shall wrap each entry of Per-instance Memory
Handles Section in the component data structure of a variant existent PerInstance-
Memory or arTypedPerInstanceMemory if the variability shall be implemented.
1 #if (<condition>)
2
3 <Per-instance Memory Handles Section Entry>
4
5 #endif
where condition is the condition value macro of the VariationPoint relevant for
the variant existence of the Rte_Pim API (see [SWS_Rte_06518]), Per-instance
Memory Handles Section Entry is the code according an invariant Per-instance
Memory Handles Section Entry (see also [SWS_Rte_02301], [SWS_Rte_02302])c
(SRS_Rte_00201)
Example 5.25
1 struct Rte_CDS_c {
2 ...
3 /* per-instance memory handle section */
4 Rte_PimType_c_MyMemType *Pim_mem;
5
6 ...
7 };
8
9 typedef struct Rte_CDS_c Rte_CDS_c;
10
11 #define Rte_Pim_mem(instance) ((instance)->Pim_mem)
and in Rte.c:
1 Rte_PimType_c_MyMemType mem1;
2
[SWS_Rte_08778] dIf the software component does not support multiple instantiation
nor requires compatibility mode, the per-instance memory handles section shall be
empty.c(SRS_Rte_00051)
Each runnable may require separate handling for the inter runnable variables that it
accesses. The indirection required for explicit access to inter runnable variables is
described in section 5.4.2.7. The inter runnable variable handles section within the
component data structure contains pointers to the (shadow) memory of inter runn-
able variables that can be directly accessed with the implicit API macros. The inter
runnable variable handles section does not contain pointers for memory to
handle inter runnable variables that are accessed with explicit API only.
[SWS_Rte_02636] dFor each runnable and each inter runnable variable that is ac-
cessed implicitly by the runnable, there shall be exactly one inter runnable handle
member within the component data structure and this inter runnable variable handle
shall point to the (shadow) memory of the inter runnable variable for the runnable.c
(SRS_Rte_00142)
[SWS_Rte_01350] dThe name of each inter runnable variable handle member within
the component data structure shall be Irv_<re>_<o> where <o> is the Inter-
Runnable Variable short name and <re> is short name of the runnable name.c(SRS_-
Rte_00142)
[SWS_Rte_01351] dThe data type of each inter runnable variable handle member shall
be a pointer to the type of the inter runnable variable.c(SRS_Rte_00142)
[SWS_Rte_06528] dThe RTE Generator shall wrap each entry of Inter Runnable Vari-
able Handles Section in the component data structure of a variant existent Rte_-
IrvRead or Rte_IrvWrite if the variability shall be implemented.
1 #if (<condition> [|| <condition>])
2
3 <Inter Runnable Variable Handles Section Entry>
4
5 #endif
where condition are the condition value macro(s) of the VariationPoint rele-
vant for the variant existence of the Rte_IrvRead or Rte_IrvWrite API access-
ing the same Inter Runnable Variable (see [SWS_Rte_06519]), Inter Runnable
Variable Handles Section Entry is the code according an invariant Inter Runn-
able Variable Handles Section Entry (see also [SWS_Rte_02636], [SWS_Rte_01350],
[SWS_Rte_01351])c(SRS_Rte_00201)
[SWS_Rte_08779] dIf the software component does not support multiple instantiation
nor requires compatibility mode, the inter runnable variable handles section shall be
empty.c(SRS_Rte_00051)
The exclusive-area API section includes exclusive areas that are accessed explicitly,
using the RTE API, by the SW-C. Each entry in the section is a function pointer to the
relevant RTE API function generated for the SW-C instance.
[SWS_Rte_03739] dIf the according SwcExclusiveAreaPolicy.apiPrinciple of
the ExclusiveArea is set to "common", the name of each Exclusive-area API section
entry shall be <root>_<name> where <root> is either Entry or Exit and <name>
is the shortName of the ExclusiveArea.c(SRS_Rte_00051, SRS_Rte_00032)
[SWS_Rte_04545] dIf the according SwcExclusiveAreaPolicy.apiPrinciple of
the ExclusiveArea is set to "perExecutable", the name of each Exclusive-area
API section entry shall be <root>_<re>_<name> where <root> is either Entry
or Exit, <re> is the shortName of the RunnableEntity with the canEnterEx-
clusiveArea association, and <name> is the shortName of the ExclusiveArea.c
(SRS_Rte_00051, SRS_Rte_00032)
[SWS_Rte_03740] dThe data type of each Exclusive-area API section entry shall be
a function pointer that points to the generated RTE API function.c(SRS_Rte_00051,
SRS_Rte_00032)
[SWS_Rte_06521] dThe RTE Generator shall wrap each definition of a variant existent
Rte_Enter and Rte_Exit in the Exclusive-area API section according table 4.23 if
the variability shall be implemented.
1 #if (<condition>)
2
3 <Exclusive-area API section entry>
4
5 #endif
Port API section comprises zero or more function references within the component
data structure type that defines all API functions that access a port and can be invoked
by the software-component (instance).
[SWS_Rte_02616] dThe function table entries for port access shall be grouped by the
port names into port data structures.c(SRS_Rte_00051)
Each entry in the port API section of the component data structure is a “port data
structure”.
[SWS_Rte_02617] dThe name of each port data structure in the component data struc-
ture shall be <p> where <p> is the port short-name.c(SRS_Rte_00051)
[SWS_Rte_03799] dThe component data structure shall contain a port data structure
for port p only if at least one API from table 5.2 is present and either the component
supports multiple instantiation, or the component requires compatibility mode, or if the
indirectAPI attribute for p is set to ’true’.c(SRS_Rte_00051)
[SWS_Rte_06522] dThe RTE Generator shall wrap each port data structure of a vari-
ant existent PortPrototype if the variability shall be implemented.
1 #if (<condition>)
2
3 <port data structure>
4
5 #endif
where condition are the condition value macro(s) of the VariationPoints rele-
vant for the variant existence of the PortPrototypes requiring the port data structure
type (see [SWS_Rte_06520]), port data structure type is the code according
Table 5.2: Table of API functions that are referenced in the port API section.
[SWS_Rte_02620] dAn API function shall only be included in a port data structure, if it
is required at least by one port.c(SRS_Rte_00051)
[SWS_Rte_02621] dIf a function table entry is available in a port data structure, the cor-
responding function shall be implemented for all ports that use this port data structure
type. API functions related to ports that are not required by the AUTOSAR configuration
shall behave like those for an unconnected port.c(SRS_Rte_00051)
APIs may be required only for some ports of a software component instance
due to differences in for example the need for transmission acknowledgement.
[SWS_Rte_02621] is necessary for the concept of the indirect API. It allows iteration
over ports.
[SWS_Rte_01055] dThe name of each function table entry in a port data structure
shall be <name>_<o> where <name> is the API root (e.g. Call, Write) and <o> the
data element or operation name.c(SRS_BSW_00305, SRS_Rte_00051)
Requirement [SWS_Rte_01055] does not include the port name in the function table
entry name since the port is implicit when using a port handle.
[SWS_Rte_03726] dThe data type of each function table entry in a port data struc-
ture shall be a function pointer that points to the generated RTE function.c(SRS_Rte_-
00051)
The signature of a generated function, and hence the definition of the function pointer
type, is the same as the signature of the relevant RTE API call (see Section 5.6) with
the exception that the instance handle is omitted.
Example 5.26
This example shows a port data structure for the provide ports of the interface type i2
in an AUTOSAR SW-C c.
i2 is a SenderReceiverInterface which contains a data element prototype of type
uint8 with data semantics.
If one of the provide ports of c for the interface i2 has a transmission acknowledge-
ment defined and i2 is not used with data element invalidation, the Applica-
tion Header file would include a port data structure type like this:
1 struct Rte_PDS_c_i2_P {
2 Std_ReturnType (*Feedback_a)(uint8);
3 Std_ReturnType (*Write_a)(uint8);
4 }
If the provide port p1 of the AUTOSAR SW-C c is of interface i2, the generated Ap-
plication Header file would include the following macros to provide the direct API func-
tions Rte_Feedback_p1_a and Rte_Write_p1_a:
1 /*direct API*/
2 #define Rte_Feedback_p1_a(inst,data)
3 ((inst)->p1.Feedback_a)(data)
4 #define Rte_Write_p1_a(inst,data) ((inst)->p1.Write_a)(data)
[SWS_Rte_02618] dThe port data structures within a component data structure shall
first be sorted on the port data structure type name and then on the short name of the
port.c(SRS_Rte_00051)
The requirements [SWS_Rte_03731] and [SWS_Rte_02618] guarantee, that all port
data structures within the component data structure are grouped by their interface type
and require/provide-direction.
Example 5.27
This example shows the grouping of port data structures within the component data
structure.
The Application Header file for an AUTOSAR SW-C c with three provide ports p1, p2,
and p3 of interface i2 would include a block of port data structures like this:
1 struct Rte_CDS_c {
2 ...
3 struct Rte_PDS_c_i1_R z;
4
5 /* port data structures *
6 * for provide ports of interface i2 */
7 struct Rte_PDS_c_i2_P p1;
8 struct Rte_PDS_c_i2_P p2;
9 struct Rte_PDS_c_i2_P p3;
10
11 /* further port data structures */
12 struct Rte_PDS_c_i2_R c;
13 ...
14 }
15
16 typedef struct Rte_CDS_c Rte_CDS_c;
ph points to the port data structure p1 of the instance handle inst. Since the three
provide port data structures p1, p2, and p3 of interface i2 are ordered sequentially
in the component data structure, ph can also be interpreted as an array of port data
structures. E.g., ph[2] is equal to inst->p3.
In the following, ph will be called a port handle.
[SWS_Rte_01343] dRTE shall create port handle types for each port data structure
using typedef to a pointer to the appropriate port data structure.c(SRS_Rte_00051)
[SWS_Rte_01342] dThe port handle type name shall be
Rte_PortHandle_<i>_<P/R/PR> where <i> is the port interface name and
‘P’, ‘R’ or ‘PR’ are literals to indicate provide, require or provide-require ports
respectively.c(SRS_Rte_00051)
[SWS_Rte_06524] dThe RTE Generator shall wrap each port handle type related to
variant existent PortPrototypes if the variability shall be implemented and if all re-
quire PortPrototypes or all provide PortPrototypes are variant.
1 #if (<condition> [|| <condition>])
2
3 <port handle type>
4
5 #endif
where condition are the condition value macro(s) of the VariationPoints rele-
vant for the variant existence of the PortPrototypes requiring the port data structure
type (see [SWS_Rte_06520]), port data structure type is the code according
an invariant port data structure type (see also [SWS_Rte_01343], [SWS_Rte_01342])c
(SRS_Rte_00201)
[SWS_Rte_01053] dThe port handle types shall be written to the application header
file.c(SRS_Rte_00051)
RTE provides port handles for access to the arrays of port data structures of the same
interface type and provide/receive direction by the macro Rte_Ports, see section
5.6.1, and to the number of similar ports by the macro Rte_NPorts, see 5.6.1.
Example 5.28
For the provide port i2 of AUTOSAR SW-C c from example 5.26, the following port
handle type will be defined in the Application Header file:
1 typedef struct Rte_PDS_c_i2_P *Rte_PortHandle_i2_P;
The macros to access the port handles for the indirect API might look like this in the
generated Application Header file:
1 /*indirect (port oriented) API*/
2 #define Rte_Ports_i2_P(inst) &((inst)->p1)
3 #define Rte_NPorts_i2_P(inst) 3
So, the port handle ph of the previous example 5.27 could be defined by a user as:
1 Rte_PortHandle_i2_P ph = Rte_Ports_i2_P(inst);
To write ‘49’ on all ports p1 to p3, the indirect API can be used within the software
component as follows:
1 uint8 p;
2 Rte_PortHandle_i2_P ph = Rte_Ports_i2_P(inst);
3 for(p=0;p<Rte_NPorts_i_P(inst);p++) {
4 ph[p].Write_a(49);
5 }
Software components may also want to set up their own port handle arrays to iterate
over a smaller sub group than all ports with the same interface and direction.
Rte_Port can be used to pick the port handle for one specific port, see 5.6.3.
The Inter Runnable Variable API section comprises zero or more function table entries
within the component data structure type that defines all explicit API functions to access
an inter runnable variable by the software-component (instance). The API for implicit
access of inter runnable variables does not have any function table entries, since the
implicit API uses macro’s to access the inter runnable variables or their shadow mem-
ory directly, see section 5.4.2.3.
Since the entries of this section are only required to access the explicit InterRunnable-
Variable API if a software component supports multiple instantiation, it shall be omitted
for software components which do not support multiple instantiation.
[SWS_Rte_03725] dIf the component supports multiple instantiation, the member
name of each function table entry within the component data structure shall be
<name>_<re>_<o> where <name> is the API root (e.g. IrvRead), <re> the runnable
name, and <o> the inter runnable variable name.c(SRS_Rte_00051)
[SWS_Rte_03752] dThe data type of each function table entry shall be a function
pointer that points to the generated RTE function.c(SRS_Rte_00051)
The signature of a generated function, and hence the definition of the function pointer
type, is the same as the signature of the relevant RTE API call (see Section 5.6) with
the exception that the instance handle is omitted.
[SWS_Rte_02623] dIf the component supports multiple instantiation or requires com-
patibility mode, the Inter Runnable Variable API Section shall contain pointers to API
functions as listed in table 5.3.c(SRS_Rte_00051)
Table 5.3: Table of API functions that are referenced in the inter runnable variable API
section
[SWS_Rte_06525] dThe RTE Generator shall wrap each entry of Inter Runnable Vari-
able API Section in the component data structure of a variant existent Rte_IrvRead
or Rte_IrvWrite API if the variability shall be implemented.
1 #if (<condition>)
2
3 <Inter Runnable Variable API Section Entry>
4
5 #endif
The Inter Runnable Triggering API Section includes the Inter Runnable Triggering API
handles. Each entry in the section is a function pointer to the relevant RTE API function
generated for the SW-C instance.
[SWS_Rte_07226] dThe name of each Inter Runnable Triggering handle shall be
Rte_IrTrigger_<re>_<name> where <re> is the name of the runnable entity the
API might be used and <name> is the name of the InternalTriggeringPoint.c
(SRS_Rte_00051, SRS_Rte_00163)
[SWS_Rte_07227] dThe data type of each Inter Runnable Triggering handle entry shall
be a function pointer that points to the generated RTE API function defined in 5.6.35.c
(SRS_Rte_00051, SRS_Rte_00163)
[SWS_Rte_06526] dThe RTE Generator shall wrap each entry of Inter Runnable Trig-
gering handle in the component data structure of a variant existent Rte_IrTrigger
API if the variability shall be implemented.
1 #if (<condition>)
2
3 <Inter Runnable Variable API Section Entry>
4
5 #endif
The RAM Block Data Updated Handles section is required to express an update of
implicit written NV data in case the NvBlockSwComponentType is used (see section
4.2.10.2). For that purpose each RAM Block Updated Handle accesses a separate
"dirty flag".
[SWS_Rte_08092] dThe CDS shall contain a handle for each SwcServiceDepen-
dency defining a RoleBasedPortAssignment in the role NvDataPort. This handle
member shall be named DF_<name> where <name> is the SwcServiceDependency
name.c(SRS_Rte_00051, SRS_Rte_00245)
In addition to a "dirty flag" on port level the RTE also supports "dirty flags" on data
element level.
[SWS_Rte_03879] dThe CDS shall contain a handle for each SwcServiceDepen-
dency defining a RoleBasedDataAssignment in the role NvDataElement. This
handle member shall be named DF_<name> where <name> is the SwcServiceDe-
pendency name.c(SRS_Rte_00051, SRS_Rte_00245)
[SWS_Rte_08093] dThe data type of each RAM Block Data Updated Handle shall be
a pointer to boolean.c(SRS_Rte_00051, SRS_Rte_00245)
The RTE supports the access to dirty flags for implicit communication by invoking the
Rte_IWrite and Rte_IWriteRef APIs.
[SWS_Rte_08094] dThe invocation of any Rte_IWrite or Rte_IWriteRef API of
a data belonging to a PPortPrototype / PRPortPrototype referenced in the role
NvDataPort by a SwcServiceDependency shall set the related dirty flag addressed
by the RAM Block Updated Handle to TRUE.c(SRS_Rte_00051, SRS_Rte_00245)
[SWS_Rte_03880] dThe invocation of any Rte_IWrite or Rte_IWriteRef API
of a data belonging to a RoleBasedDataAssignment referenced in the role Nv-
DataElement by a SwcServiceDependency shall set the related dirty flag ad-
dressed by the RAM Block Updated Handle to TRUE.c(SRS_Rte_00051, SRS_Rte_-
00245)
[SWS_Rte_07416] dFor a VariableDataPrototype belonging to a PPortProto-
type / PRPortPrototype referenced in the role NvDataPort by a SwcServiceDe-
pendency the RTE shall, after the NvM has been informed, set the related dirty flag
addressed by the RAM Block Updated Handle to FALSE.c(SRS_Rte_00051, SRS_-
Rte_00245)
[SWS_Rte_03881] dFor a VariableDataPrototype belonging to a RoleBased-
DataAssignment referenced in the role NvDataElement by a SwcServiceDepen-
dency the RTE shall, after the NvM has been informed, set the related dirty flag ad-
dressed by the RAM Block Updated Handle to FALSE.c(SRS_Rte_00051, SRS_Rte_-
00245)
The NvM is informed of the status change through either the invocation of
NvM_SetRamBlockStatus [SWS_Rte_08081] or directly through NvM_WriteBlock
[SWS_Rte_08085]. The invocation of either is guarded by a check on the dirty flag.
[SWS_Rte_03882] dThe RTE Generator shall wrap each entry of RAM Block Data
Updated Handles Section related to variant existent PPortPrototypes / PRPort-
Prototypes referenced in the role NvDataPort by a SwcServiceDependency if
the variability shall be implemented.
The RTE Generator shall wrap each entry of RAM Block Data Updated Handles
Section related to variant existent VariableDataPrototypes referred by a Role-
BasedDataAssignment referenced in the role NvDataElement by a SwcSer-
viceDependency if the variability shall be implemented.
1 #if (<condition>)
2
3 <RAM Block Data Updated Handles Section Entry>
4
5 #endif
where condition are the condition value macros of the VariationPoints rele-
vant for the variant existence of the Rte_IWrite and Rte_IWriteRef APIs (see
[SWS_Rte_06518]); the single condition value macros are concatenated with logical
or (k) operators to ensure the availability of the handle if any relevant API is existent,
RAM Block Data Updated Handles Section Entry is the code according an
invariant RAM Block Data Updated Handles Section Entry where condition are the
condition value macros of the VariationPoints concatenated with logical or (k)
operators (see also [SWS_Rte_08092], [SWS_Rte_08093]).c(SRS_Rte_00201)
[SWS_Rte_03872] dIf the software component does not support multiple instantiation
nor requires compatibility mode, the RAM Block Data Updated Handles Section shall
be empty.c(SRS_Rte_00051)
The vendor specific section is used to contain any vendor specific data required to be
supported for each instances. By definition the contents of this section are outside the
scope of this chapter and only available for use by the RTE generator responsible for
the “RTE Generation” phase.
[SWS_Rte_08786] dIf the software component does not support multiple instantiation
nor requires compatibility mode, the vendor specific section shall be empty.c(SRS_-
Rte_00051)
5.5.1 Std_ReturnType
The specification in [31] specifies a standard API return type Std_ReturnType. The
Std_ReturnType defines the "‘status"’ and "‘error values"’ returned by API functions.
It is defined as a uint8 type. The value “0” is reserved for “No error occurred”.
LSB MSB
0 1 2 3 4 5 6 7
c()
• [SWS_Rte_07405] dFor overlayed errors, this macro is a boolean expression that
is true if the corresponding bit is set:
1 #define Rte_HasOverlayedError(status) ((status & 64U) != 0)
c()
• [SWS_Rte_07406] dFor reading only the application error code without the even-
tual overlayed error, the following macro returns the lower 6 bits of the error code:
1 #define Rte_ApplicationError(status) (status & 63U)
c()
[SWS_Rte_02573] dRTE shall support application errors with the following format def-
inition: Application errors are coded in the least significant 6 bits of Std_ReturnType
with the Immediate Infrastructure Error Flag set to “0”. The application er-
ror code does not use the Overlayed Error Flag.c(SRS_Rte_00124)
This results in the following value range for application errors:
range minimum value maximum value
application errors 1 63
In client server communication, the server may return any value within the application
error range. The client will then receive one of the following:
• An Immediate Infrastructure Error to indicate that the communication
was not successful, or
Std_ReturnType status;
status = Rte_Call_<p>_<o>(<instance>, <parameters>);
if (Rte_HasOverlayedError(status)) {
/* handle overlayed error flag *
* in this release of the RTE, the flag is reserved *
* but not used for client server communication */
if(Rte_IsInfrastructureError(status)) {
/* handle infrastructure error */
}
else {
/* handle application error with error code status */
status = Rte_ApplicationError(status);
}
For client server communication, application error values are defined per client server
interface and shall be passed to the RTE with the interface configuration.
The following standard error and status identifiers are defined:
Symbolic name Value Comments
RTE_E_OK 0 [SWS_Rte_01058]
Overlayed Errors
These errors do not refer to the data returned with the API. They can be overlayed
with other Application- or Immediate Infrastructure Errors.
RTE_E_LOST_DATA 64 [SWS_Rte_02571]
RTE_E_MAX_AGE_EXCEEDED 64 [SWS_Rte_02702]
The underlying type for Std_ReturnType is defined as a uint8 for reasons of com-
patibility – it avoids RTEs from different vendors assuming a different size if an enum
was the underlying type. Consequently, #define is used to declare the error values:
1 typedef uint8 Std_ReturnType;
2
3 #define RTE_E_OK 0U
5.5.1.3.1 No Error
5.5.1.3.1.1 RTE_E_OK
[SWS_Rte_01058] d
Symbolic name: RTE_E_OK
Value: 0
Comments: No error occurred.c(SRS_BSW_00327)
5.5.1.3.2.1 RTE_E_INVALID
[SWS_Rte_02594] d
Symbolic name: RTE_E_INVALID
Value: 1
Comments: Generic application error indicated by signal invalidation in sender re-
ceiver communication with data semantics on the receiver side.c(SRS_BSW_-
00327, SRS_Rte_00078)
5.5.1.3.2.2 RTE_E_RAM_UNCHANGED
[SWS_Rte_04582] d
Symbolic name: RTE_E_RAM_UNCHANGED
Value: 142
Comments: Indication that the NVM RAM block was not changed (This is no error).c
(SRS_BSW_00327)
5.5.1.3.3.1 RTE_E_COM_STOPPED
[SWS_Rte_01060] d
Symbolic name: RTE_E_COM_STOPPED
Value: 128
Comments: An IPDU group was disabled while the application was waiting for the
transmission acknowledgment. No value is available. This is not considered a fault,
since the IPDU group is switched off on purpose.
This semantics are as follows:
• the OUT buffers of a client are not modified,
• the explicit read APIs read the last known value (or init value),
5.5.1.3.3.2 RTE_E_TIMEOUT
[SWS_Rte_01064] d
Symbolic name: RTE_E_TIMEOUT
Value: 129
Comments: A blocking API call returned due to expiry of a local timeout rather than
the intended result. OUT buffers are not modified. The interpretation of this being an
error depends on the application.c(SRS_BSW_00327, SRS_Rte_00069)
5.5.1.3.3.3 RTE_E_LIMIT
[SWS_Rte_01317] d
Symbolic name: RTE_E_LIMIT
Value: 130
Comments: An internal RTE limit has been exceeded. Request could not be handled.
OUT buffers are not modified.c(SRS_BSW_00327)
5.5.1.3.3.4 RTE_E_NO_DATA
[SWS_Rte_01061] d
Symbolic name: RTE_E_NO_DATA
Value: 131
Comments: An explicit read API call returned no data. (This is no error.)c(SRS_-
BSW_00327)
5.5.1.3.3.5 RTE_E_TRANSMIT_ACK
[SWS_Rte_01065] d
Symbolic name: RTE_E_TRANSMIT_ACK
Value: 132
Comments: Transmission acknowledgement received.c(SRS_BSW_00327)
5.5.1.3.3.6 RTE_E_NEVER_RECEIVED
[SWS_Rte_07384] d
Symbolic name: RTE_E_NEVER_RECEIVED
Value: 133
Comments: No data received for the corresponding unqueued data element since
system start or partition restart.c(SRS_BSW_00327, SRS_Rte_00184)
5.5.1.3.3.7 RTE_E_UNCONNECTED
[SWS_Rte_07655] d
Symbolic name: RTE_E_UNCONNECTED
Value: 134
Comments: The port used for communication is not connected.c(SRS_BSW_00327,
SRS_Rte_00139, SRS_Rte_00200)
5.5.1.3.3.8 RTE_E_IN_EXCLUSIVE_AREA
[SWS_Rte_02739] d
Symbolic name: RTE_E_IN_EXCLUSIVE_AREA
Value: 135
Comments: The error is returned by a blocking API and indicates that the runnable
could not enter a wait state. This could be for example because one ExecutableEn-
tity of the current task’s call stack has entered an ExclusiveArea.c(SRS_BSW_-
00327)
5.5.1.3.3.9 RTE_E_SEG_FAULT
[SWS_Rte_02757] d
Symbolic name: RTE_E_SEG_FAULT
Value: 136
Comments: The error can be returned by an RTE API, if the parameters contain a
direct or indirect reference to memory that is not accessible from the callers partition.c
(SRS_BSW_00327)
5.5.1.3.3.10 RTE_E_OUT_OF_RANGE
[SWS_Rte_08065] d
Symbolic name: RTE_E_OUT_OF_RANGE
Value: 137
Comments: The received data is out of range.c(SRS_BSW_00327, SRS_Rte_00180)
[SWS_Rte_08725] d
Symbolic name: RTE_E_SERIALIZATION_ERROR,
RTE_E_HARD_TRANSFORMER_ERROR
Value: 138
Comments: An error during transformation occured.c(SRS_Rte_00091, SRS_BSW_-
00327)
[SWS_Rte_08726] d
Symbolic name: RTE_E_SERIALIZATION_LIMIT, RTE_E_TRANSFORMER_LIMIT
Value: 139
Comments: Buffer for transformation operation could not be created.c(SRS_Rte_-
00091, SRS_BSW_00327)
5.5.1.3.3.13 RTE_E_SOFT_TRANSFORMER_ERROR
[SWS_Rte_08551] d
Symbolic name: RTE_E_SOFT_TRANSFORMER_ERROR
Value: 140
Comments: An error during transformation occured which shall be notified to the SWC
but still produces valid data as output (comparable to a warning).c(SRS_Rte_00091,
SRS_BSW_00327)
5.5.1.3.3.14 RTE_E_COM_BUSY
[SWS_Rte_01389] d
Symbolic name: RTE_E_COM_BUSY
Value: 141
Comments: The transmission/reception could not be performed due to another trans-
mission/reception currently ongoing for the same signal.c(SRS_Rte_00246)
These errors do not refer to the data returned with the API. They can be overlayed with
other Application- or Immediate Infrastructure Errors.
5.5.1.3.4.1 RTE_E_LOST_DATA
[SWS_Rte_02571] d
Symbolic name: RTE_E_LOST_DATA
Value: 64
Comments: An API call for reading received data with event semantics indicates
that some incoming data has been lost due to an overflow of the receive queue or due
to an error of the underlying communication stack.c(SRS_BSW_00327, SRS_Rte_-
00107, SRS_Rte_00110, SRS_Rte_00094)
5.5.1.3.4.2 RTE_E_MAX_AGE_EXCEEDED
[SWS_Rte_02702] d
Symbolic name: RTE_E_MAX_AGE_EXCEEDED
Value: 64
Comments: An API call for reading received data with data semantics indicates
that the available data has exceeded the aliveTimeout limit. A COM signal outdated
callback will result in this error.c(SRS_BSW_00327, SRS_Rte_00078)
5.5.2 Rte_Instance
The Rte_Instance data type defines the handle used to access instance specific
information from the component data structure.
[SWS_Rte_01148] dThe underlying data type for an instance handle shall be a pointer
to a Component Data Structure.c(SRS_Rte_00011, SRS_Rte_00051)
The component data structure (see Section 5.4.2) is uniquely defined for a component
type and therefore the data type for the instance handle is automatically unique for
each component type.
The instance handle type is defined in the application header file [SWS_Rte_01007].
To avoid long and complex type names within SW-C code the following requirement
imposes a fixed name on the instance handle data type.
[SWS_Rte_01150] dThe name of the instance handle type shall be defined, using
typedef as Rte_[Byps_]Instance. [Byps_] is an optional infix used when com-
ponent wrapper method for bypass support is enabled for the related software compo-
nent type (See chapter 4.9.2).c(SRS_BSW_00305)
[SWS_Rte_06810] dThe instance handle typedef shall use the CONSTP2CONST macro
with memclass AUTOMATIC and ptrclass RTE_CONST.c(SRS_BSW_00007)
Requirement [SWS_Rte_06810] uses memclass AUTOMATIC rather than memclass
TYPEDEF because the instance handle is used as a function parameter and hence
automatic. This means the typedef is guaranteed to be compatible when the RTE
implementation must use a pointer to the component data structure rather than the
instance handle typedef.
The example 5.23 illustrates the definition of the instance handle typedef.
1 #ifndef RTE_MODE_<prefix><ModeDeclarationGroup>_<ModeDeclaration>
2 #define RTE_MODE_<prefix><ModeDeclarationGroup>_<ModeDeclaration> \
3 <index>U
4 #endif
(See [SWS_Rte_08802] for the meaning of the term "used") by this software compo-
nent.
This includes constants for CompuMethods referenced by Implementation-
DataTypeElements of ImplementationDataTypes directly referenced by the soft-
ware component and constants for CompuMethods of ImplementationDataTypes
which are referenced indirectly via ImplementationDataTypes / Implementa-
tionDataTypeElements of category TYPE_REFERENCE.c(SRS_Rte_00167)
[SWS_Rte_03809] is applicable regardless if the AutosarDataType is referenced
by an DataPrototypes in PortInterfaces used for SwComponentTypes Ports,
DataPrototypes defined in the InternalBehavior of the SwComponentType or
AutosarDataTypes which are only referenced by the IncludedDataTypeSet.
This requirement ensures the availability of AutosarDataType constants for the in-
ternal use in AUTOSAR software components, for example enumeration constants.
The name of those constants bases on the CompuScale symbolic name as de-
fined in [TPS_SWCT_01569].
[SWS_Rte_03810] dFor each CompuScale which has a point range and is
located in the compuInternalToPhys container of a CompuMethod referenced
by an ImplementationDataType or ApplicationPrimitiveDataType according
[SWS_Rte_03809] with category "TEXTTABLE", "SCALE_LINEAR_AND_TEXTTABLE",
"SCALE_RATIONAL_AND_TEXTTABLE", or BITFIELD_TEXTTABLE, the Application
Types Header File file shall contain a definition
1 #ifndef <prefix><EnumLiteral>
2 #define <prefix><EnumLiteral> <value><suffix>
3 #endif /* <prefix><EnumLiteral> */
where the name of the enumeration literal <EnumLiteral> is derived according to the
following rule:
if (attribute symbol of CompuScale is available and not empty) {
<EnumLiteral> := C identifier specified in symbol attribute of CompuScale
} else {
if (string specified in the VT element of the CompuConst of the CompuScale
is a valid C identifier) {
<EnumLiteral> :=
string specified in the VT element of the CompuConst of the CompuScale
} else {
if (attribute shortLabel of CompuScale is available and not empty) {
<EnumLiteral> :=
string specified in shortLabel attribute of CompuScale
}
}
}
<prefix> is the optional literalPrefix attribute defined by the Included-
DataTypeSet referring the AutosarDataType using the CompuMethod.
allow a Software Component the access to these values two definitions for these values
shall be generated.
[SWS_Rte_05051] dThe Application Types Header File shall include the definitions
of all lowerLimit and upperLimit constants of each ApplicationPrimitive-
DataType used by this software component once per ApplicationPrimitive-
DataType if the ApplicationPrimitiveDataType is not referenced via different
IncludedDataTypeSets.c(SRS_Rte_00167)
[SWS_Rte_08402] dThe Application Types Header File shall include the definitions
of all lowerLimit and upperLimit constants of each ApplicationPrimitive-
DataType used by this software component for each combination of different liter-
alPrefix and ApplicationPrimitiveDataType when the same Implementa-
tionDataType or ApplicationPrimitiveDataType is referenced via different
IncludedDataTypeSets.c(SRS_Rte_00167)
[SWS_Rte_05052] dThe lowerLimit and upperLimit constants for Application-
PrimitiveDataType referencing a DataConstr shall be generated by RTE generator in
the Application Type Header File as:
1 #define <prefix><DataType>_LowerLimit <lowerValue><suffix>
2 #define <prefix><DataType>_UpperLimit <upperValue><suffix>
where
<prefix> is the optional literalPrefix attribute defined by the Included-DataTypeSet
referring the AutosarDataType
<DataType> is the short name of the data type.
<invalidValue> is the value defined as invalidValue for the data type.
<suffix> shall be set according to [SWS_Rte_03619].c()
[SWS_Rte_08416] dThe Application Types Header File shall include the definitions of
all invalidValue constants used by this software component for each combination of
different literalPrefix and ApplicationPrimitiveDataType when the same
ImplementationDataType or ApplicationPrimitiveDataType is referenced
via different IncludedDataTypeSets.c(SRS_Rte_00167)
where
<BflMaskLabel> is the value of the attribute CompuScale.shortLabel
<mask> is the value of the attribute mask
<prefix> is the optional literalPrefix attribute defined by the Included-
DataTypeSet referring the AutosarDataType using the CompuMethod.c(SRS_-
Rte_00167)
[SWS_Rte_07411] dFor each unique CompuScale.shortLabel / CompuScale.
mask value pair for a CompuScale with a single contiguous bit field which is
located in the compuInternalToPhys container of a CompuMethod referenced
by an ImplementationDataType or ApplicationPrimitiveDataType accord-
ing [SWS_Rte_03809] with category BITFIELD_TEXTTABLE the Application Types
Header File shall contain a definition for the bit start position
1 #ifndef <prefix><BflStartPnLabel>_BflPn
2 #define <prefix><BflStartPnLabel>_BflPn <BflStartPnNumber>U
3 #endif /* <prefix><BflStartPnLabel>_BflPn */
where
<BitStartPnLabel> is the value of the attribute CompuScale.shortLabel
<BflStartPnNumber> is the number of the first bit in the attribute value CompuS-
cale.mask which is set to 1. Thereby the bit counting starts from 0 (LSB) to n (MSB).
<prefix> is the optional literalPrefix attribute defined by the Included-
DataTypeSet referring the AutosarDataType using the CompuMethod.c(SRS_-
Rte_00167)
[SWS_Rte_07412] dFor each unique CompuScale.shortLabel / CompuScale.
mask value pair for a CompuScale with a single contiguous bit field which is
located in the compuInternalToPhys container of a CompuMethod referenced
by an ImplementationDataType or ApplicationPrimitiveDataType accord-
ing [SWS_Rte_03809] with category BITFIELD_TEXTTABLE the Application Types
Header File shall contain a definition for the bit field length
1 #ifndef <prefix><BflLengthLabel>_BflLn
2 #define <prefix><BflLengthLabel>_BflLn <BflLength>U
3 #endif /* <prefix><BflLengthLabel>_BflLn */
where
<BflLengthLabel> is the value of the attribute shortLabel <BflLength> is the
number of contiguous bits set to 1 in the attribute value CompuScale.mask. <prefix>
is the optional literalPrefix attribute defined by the IncludedDataTypeSet re-
ferring the AutosarDataType using the CompuMethod.c(SRS_Rte_00167)
Please note the example in section F.3.
[SWS_Rte_07414] dThe requirements [SWS_Rte_07410], [SWS_Rte_07411], and
[SWS_Rte_07412] are only applied to CompuScales where the attribute shortLa-
bel is defined.c(SRS_Rte_00167)
5.6.1 Rte_Ports
Purpose: Provide an array of the ports of a given interface type and a given
provide / require usage that can be accessed by the indirect API.
Signature: [SWS_Rte_02619] d
Rte_PortHandle_<i>_<R/P/PR>
Rte_[Byps_]Ports_<i>_<R/P/PR>(
[IN Rte_Instance <instance>])
Where here <i> is the port interface name and ‘P’,‘R’ or ‘PR’ are lit-
erals to indicate provide, require or provide-require ports respectively.
[Byps_] is an optional infix used when component wrapper method
for bypass support is enabled for the related software component
type (See chapter 4.9.2).c(SRS_Rte_00051)
Existence: [SWS_Rte_02613] dAn Rte_Ports API shall be created for each
interface type and usage by a port in at least one PreCompileTime
variant when the indirectAPI attribute of that port is set to true.c
(SRS_Rte_00051)
Please note that the usage of the Rte_Ports API is not restricted
to particular runnables of the software component. Nevertheless the
constraints with respect to RTE API usage by specific runnables are
applicable for the according elements in the port data structure.
Description: The Rte_Ports API provides access to an array of ports for the port
oriented API.
[SWS_Rte_03602] dRte_Ports API shall return an array of ports
which contains only those ports for which the indirect API was gen-
erated or it shall return a NULL_PTR if the port data structure for this
port interface does not exist.c(SRS_Rte_00051)
Return Value: Array of port data structures of the corresponding interface type and
usage.
Notes: The existence condition for the port data structure is specified in
[SWS_Rte_03799].
5.6.2 Rte_NPorts
Purpose: Provide the number of ports of a given interface type and provide /
require usage that can be accessed through the indirect API.
Signature: [SWS_Rte_02614] d
uint8
Rte_[Byps_]NPorts_<i>_<R/P/PR>(
[IN Rte_Instance <instance>])
Where here <i> is the port interface name and ‘P’, ‘R’ or ‘PR’ are
literals to indicate provide, require or provide-require ports respec-
tively. [Byps_] is an optional infix used when component wrapper
method for bypass support is enabled for the related software com-
ponent type (See chapter 4.9.2).c(SRS_Rte_00051)
Existence: [SWS_Rte_02615] dAn Rte_NPorts API shall be created for each
interface type and usage by a port in at least one PreCompileTime
variant when the indirectAPI attribute of the port is set to true.c
(SRS_Rte_00051)
Description: The Rte_NPorts API supports access to an array of ports for the
port oriented API.
[SWS_Rte_03603] dThe Rte_NPorts shall return the number of
ports of a given interface and provide / require usage for which the
indirect API was generated or 0 if the port port data structure for this
port interface does not exist.c(SRS_Rte_00051)
Return Value: Number of port data structures of the corresponding interface type
and usage.
Notes: The existance condition for the port data structure is specified in
[SWS_Rte_03799].
5.6.3 Rte_Port
Purpose: Provide access to the port data structure for a single port of a particu-
lar software component instance. This allows a software component
to extract a sub-group of ports characterized by the same interface in
order to iterate over this sub-group.
Signature: [SWS_Rte_01354] d
Rte_PortHandle_<i>_<R/P/PR>
Rte_[Byps_]Port_<p>([IN Rte_Instance <instance>])
where <i> is the port interface name and <p> is the name of the port.
[Byps_] is an optional infix used when component wrapper method
for bypass support is enabled for the related software component
type (See chapter 4.9.2).c(SRS_Rte_00051)
Existence: [SWS_Rte_01355] dAn Rte_Port API shall be created for each port
of an AUTOSAR SW-C, for which the indirectAPI attribute is set
to true.c(SRS_Rte_00051)
Please note that the usage of the Rte_Port API is not restricted
to particular runnables of the software component. Nevertheless the
constraints with respect to RTE API usage by specific runnables are
applicable for the according elements in the port data structure.
Description: The Rte_Port API provides a pointer to a single port data structure,
in order to support the indirect API.
Return Value: Pointer to port data structure for the appropriate port.
Notes: None.
5.6.4 Rte_Write
3. RTE_E_COM_STOPPED
4. RTE_E_SOFT_TRANSFORMER_ERROR
c(SRS_Rte_00028)
5.6.5 Rte_Send
5.6.6 Rte_Switch
Purpose: Initiate a mode switch. The Rte_Switch API call is used for ‘explicit’
sending of a mode switch notification.
Signature: [SWS_Rte_02631] d
If returnValueProvision of the related ModeSwitchPoint(s) is
not set to noReturnValueProvided:
Std_ReturnType
Rte_[Byps_]Switch_<p>_<o>([IN Rte_Instance <instance>],
IN <mode>)
5.6.7 Rte_Invalidate
5.6.8 Rte_Feedback
Description: The Rte_Feedback API takes no parameters other than the in-
stance handle – the return value is used to indicate the acknowledge-
ment status to the caller.
The Rte_Feedback API applies only to explicit sender-receiver
communication.
Return Value: The return value is used to indicate the status of the transmission and
errors detected by the RTE.
• [SWS_Rte_01084] dRTE_E_NO_DATA – No acknowledgments
or error notifications were received from COM when the Rte_-
Feedback API was called (non-blocking call) or when the
WaitPoint timeout expired (blocking call).c(SRS_Rte_00094,
SRS_Rte_00122)
• RTE_E_COM_STOPPED – returned in one of these cases:
– [SWS_Rte_07636] d(Inter-ECU communication only)
The last transmission was rejected (when the
Rte_Send or Rte_Write API was called), with an
RTE_E_COM_STOPPED return code.c(SRS_Rte_00094,
SRS_Rte_00122)
– [SWS_Rte_03774] d(Inter-ECU communication only) An er-
ror notification from COM was received before any timeout
notification.c(SRS_Rte_00094, SRS_Rte_00122)
• [SWS_Rte_07637] dRTE_E_TIMEOUT – (Inter-ECU and Inter-
Partition only) A timeout notification was received from COM or
IOC before any error notification.c(SRS_Rte_00094, SRS_Rte_-
00122)
• [SWS_Rte_01086] dRTE_E_TRANSMIT_ACK – In case of inter-
ECU communication, a transmission acknowledgment was re-
ceived from COM; or in case of intra-ECU communication, even
if a queue overflow occurred.c(SRS_Rte_00094, SRS_Rte_-
00122)
• RTE_E_UNCONNECTED – Indicates that the sender port is not
connected [SWS_Rte_01344].
• [SWS_Rte_02740] dRTE_E_IN_EXCLUSIVE_AREA – Used
only for the blocking API. RTE_E_IN_EXCLUSIVE_AREA indi-
cates that the runnable can not enter wait, as one of the Ex-
ecutableEntitys in the call stack of this task is currently
in an exclusive area, see [SWS_Rte_02739]. - In a properly
configured system, this error should not occur. The check can
be disabled according to [SWS_Rte_08318].c(SRS_Rte_00092,
SRS_Rte_00046, SRS_Rte_00032)
• [SWS_Rte_08578] dRTE_E_HARD_TRANSFORMER_ERROR –
The return value of one transformer in the transformer chain
represented a hard transformer error.c(SRS_Rte_00094, SRS_-
Rte_00091)
• [SWS_Rte_08579] dRTE_E_SOFT_TRANSFORMER_ERROR –
The return value of at least one transformer in the transformer
chain was a soft error and no hard error occurred in the trans-
former chain.c(SRS_Rte_00094, SRS_Rte_00091)
• [SWS_Rte_08318] dIf RteInExclusiveAreaCheckEnabled
is set to false the RTE generator shall omit the check and return
of [SWS_Rte_02740].c(SRS_Rte_00092, SRS_Rte_00046,
SRS_Rte_00032)
The RTE_E_NO_DATA, RTE_E_TRANSMIT_ACK and
RTE_E_UNCONNECTED return values are not considered to be
an error but rather indicates correct operation of the API call.
[SWS_Rte_07652] dThe initial return value of the Rte_Feed-
back API, before any attempt to write some data shall
be RTE_E_TRANSMIT_ACK.c(SRS_Rte_00094, SRS_Rte_00122,
SRS_Rte_00128, SRS_Rte_00185)
[SWS_Rte_08075] dIn case of multiple faults during a
call of Rte_Feedback the resulting return value shall
be derived according to the following priority rules
(highest priority first): (1) RTE_E_UNCONNECTED, (2)
RTE_E_IN_EXCLUSIVE_AREA, (3) RTE_E_TIMEOUT, (4)
RTE_E_HARD_TRANSFORMER_ERROR, (5) RTE_E_COM_STOPPED,
(6) RTE_E_NO_DATA, (7) RTE_E_SOFT_TRANSFORMER_ERROR, (8)
RTE_E_TRANSMIT_ACK.c(SRS_Rte_00122)
Notes: If multiple transmissions on the same port/element are outstanding
it is not possible to determine which is acknowledged first. If this is
important, transmissions should be call serialized with the next oc-
curring only when the previous transmission has been acknowledged
or has timed out.
A transmission acknowledgment (or error and timeout) notification is
not always provided by COM (the bus or PDU Router may not sup-
port transmission acknowledgment for this PDU, or COM may not be
configured to perform transmission deadline monitoring).
In case of a blocking Rte_Feedback the value of the WaitPoint
timeout depends on the timeout defined at the COM level.
5.6.9 Rte_SwitchAck
Please note that a non-blocking API does not require the existence
of a ModeSwitchedAckEvent. If the ModeSwitchedAckEvent
exists it can be used to trigger the execution of a RunnableEntity
in which the non-blocking API function may be called.c(SRS_Rte_-
00051, SRS_Rte_00122)
[SWS_Rte_CONSTR_09020] The blocking Rte_SwitchAck API
may only be used by the runnable that describes its usage. dA
blocking Rte_SwitchAck API must only be used by the runnable
that contains the corresponding WaitPointc()
Description: The Rte_SwitchAck API takes no parameters other than the in-
stance handle – the return value is used to indicate the acknowledge-
ment status to the caller.
Return Value: The return value is used to indicate the status of a mode switch and
errors detected by the RTE.
• [SWS_Rte_02727] dRTE_E_NO_DATA – (non-blocking read)
The mode switch is still in progress.c(SRS_Rte_00094, SRS_-
Rte_00122)
• [SWS_Rte_02728] dRTE_E_TIMEOUT – The configured time-
out exceeds before the mode transition was completed.c(SRS_-
Rte_00094, SRS_Rte_00210)
• [SWS_Rte_03853] dRTE_E_TIMEOUT – Any mode users par-
tition is stopped or restarting or has been restarted while
the mode switch was requested.c(SRS_Rte_00094, SRS_Rte_-
00210)
• [SWS_Rte_02729] dRTE_E_TRANSMIT_ACK – The mode
switch has been completed (see [SWS_Rte_02587]).c(SRS_-
Rte_00094, SRS_Rte_00122)
• [SWS_Rte_07659] dRTE_E_UNCONNECTED – Indicates that the
mode provider port is not connected.c(SRS_Rte_00094, SRS_-
Rte_00122, SRS_Rte_00139)
• [SWS_Rte_02741] dRTE_E_IN_EXCLUSIVE_AREA – Used
only for the blocking API. RTE_E_IN_EXCLUSIVE_AREA indi-
cates that the runnable can not enter wait, as one of the Ex-
ecutableEntitys in the call stack of this task is currently
in an exclusive area, see [SWS_Rte_02739]. - In a properly
configured system, this error should not occur. The check can
be disabled according to [SWS_Rte_08319].c(SRS_Rte_00092,
SRS_Rte_00046, SRS_Rte_00032)
• [SWS_Rte_08319] dIf RteInExclusiveAreaCheckEnabled
is set to false the RTE generator shall omit the check and return
of [SWS_Rte_02741].c(SRS_Rte_00092, SRS_Rte_00046,
SRS_Rte_00032)
The RTE_E_TRANSMIT_ACK return value is not considered to be
an error but rather indicates correct operation of the API call.
When RTE_E_NO_DATA occurs, a component is free to re-invoke
Rte_SwitchAck and thus repeat the attempt to read the status of
the mode switch.
[SWS_Rte_07848] dThe initial return value of the Rte_-
SwitchAck API before any attempt to switch a mode shall be
RTE_E_TRANSMIT_ACK.c(SRS_Rte_00094, SRS_Rte_00122)
[SWS_Rte_07849] dIn case of multiple faults during
a call of Rte_SwitchAck the resulting return value
shall be derived according to the following priority rules
(highest priority first): (1) RTE_E_UNCONNECTED, (2)
RTE_E_IN_EXCLUSIVE_AREA, (3) RTE_E_TIMEOUT, (4)
RTE_E_NO_DATA, (5) RTE_E_TRANSMIT_ACK.c(SRS_Rte_00094,
SRS_Rte_00122)
Notes: If multiple mode switches of the same mode machine instance
are outstanding, it is not possible to determine which is acknowl-
edged first. If this is important, switches should be serialized with
the next switch occurring only when the previous switch has been
acknowledged. The queue length should be 1.
5.6.10 Rte_Read
void
Rte_[Byps_]Read_<p>_<o>(
[IN Rte_Instance <instance>],
OUT <data>,
[OUT Std_TransformerError transformerError],
[OUT uint8* metaDataPtr])
5.6.11 Rte_DRead
5.6.12 Rte_Receive
void
Rte_[Byps_]Receive_<p>_<o>([IN Rte_Instance <instance>],
OUT <data>,
[OUT Std_TransformerError transformerError],
[OUT uint8* metaDataPtr])
Where <p> is the port name and <o> the data element within the
sender-receiver interface categorizing the port. [Byps_] is an op-
tional infix used when component wrapper method for bypass sup-
port is enabled for the related software component type (See chap-
ter 4.9.2).c(SRS_BSW_00310, SRS_Rte_00141, SRS_Rte_00028,
SRS_Rte_00131)
Existence: [SWS_Rte_01288] dA non-blocking Rte_Receive API shall be gen-
erated if a VariableAccess in the dataReceivePointByArgu-
ment role references a required VariableDataPrototype with
‘event’ semantics.c(SRS_Rte_00051)
[SWS_Rte_07638] dThe RTE Generator shall reject configurations
were a VariableDataPrototype with ‘event’ semantics is refer-
enced by a VariableAccess in the dataReceivePointByValue
role.c(SRS_Rte_00018)
[SWS_Rte_01290] dA blocking Rte_Receive API shall be gener-
ated if a VariableAccess in the dataReceivePointByArgu-
ment role references a required VariableDataPrototype with
‘event’ semantics that is, in turn, referenced by a DataReceivedE-
vent and the DataReceivedEvent is referenced by a Wait-
Point.c(SRS_Rte_00051)
[SWS_Rte_CONSTR_09023] Rte_Receive API may only be
used by the runnable that describe its usage dThe Rte_Re-
ceive API may only be used by the runnable that contains the cor-
responding VariableAccess in the dataReceivePointByArgu-
ment rolec()
A DataReceivedEvent that references a runnable entity and is refer-
enced by a WaitPoint has to be treated as an invalid configuration.
[SWS_Rte_01313]
[SWS_Rte_08564] dThe optional OUT parameter transformer-
Error of the API shall be generated if the PortPrototype of port
<p> is referenced by a PortAPIOption which has the attribute er-
rorHandling set to transformerErrorHandling.c(SRS_Rte_-
00249)
The optional OUT parameter metaDataPtr contains a pointer to the
meta data byte array which is to be forwarded from COM or LdCom.
See [SWS_Rte_03620].
Description: The Rte_Receive API call includes the OUT parameter <data> to
pass back the received data element.
The pointers to the OUT parameters must remain valid until the API
call returns.
[SWS_Rte_07673] dIn case return value is
RTE_E_NO_DATA, RTE_E_TIMEOUT, RTE_E_UNCONNECTED or
RTE_E_IN_EXCLUSIVE_AREA, the OUT parameters shall remain
unchanged.c(SRS_Rte_00094, SRS_Rte_00141)
The OUT parameter transformerError contains the transformer
error which occured during execution of the transformer chain. See
chapter 4.10.5.
Return Value: None in case returnValueProvision of the related dataRe-
ceivePointByArgument(s) is set to noReturnValueProvided.
Otherwise, the return value is used to indicate errors detected by the
RTE during execution of the Rte_Receive API call or errors de-
tected by the communication system.
• [SWS_Rte_02598] dRTE_E_OK – data read successfully.c
(SRS_Rte_00094)
• [SWS_Rte_01094] dRTE_E_NO_DATA – (explicit non-blocking
read) no events were received and no other error occurred when
the read was attempted.c(SRS_Rte_00094)
• [SWS_Rte_01095] dRTE_E_TIMEOUT – (explicit blocking read)
no events were received and no other error occurred when the
read was attempted.c(SRS_Rte_00094, SRS_Rte_00069)
• [SWS_Rte_02572] dRTE_E_LOST_DATA – Indicates that some
incoming data has been lost due to an overflow of the receive
queue or due to an error of the underlying communication lay-
ers. This is not an error of the data returned in the parameters.
This Overlayed Error can be combined with any other er-
ror.c(SRS_Rte_00107, SRS_Rte_00110, SRS_Rte_00094)
• RTE_E_UNCONNECTED – Indicates that the receiver port is not
connected [SWS_Rte_01331].
Unlike RTE_E_NO_DATA, there is no need to retry receiving an
event in this case.
• [SWS_Rte_02743] dRTE_E_IN_EXCLUSIVE_AREA – Used
only for the blocking API. RTE_E_IN_EXCLUSIVE_AREA indi-
cates that the runnable can not enter wait, as one of the Ex-
ecutableEntitys in the call stack of this task is currently
in an exclusive area, see [SWS_Rte_02739]. - In a properly
configured system, this error should not occur. The check can
5.6.13 Rte_Call
Where <p> is the port name and <o> the operation within the client-
server interface categorizing the port. [Byps_] is an optional infix
used when component wrapper method for bypass support is en-
abled for the related software component type (See chapter 4.9.2).c
(SRS_BSW_00310, SRS_Rte_00029)
Existence: [SWS_Rte_01293] dA synchronous Rte_Call API shall be gener-
ated if a SynchronousServerCallPoint references a required
ClientServerOperation.c(SRS_Rte_00051, SRS_Rte_00111)
[SWS_Rte_01294] dAn asynchronous Rte_Call API shall be gen-
erated if an AsynchronousServerCallPoint references a re-
quired ClientServerOperation.c(SRS_Rte_00051, SRS_Rte_-
00111)
A configuration that includes both synchronous and asynchronous
ServerCallPoints for a given ClientServerOperation is invalid
([SWS_Rte_03014]).
[SWS_Rte_CONSTR_09024] Rte_Call API may only be used by
the runnable that describe its usage dThe Rte_Call API may only
be used by the runnable that contains the corresponding Server-
CallPointc()
[SWS_Rte_08566] dThe optional OUT parameter transformer-
Error of the API shall be generated if the PortPrototype of port
5.6.14 Rte_Result
void
Rte_[Byps_]Result_<p>_<o>([IN Rte_Instance <instance>],
[IN/OUT|OUT <param 1>]...
[IN/OUT|OUT <param n>],
[OUT Std_TransformerError transformerError])
Where <p> is the port name and <o> the operation within the client-
server interface categorizing the port. [Byps_] is an optional infix
used when component wrapper method for bypass support is en-
abled for the related software component type (See chapter 4.9.2).c
(SRS_BSW_00310)
The signature can include zero or more IN/OUT and OUT parame-
ters depending on the signature of the operation in the client-server
interface.
Existence: [SWS_Rte_01296] dA non-blocking Rte_Result API shall be gen-
erated if an AsynchronousServerCallResultPoint exists for
the specific RunnableEntity and this AsynchronousServer-
CallResultPoint references an AsynchronousServerCall-
Point which according to [SWS_Rte_01294] leads to the genera-
tion of an asynchronous Rte_Call API but no WaitPoint (of the
RunnableEntity) references an AsynchronousServerCallRe-
turnsEvent that references the AsynchronousServerCallRe-
sultPoint.c(SRS_Rte_00051)
Please note that a non-blocking Rte_Result API does not require
the existence of a AsynchronousServerCallReturnsEvent. If
the AsynchronousServerCallReturnsEvent exists it can be
used to trigger the execution of a RunnableEntity in which the
non-blocking Rte_Result API function may be called.
[SWS_Rte_01297] dA blocking Rte_Result API shall be gen-
erated if an AsynchronousServerCallResultPoint exists for
the specific RunnableEntity and this AsynchronousServer-
CallResultPoint references an AsynchronousServerCall-
Point which according to [SWS_Rte_01294] leads to the genera-
tion of an asynchronous Rte_Call API and a WaitPoint (of the
RunnableEntity) references an AsynchronousServerCallRe-
turnsEvent that references the AsynchronousServerCallRe-
sultPoint.c(SRS_Rte_00051)
[SWS_Rte_CONSTR_09025] Blocking Rte_Result API may only
be used by the runnable that describe the WaitPoint dThe block-
ing Rte_Result API may only be used by the runnable that contains
the corresponding WaitPointc()
[SWS_Rte_01298] dIf an AsynchronousServerCallRe-
turnsEvent references a RunnableEntity and a required
5.6.15 Rte_Pim
<type>/<return reference>
Rte_[Byps_]Pim_<name>([IN Rte_Instance <instance>])
5.6.16 Rte_CData
5.6.17 Rte_Prm
Where <p> is the port name and <o> is the name of the Param-
eterDataPrototype within the ParameterInterface catego-
rizing the port. [Byps_] is an optional infix used when compo-
nent wrapper method for bypass support is enabled for the related
software component type (See chapter 4.9.2).c(SRS_BSW_00310,
SRS_Rte_00155)
Existence: [SWS_Rte_03929] dA Rte_Prm API shall be generated if a Param-
eterAccess references a ParameterDataPrototype in a require
PortPrototype.c(SRS_BSW_00310, SRS_Rte_00155)
Description: The Rte_Prm API provides access to the defined parameter within a
ParameterSwComponentType.
In the case of a standard parameter (swImplPolicy = stan-
dard), i.e. a calibration, the actual data values for a Parameter-
SwComponentType instance may be set after ParameterSwCom-
ponentType compilation.
In the case of fixed parameter or constant parameter, the value
is set during compilation time.
Return Value: [SWS_Rte_03930] dFor primitive data types, the Rte_Prm API shall
return the parameter value. For composite data types, the Rte_-
Prm API shall return a reference (in C, a pointer) to the parameter,
which shall be const. With fixed parameters, only primitive data is
possible.
The return type of Rte_Prm is specified by the Implementation-
DataType associated to the ParameterDataPrototype. Thus
the component does not need to use type casting to access the cal-
ibration parameter.c(SRS_Rte_00051, SRS_Rte_00155, SRS_Rte_-
00171) The Rte_Prm return value provide access to the data value
of the ParameterDataPrototype.
The return type of Rte_Prm is dependent on the Implementation-
DataType of the ParameterDataPrototype and can either be a
value or a pointer to the location where the value can be accessed.
Thus the component does not need to use type casting to convert
access to the ParameterDataPrototype data.
For details of the <return> value definition see section 5.2.6.6.
Notes: The Rte_Prm API should not be used within a pre-compilation direc-
tive, e.g. #if. For such case, the coder should use the Rte_SysCon
definitions which are dedicated to variant handling.
5.6.18 Rte_IRead
Where <re> is the runnable entity name, <p> the port name and <o>
the VariableDataPrototype name. [Byps_] is an optional infix
used when component wrapper method for bypass support is en-
abled for the related software component type (See chapter 4.9.2).c
(SRS_BSW_00310, SRS_Rte_00128)
Existence: [SWS_Rte_01301] dAn Rte_IRead API shall be created for a re-
quired VariableDataPrototype if the RunnableEntity has a
VariableAccess in the dataReadAccess role referring to this
VariableDataPrototype.c(SRS_Rte_00051)
[SWS_Rte_CONSTR_09083] Rte_IRead API may only be used
by the runnable that describe its usage dThe Rte_IRead API may
5.6.19 Rte_IReadRef
Where <re> is the runnable entity name, <p> the port name and <o>
the VariableDataPrototype name. [Byps_] is an optional infix
used when component wrapper method for bypass support is en-
abled for the related software component type (See chapter 4.9.2).c
(SRS_BSW_00310, SRS_Rte_00128)
Existence: [SWS_Rte_04578] dAn Rte_IReadRef API shall be created for a
required VariableDataPrototype if the RunnableEntity has
a VariableAccess in the dataReadAccess role referring to this
VariableDataPrototype.c(SRS_Rte_00051)
[SWS_Rte_CONSTR_09094] Rte_IReadRef API may only be
used by the runnable that describes its usage dThe Rte_IRead-
Ref API may only be used by the runnable that contains the corre-
sponding VariableAccess in the dataReadAccess role.c()
Description: The Rte_IReadRef API provides access to the VariableDat-
aPrototypes declared as accessed by a runnable using Vari-
ableAccesses in the dataReadAccess role. As the API can also
be used in context of category 1A runnables an implementation has
to ensure finite and constant execution times.
No error information is provided by this API. If required, the error
status can be picked up with a separate API, see 5.6.23
The data value can always be read. To provide the required con-
sistency the API provides access to a copy of the data element for
which it’s guaranteed that it never changes during the actual execu-
tion of the runnable entity.
Implicit data read access by a SW-C should always return defined
data.
The optional OUT parameter metaDataPtr contains a pointer to the
meta data byte array which is to be forwarded from COM or LdCom.
See [SWS_Rte_03620].
Return Value: The Rte_IReadRef return value provide access to the data value of
the VariableDataPrototype.
5.6.20 Rte_IWrite
Where <re> is the runnable entity name, <p> the port name and <o>
the VariableDataPrototype name. [Byps_] is an optional infix
used when component wrapper method for bypass support is en-
abled for the related software component type (See chapter 4.9.2).c
(SRS_BSW_00310, SRS_Rte_00129)
Existence: [SWS_Rte_01302] dAn Rte_IWrite API shall be created for a
provided VariableDataPrototype if the RunnableEntity has a
VariableAccess in the dataWriteAccess role referring to this
VariableDataPrototype.c(SRS_Rte_00051)
[SWS_Rte_CONSTR_09084] Rte_IWrite API may only be used
by the runnable that describe its usage dThe Rte_IWrite API
may only be used by the runnable that contains the corresponding
VariableAccess in the dataWriteAccess role.c()
[SWS_Rte_04575]{DRAFT} dThe optional IN parameter forward-
edStatus of the API shall be generated if the PortPrototype of
port <p> is referenced by a PortAPIOption which has the attribute
transformerStatusForwarding set to transformerStatus-
Forwarding.c(SRS_Rte_00249)
Description: The Rte_IWrite API provides write access to the VariableDat-
aPrototypes declared as accessed by a runnable using Vari-
ableAccesses in the dataWriteAccess role. The API function
is guaranteed to be have constant execution time and therefore can
also be used within category 1A runnable entities.
No access error information is required for the user – the value can
always be written. To provide the required write-back semantics the
RTE only makes written values available to other entities after the
writing runnable entity has terminated.
[SWS_Rte_03746] dThe Rte_IWrite API call includes the IN pa-
rameter <data> to pass the data element to write.c(SRS_Rte_-
00051, SRS_Rte_00129)
The IN parameter <data> is passed by value or reference accord-
ing to the ImplementationDataType as described in the section
5.2.6.5.
If the IN parameter <data> is passed by reference, the pointer must
remain valid until the API call returns.
The optional IN parameter forwardedStatus contains the trans-
former status which shall be reconstructed inside the transformer
chain. See ASWS TransformerGeneral [26].
The optional IN parameter metaDataPtr contains a pointer to the
meta data byte array which is to be forwarded to COM or LdCom.
See [SWS_Rte_03620].
Return Value: None.
Notes: None.
5.6.21 Rte_IWriteRef
Where <re> is the runnable entity name, <p> the port name and <o>
the VariableDataPrototype name. [Byps_] is an optional infix
used when component wrapper method for bypass support is en-
abled for the related software component type (See chapter 4.9.2).c
(SRS_BSW_00310, SRS_Rte_00129)
Existence: [SWS_Rte_05510] dAn Rte_IWriteRef API shall be created for a
provided VariableDataPrototype if the RunnableEntity has
a VariableAccess in the dataWriteAccess role referring to this
VariableDataPrototype.c(SRS_Rte_00051)
5.6.22 Rte_IInvalidate
Where <re> is the runnable entity name, <p> the port name and <o>
the VariableDataPrototype name. [Byps_] is an optional infix
used when component wrapper method for bypass support is en-
abled for the related software component type (See chapter 4.9.2).c
(SRS_BSW_00310, SRS_Rte_00078)
Existence: [SWS_Rte_03801] dAn Rte_IInvalidate API shall be created for
a provided VariableDataPrototype if the RunnableEntity has
VariableAccesses in the dataWriteAccess role referring to this
VariableDataPrototype and the associated Invalidation-
Policy of the VariableDataPrototype is set to keep, replace
or externalReplacement.c(SRS_Rte_00051, SRS_Rte_00078)
[SWS_Rte_CONSTR_09086] Rte_IInvalidate API may only be
used by the runnable that is describing an write access to
the data dThe Rte_IInvalidate API may only be used by the
runnable that contains the corresponding VariableAccess in the
dataWriteAccess role to the VariableDataPrototype where
the associated InvalidationPolicy of the VariableDataPro-
totype is set to keep or replace.c()
Description: The Rte_IInvalidate API takes no parameters other than the in-
stance handle – the return value is used to indicate the success, or
otherwise, of the API call to the caller.
[SWS_Rte_03802] dIn case of a primitive VariableDataProto-
type the Rte_IInvalidate shall be implemented as a macro that
writes the invalidValue to the buffer.c(SRS_Rte_00078)
5.6.23 Rte_IStatus
Where <re> is the runnable entity name, <p> the port name and <o>
the VariableDataPrototype name. [Byps_] is an optional infix
used when component wrapper method for bypass support is en-
abled for the related software component type (See chapter 4.9.2).c
(SRS_Rte_00147, SRS_Rte_00078)
Existence: [SWS_Rte_02600] dAn Rte_IStatus API shall be created for a
required VariableDataPrototype if a RunnableEntity has a
VariableAccess in the dataReadAccess role referring to this
VariableDataPrototype, and
• if at the RPortPrototype or PRPortPrototype a Non-
queuedReceiverComSpec with either
– the attribute aliveTimeout set to a value greater than zero
and/or
6. RTE_E_OUT_OF_RANGE
7. RTE_E_SOFT_TRANSFORMER_ERROR
c(SRS_Rte_00147, SRS_Rte_00078, SRS_Rte_00184, SRS_Rte_-
00180)
Please note that RTE_E_MAX_AGE_EXCEEDED is an overlay error
and could be combined with any other error. Nevertheless in case
of RTE_E_UNCONNECTED or RTE_E_COM_STOPPED time out mon-
itoring is NOT active which in turn excludes the coincidence of
RTE_E_MAX_AGE_EXCEEDED.
5.6.24 Rte_IrvIRead
Where <re> is the name of the runnable entity the API might be
used in, <o> is the name of the VariableDataPrototype in role
implicitInterRunnableVariable. [Byps_] is an optional in-
fix used when component wrapper method for bypass support is en-
abled for the related software component type (See chapter 4.9.2).c
(SRS_BSW_00310, SRS_Rte_00142)
Existence: [SWS_Rte_01303] dAn Rte_IrvIRead API shall be created for
each VariableAccess in role readLocalVariable to an
implicitInterRunnableVariable.c(SRS_Rte_00051, SRS_-
Rte_00142)
[SWS_Rte_CONSTR_09087] Rte_IrvIRead API may only be
used by the runnable that describe its usage dThe Rte_-
IrvIRead API may only be used by the runnable that contains
the corresponding VariableAccess in the readLocalVariable
role.c()
Description: The Rte_IrvIRead API provides read access to the defined Inter-
RunnableVariables with implicit behavior within a component descrip-
tion.
The return value is used to deliver the requested data value. The
return value is not required to pass error information to the user be-
cause no inter-ECU communication is involved and there will always
be a readable value present.
Return Value: The Rte_IrvIRead return value provide access to the data value of
the InterRunnableVariable.
The return type of Rte_IrvIRead is dependent on the Implemen-
tationDataType of the InterRunnableVariable and can either be a
value or a pointer to the location where the value can be accessed.
Thus the component does not need to use type casting to convert
access to the InterRunnableVariable data.
For details of the <return> value definition see section 5.2.6.6.
Notes: The runnable entity name in the signature allows runnable context
specific optimizations.
The concept of InterRunnableVariables is explained in section
4.2.6.6. More details about InterRunnableVariables with implicit be-
havior is explained in section 4.2.6.6.1.
5.6.25 Rte_IrvIReadRef
Where <re> is the name of the runnable entity the API might be
used in, <o> is the name of the VariableDataPrototype in role
implicitInterRunnableVariable. [Byps_] is an optional in-
fix used when component wrapper method for bypass support is en-
abled for the related software component type (See chapter 4.9.2).c
(SRS_BSW_00310, SRS_Rte_00142)
Existence: [SWS_Rte_04580] dAn Rte_IrvIReadRef API shall be cre-
ated for each VariableAccess in role readLocalVariable
to an implicitInterRunnableVariable.c(SRS_Rte_00051,
SRS_Rte_00142)
[SWS_Rte_CONSTR_09095] Rte_IrvIReadRef API may only
be used by the runnable that describes its usage dThe Rte_-
IrvIReadRef API may only be used by the runnable that contains
the corresponding VariableAccess in the readLocalVariable
role.c()
Description: The Rte_IrvIReadRef API provides read access to the defined In-
terRunnableVariables with implicit behavior within a component de-
scription.
Return Value: The Rte_IrvIReadRef return value provides access to the data
value of the InterRunnableVariable.
The return type of Rte_IrvIReadRef is a pointer to the location
where the value can be accessed.
Notes: The runnable entity name in the signature allows runnable context
specific optimizations.
The concept of InterRunnableVariables is explained in section
4.2.6.6. More details about InterRunnableVariables with implicit be-
havior is explained in section 4.2.6.6.1.
5.6.26 Rte_IrvIWrite
5.6.27 Rte_IrvIWriteRef
5.6.28 Rte_IrvRead
<return> Rte_[Byps_]IrvRead_<re>_<o>(
[IN RTE_Instance <instance>])
void Rte_[Byps_]IrvRead_<re>_<o>(
[IN RTE_Instance <instance>],
OUT <data>)
Where <re> is the name of the runnable entity the API might be used
in, <o> is the name of the InterRunnableVariables. [Byps_] is an
optional infix used when component wrapper method for bypass sup-
port is enabled for the related software component type (See chapter
4.9.2).
The complex type signature is used, if the Implementation-
DataType of the InterRunnableVariable resolves to Array
Implementation Data Type or Structure Implementation
Data Type, otherwise the primitive type signature is used.c(SRS_-
BSW_00310, SRS_Rte_00142)
Existence: [SWS_Rte_01305] dAn Rte_IrvRead API shall be created for each
read InterRunnableVariable using explicit access.c(SRS_Rte_00142,
SRS_Rte_00051)
[SWS_Rte_CONSTR_09089] Rte_IrvRead API may only be
used by the runnable that describe its usage dThe Rte_IrvRead
API may only be used by the runnable that contains the correspond-
ing VariableAccess in the readLocalVariable role.c()
Description: The Rte_IrvRead API provides read access to the defined Inter-
RunnableVariables with explicit behavior within a component descrip-
tion.
The return value is not required to pass error information to the user
because no inter-ECU communication is involved and there will al-
ways be a readable value present.
For the primitive type signature, the return value is used to deliver
the requested data value. For the complex type signature, the return
value is void.
For the complex type signature, the Rte_IrvRead API call includes
the OUT parameter <data> to pass back the received data. The
OUT parameter <data> is typed as reference (pointer) to the type
of the InterRunnableVariable. The pointer to the OUT parameter
<data> must remain valid until the API call returns.
Return Value: The Rte_IrvRead return value provide access to the data value of
the InterRunnableVariable.
The return type of Rte_IrvRead is dependent on the Implementa-
tionDataType of the InterRunnableVariable. Thus the component
does not need to use type casting to convert access to the Inter-
RunnableVariable data.
5.6.29 Rte_IrvWrite
Where <re> is the name of the runnable entity the API might be
used in, <o> is the name of the InterRunnableVariable to access
and <data> is the placeholder for the data the InterRunnableVari-
able shall be set to. [Byps_] is an optional infix used when com-
ponent wrapper method for bypass support is enabled for the related
software component type (See chapter 4.9.2).c(SRS_BSW_00310,
SRS_Rte_00142)
Existence: [SWS_Rte_01306] dAn Rte_IrvWrite API shall be created for
each written InterRunnableVariable using explicit access.c(SRS_-
Rte_00142, SRS_Rte_00051)
[SWS_Rte_CONSTR_09090] Rte_IrvWrite API may only be
used by the runnable that describe its usage dThe Rte_-
IrvWrite API may only be used by the runnable that contains the
corresponding VariableAccess in the writtenLocalVariable
role.c()
5.6.30 Rte_Enter
5.6.31 Rte_Exit
5.6.32 Rte_Mode
There exist two versions of the Rte_Mode API. Depending on the attribute enhanced-
ModeApi in the software component description there shall be provided different ver-
sions of this API (see also 5.6.33).
Purpose: Provides the currently active mode of a mode switch port.
Signature: [SWS_Rte_02628] d
<return>
Rte_[Byps_]Mode_<p>_<o>([IN Rte_Instance <instance>])
of two modes are active. In this case, the Rte_Mode will return
RTE_TRANSITION_<ModeDeclarationGroup>.
The Rte_Mode will return the same mode for all mode switch
ports that are connected to the same mode switch port of the
mode manager (see [SWS_Rte_02630]).
It is supported to have ModeAccessPoint(s) referring the provide
mode switch ports of the mode manager to provide access for
the mode manager on the information that the RTE uses for the
mode disabling dependency’s.
Return Value: The return type of Rte_Mode is dependent on the Implementa-
tionDataType of the ModeDeclarationGroup. It shall return
the value of the ModeDeclarationGroupPrototype. The type
name shall be equal to the shortName of the Implementation-
DataType.
The return value of the Rte_Mode is used to inform the caller about
the current mode of the mode machine instance. The Rte_Mode
API shall return the following values:
[SWS_Rte_07666] dDuring a transition of the
mode machine instance, Rte_Mode shall return
RTE_TRANSITION_<ModeDeclarationGroup>, where
<ModeDeclarationGroup> is the short name of the Mode-
DeclarationGroup.c(SRS_Rte_00144)
[SWS_Rte_02660] dWhen the mode machine in-
stance is in a defined mode, Rte_Mode shall return
RTE_MODE_<ModeDeclarationGroup>_<ModeDeclaration>,
where <ModeDeclarationGroup> is the short name of the Mode-
DeclarationGroup and <ModeDeclaration> is the short name
of the currently active ModeDeclaration.c(SRS_Rte_00144)
[SWS_Rte_06742] dThe API Rte_Mode shall return the value
RTE_TRANSITION_<ModeDeclarationGroup> for a mode ma-
chine instance assigned to the RTE ([SWS_Rte_07533]) un-
til the RTE has been initialized and where <ModeDeclaration-
Group> is the short name of the ModeDeclarationGroup.c(SRS_-
Rte_00144)
[SWS_Rte_06781] dIf
modeManagerErrorBehavior.errorReactionPolicy is set
to defaultMode the API Rte_Mode shall return the value
RTE_TRANSITION_<ModeDeclarationGroup> for a mode ma-
chine instance while the partition of the mode users is stopped
or restarting and until the RTE dequeues the next mode switch
notifications.
Purpose: Provides the currently active mode of a mode switch port. If the
mode machine instance is in transition additionally the values of
the previous and the next mode are provided.
Signature: [SWS_Rte_08500] d
<return>
Rte_[Byps_]Mode_<p>_<o>([IN Rte_Instance <instance>,]
OUT <previousmode>,
OUT <nextmode>)
5.6.34 Rte_Trigger
Where <p> is the port name and <o> the Trigger within the trig-
ger interface categorizing the port. [Byps_] is an optional infix used
when component wrapper method for bypass support is enabled for
5.6.35 Rte_IrTrigger
void Rte_[Byps_]IrTrigger_<re>_<o>(
[IN Rte_Instance <instance>])
Where <re> is the name of the runnable entity the API might be
used in and <o> is the name of the InternalTriggeringPoint.
[Byps_] is an optional infix used when component wrapper method
for bypass support is enabled for the related software component
type (See chapter 4.9.2).c(SRS_Rte_00163)
Existence: [SWS_Rte_07204] dThe existence of an InternalTriggering-
Point shall result in the generation of a Rte_IrTrigger API.c
(SRS_Rte_00163)
[SWS_Rte_CONSTR_09033] Rte_IrTrigger API may only be
used by the runnable that describe its usage dThe Rte_IrTrig-
ger API may only be used by the runnable that contains the corre-
sponding InternalTriggeringPoint.c()
Description: The Rte_IrTrigger triggers an execution for all runnables whose
InternalTriggerOccurredEvent is associated to the In-
ternalTriggeringPoint.
Return Value: None if returnValueProvision of the related InternalTrig-
geringPoint(s) is set to noReturnValueProvided.
[SWS_Rte_06721] dThe Rte_IrTrigger API shall return the fol-
lowing values:
• RTE_E_OK if the trigger was successfully queued
• RTE_E_LIMIT if the trigger was not queued because the maxi-
mum queue size is already reached.
if returnValueProvision of the related InternalTrigger-
ingPoint(s) not set to noReturnValueProvided.c(SRS_Rte_-
00235)
Notes: None.
5.6.36 Rte_IFeedback
Std_ReturnType
Rte_[Byps_]IFeedback_<re>_<p>_<o> (
[IN RTE_Instance <instance>])
Where <re> is the runnable entity name, <p> the port name and <o>
the VariableDataPrototype within the sender-receiver interface
categorizing the port. [Byps_] is an optional infix used when com-
ponent wrapper method for bypass support is enabled for the related
software component type (See chapter 4.9.2).c(SRS_BSW_00310,
SRS_Rte_00122, SRS_Rte_00129, SRS_Rte_00185)
Existence: Note: according to [SWS_Rte_01283], acknowledgment is enabled
for a provided VariableDataPrototype by the existence of a
TransmissionAcknowledgementRequest in the SenderCom-
Spec.
[SWS_Rte_07646] dAn Rte_IFeedback API shall be created for
a provided VariableDataPrototype if acknowledgment is en-
abled and the RunnableEntity has a VariableAccess in the
dataWriteAccess role referring to this VariableDataProto-
type.c(SRS_Rte_00122, SRS_Rte_00129, SRS_Rte_00185)
[SWS_Rte_07647] dAn Rte_IFeedback API shall be created for a
provided VariableDataPrototype if acknowledgment is enabled
and a DataWriteCompletedEvent references the RunnableEn-
tity as well as the VariableAccess which in turn references the
VariableDataPrototype.c(SRS_Rte_00122, SRS_Rte_00129,
SRS_Rte_00185)
[SWS_Rte_07648] dIf acknowledgment is enabled for a pro-
vided VariableDataPrototype and a DataWriteCompletedE-
vent references a runnable entity as well as the VariableAc-
cess which in turn references the VariableDataPrototype,
the runnable entity shall be activated when the transmission ac-
knowledgment occurs or when a timeout was detected by the
RTE. See [SWS_Rte_07379].c(SRS_Rte_00122, SRS_Rte_00129,
SRS_Rte_00185)
[SWS_Rte_CONSTR_09000] Rte_IFeedback API may only be
used by the RunnableEntitys that describe its usage dThe
Rte_IFeedback API shall only be used by a RunnableEntity
that either has a VariableAccess in the dataWriteAccess role
referring to the VariableDataPrototype or is triggered by a
DataWriteCompletedEvent referring to the VariableAccess
which in turn references the VariableDataPrototype.c()
Description: The Rte_IFeedback API takes no parameters other than the in-
stance handle – the return value is used to indicate the acknowledg-
ment status to the caller.
chain was a soft error and no hard error occurred in the trans-
former chain.c(SRS_Rte_00094, SRS_Rte_00091)
The RTE_E_NO_DATA, RTE_E_TRANSMIT_ACK and
RTE_E_UNCONNECTED return values are not considered to be
an error but rather indicates correct operation of the API call.
[SWS_Rte_07651] dThe initial return value of the Rte_IFeed-
back API, when the runnable entity is executed before any attempt
to write some data shall be RTE_E_TRANSMIT_ACK.c(SRS_Rte_-
00094, SRS_Rte_00122, SRS_Rte_00129, SRS_Rte_00185)
[SWS_Rte_08074] dIn case of multiple faults during a call
of Rte_IFeedback the resulting return value shall be de-
rived according to the following priority rules (highest prior-
ity first): (1) RTE_E_UNCONNECTED, (2) RTE_E_TIMEOUT, (3)
RTE_E_HARD_TRANSFORMER_ERROR, (4) RTE_E_COM_STOPPED,
(5) RTE_E_NO_DATA, (6) RTE_E_SOFT_TRANSFORMER_ERROR, (7)
RTE_E_TRANSMIT_ACK.c(SRS_Rte_00122)
Notes: See the notes for the Rte_Feedback API in section 5.6.8.
5.6.37 Rte_IsUpdated
5.6.38 Rte_PBCon
The return type of Rte_PBCon shall be in this case conform with the
ImplementationDataType defined by VariationPointProxy.
implementationDataType.c(SRS_Rte_00191)
[SWS_Rte_08069] dFor VariationPointProxys of category
CONDITION the return value of Rte_PBCon shall be the result of
the evaluated expression P BExp: P BV arCon (
V
VariationPointProxy.postBuildValueAccess = Post-
BuildVariantCondition.value), where PBVarCon is the set of
all postBuildVariantConditions of the VariationPoint-
Proxy. If a pre-build condition is defined in addition the return
value shall be the result of the evaluated expression P P BExp:
V
VariationPointProxy.conditionAccess P BExp.
The return type of Rte_PBCon shall be in this case the Platform Type
boolean.c(SRS_Rte_00191)
Notes: [SWS_Rte_08070] dFor VariationPointProxys of category
CONDITION that are using both conditionAccess and post-
BuildVariantCondition the RTE shall ensure in Rte_PBCon
that pre-build conditions have precedence over post-build condi-
tions.c(SRS_Rte_00191)
More details regarding Rte_PBCon API can be found in section 4.7.5.
5.6.39 Rte_IsAvailable
5.6.40 Rte_SetAvailable
5.6.41 Rte_SetMetaDataItem
5.6.42 Rte_GetMetaDataItem
5.6.43 Rte_GetMetaDataLength
Purpose: Gets the length of the meta data byte array of optional meta data of
a data element.
Signature: [SWS_Rte_03626] d
<length>
Rte_GetMetaDataLength_<o>()
5.7.1 Signature
The definition of all runnable entities, whatever the RTEEvent that triggers their exe-
cution, follows the same basic form.
[SWS_Rte_01126] d
<void|Std_ReturnType> [Byps_]<prefix><name>(
[IN Rte_Instance <instance>],
[IN Rte_ActivatingEvent_<name> <activation>],
[role parameters])
Where <name> 8 is the symbol describing the runnable’s entry point and <prefix> is
the optional SymbolProps.symbol attribute of the AtomicSwComponentType own-
ing the RunnableEntity, i.e. <prefix> will only appear if the attribute Symbol-
Props.symbol exists. The usage of Rte_ActivatingEvent is optional and defined
in [SWS_Rte_08051]. The definition of the role parameters is defined in Section 5.7.3.
[Byps_] is an optional infix used when component wrapper method for bypass sup-
port is enabled for the related software component type (See chapter 4.9.2).c(SRS_-
Rte_00031, SRS_Rte_00011, SRS_Rte_00238)
Section 5.2.6.4 contains details on a recommended naming conventions for runnable
entities based on the RTEEvent that triggers the runnable entity. The recommended
naming convention makes explicit the functions that implement runnable entities as well
as clearly associating the runnable entity and the applicable data element or operation.
The RTE determines the required role parameters, and hence the prototype of the
entry point, for a runnable entity based on information in the input information. The
entry point defined in the component source must be compatible with the parameters
passed by the RTE when the runnable entity is triggered by the RTE and therefore the
RTE generator is required to emit a prototype for the function.
[SWS_Rte_01132] dThe RTE generator shall emit a prototype for the runnable entity’s
entry point in the Application Header File, if the RunnableEntity is triggered by an
RTEEvent and no SwcBswRunnableMapping exists for it.c(SRS_Rte_00087, SRS_-
Rte_00051, SRS_Rte_00031)
The prototype for a function implementing the entry point of a runnable entity is emitted
for both “RTE Contract” and “RTE Generation” phases. The function name for the
prototype is the runnable entity’s entry point. The prototype of the entry point function
includes the runnable entity’s instance handle and its role parameters, see Listing 5.1.
[SWS_Rte_07194] dThe RTE Generator shall wrap each RunnableEntity’s Entry
Point Prototype in the Application Header File with the Memory Mapping and Compiler
Abstraction macros.
1 #define [Byps_]<c>_START_SEC_<sadm>
2 #include "[Byps_]<c>_MemMap.h"
3
8
Runnable entities have two “names” associated with them in the AUTOSAR Software Component
Template; the runnable’s identifier and the entry point’s symbol. The identifier is used to reference
the runnable entity within the input data and the symbol used within code to identify the runnable’s
implementation. In the context of a prototype for a runnable entity, “name” is the runnable entity’s entry
point symbol.
9 #define [Byps_]<c>_STOP_SEC_<sadm>
10 #include "[Byps_]<c>_MemMap.h"
5 #endif
are integrated in the same ECU name clashes might occur if the same symbol is ac-
cidentally used twice. To ease the dissolving of name clashes the RTE supports an
abstraction of the RunnableEntity symbol in the implementation of the software
component.
[SWS_Rte_06713] dThe RTE generator shall emit for each RunnableEntity a define
for a symbolic name of the RunnableEntity.
1 #define RTE_RUNNABLE_<name> <prefix><symbol>
Example 5.29
For software component "‘HugeSwc"’ with a runnable "‘FOO"’ where the Symbol-
Props.symbol is set to "‘TinySwc"’ the Application Header File contains the definition:
1 /* Application Header File of HugeSwc*/
2 #define RTE_RUNNABLE_FOO TinySwcfoo
This can be used in the software components c file for the definition of the runnable:
1 /* software component c file */
2 RTE_RUNNABLE_FOO()
3 {
4 /* The algorithm of foo */
5 return;
6 }
The role parameters are optional and their presence and types depend on the RTE-
Event that triggers the execution of the runnable entity. The role parameters that are
necessary for each triggering RTEEvent are defined in Section 5.7.5.
[SWS_Rte_06703] dThe RTE Generator shall name role parameters according to the
value of the symbol attribute of RunnableEntityArguments if RunnableEntit-
yArguments are defined for the related RunnableEntity and if no mapping to a
BswModuleEntry is defined.c(SRS_Rte_00087)
[SWS_Rte_06704] dThe RTE Generator shall name role parameters according to the
shortName of the SwServiceArgs of the mapped BswModuleEntry if a mapping
of the RunnableEntity to a BswModuleEntry is defined.c(SRS_Rte_00087)
Please note that RunnableEntityArguments defined for a RunnableEntity
which is mapped to a BswModuleEntry are irrelevant.
[SWS_Rte_06705] dThe RTE Generator shall generate nameless role parameters if
neither RunnableEntityArguments nor a mapping to a BswModuleEntry is de-
fined for the RunnableEntity.c(SRS_Rte_00087)
Further details about the mapping of RunnableEntitys and BswModuleEntry can
be found section "‘Synchronization with a Corresponding SWC"’ of the document [9]
A function in C or C++ is required to have a return type. The RTE only uses the function
return value to return application error codes of a server operation.
[SWS_Rte_01130] dA function implementing a runnable entity entry point shall only
have the return type Std_ReturnType, if the runnable entity represents a server op-
eration and the AUTOSAR interface description of that client server communication
lists potential application errors. All other functions implementing a runnable entity
entry point shall have a return type of void.c(SRS_Rte_00124, SRS_Rte_00031)
Note: If the potential application errors include RTE_E_OK, this shall also lead to a
return type of Std_ReturnType.
[SWS_Rte_CONSTR_09045] The upper two bits of the of the server return value
are reserved dOnly the least significant six bit of the return value of a server runnable
shall be used by the application to indicate an error. The upper two bit shall be zero.c()
See also [SWS_Rte_02573].
The RTE is the sole entity that can trigger the execution of a runnable entity. The RTE
triggers runnable entities in response to different RTEEvents.
The most basic RTEEvent that can trigger a runnable entity is the TimingEvent
that causes a runnable entity to be periodically triggered by the RTE. In contrast, the
remaining RTEEvents that can trigger runnable entities all occur as a result of com-
munication activity or as a result of mode switches.
The following subsections describe the conditions that can trigger execution of a runn-
able entity. For each triggering event the signature of the function (the “entry point”)
that implements the runnable entity is defined. The signature definition includes two
classes of parameters for each function;
1. The instance handle – the parameter type is always Rte_Instance.
([SWS_Rte_01016])
2. The role parameters – used to pass information required by the runnable entity
as a consequence of the triggering condition. The presence (and number) of role
parameters depends solely on the triggering condition.
5.7.5.1 TimingEvent
c(SRS_Rte_00072)
5.7.5.2 BackgroundEvent
c(SRS_Rte_00072)
5.7.5.3 SwcModeSwitchEvent
c(SRS_Rte_00072, SRS_Rte_00143)
5.7.5.4 AsynchronousServerCallReturnsEvent
Purpose: Triggers a runnable entity used to “collect” the result and status infor-
mation of an asynchronous client-server operation.
Signature: [SWS_Rte_01133] d
void <name>([IN Rte_Instance <instance>])
5.7.5.5 DataReceiveErrorEvent
Purpose: Triggers a runnable entity used to “collect” the error status of a data
element with “data” semantics on the receiver side.
Signature: [SWS_Rte_01359] d
void <name>([IN Rte_Instance <instance>])
5.7.5.6 OperationInvokedEvent
Purpose: An RTEEvent that causes the RTE to trigger a runnable entity whose
entry point provides an implementation for a client-server operation.
This event occurs in response to a received request from a client to
execute the operation.
Signature: [SWS_Rte_01166] d
<void|Std_ReturnType> <name>
([IN Rte_Instance <instance>],
[IN <portDefArg 1>, ...
IN <portDefArg n>],
[IN|INOUT|OUT] <param 1>, ...
[IN|INOUT|OUT] <param n>,
[IN Std_TransformerError transformerError])
The data type of each port defined argument is taken from the soft-
ware component template, as defined in valueType.
Note that the port-defined argument values are optional, depending
upon the server’s internal behavior.
[SWS_Rte_07023] dThe operation parameters <param 1>, ...
<param n> are the specified ArgumentDataPrototypes of the
ClientServerOperation that is associated with the Opera-
tionInvokedEvent. The operation parameters shall be ordered
according to the ClientServerOperation’s ordered list of the
ArgumentDataPrototypes.c(SRS_Rte_00029, SRS_Rte_00079,
SRS_Rte_00072)
[SWS_Rte_07024] dIf the ServerArgumentImplPolicy is set
to useArgumentType the data type of the <param> is de-
rived from the ArgumentDataPrototype’s Implementation-
DataType.c(SRS_Rte_00029, SRS_Rte_00079, SRS_Rte_00072)
In case of [SWS_Rte_07024] the RunnableEntitys parameter are
equally typed as the parameter for the Rte_Call API described in
section 5.2.6.5
[SWS_Rte_08569] dThe optional IN parameter transformer-
Error of the API shall be generated if the PortPrototype of port
<p> is referenced by a PortAPIOption which has the attribute er-
rorHandling set to transformerErrorHandling.c(SRS_Rte_-
00249)
The IN parameter transformerError contains the transformer er-
ror which occured during execution of the transformer chain. See
chapter 4.10.5. Because the runnable can only be triggered if the
error is no hard error, the error given here is always a soft error.
Hard errors are notified via TransformerHardErrorEvents.
[SWS_Rte_07026] dThe RTE-Generator shall reject configurations
violating [constr_1297].c(SRS_Rte_00029, SRS_Rte_00079, SRS_-
Rte_00072, SRS_Rte_00018)
[SWS_Rte_07027] dIf the ServerArgumentImplPolicy is set to
useVoid the data type of the <param> is set to void * for any kind
of data type.c(SRS_Rte_00029, SRS_Rte_00079, SRS_Rte_00072)
It is considered an invalid configuration if ServerArgumentIm-
plPolicy uses void in case of primitive IN arguments. See [con-
str_1286] in Software Component Template specification.
[SWS_Rte_08800] dThe RTE-Generator shall reject configurations
violating [constr_1286].c(SRS_Rte_00079, SRS_Rte_00018)
Return Value: If the AUTOSAR interface description of the client server commu-
nication lists possible error codes, these are returned by the func-
tion using the return type Std_ReturnType. If no error codes
are defined for this interface, the return type shall be void (see
[SWS_Rte_01130]).
This means that even if a runnable entity implementing a server "only"
returns E_OK, application errors have to be defined. Else the return
types do not match.
5.7.5.7 DataReceivedEvent
Purpose: A runnable entity triggered by the RTE to receive and process a signal
received on a sender-receiver interface.
Signature: [SWS_Rte_01135] d
void <name>([IN Rte_Instance <instance>])
5.7.5.8 DataSendCompletedEvent
Purpose: A runnable entity triggered by the RTE to receive and process trans-
mit acknowledgment notifications.
Signature: [SWS_Rte_01137] d
void <name>([IN Rte_Instance <instance>])
5.7.5.9 ModeSwitchedAckEvent
Purpose: A runnable entity triggered by the RTE to receive and process mode
switched acknowledgment notifications.
Signature: [SWS_Rte_02758] d
void <name>([IN Rte_Instance <instance>])
5.7.5.10 SwcModeManagerErrorEvent
5.7.5.11 ExternalTriggerOccurredEvent
c(SRS_Rte_00162, SRS_Rte_00072)
[SWS_Rte_05301] dThe optional IN parameter transformer-
Error of the API shall be generated if the PortPrototype of port
5.7.5.12 InternalTriggerOccurredEvent
c(SRS_Rte_00163, SRS_Rte_00072)
Notes: –
5.7.5.13 DataWriteCompletedEvent
Purpose: A runnable entity triggered by the RTE to receive and process trans-
mit acknowledgment notifications for implicit communication.
Signature: [SWS_Rte_07379] d
void <name>([IN Rte_Instance <instance>])
5.7.5.14 InitEvent
c(SRS_Rte_00072, SRS_Rte_00240)
Notes: The runnable entity triggered by an InitEvent RTEEvent is sup-
posed to be used for initialization purposes, i.e. for starting and
5.7.5.15 TransformerErrorEvent
c(SRS_Rte_00072, SRS_Rte_00249)
Notes: The RunnableEntity triggered by a TransformerHardEr-
rorEvent RTEEvent is supposed to be used for reaction on a hard
transformer error on the server side of a client/server communication
or in the external trigger sink. The IN parameter transformer-
Error contains the transformer error which occurred during execu-
tion of the transformer chain. See chapter 4.10.5.
5.7.5.16 OsTaskExecutionEvent
c(SRS_Rte_00072)
Notes: The runnable entity triggered by an OsTaskExecutionEvent re-
acts on the execution of the OS Task to which it is mapped. The
main use case for this event is scheduling of RunnableEntitys of
complex drivers which have to react on task executions.
5.7.6 Reentrancy
Example 5.30
Consider a component c1 with runnable entity re1 and entry point ep that is instanti-
ated twice on the same ECU.
The two instances of c1 each has a separate instance of re1. Software-component
instances are scheduled independently and therefore each instance of re1 could be
concurrently executing ep.
The potential for concurrent execution of runnable entities when multiple instances of
a software-component are created means that each entry point should be reentrant.
5.8.1 Rte_Start
4
Available via Rte.h
c()
5.8.1.1 Signature
[SWS_Rte_02569] d
Std_ReturnType Rte_Start(void)
c(SRS_BSW_00310, SRS_Rte_00116)
5.8.1.2 Existence
5.8.1.3 Description
5.8.1.5 Notes
5.8.2 Rte_Stop
c()
5.8.2.1 Signature
[SWS_Rte_02570] d
Std_ReturnType Rte_Stop(void)
c(SRS_Rte_00116)
5.8.2.2 Existence
5.8.2.3 Description
5.8.2.5 Notes
5.8.3 Rte_PartitionTerminated
c()
5.8.3.1 Signature
[SWS_Rte_07330] d
void Rte_PartitionTerminated_<PID>(void)
c(SRS_Rte_00223)
Where <PID> is the name of the EcucPartition according to the ECU Configuration
Description [5].
5.8.3.2 Existence
5.8.3.3 Description
None.
5.8.3.5 Notes
5.8.4 Rte_PartitionRestarting
c()
5.8.4.1 Signature
[SWS_Rte_07620] d
void Rte_PartitionRestarting_<PID>(void)
Where <PID> is the name of the EcucPartition according to the ECU Configuration
Description [5].c(SRS_Rte_00223)
5.8.4.2 Existence
5.8.4.3 Description
None.
5.8.4.5 Notes
5.8.5 Rte_RestartPartition
The API Rte_RestartPartition initializes the RTE resources allocated for a parti-
tion.
[] d
Service Name Rte_RestartPartition_<PID>
Syntax Std_ReturnType Rte_RestartPartition_<PID> (
void
)
c()
5.8.5.1 Signature
[SWS_Rte_07188] d
Std_ReturnType Rte_RestartPartition_<PID>(void)
Where <PID> is the name of the EcucPartition according to the ECU Configuration
Description [5].c(SRS_Rte_00224)
5.8.5.2 Existence
5.8.5.3 Description
5.8.5.5 Notes
5.8.6 Rte_Init
c()
5.8.6.1 Signature
[SWS_Rte_06749] d
void Rte_Init_<InitContainer>(void)
5.8.6.2 Existence
5.8.6.3 Description
none
5.8.6.5 Notes
5.8.7 Rte_StartTiming
c()
5.8.7.1 Signature
[SWS_Rte_06754] d
void Rte_StartTiming(void)
c(SRS_Rte_00240)
5.8.7.2 Existence
5.8.7.3 Description
none
5.8.7.5 Notes
The COM signals used for communication are defined in the input information provided
by Com.
[SWS_Rte_03007] dThe RTE shall initiate an inter-ECU transmission using the COM
API with the handle id of the corresponding COM signal for primitive data element
SenderReceiverToSignalMapping.c(SRS_Rte_00019)
[SWS_Rte_03008] dThe RTE shall initiate an inter-ECU transmission using the COM
API with the handle id of the corresponding COM signal group for composite data ele-
ments or operation arguments SenderReceiverToSignalGroupMapping.c(SRS_-
Rte_00019)
Purpose: Implement the call-back functions that AUTOSAR COM / LdCom in-
vokes as a result of inter-ECU communication, where:
• A data item/event is ready for reception by a receiver.
• A transmission acknowledgment shall be routed to a sender.
• An operation shall be invoked by a server.
• The result of an operation is ready for reading by a client.
Signature: [SWS_Rte_03000] d
void <CallbackRoutineName> (void);
c(SRS_Rte_00019)
Where <CallbackRoutineName> is the name of the call-back func-
tion.
Description: Prototypes for the call-back <CallbackRoutineName> provided by
AUTOSAR COM / LdCom.
Return Value: No return value : void
In the following sections, the naming convention of <CallBackRoutineName> are
defined:
5.9.2.1.1 Rte_COMCbk_<sn>
[] d
Service Name Rte_COMCbk_<sn>
Syntax void Rte_COMCbk_<sn> (
void
)
c()
[SWS_Rte_03001] d
void Rte_COMCbk_<sn>(void)
5.9.2.1.2 Rte_COMCbkTAck_<sn>
[] d
Service Name Rte_COMCbkTAck_<sn>
Syntax void Rte_COMCbkTAck_<sn> (
void
)
c()
[SWS_Rte_03002] d
void Rte_COMCbkTAck_<sn>(void)
5.9.2.1.3 Rte_COMCbkTErr_<sn>
[] d
Service Name Rte_COMCbkTErr_<sn>
Syntax void Rte_COMCbkTErr_<sn> (
void
)
4
Reentrancy Non Reentrant
Parameters (in) None
Parameters (inout) None
Parameters (out) None
Return value None
Description This callback function indicates that an error occurred when the signal of the primitive data
item/event was handed over by COM to the PDU router.
Available via Rte_Cbk.h
c()
[SWS_Rte_03775] d
void Rte_COMCbkTErr_<sn>(void)
5.9.2.1.4 Rte_COMCbkInv_<sn>
[] d
Service Name Rte_COMCbkInv_<sn>
Syntax void Rte_COMCbkInv_<sn> (
void
)
c()
[SWS_Rte_02612] d
void Rte_COMCbkInv_<sn>(void)
5.9.2.1.5 Rte_COMCbkRxTOut_<sn>
[] d
Service Name Rte_COMCbkRxTOut_<sn>
Syntax void Rte_COMCbkRxTOut_<sn> (
void
)
c()
[SWS_Rte_02610] d
void Rte_COMCbkRxTOut_<sn>(void)
5.9.2.1.6 Rte_COMCbkTxTOut_<sn>
[] d
c()
[SWS_Rte_05084] d
void Rte_COMCbkTxTOut_<sn>(void)
5.9.2.1.7 Rte_COMCbk_<sg>
[] d
Service Name Rte_COMCbk_<sg>
Syntax void Rte_COMCbk_<sg> (
void
)
4
Parameters (out) None
Return value None
Description This callback function indicates that the signals of the composite data item/event or the
arguments of an operation are ready for reception.
Available via Rte_Cbk.h
c()
[SWS_Rte_03004] d
void Rte_COMCbk_<sg>(void)
where <sg> is the name of the COM signal group, which contains all the signals of the
composite data item/event or an operation.c(SRS_Rte_00019)
This callback function indicates that the signals of the composite data item/event or the
arguments of an operation are ready for reception.
It is called from
1. the ComMainFunctionRx referenced by the ComIPdu related to the signal
group (see [SWS_Com_00885]), if the ComIPduSignalProcessing is set to
DEFERRED (see [SWS_Com_00301]). This ComMainFunctionRx will be exe-
cuted in the EcucPartition referenced by its ComMainRxPartitionRef.
2. the EcucPartition referenced by the ComMainRxPartitionRef of the Com-
MainFunctionRx in turn referenced by the ComIPdu related to the signal group
(see [SWS_Com_00885]), if the ComIPdu references one and ComIPduSig-
nalProcessing is set to IMMEDIATE (see [SWS_Com_00300]).
3. the partition referenced by the Pdu related to the signal group via EcucPduDed-
icatedPartitionRef, if there is such a reference and the ComIPdu related to
the signal group does not reference a ComMainFunctionRx.
4. the partition referenced by the Pdu related to the signal group via EcucPduDe-
faultPartitionRef, if there is such a reference and the ComIPdu related to
the signal group does not reference a ComMainFunctionRx and the Pdu related
to the signal group has no EcucPduDedicatedPartitionRef.
Configured in Com: ComNotification [ECUC_Com_00498] as part of ComSig-
nalGroup
5.9.2.1.8 Rte_COMCbkTAck_<sg>
[] d
c()
[SWS_Rte_03005] d
void Rte_COMCbkTAck_<sg>(void)
where <sg> is the name of the COM signal group, which contains all the signals of the
composite data item/event or an operation.c(SRS_Rte_00019, SRS_Rte_00122)
“TAck” is literal text indicating transmission acknowledgment. This callback function
indicates that the signals of the composite data item/event is already handed over by
COM to the PDU router.
Configured in Com: ComNotification [ECUC_Com_00498] as part of ComSig-
nalGroup
5.9.2.1.9 Rte_COMCbkTErr_<sg>
[] d
Service Name Rte_COMCbkTErr_<sg>
Syntax void Rte_COMCbkTErr_<sg> (
void
)
4
Parameters (in) None
Parameters (inout) None
Parameters (out) None
Return value None
Description This callback function indicates that an error occurred when the signal of the composite data
item/event was handed over by COM to the PDU router.
Available via Rte_Cbk.h
c()
[SWS_Rte_03776] d
void Rte_COMCbkTErr_<sg>(void)
where <sg> is the name of the COM signal group, which contains all the signals of the
composite data item/event or an operation.c(SRS_Rte_00019, SRS_Rte_00122)
“TErr” is literal text indicating transmission error. This callback function indicates that
an error occurred when the signal of the composite data item/event was handed over
by COM to the PDU router.
Configured in Com: ComErrorNotification [ECUC_Com_00499] as part of
ComSignalGroup
5.9.2.1.10 Rte_COMCbkInv_<sg>
[] d
Service Name Rte_COMCbkInv_<sg>
Syntax void Rte_COMCbkInv_<sg> (
void
)
c()
[SWS_Rte_05065] d
void Rte_COMCbkInv_<sg>(void)
where <sg> is the name of the COM signal group, which contains all the signals of the
composite data item/event or an operation.c(SRS_Rte_00019, SRS_Rte_00122)
“Inv” is literal text indicating signal group invalidation. This callback function indicates
that COM has received a signal group and parsed it as “invalid”.
Configured in Com: ComInvalidNotification [ECUC_Com_00315] as part of
ComSignalGroup
5.9.2.1.11 Rte_COMCbkRxTOut_<sg>
[] d
Service Name Rte_COMCbkRxTOut_<sg>
Syntax void Rte_COMCbkRxTOut_<sg> (
void
)
c()
[SWS_Rte_02611] d
void Rte_COMCbkRxTOut_<sg>(void)
where <sg> is the name of the COM signal group, which contains all the signals of the
composite data item/event or an operation.c(SRS_Rte_00019, SRS_Rte_00147)
“RxTOut” is literal text indicating reception signal time out. This callback function indi-
cates that the aliveTimeout after the last successful reception of the signal group
carrying the composite data item has expired (data element outdated).
Configured in Com: ComTimeoutNotification [ECUC_Com_00552] as part of
ComSignalGroup
5.9.2.1.12 Rte_COMCbkTxTOut_<sg>
[] d
Service Name Rte_COMCbkTxTOut_<sg>
Syntax void Rte_COMCbkTxTOut_<sg> (
void
)
c()
[SWS_Rte_05085] d
void Rte_COMCbkTxTOut_<sg>(void)
where <sg> is the name of the COM signal group, which contains all the signals of the
composite data item/event or an operation.c(SRS_Rte_00019, SRS_Rte_00122)
“TxTOut” is literal text indicating transmission failure and time out. This callback func-
tion indicates that the timeout of TransmissionAcknowledgementRequest for
sending the signal group of the composite data item/event has expired.
Configured in Com: ComTimeoutNotification [ECUC_Com_00552] as part of
ComSignalGroup
5.9.2.1.13 Rte_COMCbkTxPrep_<mn>
[] d
c()
[SWS_Rte_08907] d
void Rte_COMCbkTxPrep_<mn>(void)
[SWS_Rte_01412] dThe RTE shall import the following type from Com-
Stack_Types.h:
• BufReq_ReturnType
• PduIdType
• PduInfoType
• PduLengthType
• RetryInfoType
c(SRS_BSW_00384)
5.9.2.2.1 Rte_LdComCbkRxIndication_<sn>
[] d
Service Name Rte_LdComCbkRxIndication_<sn>
Syntax void Rte_LdComCbkRxIndication_<sn> (
const PduInfoType* PduInfoPtr
)
c()
[SWS_Rte_01395] d
void Rte_LdComCbkRxIndication_<sn> (
IN const PduInfoType* info
);
5.9.2.2.2 Rte_LdComCbkStartOfReception_<sn>
[] d
c()
[SWS_Rte_01396] d
BufReq_ReturnType Rte_LdComCbkStartOfReception_<sn> (
IN const PduInfoType* SduInfoPtr,
IN PduLengthType SduLength,
OUT PduLengthType* RxBufferSizePtr
)
5.9.2.2.3 Rte_LdComCbkCopyRxData_<sn>
[] d
Service Name Rte_LdComCbkCopyRxData_<sn>
Syntax BufReq_ReturnType Rte_LdComCbkCopyRxData_<sn> (
const PduInfoType* info,
PduLengthType* bufferSizePtr
)
c()
[SWS_Rte_01400] d
BufReq_ReturnType Rte_LdComCbkCopyRxData_<sn> (
IN const PduInfoType* SduInfoPtr,
OUT PduLengthType* RxBufferSizePtr
)
5.9.2.2.4 Rte_LdComCbkTpRxIndication_<sn>
[] d
Service Name Rte_LdComCbkTpRxIndication_<sn>
Syntax void Rte_LdComCbkTpRxIndication_<sn> (
Std_ReturnType result
)
c()
[SWS_Rte_01403] d
void Rte_LdComCbkTpRxIndication_<sn> (
IN Std_ReturnType Result
)
5.9.2.2.5 Rte_LdComCbkCopyTxData_<sn>
[] d
c()
[SWS_Rte_01404] d
BufReq_ReturnType Rte_LdComCbkCopyTxData_<sn> (
IN const PduInfoType* SduInfoPtr,
IN RetryInfoType* RetryInfoPtr,
OUT PduLengthType* TxDataCntPtr
)
5.9.2.2.6 Rte_LdComCbkTpTxConfirmation_<sn>
[] d
Service Name Rte_LdComCbkTpTxConfirmation_<sn>
Syntax void Rte_LdComCbkTpTxConfirmation_<sn> (
Std_ReturnType result
)
c()
[SWS_Rte_01407] d
void Rte_LdComCbkTpTxConfirmation_<sn> (
IN Std_ReturnType Result
)
5.9.2.2.7 Rte_LdComCbkTriggerTransmit_<sn>
[] d
c()
[SWS_Rte_01408] d
Std_ReturnType Rte_LdComCbkTriggerTransmit_<sn> (
PduInfoType* PduInfoPtr
)
5.9.2.2.8 Rte_LdComCbkTxConfirmation_<sn>
[] d
c()
[SWS_Rte_01411] d
void Rte_LdComCbkTxConfirmation_<sn> (
Std_ReturnType result
)
5.9.3.1 Rte_SetMirror
[] d
Service Name Rte_SetMirror_<b>_<d>
Syntax Std_ReturnType Rte_SetMirror_<b>_<d> (
const void* NVMBuffer
)
4
Return value Std_ReturnType E_OK: the copy is successful.
E_NOT_OK: the copy could not be performed.
Description The Rte_SetMirror API copies the values of the VariableDataPrototypes contained in a NvBlock
Descriptor from a NVM internal buffer to their locations in the RTE.
Available via <application.h> or Rte_<Mip>.h
c()
Rte_SetMirror warranties the consistency of the VariableDataPrototypes con-
tained in a NvBlockSwComponentType, when the associated NVM block is read and
copied to the VariableDataPrototypes storage locations.
[SWS_Rte_07310] d
Std_ReturnType
Rte_SetMirror_<b>_<d> (const void *NVMBuffer)
5.9.3.2 Rte_GetMirror
[] d
c()
Rte_GetMirror warranties the consistency of the VariableDataPrototypes con-
tained in a NvBlockSwComponentType, when their values are written to the NVRAM
device by the NVM.
[SWS_Rte_07315] d
Std_ReturnType
Rte_GetMirror_<b>_<d> (void *NVMBuffer)
[SWS_Rte_07601] dThe Rte_GetMirror API shall return E_OK if the copy is suc-
cessful.c(SRS_Rte_00178)
[SWS_Rte_07614] dThe Rte_GetMirror API shall return E_NOT_OK if the copy
could not be performed.c(SRS_Rte_00178)
The NVM shall be configured to use this function when WriteBlock requests are pro-
cessed (see NvmWriteRamBlockToNvm in [21]).
5.9.3.3 Rte_NvMNotifyJobFinished
[] d
Service Name Rte_NvMNotifyInitBlock_<b>_<d>
Syntax Std_ReturnType Rte_NvMNotifyInitBlock_<b>_<d> (
NvM_BlockRequestType BlockRequest,
NvM_RequestResultType JobResult
)
c()
Rte_NvMNotifyJobFinished forwards notifications back to the SW-Cs.
[SWS_Rte_07623] d
Std_ReturnType
Rte_NvMNotifyJobFinished_<b>_<d> (
NvM_BlockRequestType BlockRequest,
NvM_RequestResultType JobResult)
5.9.3.4 Rte_NvMNotifyInitBlock
[] d
Service Name Rte_NvMNotifyInitBlock_<b>_<d>
Syntax Std_ReturnType Rte_NvMNotifyInitBlock_<b>_<d> (
NvM_InitBlockRequestType InitBlockRequest
)
c()
Rte_NvMNotifyInitBlock indicates to the SW-Cs that initialization of the RAM
block is requested by the NvM.
[SWS_Rte_07627] d
Std_ReturnType
Rte_NvMNotifyInitBlock_<b>_<d> (
NvM_InitBlockRequestType InitBlockRequest)
The specification of the RTE requires the usage of the following COM API functions.
Com API function Context
Com_SendSignal to transmit a data element of primitive type using COM.
Com_SendDynSignal to transmit a data element of primitive dynamic type
uint8[n] using COM.
Com_ReceiveSignal to retrieve the new value of a data element of primitive
type from COM.
Com_ReceiveDynSignal to retrieve the new value of a data element of primitive
dynamic type uint[8] from COM.
Com_SendSignalWithMetaData to transmit a data element of primitive type and meta data
using COM.
Com_SendDynSignalWithMetaData to transmit a data element of primitive dynamic type
uint8[n] and meta data using COM.
Com_ReceiveSignalWithMetaData to retrieve the new value of a data element of primitive
type and meta data from COM.
Com_ReceiveDynSignal to retrieve the new value of a data element of primitive
WithMetaData dynamic type uint[8] and meta data from COM.
Com_SendSignalGroup to initiate sending of a data element of composite type
using COM.
Com_ReceiveSignalGroup to retrieve the new value of a data element of composite
type from COM.
Please note that [SWS_Rte_02761] may require to access COM through the use of
call trusted function in a partitioned system.
The specification of the RTE requires the usage of the following LdCom API functions.
LdCom API function Context
LdCom_Transmit to transmit a data element of primitive type or uint8[n]
using LdCom API.
Please note that [SWS_Rte_02761] may require to access LdCom through the use of
call trusted function in a partitioned system.
The usage of APIs provided by the Os module [4] is up to the implementation of a spe-
cific RTE Generator, System description and Ecu configuration. In general a RTE may
utilize any standardized API. Therefore no dedicated list of expected APIs is specified
here.
In case of multi-core the RTE may utilize the IOC-Module [4] to implement the inter-
core communication. The IOC-Module is specified to be part of the Os. Therefore no
specific APIs are listed here.
The specification of the RTE requires the usage of the following Transformer API func-
tions.
Transformer API function Context
<Mip>_<transformerId> API of a transformer on the sending/calling side of the
communcation. The name pattern follows [SWS_Xfrm_-
00062].
<Mip>_Inv_<transformerId> API of a transformer on the receiving/called side of the
communcation. The name pattern follows [SWS_Xfrm_-
00062].
Please note that the exact names of the API depend on the EcuC of the respective
transformer module.
The EcuC of a transformer module contains a mapping from the transformer and
ISignal or ISignalGroup with the to the BswModuleEntry which implements this
specific transformer. (See [ECUC_Xfrm_00001].
This mapping can be used by the RTE to determine which BswModuleEntry shall be
executed by the RTE for a specific transformer.
The specification of the RTE requires the usage of the following NvM API functions.
NvM API function Context
NvM_SetBlockProtection to set/reset the write protection for a NV block
NvM_EraseBlock to erase a NV block.
NvM_GetDataIndex to get the currently set DataIndex of a dataset NVRAM
block.
NvM_GetErrorStatus to read the block dependent error/status information.
NvM_InvalidateNvBlock to invalidate a NV block.
NvM_ReadBlock to copy the data of the NV block to its corresponding RAM
block.
NvM_ReadPRAMBlock to copy the data of the NV block to its corresponding per-
manent RAM block.
NvM_RestoreBlockDefaults to restore the default data to its corresponding RAM
block.
NvM_RestorePRAMBlock to restore the default data to its corresponding permanent
Defaults RAM block.
NvM_SetDataIndex to set the DataIndex of a dataset NVRAM block.
NvM_SetRamBlockStatus to set the RAM block status of an NVRAM block.
NvM_WriteBlock to copy the data of the RAM block to its corresponding
NV block.
NvM_WritePRAMBlock to copy the data of the RAM block to its corresponding
permanent RAM block.
The “VFB Tracing” mechanism is designed to offer a lightweight means to monitor the
interactions of AUTOSAR software-components with the VFB.
The VFB tracing in ‘debug’ mode is implemented by a series of “hook” functions that
are invoked automatically by the generated RTE when “interesting events” occur. Each
hook function corresponds to a single event.
The supported trace events are defined in Section 5.11.5. A mechanism is described in
Section 5.11.6 for configuring which of the many potential trace events are of interest.
The overall VFB Trace workflow consists of three phases: configuration, RTE genera-
tion and trace client generation.
1. During configuration phase each trace client creates its RteVfbTraceClient
container and configures the prefixes covering all interesting trace hooks in its
The “VFB Tracing” mechanism is designed to support multiple clients for each trace
event.
[SWS_Rte_05093] dFor each RteVfbTraceClient configured in the RTE Configu-
ration input each Trace Event shall be generated using that RteVfbTraceClient’s
shortName as the client prefix in the optional <client> position of the API function
name.c(SRS_Rte_00005, SRS_Rte_00008, SRS_Rte_00192)
[SWS_Rte_05091] dThe RTE Generator shall provide each Trace Event without a
client prefix if RteVfbTraceAnonymousClientEnabled is set to TRUE.c(SRS_-
Rte_00005, SRS_Rte_00008, SRS_Rte_00192)
There are cases where the default (alphabetical) VFB Trace hook ordering is not de-
sired. In such cases the VFB Trace hooks have to be called in a different, user defined
order. This order can be defined by aggregating a call position to the trace client con-
figuration. If the user decides to define the trace hook order he has to do this for all
configured clients of course.
[SWS_Rte_CONSTR_09065] dEither all or no RteVfbTraceClient shall have a
RteVfbTraceClientPosition.c(SRS_Rte_00005, SRS_Rte_00008, SRS_Rte_-
00192)
[SWS_Rte_CONSTR_09066] dRteVfbTraceClientPosition shall have unique
values.c(SRS_Rte_00005, SRS_Rte_00008, SRS_Rte_00192)
5.11.4 Contribution to the Basic Software Module Description and the client’s
configuration
The RTE Generator in Generation Phase shall also update its Basic Software Module
Description ([SWS_Rte_05086]) in order to document the possibly traceable functions
and their signatures.
[SWS_Rte_05106] dFor each generated hook function – including multiple trace clients
([SWS_Rte_05093]) – the RTE generator shall enter a BswModuleEntry in its Basic
Software Module Description describing the hook function and its signature. The im-
plementedEntry element of the BswModuleDescription shall be used to capture
the information.c(SRS_Rte_00005, SRS_Rte_00192)
A trace client would find the hook functions called by the RTE for it by either searching
all RteVfbTraceHooks in its EcucModuleConfigurationValues (if it configured
one) or searching the RTE’s Basic Software Module Description for those BswMod-
uleEntrys having the client’s name as functionPrototypeEmitter or by com-
paring the BswModuleEntry’s shortName against the hook function pattern provided
in its configuration (RteVfbTraceFunction).
[SWS_Rte_04593] dIf a trace client referenced an RteVfbTraceHooks via RteVf-
bTraceHooksRef, the RTE generator shall create an RteVfbTraceHook for each
hook function generated for that trace client to the container referenced via RteVfb-
TraceHooksRef.c(SRS_Rte_00005, SRS_Rte_00192)
[SWS_Rte_04594] dIf the trace hook is of type RTE API Start (i.e. according
[SWS_Rte_01238]), the RTE generator shall configure the created RteVfbTrace-
Hook the following way:
• shortName: set to the shortName of the BswModuleEntry created for the trace
hook (i.e. the symbol of the C function)
• RteVfbTraceHookEntryRef: referencing the BswModuleEntry created for
the trace hook.
• RteVfbTraceHookType: set to RTE_API_START
• RteVfbTraceHookApi.shortName: set to the <api> name part defined in
[SWS_Rte_01238]
• RteVfbTraceHookComponentTypeSymbol.shortName: set to the <cts>
name part defined in [SWS_Rte_01238]
• RteVfbTraceHookComponentTypeSymbol.RteVfbTraceHookSwCompo-
nentTypeRef: referencing the SwComponentType from which <cts> was
derived
• RteVfbTraceHookAccessPoint.shortName: set to the <ap> name part de-
fined in [SWS_Rte_01238]
• RteVfbTraceHookAccessPoint.RteVfbTraceHookAccessPointEle-
mentRef: referencing all model elements from which <ap> was derived
c(SRS_Rte_00005, SRS_Rte_00192)
[SWS_Rte_04595] dIf the trace hook is of type RTE API Return (i.e. according
[SWS_Rte_01239]), the RTE generator shall configure the created RteVfbTrace-
Hook the following way:
• shortName: set to the shortName of the BswModuleEntry created for the trace
hook (i.e. the symbol of the C function)
• RteVfbTraceHookEntryRef: referencing the BswModuleEntry created for
the trace hook.
• RteVfbTraceHookType: set to RTE_API_RETURN
• RteVfbTraceHookApi.shortName: set to the <api> name part defined in
[SWS_Rte_01239]
• RteVfbTraceHookComponentTypeSymbol.shortName: set to the <cts>
name part defined in [SWS_Rte_01239]
• RteVfbTraceHookComponentTypeSymbol.RteVfbTraceHookSwCompo-
nentTypeRef: referencing the SwComponentType from which <cts> was
derived
• RteVfbTraceHookAccessPoint.shortName: set to the <ap> name part de-
fined in [SWS_Rte_01239]
• RteVfbTraceHookAccessPoint.RteVfbTraceHookAccessPointEle-
mentRef: referencing all model elements from which <ap> was derived
c(SRS_Rte_00005, SRS_Rte_00192)
[SWS_Rte_04596] dIf the trace hook is of type BSW Scheduler API Start (i.e. ac-
cording [SWS_Rte_04531]), the RTE generator shall configure the created RteVfb-
TraceHook the following way:
• shortName: set to the shortName of the BswModuleEntry created for the trace
hook (i.e. the symbol of the C function)
• RteVfbTraceHookEntryRef: referencing the BswModuleEntry created for
the trace hook.
• RteVfbTraceHookType: set to SCHM_API_START
• RteVfbTraceHookApi.shortName: set to the <api> name part defined in
[SWS_Rte_04531]
• RteVfbTraceHookBswSchedulerNamePrefix.shortName: set to the
<bsnp> name part defined in [SWS_Rte_04531]
• RteVfbTraceHookBswSchedulerNamePrefix.RteVfbTraceHookBswIm-
plementationRef: referencing the BswImplementation from which <bsnp>
was derived
• shortName: set to the shortName of the BswModuleEntry created for the trace
hook (i.e. the symbol of the C function)
• RteVfbTraceHookEntryRef: referencing the BswModuleEntry created for
the trace hook.
• RteVfbTraceHookType: set to RUNNABLE_ENTITY_INVOCATION
• RteVfbTraceHookComponentTypeSymbol.shortName: set to the <cts>
name part defined in [SWS_Rte_01248]
• RteVfbTraceHookComponentTypeSymbol.RteVfbTraceHookSwCompo-
nentTypeRef: referencing the SwComponentType from which <cts> was
derived
• RteVfbTraceHookExecutableEntityName.shortName: set to the <re-
Name> name part defined in [SWS_Rte_01248]
• RteVfbTraceHookExecutableEntityName.RteVfbTraceHookExe-
cutableEntityRef: referencing the RunnableEntity from which <reName>
was derived
c(SRS_Rte_00005, SRS_Rte_00192)
[SWS_Rte_04599] dIf the trace hook is of type Runnable Entity Termination (i.e. ac-
cording [SWS_Rte_01249]), the RTE generator shall configure the created RteVfb-
TraceHook the following way:
• shortName: set to the shortName of the BswModuleEntry created for the trace
hook (i.e. the symbol of the C function)
• RteVfbTraceHookEntryRef: referencing the BswModuleEntry created for
the trace hook.
• RteVfbTraceHookType: set to RUNNABLE_ENTITY_TERMINATION
• RteVfbTraceHookComponentTypeSymbol.shortName: set to the <cts>
name part defined in [SWS_Rte_01249]
• RteVfbTraceHookComponentTypeSymbol.RteVfbTraceHookSwCompo-
nentTypeRef: referencing the SwComponentType from which <cts> was
derived
• RteVfbTraceHookExecutableEntityName.shortName: set to the <re-
Name> name part defined in [SWS_Rte_01249]
• RteVfbTraceHookExecutableEntityName.RteVfbTraceHookExe-
cutableEntityRef: referencing the RunnableEntity from which <reName>
was derived
c(SRS_Rte_00005, SRS_Rte_00192)
[SWS_Rte_04600] dIf the trace hook is of type BSW Schedulable Entity Invocation
(i.e. according [SWS_Rte_04533]), the RTE generator shall configure the created
RteVfbTraceHook the following way:
• shortName: set to the shortName of the BswModuleEntry created for the trace
hook (i.e. the symbol of the C function)
• RteVfbTraceHookEntryRef: referencing the BswModuleEntry created for
the trace hook.
• RteVfbTraceHookType: set to BSW_SCHEDULABLE_ENTITY_INVOCATION
• RteVfbTraceHookBswSchedulerNamePrefix.shortName: set to the
<bsnp> name part defined in [SWS_Rte_04533]
• RteVfbTraceHookBswSchedulerNamePrefix.RteVfbTraceHookBswIm-
plementationRef: referencing the BswImplementation from which <bsnp>
was derived
• RteVfbTraceHookVendorId.shortName: set to the <vi> name part defined
in [SWS_Rte_04533], if it is not omitted there
• RteVfbTraceHookVendorApiInfix.shortName: set to the <ai> name part
defined in [SWS_Rte_04533], if it is not omitted there
• RteVfbTraceHookExecutableEntityName.shortName: set to the <enti-
tyName> name part defined in [SWS_Rte_04533]
• RteVfbTraceHookExecutableEntityName.RteVfbTraceHookExe-
cutableEntityRef: referencing the BswModuleEntity from which <enti-
tyName> was derived
c(SRS_Rte_00005, SRS_Rte_00192)
[SWS_Rte_04601] dIf the trace hook is of type BSW Schedulable Entity Termination
(i.e. according [SWS_Rte_04534]), the RTE generator shall configure the created
RteVfbTraceHook the following way:
• shortName: set to the shortName of the BswModuleEntry created for the trace
hook (i.e. the symbol of the C function)
• RteVfbTraceHookEntryRef: referencing the BswModuleEntry created for
the trace hook.
• RteVfbTraceHookType: set to BSW_SCHEDULABLE_ENTITY_TERMINATION
• RteVfbTraceHookBswSchedulerNamePrefix.shortName: set to the
<bsnp> name part defined in [SWS_Rte_04534]
• RteVfbTraceHookBswSchedulerNamePrefix.RteVfbTraceHookBswIm-
plementationRef: referencing the BswImplementation from which <bsnp>
was derived
[SWS_Rte_04608] dIf the trace hook is of type Wait OS Event (i.e. according
[SWS_Rte_01246]), the RTE generator shall configure the created RteVfbTrace-
Hook the following way:
• shortName: set to the shortName of the BswModuleEntry created for the trace
hook (i.e. the symbol of the C function)
• RteVfbTraceHookEntryRef: referencing the BswModuleEntry created for
the trace hook.
• RteVfbTraceHookType: set to OS_WAIT_EVENT
• RteVfbTraceHookTask.shortName: set to the <task> name part defined in
[SWS_Rte_01246]
• RteVfbTraceHookTask.RteVfbTraceHookTaskRef: referencing the Os-
Task from which <task> was derived
c(SRS_Rte_00005, SRS_Rte_00192)
[SWS_Rte_04609] dIf the trace hook is of type Received OS Event (i.e. according
[SWS_Rte_01247]), the RTE generator shall configure the created RteVfbTrace-
Hook the following way:
• shortName: set to the shortName of the BswModuleEntry created for the trace
hook (i.e. the symbol of the C function)
• RteVfbTraceHookEntryRef: referencing the BswModuleEntry created for
the trace hook.
• RteVfbTraceHookType: set to OS_RECEIVED_EVENT
• RteVfbTraceHookTask.shortName: set to the <task> name part defined in
[SWS_Rte_01247]
• RteVfbTraceHookTask.RteVfbTraceHookTaskRef: referencing the Os-
Task from which <task> was derived
c(SRS_Rte_00005, SRS_Rte_00192)
[SWS_Rte_04610] dIf the trace hook is of type COM Signal Transmission (i.e. ac-
cording [SWS_Rte_01240]), the RTE generator shall configure the created RteVfb-
TraceHook the following way:
• shortName: set to the shortName of the BswModuleEntry created for the trace
hook (i.e. the symbol of the C function)
• RteVfbTraceHookEntryRef: referencing the BswModuleEntry created for
the trace hook.
• RteVfbTraceHookType: set to COM_SIGNAL_TRANSMISSION
• RteVfbTraceHookSignal.shortName: set to the <signalName> name part
defined in [SWS_Rte_01240]
Please note that the MemorySections used by the VFB Trace client should have
prefix RTE_ to avoid namespace clashes with other modules and to make clear that
from a functional perspective the functions belong to the RTE.
RTE API trace events occur when an AUTOSAR software-component interacts with the
generated RTE API. For implicit S/R communication, however, tracing is not supported.
Description: RTE API Start is invoked by the RTE when an API call is made by a
component.
Signature: [SWS_Rte_01238] d
void Rte_[<client>_]<api>Hook_<cts>_<ap>_Start
([const Rte_CDS_<cts>*, ]<param>)
Description: RTE API Return is a trace event that is invoked by the RTE just before
an API call returns control to a component.
Signature: [SWS_Rte_01239] d
void Rte_[<client>_]<api>Hook_<cts>_<ap>_Return
([const Rte_CDS_<cts>*, ]<param>)
BSW Scheduler API trace events occur when an AUTOSAR Basic Software Module
interacts with the generated BSW Scheduler API.
Description: BSW Scheduler API Start is invoked by the BSW Scheduler when an
API call is made by a Basic Software Module.
Signature: [SWS_Rte_04531] d
void SchM_[<client>_]<api>Hook_<bsnp>_[<vi>_<ai>]_
<name>_Start(<param>)
Where <api> is the BSW Scheduler API Name (Send, Call, etc.),
<bsnp> is the BSW Scheduler Name Prefix according
[SWS_Rte_07593] and [SWS_Rte_07594],
<vi> is the vendorId of the BSW module,
Description: BSW Scheduler API Return is invoked by the BSW Scheduler just
before an API call returns control to a Basic Software Module.
Signature: [SWS_Rte_04532] d
void SchM_[<client>_]<api>Hook_<bsnp>_[<vi>_<ai>]_
<name>_Return(<param>)
Where <api> is the BSW Scheduler API Name (Send, Call, etc.),
<bsnp> is the BSW Scheduler Name Prefix according
[SWS_Rte_07593] and [SWS_Rte_07594],
<vi> is the vendorId of the BSW module,
<ai> is the vendorApiInfix of the BSW module and
<name> is the name provided by the API (e.g. shortName of the
VariableDataPrototype of a sender-receiver connection).
The parameters of the API shall be the same as the corresponding
BSW Scheduler API.
The sub part in square brackets [_<vi>_<ai>] is omitted if no
vendorApiInfix is defined for the Basic Software Module. See
([SWS_Rte_07528]).
c(SRS_Rte_00003, SRS_Rte_00004, SRS_Rte_00045)
COM trace events occur when the generated RTE interacts with the AUTOSAR com-
munication service.
OS trace events occur when the generated RTE interacts with the AUTOSAR operating
system.
Description: A trace event that is invoked by the RTE immediately prior to the
activation of a task containing runnable entities.
Signature: [SWS_Rte_01243] d
void Rte_[<client>_]Task_Activate_<application>_<task>
(void)
Description: A trace event invoked immediately before generated RTE code at-
tempts to set an OS Event.
Signature: [SWS_Rte_01245] d
void Rte_[<client>_]Task_SetEvent_<application>_<task>
(EventMaskType ev)
Where <task> is the name of the task (that is waiting for the event)
and ev the OS event mask.c(SRS_Rte_00045)
Description: Invoked immediately after generated RTE code returns from waiting
on an event.
Signature: [SWS_Rte_01247] d
void Rte_[<client>_]Task_WaitEventRet_<task>
(EventMaskType ev)
Where <task> is the name of the task (that was waiting for an event)
and and ev the event mask indicating the received event.c(SRS_-
Rte_00045)
Note that not all of the trace events listed above may be available for a given input
configuration. For example if a task is activated by a schedule table, it is activated by
the OS rather than by the RTE, hence no trace hook function for task activation can be
invoked by the RTE.
Description: Event invoked by the RTE just before execution of runnable entry
starts via its entry point. This trace event occurs after any copies of
data elements are made to support the Rte_IRead API Call.
Signature: [SWS_Rte_01248] d
void Rte_[<client>_]Runnable_<cts>_<reName>_Start
([const Rte_CDS_<cts>*])
purpose: Event invoked by the RTE immediately execution returns to RTE code
from a runnable entity. This trace event occurs before any write-back
of data elements are made to support the Rte_IWrite API Call.
Signature: [SWS_Rte_01249] d
void Rte_[<client>_]Runnable_<cts>_<reName>_Return
([const Rte_CDS_<cts>*])
BSW Schedulable entity trace events occur when a BSW Schedulable entity is started.
Description: Event invoked by the BSW Scheduler just before execution of BSW
Schedulable entry starts via its entry point.
Signature: [SWS_Rte_04533] d
void SchM_[<client>_]Schedulable_<bsnp>[_<vi>_<ai>]
_<entityName>_Start
(void)
Where
<bsnp> is the BSW Scheduler Name Prefix according
[SWS_Rte_07593] and [SWS_Rte_07594],
<vi> is the vendorId of the BSW module,
<ai> is the vendorApiInfix of the BSW module and
<entityName> is the name of the BSW Schedulable Entity or BSW
Callable Entity.
The sub part in square brackets [_<vi>_<ai>] is omitted if no
vendorApiInfix is defined for the Basic Software Module. See
([SWS_Rte_07528]).
c(SRS_Rte_00045)
Description: Event invoked by the BSW Scheduler immediately after execution re-
turns to BSW Scheduler code from a BSW Schedulable Entity.
Signature: [SWS_Rte_04534] d
void SchM_[<client>_]Schedulable_<bsnp>[_<vi>_<ai>]
_<entityName>_Return(void)
Where
<bsnp> is the BSW Scheduler Name Prefix according
[SWS_Rte_07593] and [SWS_Rte_07594],
<vi> is the vendorId of the BSW module,
<ai> is the vendorApiInfix of the BSW module and
<entityName> is the name of the BSW Schedulable Entity or BSW
Callable Entity.
The sub part in square brackets [_<vi>_<ai>] is omitted if no
vendorApiInfix is defined for the Basic Software Module. See
([SWS_Rte_07528]).
c(SRS_Rte_00045)
5.11.5.7.1 Transmission
5.11.5.7.2 Reception
Description: Event invoked by the RTE immediately before the received value is
copied from the RP global buffer to the RTE API’s OUT param-
eter or return value. Placing the VFB trace hook at this position en-
sures that any conditional writes to the RP global buffer gov-
erned by RP enabler flag will have taken effect.
The event takes as parameter a reference to the RP global
buffer allowing the VFB trace hook to both monitor and influence
the value.
Signature: [SWS_Rte_06114] d
void Rte_[<client>_]RptHook_<cts>_<var>_Reception
([const Rte_CDS_<cts>*], <type>* <buffer> )
5.11.6 Configuration
The VFB tracing mechanism works by the RTE invoking the tracepoint hook function
whenever the tracing event occurs.
The support trace events and their hook function name and signature are defined in
Section 5.11.5. There are many potential trace events and it is likely that only a few will
be of interest at any one time. Therefore, the RTE generator supports a mechanism to
configure which trace events are of interest.
In order to minimize RTE Overheads, trace events that are not enabled should have
no run-time effect on the generated system. This is achieved by the RTE not emitting
function calls to hook functions that have not been configured as being of interest. A
trace function is configured being of interest if its name starts with one of the strings
defined in parameter RteVfbTraceFunction of the respective trace client.
[SWS_Rte_08000] dWhen RteVfbTraceEnabled is configured to TRUE, the RTE
shall call all configured VFB Trace hooks (see [ECUC_Rte_09017]).c(SRS_Rte_00005,
SRS_Rte_00008)
Note that there is no way to configure interesting tracing hooks for the trace client
without prefix. So if enabled (see [SWS_Rte_05091]), all trace hooks will be provided
for the trace client without prefix.
VFB tracing is only available during the “RTE Generation” or “Basic Software Scheduler
Generation” phase [SWS_Rte_01319] and therefore hook functions never appear in an
application header or in a Module Interlink Header file created during “RTE Contract”
resp. “Basic Software Scheduler Contract” phase. However, object-code software-
components and / or Basic Software Modules are compiled against the “RTE Contract”
resp. “Basic Software Scheduler Contract” phase headers and can therefore only trace
events that are inserted into the generated RTE. In particular they cannot trace events
that require invocation of hook functions to be inserted into the API mapping such as
the Rte_Pim API. However, many trace events are applicable to object-code software-
components including trace events related to the explicit communication API, to task
activity and for runnable entity start and stop.
This approach means that the external interactions of the object-code software-
component can be monitored without requiring modification of the delivered object-
code and without revealing the internal activity of the software-component. The ap-
proach is therefore considered to be consistent with the desire for IP protection that
prompts delivery of a software-component as object-code. Finally, tracing can easily
be disabled for a production build without invalidating tests of the object-code software-
component.
6.1 Scope
This chapter presents the Basic Software Scheduler API from the perspective of AU-
TOSAR Basic Software Module – these API is not applicable for AUTOSAR software-
components.
Section 6.2 presents basic principles of the API including naming conventions and
supported programming languages. Section 6.3 describes the header files used by
the Basic Software Scheduler and the files created by an RTE generator. The data
types used by the API are described in Section 6.4 and Sections 6.5 and 6.6 provide
a reference to the Basic Software Scheduler API itself including the definition of Basic
Software Module Entities.
The Basic Software Scheduler is interleaved with the scheduling part of the RTE. Fur-
ther on it is generated by the RTE Generator together with the RTE so Basic Software
Scheduler and RTE can not be separated if both are generated. Therefore the Basic
Software Scheduler uses the namespace of the RTE for internal symbols, variables
and functions, see [SWS_Rte_01171].
The only exceptions are defines, data types and functions belonging to the interface of
the Basic Software Scheduler. These are explicitly mentioned in the specification.
[SWS_Rte_07284] dAll Basic Software Scheduler symbols (e.g. function names, data
types, etc.) belonging to the Basic Software Scheduler s interfaces are required to use
the SchM_ prefix.c(SRS_BSW_00307, SRS_BSW_00300, SRS_Rte_00055)
In case of Basic Software Modules supporting multiple instances of the same Ba-
sic Software Module the name space of the BswSchedulableEntitys and the
Basic Software Scheduler API related to one instance of a Basic Software Mod-
ule is extended by the vendorId and the vendorApiInfix. See document [12]
[SRS_BSW_00347]. In the following chapters this optional part is denoted by usage of
squared brackets [_<vi>_<ai>].
[SWS_Rte_07528] dIf the attribute vendorApiInfix exists for a Basic Software Mod-
ule, the RTE generator shall insert the vendorId (<vi>) and the vendorApiIn-
fix (<ai>) with leading underscores where it is denoted by [_<vi>_<ai>].c(SRS_-
BSW_00347)
Since the Basic Software Module Description supports the description of BSW Module
Clusters one Basic Software Module Description can contain the content of several
BSW Modules. In order to fulfill the Standardized Interfaces with the cluster interface
different ICC3 Module abbreviations [9] inside one cluster can occur. For the Basic
Software Scheduler the Module abbreviation is used as BSW Scheduler Name Prefix
in the SchM API. Nevertheless the shortName of the BswModuleDescription can
as well describe the BSW Scheduler Name Prefix and Section Name Prefix
in order to provide one common prefix in case of ICC3 modules.
In the Meta Model Module abbreviations relevant for the Schedule Manager API are
explicitly expressed with the meta class BswSchedulerNamePrefix. Further infor-
mation can be found in document [9].
AtpStructureElement Identifiable
InternalBehavior +exclusiveArea ExclusiveArea
«atpVariation,atpSplitable» 0..*
Identifiable
ExecutableEntity
+executableEntity
+ minimumStartInterval: TimeValue [0..1]
0..*
+ reentrancyLevel: ReentrancyLevelEnum [0..1]
ARElement
BswInternalBehavior BswModuleEntity +implementedEntry
AtpBlueprint
1 AtpBlueprintable
BswModuleEntry
+entity
«atpVariation,atpSplitable» 0..*
+issuedTrigger AtpStructureElement
Identifiable
«atpVariation» 0..* Trigger
«atpVariation» «atpVariation»
AtpPrototype
BswSchedulerNamePrefix
+schedulerNamePrefix ModeDeclarationGroupPrototype
«atpVariation,atpSplitable»0..*
+behavior 1
Referrable
BswImplementation
ImplementationProps
+ arReleaseVersion: RevisionLabelString
+ symbol: CIdentifier [0..1]
+ vendorApiInfix: Identifier [0..1]
ARElement
Implementation
«atpSplitable»
+resourceConsumption 0..1 SectionNamePrefix
Identifiable +sectionNamePrefix
+prefix 0..1
Identifiable
+memorySection MemorySection
«atpVariation,atpSplitable»0..* + alignment: AlignmentType [0..1]
+ memClassSymbol: CIdentifier [0..1]
+ option: Identifier [0..*]
+ size: PositiveInteger [0..1]
+ symbol: Identifier [0..1]
In several requirements of this specification the Module Prefix is required and deter-
mined as follows:
[SWS_Rte_07593] dThe BSW Scheduler Name Prefix <bsnp> of the calling
BSW module shall be derived from the BswModuleDescription shortName if no
BswSchedulerNamePrefix is defined for the BswModuleEntity using the related
Basic Software Scheduler API.c(SRS_Rte_00148, SRS_Rte_00149)
[SWS_Rte_07594] dThe BSW Scheduler Name Prefix <bsnp> shall be the value
of the symbol attribute of the BswSchedulerNamePrefix of the BswModuleEn-
tity if a BswSchedulerNamePrefix is defined for the BswModuleEntity using
the related Basic Software Scheduler API.c(SRS_Rte_00148, SRS_Rte_00149)
Please note that no matter if the <bsnp> is derived via BswModuleDescription.
shortName (see [SWS_Rte_07593]) or via BswSchedulerNamePrefix.symbol
(see [SWS_Rte_07594]) [TPS_BSWMDT_04008] always applies. That means, ex-
cept for the potential vendor infix, the BswModuleEntry.shortName is always equal
to the C function name. And therefore the BswModuleEntry.shortName is al-
ways prefixed by the <bsnp>. For regular BSWMs this also means that the <bsnp>
will always be equal to the BswModuleDescription.shortName, if a BswSched-
ulerNamePrefix.symbol exists or not. Only for BSWMs being ICC2 clusters the
BswModuleDescription.shortName will typically be different to the prefix of the
BswModuleEntry.shortName because the BswModuleEntrys they implement are
originally defined in different BSWMs. The definition of a BswSchedulerNamePrefix
is then necessary to define where the prefix of the C symbol of the BswModuleEntry
ends and the <name> part starts (see figure 6.2).
Further on the Memory Mapping inside one cluster can either keep or abolish the ICC3
borders. For some cases (e.g. Entry Point Prototype) the RTE has to know the used
prefixes for the Memory Allocation Keywords as well.
In the Meta Model these prefixes are expressed with the meta class Section-
NamePrefix. Further information can be found in document [9].
[SWS_Rte_07595] dThe Section Name Prefix <snp> shall be the module ab-
breviation (in uppercase letters) of the BSW module derived from the BswMod-
uleDescription’s shortName if no SectionNamePrefix is defined for the
BswModuleEntity implementing the related BswModuleEntry.c(SRS_Rte_00148,
SRS_Rte_00149)
[SWS_Rte_07596] dThe Section Name Prefix <snp> shall be the symbol of the
SectionNamePrefix of the MemorySection associated to the BswModuleEntity
implementing the related BswModuleEntry if a SectionNamePrefix is defined
for the BswModuleEntity implementing the related BswModuleEntry.c(SRS_Rte_-
00148, SRS_Rte_00149)
For instance the following input configuration
+internalBehavior
MEM: +entity
BswInternalBehavior NvM_MainFunction:
BswSchedulableEntity
+executableEntity
+entity
NvM_WriteBlock:
+schedulerNamePrefix
BswCalledEntity
+executableEntity
+schedulerNamePrefix
NvM:
+schedulerNamePrefix BswSchedulerNamePrefix
symbol = NvM
+entity MemIf_SetMode:
BswCalledEntity
+executableEntity
+schedulerNamePrefix
MemIf:
+schedulerNamePrefix BswSchedulerNamePrefix
+swAddrMethod
symbol = MemIf +swAddrMethod
+swAddrMethod
+behavior
CODE: SwAddrMethod
sectionType = code
+resourceConsumption
MEM: CODE_MEMIF:
+memorySection
ResourceConsumption MemorySection
symbol = CODE
MEMIF_PART: +prefix
+sectionNamePrefix SectionNamePrefix
symbol = MEMIF
CODE_NVM:
+memorySection MemorySection
symbol = CODE
NVM_PART:
+sectionNamePrefix +prefix
SectionNamePrefix
symbol = NVM
The Module Interlink Types Header defines specific types related to this basic software
module derived either from the input configuration or from the RTE / Basic Software
Scheduler implementation.
[SWS_Rte_07503] dThe RTE generator shall create a Module Interlink Types Header
File for each BswSchedulerNamePrefix in the BswInternalBehavior of each
BswImplementation referencing such BswInternalBehavior defined in the in-
put.c(SRS_BSW_00415)
For instance an input configuration with two BswImplementations (typical with dif-
ferent API infix) referencing a BswInternalBehavior with three BswScheduler-
NamePrefixes would result in the generation of six Module Interlink Types Header
Files.
[SWS_Rte_07295] dThe name of the Module Interlink Types Header File shall be
formed in the following way:
SchM_<bsnp>_[<vi>_<ai>]Type.h
Where here
<bsnp> is the BSW Scheduler Name Prefix according [SWS_Rte_07593] and
[SWS_Rte_07594],
<vi> is the vendorId of the BSW module and
<ai> is the vendorApiInfix of the BSW module.
The sub part in squared brackets [<vi>_<ai>] is omitted if no vendorApiInfix is
defined for the Basic Software Module. See [SWS_Rte_07528].c(SRS_BSW_00415,
SRS_BSW_00300, SRS_BSW_00347)
Example 6.1
The concatenation of the basic software module prefix (which has to be equally with
the short name of the basic software module description) and the vendor API infix is
required to support the separation of several basic software module instances. In dif-
ference to the multiple instantiation concept of software components, where the same
component code is used for all component instances, basic software modules are mul-
tiple instantiated by creation of own code per instance in a different name space.
6.3.1.2 Scope
[SWS_Rte_07297] dThe Module Interlink Types Header shall be valid for both C and
C++ source.c(SRS_Rte_00126, SRS_Rte_00138)
Requirement [SWS_Rte_07297] is met by ensuring that all definitions within the Appli-
cation Types Header File are defined using C linkage if a C++ compiler is used.
[SWS_Rte_07298] dAll definitions within in the Module Interlink Types Header File shall
be preceded by the following fragment:
1 #ifdef __cplusplus
2 extern "C" {
3 #endif /* __cplusplus */
c(SRS_Rte_00126, SRS_Rte_00138)
[SWS_Rte_07299] dAll definitions within the Module Interlink Types Header shall be
suffixed by the following fragment:
1 #ifdef __cplusplus
2 } /* extern "C" */
3 #endif /* __cplusplus */
c(SRS_Rte_00126, SRS_Rte_00138)
[SWS_Rte_07500] dThe Module Interlink Types Header shall include the RTE Types
Header File.c(SRS_BSW_00415)
The name of the RTE Types Header File is defined in Section 5.3.4.
The Module Interlink Types Header File shall contain identifiers for the ModeDecla-
rations and type definitions for ModeDeclarationGroups as defined in Chapter
6.4.2
The Module Interlink Header defines the Basic Software Scheduler API and any asso-
ciated data structures that are required by the Basic Software Scheduler implementa-
tion. But the Module Interlink Header file is not allowed to create objects in memory.
[SWS_Rte_07501] dThe RTE generator shall create a Module Interlink Header File for
each BswSchedulerNamePrefix in the BswInternalBehavior of each BswIm-
plementation referencing such BswInternalBehavior defined in the input.c
(SRS_BSW_00415)
[SWS_Rte_CONSTR_09059] Usage of Basic Software Scheduler API prerequi-
sites the include of the Module Interlink Header File dEach BSW module implemen-
tation shall include its Module Interlink Header File if it uses Basic Software Scheduler
API or if it implements BswSchedulableEntitys.c()
[SWS_Rte_07502] dThe Module Interlink Header File shall not contain code that cre-
ates objects in memory.c(SRS_BSW_00308)
[SWS_Rte_07504] d
The name of the Module Interlink Header File shall be formed in the following way:
1 SchM_<bsnp>[_<vi>_<ai>].h
Where here
<bsnp> is the BSW Scheduler Name Prefix according [SWS_Rte_07593] and
[SWS_Rte_07594],
<vi> is the vendorId of the BSW module and
<ai> is the vendorApiInfix of the BSW module.
The sub part in squared brackets [_<vi>_<ai>] is omitted if no vendorApiIn-
fix is defined for the Basic Software Module.c(SRS_BSW_00415, SRS_BSW_00300,
SRS_BSW_00347)
Example 6.2
<BSW-IMPLEMENTATION>
<SHORT-NAME>MyCanDrv</SHORT-NAME>
<VENDOR-ID>25</VENDOR-ID>
<BEHAVIOR-REF DEST="BSW-INTERNAL-BEHAVIOR">/CanDriver/Can/
YesWeCan</BEHAVIOR-REF>
<VENDOR-API-INFIX>Dev0815</VENDOR-API-INFIX>
</BSW-IMPLEMENTATION>
</ELEMENTS>
</AR-PACKAGE>
The concatenation of the basic software module prefix (which has to be equally with
the short name of the basic software module description) and the vendorApiInfix
is required to support the separation of several basic software module instances. In dif-
ference to the multiple instantiation concept of software components, where the same
component code is used for all component instances, basic software modules are mul-
tiple instantiated by creation of own code per instance in a different name space.
6.3.2.2 Scope
[SWS_Rte_07505] dThe Module Interlink Header for a component shall contain dec-
larations relevant for that instance of a basic software module.c(SRS_BSW_00415)
Requirement [SWS_Rte_07505] means that compile time checks ensure that a Module
Interlink Header File that uses the Module Interlink Header File only accesses the
generated data types to which it has been configured. The use of data types which are
not used by the basic software module, will fail with a compiler error [SRS_Rte_00017].
[SWS_Rte_07506] dThe Module Interlink Header File shall include the Module Interlink
Types Header File.c(SRS_BSW_00415)
The name of the Module Interlink Types Header File is defined in Section 6.3.1.
[SWS_Rte_07507] dThe Module Interlink Header shall be valid for both C and C++
source.c(SRS_Rte_00126, SRS_Rte_00138)
Requirement [SWS_Rte_07507] is met by ensuring that all definitions within the Appli-
cation Types Header File are defined using C linkage if a C++ compiler is used.
[SWS_Rte_07508] dAll definitions within in the Module Interlink Header File shall be
preceded by the following fragment:
1 #ifdef __cplusplus
2 extern "C" {
3 #endif /* __cplusplus */
c(SRS_Rte_00126, SRS_Rte_00138)
[SWS_Rte_07509] dAll definitions within the Module Interlink Header File shall be suf-
fixed by the following fragment:
1 #ifdef __cplusplus
2 } /* extern "C" */
3 #endif /* __cplusplus */
c(SRS_Rte_00126, SRS_Rte_00138)
The Module Interlink Header File also includes a prototype for each BswSchedula-
bleEntitys entry point ([SWS_Rte_04542]).
The Module Interlink Header File defines the “interface” between a Basic Software
Module and the Basic Software Scheduler. The interface consists of the Basic
Software Scheduler API for the Basic Software Module and the prototypes for
BswSchedulableEntitys entry point. The definition of the Basic Software Sched-
uler API requires in case of macro implementation that both relevant data structures
and API calls are defined. In case of interfaces implemented as functions, the proto-
types for the Basic Software Scheduler API of the particular Basic Software Module
instance is sufficient. The data structures are dependent from the implementation and
configuration of the Basic Software Scheduler and are not standardized. If data struc-
tures are required these shall be accessible via the Module Interlink Header File as
well.
The RTE generator is required [SWS_Rte_07505] to limit the contents of the Module
Interlink Header file to only that information that is relevant to that instance of a basic
software module. This requirement includes the definition of the API.
[SWS_Rte_07510] dOnly Basic Software Scheduler API calls that are valid for the
particular instance of a basic software module shall be defined within the modules
Module Interlink Header File.c(SRS_BSW_00415, SRS_Rte_00017)
Requirement [SWS_Rte_07510] ensures that attempts to invoke invalid API calls will
be rejected as a compile-time error [SRS_Rte_00017].
[SWS_Rte_06534] dThe RTE Generator shall wrap each Basic Software Scheduler
API definition of a variant existent API according table 4.34 if the variability shall be
implemented.
1 #if (<condition> [||<condition>])
2
The provide activating event feature is enabled if the executable entity has at least one
activationReason defined.
[SWS_Rte_08056] dIf the provide activating event feature is enabled, the RTE gen-
erator in contract phase shall generate the executable entity signature according to
[SWS_Rte_07282] and [SWS_Rte_08071].c(SRS_Rte_00238)
[SWS_Rte_08057] dIf the provide activating event feature is enabled, the RTE gen-
erator in contract phase shall generate the type SchM_ActivatingEvent_<name>
(activation vector), where <name> is the symbol describing the executable
entity’s entry point, to store the activation bits. Based on the highest value of Ex-
ecutableEntityActivationReason.bitPosition for this executable entity the
type shall be either uint8, uint16, or uint32 so that the highest value of bitPo-
sition fits into the data type.c(SRS_Rte_00238)
Note that it is considered an invalid configuration if ExecutableEntityActiva-
tionReason.bitPosition has a value higher than 31 (see [constr_1226] in soft-
ware component template [2]).
[SWS_Rte_08058] dIf the provide activating event feature is enabled, the RTE gen-
erator in contract phase shall generate for each ExecutableEntityActivation-
Reason of one executable entity a definition to provide the specific bit position in the
Rte_ActivatingEvent_<name> data type:
#define SchM_ActivatingEvent_<name>_<activation> xxU
Where
<bsnp> is the BSW Scheduler Name Prefix according [SWS_Rte_07593] and
[SWS_Rte_07594],
<vi> is the vendorId of the BSW module,
<ai> is the vendorApiInfix of the BSW module,
<ki> is the kind infix according table 4.34,
<name> is the short name of the element which is subject to variability in table 4.34
defining the Basic Software Scheduler API name infix.
The specification in [31] specifies a standard API return type Std_ReturnType. The
Std_ReturnType defines the "‘status"’ and "‘error values"’ returned by API functions.
It is defined as a uint8 type. The value “0” is reserved for “No error occurred”.
Symbolic name Value Comments
SCHM_E_OK 0 [SWS_Rte_07289]
SCHM_E_LIMIT 130 [SWS_Rte_07290]
SCHM_E_NO_DATA 131 [SWS_Rte_07562]
SCHM_E_TRANSMIT_ACK 132 [SWS_Rte_07563]
SCHM_E_IN_EXCLUSIVE_AREA 135 [SWS_Rte_02747]
SCHM_E_TIMEOUT 129 [SWS_Rte_07054]
SCHM_E_LOST_DATA 64 [SWS_Rte_02312]
The underlying type for Std_ReturnType is defined as a uint8 for reasons of com-
patibility. Consequently, #define is used to declare the error values:
1 typedef uint8 Std_ReturnType; /* defined in Std_Types.h */
2
3 #define SCHM_E_OK 0U
[SWS_Rte_07291] dThe errors as defined in table 6.1 shall be defined in the RTE
Header File.c(SRS_Rte_00051)
An Std_ReturnType value can be directly compared (for equality) with the above
pre-defined error identifiers.
6.4.1.1 SCHM_E_OK
[SWS_Rte_07289] d
Symbolic name: SCHM_E_OK
Value: 0
Comments: No error occurred.c(SRS_BSW_00327)
6.4.1.2 SCHM_E_LIMIT
[SWS_Rte_07290] d
Symbolic name: SCHM_E_LIMIT
Value: 130
Comments: An internal Basic Software Scheduler limit has been exceeded. Request
could not be handled. OUT buffers are not modified.
Note: The value has to be identical with [SWS_Rte_01317]c(SRS_BSW_00327)
6.4.1.3 SCHM_E_NO_DATA
[SWS_Rte_07562] d
Symbolic name: SCHM_E_NO_DATA
Value: 131
Comments: An explicit read API call returned no data. (This is no error.)
Note: The value has to be identical with [SWS_Rte_01061]c(SRS_BSW_00327)
6.4.1.4 SCHM_E_TRANSMIT_ACK
[SWS_Rte_07563] d
Symbolic name: SCHM_E_TRANSMIT_ACK
Value: 132
Comments: Transmission acknowledgement received.
Note: The value has to be identically with [SWS_Rte_01065]c(SRS_BSW_00327)
6.4.1.5 SCHM_E_IN_EXCLUSIVE_AREA
[SWS_Rte_02747] d
Symbolic name: SCHM_E_IN_EXCLUSIVE_AREA
Value: 135
Comments: The error is returned by a blocking API and indicates that the schedulable
entity could not enter a wait state, because one ExecutableEntity of the current
task’s call stack has entered an ExclusiveArea.
Note: There are no blocking SchM APIs and therefore this value cannot be returned.
It is defined here for future use and for consistency with [SWS_Rte_02739]. Both error
values have to be identical.c(SRS_BSW_00327)
6.4.1.6 SCHM_E_TIMEOUT
[SWS_Rte_07054] d
Symbolic name: SCHM_E_TIMEOUT
Value: 129
Comments: The configured timeout exceeds before the intended result was ready.
Note: The value has to be identical with [SWS_Rte_01064]c(SRS_BSW_00327)
6.4.1.7 SCHM_E_LOST_DATA
[SWS_Rte_02312] d
Symbolic name: SCHM_E_LOST_DATA
Value: 64
Comments: An API call for reading received data with event semantics indicates that
some incoming data has been lost due to an overflow of the receive queue or due to
an error of the underlying communication stack.
Note: The value has to be identical with [SWS_Rte_02571]c(SRS_BSW_00327,
SRS_Rte_00107, SRS_Rte_00110, SRS_Rte_00094)
where the name of the enumeration literal <EnumLiteral> is derived according to the
following rule:
if (attribute symbol of CompuScale is available and not empty) {
<EnumLiteral> := C identifier specified in symbol attribute of CompuScale
} else {
in the macro definitions shall always reflect the closed interval, regardless of the interval
type specified by the dataConstr.
<suffix> shall be set according to [SWS_Rte_03619].c(SRS_Rte_00252)
Please note that [SWS_Rte_07196] is not applicable for [SWS_Rte_03992]. Further
on it’s possible that a DataPrototype using an ApplicationPrimitiveDataType might
reference additional dataConstr (see [SWS_Rte_07196]). In this case the upper-
Limit and lowerLimit definitions according [SWS_Rte_03992] do not reflect the
real applicable range of the DataPrototype. No macros are generated for Dat-
aPrototype specific data constraints.
Please note that the prefix can either be defined that the IncludedDataType-
Set with a literalPrefix attribute references the ApplicationDataType or it
references the ImplementationDataType.
Rationale: ApplicationPrimitiveDataType is taken as the basis for the gener-
ation of limits (as opposed to take the corresponding ImplementationDataType)
because the limits defined on the ImplementationDataType) may be wider than
the limits of the ApplicationPrimitiveDataType ((see subsection "Data Types
for Single Values" in the AUTOSAR SW-C Template [2]).
[SWS_Rte_03993] dFor AUTOSAR data types which have an invalidValue speci-
fied, the Module Interlink Types Header File shall contain the definition
1 #define InvalidValue_<prefix><DataType> <invalidValue><suffix>
where
<prefix> is the optional literalPrefix attribute defined by the Included-DataTypeSet
referring the AutosarDataType
<DataType> is the short name of the data type.
<invalidValue> is the value defined as invalidValue for the data type.
<suffix> shall be set according to [SWS_Rte_03619].c()
[SWS_Rte_03994] dThe Module Interlink Types Header File shall include the def-
initions of all invalidValue constants used by this Basic Software Module for
each combination of different literalPrefix and ApplicationPrimitive-
DataType when the same ImplementationDataType or ApplicationPrimi-
tiveDataType is referenced via different IncludedDataTypeSets.c(SRS_Rte_-
00252)
mapped to C bit fields rather than to scalars (e.g. uint8). Thereby the RTE Generator
provides a set of definitions for the "Bit Mask", "Bit Start Position" and the "Number
of Bits" in order to support the usage of the AUTOSAR Bit Handling Routines [32] for
those kind of data types. For some operations on a set of bits (the set may contain
only 1 bit) the AUTOSAR bitfield library requires a single contiguous bit field which
means that all bits set to 1 in the CompuScale.mask attribute value are adjoining, e.g.
0b00010000 or 0b00111100.
[SWS_Rte_03995] dFor each unique CompuScale.shortLabel / CompuScale.
mask value pair for a CompuScale which is located in the compuInternalToPhys
container of a CompuMethod referenced by an ImplementationDataType or Ap-
plicationPrimitiveDataType according [SWS_Rte_03984] with category BIT-
FIELD_TEXTTABLE the Module Interlink Types Header File shall contain a definition
for the bit field mask
1 #ifndef <prefix><BflMaskLabel>_BflMask
2 #define <prefix><BflMaskLabel>_BflMask <mask>U
3 #endif /* <prefix><BflMaskLabel>_BflMask */
where
<BflMaskLabel> is the value of the attribute CompuScale.shortLabel
<mask> is the value of the attribute mask
<prefix> is the optional literalPrefix attribute defined by the Included-
DataTypeSet referring the AutosarDataType using the CompuMethod.c(SRS_-
Rte_00252)
[SWS_Rte_03996] dFor each unique CompuScale.shortLabel / CompuScale.
mask value pair for a CompuScale with a single contiguous bit field which is lo-
cated in the compuInternalToPhys container of a CompuMethod referenced by
an ImplementationDataType or ApplicationPrimitiveDataType according
[SWS_Rte_03984] with category BITFIELD_TEXTTABLE the Module Interlink Types
Header File shall contain a definition for the bit start position
1 #ifndef <prefix><BflStartPnLabel>_BflPn
2 #define <prefix><BflStartPnLabel>_BfltPn <BflStartPnNumber>U
3 #endif /* <prefix><BflStartPnLabel>_BfltPn */
where
<BitStartPnLabel> is the value of the attribute CompuScale.shortLabel
<BflStartPnNumber> is the number of the first bit in the attribute value CompuS-
cale.mask which is set to 1. Thereby the bit counting starts from 0 (LSB) to n (MSB).
<prefix> is the optional literalPrefix attribute defined by the Included-
DataTypeSet referring the AutosarDataType using the CompuMethod.c(SRS_-
Rte_00252)
[SWS_Rte_03997] dFor each unique CompuScale.shortLabel / CompuScale.
mask value pair for a CompuScale with a single contiguous bit field which is lo-
cated in the compuInternalToPhys container of a CompuMethod referenced by
an ImplementationDataType or ApplicationPrimitiveDataType according
where
<BflLengthLabel> is the value of the attribute shortLabel.
<BflLength> is the number of contiguous bits set to 1 in the attribute value CompuS-
cale.mask.
<prefix> is the optional literalPrefix attribute defined by the Included-
DataTypeSet referring the AutosarDataType using the CompuMethod.c(SRS_-
Rte_00252)
Please note the example in section F.3.
[SWS_Rte_07415] dThe requirements [SWS_Rte_03995], [SWS_Rte_03996], and
[SWS_Rte_03997] are only applied to CompuScales where the attribute shortLa-
bel is defined.c(SRS_Rte_00252)
6.5.1 SchM_Enter
Where here
<bsnp> is the BSW Scheduler Name Prefix according
[SWS_Rte_07593] and [SWS_Rte_07594],
<vi> is the vendorId of the calling BSW module,
<ai> vendorApiInfix of the calling BSW module,
<me> is the shortName of the BswModuleEntity and
<name> is the exclusive area name. The sub part in squared brack-
ets [<me>_] is emitted if the attribute BswExclusiveAreaPol-
icy.apiPrinciple is set to "perExecutable". The sub part in
6.5.2 SchM_Exit
Where
<bsnp> is the BSW Scheduler Name Prefix according
[SWS_Rte_07593] and [SWS_Rte_07594],
<vi> is the vendorId of the calling BSW module,
<ai> vendorApiInfix of the calling BSW module,
<me> is the shortName of the BswModuleEntity and
<name> is the exclusive area name. The sub part in squared brack-
ets [<me>_] is emitted if the attribute BswExclusiveAreaPol-
icy.apiPrinciple is set to "perExecutable". The sub part in
squared brackets [_<vi>_<ai>] is omitted if no vendorApiInfix
is defined for the Basic Software Module. See [SWS_Rte_07528].c
(SRS_Rte_00222, SRS_BSW_00347, SRS_Rte_00046)
Existence: [SWS_Rte_07254] dA SchM_Exit API shall be created for each
ExclusiveArea that is declared in the BswInternalBehavior
and which has an canEnterExclusiveArea association..c(SRS_-
Rte_00222, SRS_Rte_00046)
Description: The SchM_Exit API call is invoked by an AUTOSAR BSW module
to define the end of an exclusive area.
Return Value: None.
Notes: The Basic Software Scheduler is not required to support nested in-
vocations of SchM_Exit for the same exclusive area.
6.5.3 SchM_Call
BswModuleDescription as a requiredClientServerEntry.c
(SRS_Rte_00243)
[SWS_Rte_08735] dAn asynchronous SchM_Call API shall
be generated if a callPoint association to a BswAsyn-
chronousServerCallPoint exists and the BswAsyn-
chronousServerCallPoint references a BswModule-
ClientServerEntry as calledEntry and this BswModule-
ClientServerEntry is referenced by the BswModuleDescrip-
tion as a requiredClientServerEntry.c(SRS_Rte_00243)
A configuration that includes both synchronous and asynchronous
Call Points is invalid.
[SWS_Rte_CONSTR_09079] SchM_Call API may only be used
by the BswModuleEntity that describe its usage dThe SchM_-
Call API may only be used within the BswModuleEntity that refer-
ences the corresponding BswSynchronousServerCallPoint re-
spectively BswAsynchronousServerCallPoint using a call-
Point association.c()
Description: Function to initiate Client-Server communication between BSW mod-
ules. The SchM_Call API is used for both synchronous and asyn-
chronous calls.
When the BswModuleClientServerEntry is called
the SchM shall invoke the referenced BswMod-
uleEntry providing the C-function with the signature
<bpns>[_<vi>_<ai>]_name(<data_1>...(<data_n>) on
the partition of the task assigned to the respective BswOpera-
tionInvokedEvent, or on the local partition if the BswOpera-
tionInvokedEvent is not mapped to a task.
[SWS_Rte_08736] dThe OUT parameter returnValue shall only
exist if the returnType of BswModuleEntry is not void and the
SchM_Call is synchronous.c(SRS_Rte_00243)
[SWS_Rte_08737] dThe datatype of the OUT parameter return-
Value shall be equal to returnType of the called BswModuleEn-
try.c(SRS_Rte_00243)
[SWS_Rte_08738] dThe return value of the called BswModuleEn-
try shall be returned inside the OUT parameter returnValue.c
(SRS_Rte_00243)
[SWS_Rte_08739] dThe SchM shall ensure that the BswModuleEn-
tity implementing a server operation has completed the process-
ing of a request before it begins processing the next request, if call
6.5.4 SchM_Result
6.5.5 SchM_Send
6.5.6 SchM_Receive
Signature: [SWS_Rte_08754] d
Std_ReturnType
SchM_Receive_<bsnp>[_<vi>_<ai>]_<name>(OUT <data>)
6.5.7 SchM_Switch
Purpose: Initiate a mode switch. The SchM_Switch API call is used for send-
ing of a mode switch notification by a Basic Software Mod-
ule.
Signature: [SWS_Rte_07255] d
Std_ReturnType
SchM_Switch_<bsnp>[_<vi>_<ai>]_<name>(
IN <mode>)
Where here
<bsnp> is the BSW Scheduler Name Prefix according
[SWS_Rte_07593] and [SWS_Rte_07594],
<vi> is the vendorId of the calling BSW module,
<ai> vendorApiInfix of the calling BSW module and
<name> is the provided (providedModeGroup) ModeDeclara-
tionGroupPrototype name.
The sub part in squared brackets [_<vi>_<ai>] is omitted if no
vendorApiInfix is defined for the Basic Software Module. See
[SWS_Rte_07528].c(SRS_Rte_00215, SRS_BSW_00347)
Existence: [SWS_Rte_07256] dThe existence of a managedModeGroup as-
sociation to a providedModeGroup ModeDeclarationGroup-
Prototype shall result in the generation of a SchM_Switch API.c
(SRS_Rte_00215)
[SWS_Rte_CONSTR_09049] SchM_Switch API may only be
used by BswModuleEntitys that describe its usage dThe
SchM_Switch API may only be used by BswModuleEntitys that
contain a corresponding managedModeGroup associationc()
Description: The SchM_Switch triggers a mode switch for all connected required
(requiredModeGroup) ModeDeclarationGroupPrototypes.
The SchM_Switch API call includes exactly one IN parameter for
the next mode <mode>. The IN parameter <mode> is passed by
value according to the ImplementationDataType on which the
ModeDeclarationGroup is mapped. The type name shall be equal
to the ImplementationDataType symbol.
Return Value: The return value is used to indicate errors detected by the Basic Soft-
ware Scheduler during execution of the SchM_Switch call.
• [SWS_Rte_07258] dSCHM_E_OK – data passed to service
successfully.c(SRS_Rte_00213, SRS_Rte_00214, SRS_Rte_-
00094)
• [SWS_Rte_07259] dSCHM_E_LIMIT – a mode switch has been
discarded due to a full queue.c(SRS_Rte_00213, SRS_Rte_-
00214, SRS_Rte_00143)
Notes: SchM_Switch is restricted to ECU local communication.
If a mode instance is currently involved in a transition then the
SchM_Switch API will attempt to queue the request and return
[SWS_Rte_02667]. However if no transition is in progress for the
mode instance, the mode disablings and the activations of on-entry,
on-transition, and on-exit runnables for this mode instance are exe-
cuted before the SchM_Switch API returns [SWS_Rte_02665].
Note that the mode switch might be discarded when the queue is full
and a mode transition is in progress, see [SWS_Rte_02675].
[SWS_Rte_07286] dIf the mode switched acknowledgment is en-
abled, the RTE shall notify the mode manager when the mode
switch is completed.c(SRS_Rte_00213, SRS_Rte_00214, SRS_-
Rte_00122)
6.5.8 SchM_Mode
There exist two versions of the SchM_Mode APIs. Depending on the attribute en-
hancedModeApi in the basic software module description there shall be provided dif-
ferent versions of this API (see also 6.5.9).
Purpose: Provides the currently active mode of a (requiredModeGroup or
providedModeGroup) ModeDeclarationGroupPrototype.
Signature: [SWS_Rte_07260] d
<return>
SchM_Mode_<bsnp>[_<vi>_<ai>]_<name>()
Where here
<bsnp> is the BSW Scheduler Name Prefix according
[SWS_Rte_07593] and [SWS_Rte_07594],
<vi> is the vendorId of the calling BSW module,
<ai> vendorApiInfix of the calling BSW module and
<name> is the (requiredModeGroup or providedModeGroup)
ModeDeclarationGroupPrototype name.
The sub part in squared brackets [_<vi>_<ai>] is omitted if no
vendorApiInfix is defined for the Basic Software Module. See
[SWS_Rte_07528].c(SRS_Rte_00213, SRS_BSW_00347)
Existence: [SWS_Rte_07261] dIf a accessedModeGroup association to a
providedModeGroup or requiredModeGroup ModeDeclara-
tionGroupPrototype exists and if the attribute enhanced-
ModeApi of the BswModeSenderPolicy resp. BswModeRe-
ceiverPolicy is set to false a SchM_Mode API according to
[SWS_Rte_07260] shall be generated.c(SRS_Rte_00215)
Note: This ensures the availability of the SchM_Mode API for the
mode manager and mode user
[SWS_Rte_CONSTR_09050] SchM_Mode API may only be used
by BswModuleEntitys that describe its usage dThe SchM_Mode
API may only be used by BswModuleEntitys that contain a cor-
responding managedModeGroup association or accessedMode-
Group associationc()
Description: The SchM_Mode API tells the Basic Software Module which mode
of a required or provided ModeDeclarationGroupPrototype is
currently active. This is the information that the RTE uses for the
ModeDisablingDependencys. A new mode will not be indicated
immediately after the reception of a mode switch notification
from a mode manager, see section 4.4.4.During mode transitions,
i.e. during the execution of runnables that are triggered on exiting
one mode or on entering the next mode, overlapping mode disablings
of two modes are active. In this case, the SchM_Mode API will return
RTE_TRANSITION_<ModeDeclarationGroup>.
The SchM_Mode will return the same mode for all required or pro-
vided ModeDeclarationGroupPrototypes that are connected.
(see [SWS_Rte_02630]).
Return Value: The return type of SchM_Mode is dependent on the Implementa-
tionDataType of the ModeDeclarationGroup. It shall return the
value of the ModeDeclarationGroupPrototype. The type name
shall be equal to the ImplementationDataType symbol.
Where here
<bsnp> is the BSW Scheduler Name Prefix according
[SWS_Rte_07593] and [SWS_Rte_07594],
<vi> is the vendorId of the calling BSW module,
<ai> vendorApiInfix of the calling BSW module and
<name> is the (requiredModeGroup or providedModeGroup)
ModeDeclarationGroupPrototype name.
The sub part in squared brackets [_<vi>_<ai>] is omitted if no
vendorApiInfix is defined for the Basic Software Module. See
[SWS_Rte_07528].c(SRS_Rte_00213, SRS_BSW_00347)
6.5.10 SchM_SwitchAck
Where here
<bsnp> is the BSW Scheduler Name Prefix according
[SWS_Rte_07593] and [SWS_Rte_07594],
<vi> is the vendorId of the calling BSW module,
<ai> vendorApiInfix of the calling BSW module and
<name> is the provided (provideModeGroup) ModeDeclara-
tionGroupPrototype name.
6.5.11 SchM_Trigger
Where here
<bsnp> is the BSW Scheduler Name Prefix according
[SWS_Rte_07593] and [SWS_Rte_07594],
<vi> is the vendorId of the calling BSW module,
<ai> vendorApiInfix of the calling BSW module and
<name> is the released (releasedTrigger) Trigger name.
The sub part in squared brackets [_<vi>_<ai>] is omitted if no
vendorApiInfix is defined for the Basic Software Module. See
[SWS_Rte_07528].c(SRS_Rte_00218, SRS_BSW_00347)
Existence: [SWS_Rte_07264] dThe existence of a issuedTrigger associa-
tion to the released (releasedTrigger) Trigger shall result in
the generation of a SchM_Trigger API.c(SRS_Rte_00218)
[SWS_Rte_CONSTR_09053] SchM_Trigger API may only be
used by the BswModuleEntitys that describe its usage dThe
SchM_Trigger API may only be used by the BswModuleEntity
that contains the corresponding issuedTrigger association.c()
6.5.12 SchM_ActMainFunction
Where here
<bsnp> is the BSW Scheduler Name Prefix according
[SWS_Rte_07593] and [SWS_Rte_07594],
<vi> is the vendorId of the calling BSW module,
<ai> vendorApiInfix of the calling BSW module and
<name> is the associated BswInternalTriggeringPoint short
name.
The sub part in squared brackets [_<vi>_<ai>] is omitted if no
vendorApiInfix is defined for the Basic Software Module. See
[SWS_Rte_07528].c(SRS_Rte_00218, SRS_BSW_00347)
6.5.13 SchM_CData
Where here
<bsnp> is the BSW Scheduler Name Prefix according
[SWS_Rte_07593] and [SWS_Rte_07594],
<vi> is the vendorId of the calling BSW module,
<ai> vendorApiInfix of the calling BSW module and
6.5.14 SchM_Pim
6.6.1 Signature
The entry point defined in the Basic Software Modules source must be compatible
with the called function when the BswSchedulableEntity or BswCalledEntity is
triggered by the Basic Software Scheduler and therefore the RTE generator is required
to emit a prototype for the function.
[SWS_Rte_04542] dThe RTE generator shall emit an Entry Point Prototype for each
BswSchedulableEntitys implementedEntry in the Module Interlink Header file.
See chapter 6.3.2 according [SWS_Rte_07282].c(SRS_Rte_00211, SRS_Rte_00213,
SRS_Rte_00216)
[SWS_Rte_04543] dThe RTE generator shall emit an Entry Point Prototype for each
BswCalledEntitys implementedEntry in the Module Interlink Header file, if the
value of the attribute functionPrototypeEmitter is set to "RTE" . See chapter
6.3.2 according [SWS_Rte_08765].c(SRS_Rte_00211, SRS_Rte_00213, SRS_Rte_-
00216)
[SWS_Rte_07195] dThe RTE Generator shall wrap each BswSchedulableEntity’s
Entry Point Prototype in the Module Interlink Header with the Memory Mapping and
Compiler Abstraction macros.
1 #define <snp>[_<vi>_<ai>]_START_SEC_<sadm>
2 #include "<MemMap_filename.h>"
3
4 FUNC(void, <memclass>) <bsnp>[_<vi>_<ai>]_<name>
5 ([IN SchM_ActivatingEvent_<name> <activation>]);
6
7 #define <snp>[_<vi>_<ai>]_STOP_SEC_<sadm>
8 #include "<MemMap_filename.h>"
The RTE Generator shall wrap each BswCalledEntity’s Entry Point Prototype in the
Module Interlink Header with the Memory Mapping and Compiler Abstraction macros.
1 #define <snp>[_<vi>_<ai>]_START_SEC_<sadm>
2 #include "<MemMap_filename.h>"
3
4 FUNC(<returnType>, <memclass>) <bsnp>[_<vi>_<ai>]_<name>(
5 [IN|IN/OUT|OUT] <parameter_1> ... [IN|IN/OUT|OUT] <parameter_n>);
6
7 #define <snp>[_<vi>_<ai>]_STOP_SEC_<sadm>
8 #include "<MemMap_filename.h>"
The Memory Mapping macros could wrap several Entry Point Prototype if these refer-
ring the same swAddrMethod. If the BswSchedulableEntity or the BswCalle-
dEntity does not refer a swAddrMethod the <sadm> is set to CODE.c(SRS_Rte_-
00148, SRS_Rte_00149, SRS_Rte_00238)
[SWS_Rte_07830] dThe RTE Generator shall emit the Applicable Memory Mapping
Header File Name <MemMap_filename.h> as <Msn>[_<vi>_<ai>]_MemMap.h
if the BswImplementation does not contain a DependencyOnArtifact in the
role requiredArtifact where the DependencyOnArtifact.category is set to
MEMMAP. <Msn> is the shortName (case sensitive) of the BswModuleDescrip-
tion.c(SRS_Rte_00148)
[SWS_Rte_07831] dThe RTE generator shall emit the Applicable Memory Map-
ping Header File Name <MemMap_filename.h> identical to the attribute value
requiredArtifact.artifactDescriptor.shortLabel if the BswImplementa-
tion does contain exactly one DependencyOnArtifact in the role requiredAr-
tifact where the DependencyOnArtifact.category is set to MEMMAP.c(SRS_-
Rte_00148)
[SWS_Rte_07832] dThe RTE Generator shall emit the Applicable Memory Map-
ping Header File Name <MemMap_filename.h> identical to the attribute value re-
quiredArtifact.artifactDescriptor.shortLabel of the DependencyOnAr-
tifact in the role requiredArtifact where the DependencyOnArtifact.cat-
egory is set to MEMMAP and which is associated with the SectionNamePrefix
implementedIn of the MemorySection associated to the BswModuleEntity.c
(SRS_Rte_00148)
Please note the example 6.2 of Entry Point Prototype.
[SWS_Rte_06533] dThe RTE Generator shall wrap each Entry Point Prototype in
the Module Interlink Header file of a variant existent BswSchedulableEntity or
BswCalledEntity if the variability shall be implemented.
1 #if (<condition>)
2
3 <Entry Point Prototype>
4
5 #endif
where condition is the Condition Value Macro of the VariationPoint relevant for
the variant existence of the BswSchedulableEntity or BswCalledEntity (see
table 4.36), Entry Point Prototype is the code according an invariant Entry Point
Prototype (see also [SWS_Rte_07282], [SWS_Rte_04542]).c(SRS_Rte_00229)
6.6.3 Reentrancy
[SWS_Rte_08059] dIf the provide activating Bsw event feature is enabled, the RTE
shall collect the activating Bsw events, which have the activationReasonRepre-
sentation reference defined, in the context of the OS task the executable entity
is mapped to in an activation vector at the corresponding bit position as defined in
[SWS_Rte_08058].c(SRS_Rte_00238)
[SWS_Rte_08060] dIf the provide activating Bsw event feature is enabled, the RTE
shall provide the collected activating Bsw events (activation vector) to the executable
entity API when the executable entity is "started". The activation vector shall be reset
immediately after it has been provided.c(SRS_Rte_00238)
Provision of the activating Bsw event is curerntly not availbale for BswCalledEntitys.
Since it is possible that there is a time gap between the activation and the execution
(start) of an executable entity the subsequent activations are summed up and provided
with the start of the executable entity.
Activations during the execution of an executable entity are collected for the next start
of that runnable entity.
6.7.1 SchM_Init
[] d
Service Name SchM_Init
Syntax void SchM_Init (
const SchM_ConfigType* ConfigPtr
)
5
4
Service ID [hex] 0x00
Sync/Async Synchronous
Reentrancy Non Reentrant
Parameters (in) ConfigPtr Pointer to configuration set in Variant Post-Build.
Parameters (inout) None
Parameters (out) None
Return value None
Description SchM_Init is intended to allocate and initialize system resources used by the Basic Software
Scheduler part of the RTE for the core on which it is called.
Available via SchM.h
c()
SchM_Init is intended to allocate and initialize system resources used by the Basic
Software Scheduler part of the RTE for the core on which it is called.
[SWS_Rte_07270] d
void SchM_Init(const SchM_ConfigType * ConfigPtr)
c(SRS_BSW_00101, SRS_Rte_00116)
[SWS_Rte_07271] dThe SchM_Init API is always created.c(SRS_BSW_00101)
[SWS_Rte_07273] dSchM_Init shall return within finite execution time – it must not
enter an infinite loop.c(SRS_BSW_00101)
SchM_Init may be implemented as a function or a macro.
SchM_Init is declared in the lifecycle header file Rte_Main.h.
6.7.2 SchM_Start
[] d
Service Name SchM_Start
Syntax void SchM_Start (
void
)
4
Description Basic Software Scheduler initialized. Shall be called before BswM_Init().
Available via SchM.h
c()
SchM_Start is intended to initialize the Basic Software Scheduler. It shall be called
before BswM_Init().
[SWS_Rte_04546] d
void SchM_Start(void)
c(SRS_BSW_00101)
[SWS_Rte_04547] dThe SchM_Start API is always created.c(SRS_BSW_00101)
[SWS_Rte_04548] dSchM_Start shall return within finite execution time – it must not
enter an infinite loop.c(SRS_BSW_00101)
SchM_Start may be implemented as a function or a macro.
SchM_Start is declared in the lifecycle header file Rte_Main.h.
6.7.3 SchM_StartTiming
[] d
Service Name SchM_StartTiming
Syntax void SchM_StartTiming (
void
)
c()
SchM_StartTiming starts the Basic Software Scheduler part of the RTE.
SchM_Start starts periodical events for BSW/SWCs. SchM_Init() has to be called
before.
[SWS_Rte_04549] d
void SchM_StartTiming(void)
c(SRS_BSW_00101)
[SWS_Rte_04550] dThe SchM_StartTiming API is always created.c(SRS_BSW_-
00101)
[SWS_Rte_04551] dSchM_StartTiming shall return within finite execution time – it
must not enter an infinite loop.c(SRS_BSW_00101)
SchM_StartTiming may be implemented as a function or a macro.
SchM_StartTiming is declared in the lifecycle header file Rte_Main.h.
[SWS_Rte_CONSTR_09055] SchM_Init, SchM_Start, SchM_StartTiming shall
be called only once dSchM_Init, SchM_Start, SchM_StartTiming shall be
called only once by the EcuStateManager on each core after the basic software mod-
ules required by the Basic Software Scheduler part of the RTE are initialized.c()
These modules include:
• OS
6.7.4 SchM_Deinit
[] d
Service Name SchM_Deinit
Syntax void SchM_Deinit (
void
)
c()
SchM_Deinit finalizes the Basic Software Scheduler part of the RTE on the core it is
called.
[SWS_Rte_07274] d
void SchM_Deinit(void)
c(SRS_BSW_00336)
6.7.5 SchM_GetVersionInfo
[] d
Service Name SchM_GetVersionInfo
Syntax void SchM_GetVersionInfo (
Std_VersionInfoType* versioninfo
)
c()
[SWS_Rte_07278] d
void SchM_GetVersionInfo(Std_VersionInfoType * versioninfo)
c(SRS_BSW_00407)
[SWS_Rte_07279] dThe SchM_GetVersionInfo API is only created if
RteSchMVersionInfoApi is set to true.c(SRS_BSW_00407)
7.1 Introduction
For a standard RTE Generator, the possibilities to determine the system dynamics are
very limited (task priorities, internal OsResources ...). A real ECU SW will have more
constraints, e.g. tasks that only run in different system states, tasks that follow the
execution of other tasks (i.e. chains of tasks). Without this knowledge an RTE will on
one side use more protection of internal variables and on the other side perform more
data buffering than necessary. This will lead to higher CPU resource consumption than
necessary. AUTOSAR provides some ideas and requirements regarding buffering of
implicitly accessed data, but mostly leaves the optimization up to the RTE vendor. For
the RTE vendor, the buffer optimization is one of the most challenging jobs when im-
plementing an RTE Generator. And it does again not have all the knowledge about
the system dynamics nor about the optimization goals (AUTOSAR only provides op-
timization switches MEMORY and RUNTIME). The idea of RTE Implementation
Plug-In is to move the jobs of protection and buffering optimizations from the RTE
vendor to some domain specific tool which has a more detailed knowledge about opti-
mization goals and system dynamics.
With the introduction of Software Clusters in the AUTOSAR Classic Platform
additionally the Cross Cluster Communication is realized by means of RTE Im-
plementation Plug-Ins.
The interface between the RTE and the domain specific tooling will mostly be a C
code interface. Further on in this document this domain specific tooling with the RTE
extending C-code will be called RTE Implementation Plug-In. Those RTE Im-
plementation Plug-Ins can exist in two specializations characterizing the different
communication scope:
• Local Software Cluster Communication Plug-Ins
• Cross Software Cluster Communication Plug-Ins
From the AUTOSAR software layered architecture point of view the RTE Implemen-
tation Plug-Ins are a part of the RTE. This means the "Core" RTE provided by
the RTE Generator plus the RTE Implementation Plug-Ins implement the over-
all RTE. Nevertheless the interface between the "Core" RTE and the RTE Implemen-
tation Plug-Ins is standardized in order to support, that the RTE Generator and
the RTE Implementation Plug-Ins can be provided by different vendors.
The Figure 7.1 shows the principle of implicit communication implementation via an
RTE Implementation Plug-In. Based on the Software Component Description
the RTE provides the Rte_IRead API. This Rte_IRead API uses the Rte_Rips_IR-
BufferRef API from the RTE Implementation Plug-In to get the address of the
implicit communication buffer Buf_Task1_dat1. The RTE Implementa-
tion Plug-In provides the fill- and flush routines and the implicit communica-
tion buffer instance. Via interface conventions it knows as well the global copy
Rte_dataInstance1 which is related to the Data Communication Graph. This
supports the creation of the according copy code for the fill- and flush routines.
It’s possible that a Communication Graph is handled by at most two different RTE
Implementation Plug-Ins with a different communication scope. This enables
e.g. that for one communication graph a Local Software Cluster Communi-
cation Plug-In implements optimized implicit buffering or LET compliant buffering
and additionally a Cross Software Cluster Communication Plug-In imple-
ments the communication from / to other Software Clusters. Nevertheless the as-
sociation via the RIPS FlatInstanceDescriptors has to be done in a consistent
manner. This consistency restrictions are defined by following constraints:
[SWS_Rte_CONSTR_80019]{DRAFT} associatedRtePlugin shall only
reference a Local Software Cluster Communication Plug-In d
FlatInstanceDescriptor.rtePluginProps.associatedRtePlugin shall
only reference a RteRipsPluginProps EcucContainerValue where
the parameter value RteRipsPluginCommunicationScope is set to
RTE_RIPS_LOCAL_SW_CLUSTER_COM or is omitted.c(SRS_Rte_00304, SRS_-
Rte_00318)
[SWS_Rte_CONSTR_80030]{DRAFT} associatedCrossSwClusterCom-
RtePlugin shall only reference a Cross Software Cluster Communication
Plug-In dFlatInstanceDescriptor.rtePluginProps.associatedCrossS-
wClusterComRtePlugin shall only reference a RteRipsPluginProps EcucCon-
tainerValue where the parameter value RteRipsPluginCommunicationScope
is set to RTE_RIPS_CROSS_SW_CLUSTER_COM.c(SRS_Rte_00304, SRS_Rte_00318)
Please note that for specific types of communication the usage might be re-
stricted to the assignment of either a Local Software Cluster Communication
Plug-In or a Cross Software Cluster Communication Plug-In. For other
types of communication the parallel assignment of a Local Software Cluster
Communication Plug-In AND a Cross Software Cluster Communication
Plug-In might be supported. Such details are are defined in the according chapters
of the RTE Implementation Plug-Ins support.
[SWS_Rte_CONSTR_80201]{DRAFT} Communication Graph is handled by at
most one Local Software Cluster Communication Plug-In and one
Cross Software Cluster Communication Plug-In. dA Communication
Graph is handled by at most one Local Software Cluster Communica-
tion Plug-In and at most one Cross Software Cluster Communication
Plug-In. But it’s possible, that both RTE Implementation Plug-Inss are en-
abled together.c(SRS_Rte_00304, SRS_Rte_00318)
Rationale: Incase of an arbitrary number of RTE Implementation Plug-Ins the
interaction between RTE and the RTE Implementation Plug-Ins is unspecified.
The RTE Global Buffer Declaration File makes all global copies of data in-
stantiated by the RTE visible to the RTE Implementation Plug-In Services
and the RTE Implementation Plug-In C-code. As the RTE Implementation
Plug-In only knows their name by the related RIPS FlatInstanceDescriptor,
it might be necessary to have an according mapping in case the resulting global
copy name differs from this one. The RTE therefore has to map the name derived
from the RIPS FlatInstanceDescriptor domain to the real C name implemented
by the RTE. An example of a RTE Global Buffer Declaration File containing
a plain declaration and a declaration with mapping can be seen below in Example 7.1.
Example 7.1
1 #ifndef RTE_BUFFERS_H
2 #define RTE_BUFFERS_H
3
4 #include "Rte_DataHandleType.h"
5 #include "Rte_Rips_myPlugin1_Buffers.h"
6 #include "Rte_Rips_myPlugin2_Buffers.h"
7
8 extern uint32 Rte_someInternalNameForData;
9
10 #define Rte_Rips_GlobalCopy_myMappedData Rte_someInternalNameForData
11
12 #endif /* RTE_BUFFERS_H */
[SWS_Rte_80000] dThe RTE Global Buffer Declaration File shall have the
name Rte_Buffers.h.c(SRS_Rte_00306)
[SWS_Rte_80001] dThe RTE Generator shall create the RTE Global Buffer
Declaration File when the RTE Implementation Plug-In mode is enabled.c
(SRS_Rte_00306)
[SWS_Rte_80002] dThe RTE Global Buffer Declaration File shall include
the RTE Data Handle Types Header File.c(SRS_Rte_00306)
[SWS_Rte_80003] dThe RTE Global Buffer Declaration File shall include
all RIPS Buffer Declaration Files of all participating RTE Implementation
Plug-Ins.c(SRS_Rte_00306)
[SWS_Rte_80005] dThe RTE Global Buffer Declaration File shall export
the declarations of all global copies for implicit communication instantiated by the RTE,
where the Data Communication Graph is associated with a RTE Implementa-
tion Plug-In.c(SRS_Rte_00306)
Please note: The data structures for queues inside an RTE are considered as specific
for each RTE implementation. Since there is never the use case to buffer queued com-
munication there is no need to make them accessible for the RTE Implementation
Plug-In code.
[SWS_Rte_80006] dFor each global copy of a Data Communication Graph
associated to an RTE Implementation Plug-In and implemented by the RTE
where the C symbol is different to the shortName of the respective RIPS FlatIn-
stanceDescriptor prefixed by Rte_Rips_GlobalCopy_, the RTE Global
Buffer Declaration File shall export a mapping from the shortName of the
RIPS FlatInstanceDescriptor prefixed by Rte_Rips_GlobalCopy_ to the ac-
cording C symbol of the global copy.c(SRS_Rte_00306)
[SWS_Rte_80131]{DRAFT} dFor each parameter instace of a Parameter
Communication Graph associated to an RTE Implementation Plug-In where
the C symbol (decided by the RTE) is different to the shortName of the respec-
tive RIPS FlatInstanceDescriptor prefixed by Rte_Rips_PrmInst_, the RTE
Global Buffer Declaration File shall export a mapping from the shortName
of the RIPS FlatInstanceDescriptor prefixed by Rte_Rips_PrmInst_ to the
according C symbol of the parameter instance.c(SRS_Rte_00306, SRS_Rte_-
00319)
Example 7.2
1 #ifndef RTE_BUFFERS_H
2 #define RTE_BUFFERS_H
3
4 extern uint32 Rte_someInternalNameForData;
5 extern uint16 Rte_someInternalNameForParameter;
6
7 /*SWS_Rte_80006*/
8 #define Rte_Rips_GlobalCopy_myMappedData Rte_someInternalNameForData
9 /*SWS_Rte_80131*/
10 #define Rte_Rips_PrmInst_myParameter Rte_someInternalNameForParameter
11
12 #endif /* RTE_BUFFERS_H */
[SWS_Rte_80007] dThe RTE shall be implemented in a way that the mappings re-
sulting from [SWS_Rte_80006] and [SWS_Rte_80131] shall not have any effect on the
AUTOSAR RTE code, specifically Rte.c, as they might cause unintended replacements
there. In particular this means that they shall not change the C symbol of the global
copies.c(SRS_Rte_00306)
Note: [SWS_Rte_80007] can be simply implemented by the fact that the RTE
code does not use any symbols starting with Rte_Rips_GlobalCopy_ or
Rte_Rips_PrmInst_.
The RIPS Buffer Declaration File makes all global copies of data instantiated
by the RTE Implementation Plug-In visible to the RTE.
[SWS_Rte_70000] dThe RIPS Buffer Declaration File shall have the name
Rte_Rips_<PlugIn>_Buffers.h, where <PlugIn> is the name of the related RTE
Implementation Plug-In defined by the container RteRipsPluginProps.c
(SRS_Rte_00306)
[SWS_Rte_70001] dThe RTE Implementation Plug-In shall create the RIPS
Buffer Declaration File.c(SRS_Rte_00306)
Note: Each participating RTE Implementation Plug-In creates a separate RIPS
Buffer Declaration File.
[SWS_Rte_70002] dThe RIPS Buffer Declaration File shall include the RTE
Data Handle Types Header File (Rte_DataHandleType.h).c(SRS_Rte_-
00306)
[SWS_Rte_70003] dThe RIPS Buffer Declaration File shall export the decla-
rations of the implicit communication buffers for the RIPS relevant data han-
dled by this RTE Implementation Plug-In.c(SRS_Rte_00306, SRS_Rte_00301)
[SWS_Rte_70004] dThe RIPS Buffer Declaration File shall export the type
definitions of the implicit communication buffers for RIPS relevant data han-
dled by this RTE Implementation Plug-In.c(SRS_Rte_00306, SRS_Rte_00301)
[SWS_Rte_70008] dThe RTE Implementation Plug-In shall name the RTE Im-
plementation Plug-In Implementation Files in a way that name collisions
with file names of AUTOSAR Basic Software Modules and Software Components are
avoided.c(SRS_Rte_00306)
Please note that the file structure of the RTE Implementation Plug-In is not
strictly standardized. Nevertheless [SWS_Rte_70009] defines a recommendation for
the case the RTE Implementation Plug-In needs only one source file. For sure
the given name pattern can also be extended to support more than one file, e.g. one
source file per ASIL level.
[SWS_Rte_70009] dIf the RTE Implementation Plug-In uses a single source
file, the RTE Implementation Plug-In Implementation File should have
the name Rte_Rips_<PlugIn>.c, where <PlugIn> is the name of the re-
lated RTE Implementation Plug-In defined by the container RteRipsPlugin-
Props.c(SRS_Rte_00306)
[SWS_Rte_70010] dThe RTE Implementation Plug-In shall create the RTE Im-
plementation Plug-In Implementation Files.c(SRS_Rte_00306)
Note: Each participating RTE Implementation Plug-In creates a separate set of
RTE Implementation Plug-In Implementation Files.
[SWS_Rte_70011] dThe RTE Implementation Plug-In Implementation
Files shall include the RTE Global Buffer Declaration File.c(SRS_Rte_-
00306)
[SWS_Rte_70012] dThe RTE Implementation Plug-In Implementation
Files shall include the RTE Implementation Plug-In Header File.c(SRS_-
Rte_00306)
[SWS_Rte_70013] dThe RTE Implementation Plug-In Implementation
Files shall contain the definition of the implicit communication buffers for
RIPS relevant data handled by this RIPS plug-in.c(SRS_Rte_00306, SRS_Rte_00301)
The RIPS Implementation File shall contain the definition of the implicit commu-
nication buffers for RIPS relevant data handled by this RIPS plug-in, the imple-
mentation of the fill- and flush-Runnables and all further memory consuming C objects
that might be necessary by the RIPS implementation of this plug-in.
This subsection describes the additional requirements on the RTE Header File of
the RTE when the RTE Implementation Plug-In mode is enabled.
[SWS_Rte_80008] dThe RTE Header File (Rte.h) shall include the RTE Imple-
mentation Plug-In Header Files of all participating RTE Implementation
Plug-Ins.c(SRS_Rte_00306)
This subsection describes the additional requirements on the RTE Data Handle
Types Header File of the RTE when the RTE Implementation Plug-In mode
is enabled.
[SWS_Rte_80079] dIn case the RTE implements a global copy of some RIPS rel-
evant Data Communication Graphs or Parameter Communication Graphs,
the RTE Data Handle Types Header File shall contain a wrapper type defini-
tion for each global copy
typedef <type of global copy> Rte_Rips_GlobalCopy_<CGI>_Type;
where <CGI> is the name of the Communication Graph Instance defined by the
shortName of the RIPS FlatInstanceDescriptor referencing the Communica-
tion Graph.c(SRS_Rte_00306, SRS_Rte_00301, SRS_Rte_00302)
[SWS_Rte_82011]{DRAFT} dIn case the RTE implements a parameter instance
of some RIPS relevant Parameter Communication Graphs, the RTE Data Han-
dle Types Header File shall contain a wrapper type definition for each parame-
ter instance
typedef <type of parameter instance> Rte_Rips_PrmInst_<CGI>_Type;
where <CGI> is the name of the Communication Graph Instance defined by the
shortName of the RIPS FlatInstanceDescriptor referencing the Communica-
tion Graph.c(SRS_Rte_00306, SRS_Rte_00301, SRS_Rte_00302)
This wrapper type is intended for RTE Implementation Plug-Ins with type inde-
pendent buffering strategy. In this case the buffering decisions are driven by the timing
behavior and interference of readers and writers. For instance LET based buffering. In
this case the RTE Implementation Plug-Ins can omit the gathering of types from
the AUTOSAR model.
[SWS_Rte_80009] dThe RTE Data Handle Types Header File
(Rte_DataHandleType.h) shall include the RTE Types Header File inde-
pendent whether this is directly needed or not.c(SRS_Rte_00306)
The RTE Implementation Plug-In Services are defined according to the fol-
lowing principles.
The RTE APIs towards the Software Components or Basic Software Modules are de-
fined amongst the AUTOSAR Meta Model (e.g. providing an explicit write access to
a specific data element in a specific port of a SwComponentType). In contrast the
interface towards the RTE Implementation Plug-Ins is on one hand strictly use
case oriented resp. instance based. Use case oriented means that for the same use
case (e.g. starting the protection of an ExclusiveArea) which may exist in Software
Components or Basic Software Modules the same kind of RTE Implementation
Plug-In Service is defined and provided for use by the RTE code.
Instance based means that the name of a RTE Implementation Plug-In Ser-
vice reflects the specific activity on a specific entity in the ECU SW implemented by
c(SRS_Rte_00306)
Further details are described in section 7.2.4.
[SWS_Rte_70035] d<SwcBswI> SWC-BSW-Instance name is either the short-
Name of the SwComponentPrototype (in the RootSwComposition of the ECU
Extract) or the BSW Module Instance Name according to [SWS_Rte_70036].c(SRS_-
Rte_00306)
Note: in some RTE Implementation Plug-In Services the name part <SwcB-
swI> is mandatory, in others it is alternatively used with <Partition>
[SWS_Rte_70135]{DRAFT} d<Partition> is the shortName of the EcucParti-
tion on which the SwComponentPrototype (in the RootSwComposition of the
ECU Extract) of the accessing software component is mapped to or to which the using
RTE code belongs.c(SRS_Rte_00306)
[SWS_Rte_70036] dThe BSW Module Instance Name <bsnp>[_<vi>_<ai>]
is composed out of <bsnp> is the BSW Scheduler Name Prefix according
[SWS_Rte_07593] and [SWS_Rte_07594], <vi> is the vendorId of the accessing
BSW module, <ai> is the vendorApiInfix of the accessing BSW module.c(SRS_Rte_-
00306)
[SWS_Rte_70037] d<ExE> is the shortName of the ExecutableEntity accessing
an element instance. The name part <ExE> only exists in case the RTE offers the abil-
ity to distinguish the accesses of different ExecutableEntitys.c(SRS_Rte_00306)
[SWS_Rte_70038] d<elementInstance> identifies the element to which the access
is provided. Since a specific use case is typically linked to a specific element, following
specific element instance name parts will be used:
• <CGI> is the name of the Communication Graph Instance defined by the
shortName of the RIPS FlatInstanceDescriptor referencing the Commu-
nication Graph.
• <ExclusiveArea> is the shortName of the ExclusiveArea.
• <MMI> is the shortName of the RteModeMachineInstanceConfig or RteB-
swModeMachineInstanceConfig container.
• <DSMQ> is the shortName of the RteDistributedSharedModeQueue or
RteBswModeMachineInstanceConfig container.
• <DE> is the shortName of the DataReceivedEvent.
c(SRS_Rte_00306)
be implemented as C-functions and function like macros, see section 5.2.6.3. In case
of function like macros the RTE implementation uses very likely comma expressions to
return either the error code or a read return value. This requires that an RTE Imple-
mentation Plug-In Service can be used in such a comma expression.
[SWS_Rte_70030] dThe RTE Implementation Plug-In shall implement every
RTE Implementation Plug-In Service that it can be used in a comma expres-
sion.c(SRS_Rte_00306)
API implementations as function like macros can have strange side effects. A special
case is the nested call of APIs, e.g. an Rte_DRead as a parameter of an Rte_-
Write. The user would naturally expect that the code of Rte_DRead is executed
before entering into the Rte_Write API. But since macros are just text replacements,
this is technically not the case. Instead, the Rte_DRead will be executed where the
parameter is used inside the Rte_Write. This can lead to various effects, such as
undesired nesting of (RTE or RTE Implementation Plug-Ins) protection code or
multiple executions of Rte_DRead with differing results. This has to be avoided.
[SWS_Rte_80025] dThe RTE shall implement its code in a way to be robust against
the undesired nesting of passed as macro parameter into the critical sections pro-
tected by the call of RTE Implementation Plug-In Services, e.g. Rte_-
Rips_StartRead, Rte_Rips_StopRead, Rte_Rips_StartWrite, and Rte_-
Rips_StopWrite.c(SRS_Rte_00306, SRS_Rte_00314)
Note: This can be achieved by either using real functions, inline functions, or by as-
signing the macro argument to an temporary variable outside the critical section.
7.2.4.1.1 Rte_Rips_IRead
[SWS_Rte_89000] d
Service Name Rte_Rips_<PlugIn>_IRead_<SwcBswI>_<ExE>_<CGI>
Syntax <return> Rte_Rips_<PlugIn>_IRead_<SwcBswI>_<ExE>_<CGI> (
void
)
c()
Please note that the Rte_Rips_IRead Service is only applicable for Local Soft-
ware Cluster Communication Plug-Ins since a Cross Software Cluster
Communication Plug-Ins does not implement implicit communication buffering.
[SWS_Rte_70015] dThe associated Local Software Cluster Communica-
tion Plug-In shall provide the Rte_Rips_IRead Service for each VariableAc-
cess of a RunnableEntity in the role dataReadAccess and each VariableAc-
cess in role readLocalVariable to an implicitInterRunnableVariable if
• for the related Data Communication Graph the Local Software Clus-
ter Communication Plug-In support is enabled
AND
• where the data instance is typed by a primitive data type
AND
• the data instance is a data element without status according to
[SWS_Rte_80041]
AND
• for the associated Local Software Cluster Communication
Plug-In the RtePluginSupportsIReadIWrite is true.
c(SRS_Rte_00306, SRS_Rte_00301)
[SWS_Rte_80010] dThe RTE shall call Rte_Rips_IRead Service to implicitly read
data if
• for the related Data Communication Graph the Local Software Clus-
ter Communication Plug-In support is enabled
AND
• where the data instance is typed by a primitive data type
AND
• the data instance is a data element without status according to
[SWS_Rte_80041]
AND
• for the associated Local Software Cluster Communication
Plug-In the RtePluginSupportsIReadIWrite is true.
c(SRS_Rte_00306, SRS_Rte_00301)
7.2.4.1.2 Rte_Rips_IWrite
[SWS_Rte_89001] d
Service Name Rte_Rips_<PlugIn>_IWrite_<SwcBswI>_<ExE>_<CGI>
Syntax void Rte_Rips_<PlugIn>_IWrite_<SwcBswI>_<ExE>_<CGI> (
IN data
)
c()
Please note that the Rte_Rips_IWrite Service is only applicable for Local Soft-
ware Cluster Communication Plug-Ins since a Cross Software Cluster
Communication Plug-Ins does not implement implicit communication buffering.
[SWS_Rte_70016] dThe associated Local Software Cluster Communica-
tion Plug-In shall provide the Rte_Rips_IWrite Service for each VariableAc-
cess of a RunnableEntity in the role dataWriteAccess and each VariableAc-
cess in role writtenLocalVariable to an implicitInterRunnableVariable
if
• for the related Data Communication Graph the Local Software Clus-
ter Communication Plug-In support is enabled
AND
• where the data instance is typed by a primitive data type
AND
• the data instance is a data element without status according to
[SWS_Rte_80041]
AND
• for the associated RTE Implementation Plug-In the RtePluginSup-
portsIReadIWrite is true.
c(SRS_Rte_00306, SRS_Rte_00301)
[SWS_Rte_80011] dThe RTE shall call Rte_Rips_IWrite Service to implicitly write
data if
• for the related Data Communication Graph the Local Software Clus-
ter Communication Plug-In support is enabled
AND
• where the data instance is typed by a primitive data type
AND
• the data instance is a data element without status according to
[SWS_Rte_80041]
AND
• for the associated Local Software Cluster Communication
Plug-In the RtePluginSupportsIReadIWrite is true.
c(SRS_Rte_00306, SRS_Rte_00301)
7.2.4.2.1 Rte_Rips_IRBufferRef
[SWS_Rte_89002] d
Service Name Rte_Rips_<PlugIn>_IRBufferRef_<SwcBswI>_<ExE>_<CGI>
Syntax <rips_return_ref> Rte_Rips_<PlugIn>_IRBufferRef_<SwcBswI>_<ExE>_
<CGI> (
void
)
c()
Please note that the Rte_Rips_IRBufferRef Service is only applicable for Lo-
cal Software Cluster Communication Plug-Ins since a Cross Software
Cluster Communication Plug-Ins does not implement implicit communication
buffering.
[SWS_Rte_70017] dThe associated Local Software Cluster Communica-
tion Plug-In shall provide the Rte_Rips_IRBufferRef Service for each Vari-
ableAccess of a RunnableEntity in the role dataReadAccess and each Vari-
ableAccess in role readLocalVariable to an implicitInterRunnableVari-
able if for the related Data Communication Graph the Local Software Clus-
ter Communication Plug-In support is enabled.c(SRS_Rte_00306, SRS_Rte_-
00301)
[SWS_Rte_80012] dThe RTE shall call Rte_Rips_IRBufferRef Service to get the
address of the memory from which the value and/or status of an implicitly read data
instance can be read. Thereby Rte_Rips_IRBufferRef shall only be applied if the
usage of Rte_Rips_IRead is not applicable.(See [SWS_Rte_80010]).c(SRS_Rte_-
00306, SRS_Rte_00301)
[SWS_Rte_80013] dThe RTE shall initialize the related data handle for implicit read
only access in the CDS with the Rte_Rips_IRBufferRef if the implicit data ac-
cess needs to be implemented via a data handle in a data handles section
7.2.4.2.2 Rte_Rips_IWBufferRef
[SWS_Rte_89003] d
Service Name Rte_Rips_<PlugIn>_IWBufferRef_<SwcBswI>_<ExE>_<CGI>
Syntax <rips_return_ref> Rte_Rips_<PlugIn>_IWBufferRef_<SwcBswI>_<ExE>_
<CGI> (
void
)
c()
Please note that the Rte_Rips_IWBufferRef Service is only applicable for Lo-
cal Software Cluster Communication Plug-Ins since a Cross Software
Cluster Communication Plug-Ins does not implement implicit communication
buffering.
[SWS_Rte_70018] dThe associated Local Software Cluster Communica-
tion Plug-In shall provide the Rte_Rips_IWBufferRef Service for each Vari-
ableAccess of a RunnableEntity in the role dataWriteAccess and each Vari-
ableAccess in role writtenLocalVariable to an implicitInterRunnable-
Variable if for the related Data Communication Graph the Local Software
Cluster Communication Plug-In support is enabled.c(SRS_Rte_00306, SRS_-
Rte_00301)
[SWS_Rte_80014] dThe RTE shall call Rte_Rips_IWBufferRef Service to get the
address of the memory to which the value and/or status of an implicitly written data
7.2.4.3.1 Rte_Rips_FillFlushRoutine
[SWS_Rte_89014] d
Service Name <name of the Fill-Flush-Routine>
Syntax void <name of the Fill-Flush-Routine> (
void
)
c()
Please note that the Rte_Rips_FillFlushRoutine Service is only applicable for
Local Software Cluster Communication Plug-Ins since a Cross Soft-
ware Cluster Communication Plug-Ins does not implement implicit commu-
nication buffering.
[SWS_Rte_70078] dThe associated Local Software Cluster Communica-
tion Plug-In shall provide the Rte_Rips_FillFlushRoutine Service for
each configured RteRipsPluginFillFlushRoutineFnc.c(SRS_Rte_00306,
SRS_Rte_00301)
7.2.4.4.1 Rte_Rips_StartRead
[SWS_Rte_89004] d
Service Name Rte_Rips_<PlugIn>_StartRead_<SwcBswI>[_<ExE>]_<CGI>
Syntax void Rte_Rips_<PlugIn>_StartRead_<SwcBswI>[_<ExE>]_<CGI> (
void
)
c()
Please note that the Rte_Rips_StartRead Service is only applicable for Lo-
cal Software Cluster Communication Plug-Ins since a Cross Software
Cluster Communication Plug-Ins does not implement access protection for
RTE code.
[SWS_Rte_70019] dThe associated Local Software Cluster Communica-
tion Plug-In shall provide the Rte_Rips_StartRead Service for each Vari-
ableDataPrototype instance in an AbstractRequiredPortPrototype for
which an VariableAccess of a RunnableEntity in the role dataReceivePoint-
ByArgument or dataReceivePointByValue exists and
for each VariableAccess in role readLocalVariable to an explicitInter-
RunnableVariable if
• for the related Data Communication Graph the Local Software Clus-
ter Communication Plug-In support is enabled
AND
• for the associated Local Software Cluster Communication
Plug-In the RteRipsGlobalCopyInstantiationPolicy is set to
RTE_RIPS_INSTANTIATION_BY_RTE.
c(SRS_Rte_00306, SRS_Rte_00300)
7.2.4.4.2 Rte_Rips_StopRead
[SWS_Rte_89005] d
Service Name Rte_Rips_<PlugIn>_StopRead_<SwcBswI>[_<ExE>]_<CGI>
Syntax void Rte_Rips_<PlugIn>_StopRead_<SwcBswI>[_<ExE>]_<CGI> (
void
)
c()
Please note that the Rte_Rips_StopRead Service is only applicable for Lo-
cal Software Cluster Communication Plug-Ins since a Cross Software
Cluster Communication Plug-Ins does not implement access protection for
RTE code.
7.2.4.4.3 Rte_Rips_StartWrite
[SWS_Rte_89006] d
c()
Please note that the Rte_Rips_StartWrite Service is only applicable for Lo-
cal Software Cluster Communication Plug-Ins since a Cross Software
Cluster Communication Plug-Ins does not implement access protection for
RTE code.
[SWS_Rte_70023] dThe associated Local Software Cluster Communica-
tion Plug-In shall provide the Rte_Rips_StartWrite Service for each Vari-
ableDataPrototype instance in an AbstractProvidedPortPrototype for
which an VariableAccess of a RunnableEntity in the role dataSendPoint ex-
ists
and for each VariableAccess in role writtenLocalVariable to an explicit-
InterRunnableVariable if
• for the related Data Communication Graph the Local Software Clus-
ter Communication Plug-In support is enabled
AND
• for the associated Local Software Cluster Communication
Plug-In the RteRipsGlobalCopyInstantiationPolicy is set to
RTE_RIPS_INSTANTIATION_BY_RTE.
c(SRS_Rte_00306, SRS_Rte_00300)
Please note: In case of protection of explicitInterRunnableVariables the
name part [_<ExE>] exists.
[SWS_Rte_70024] dThe associated Local Software Cluster Communica-
tion Plug-In shall provide the Rte_Rips_StartWrite Service for each
BswVariableAccess of a BswModuleEntity in the role dataSendPoint if
• for the related Data Communication Graph the Local Software Clus-
ter Communication Plug-In support is enabled
AND
• for the associated Local Software Cluster Communication
Plug-In the RteRipsGlobalCopyInstantiationPolicy is set to
RTE_RIPS_INSTANTIATION_BY_RTE.
c(SRS_Rte_00306, SRS_Rte_00300)
[SWS_Rte_80018] dThe RTE shall call Rte_Rips_StartWrite at the position and
instead of the RTE’s regular AUTOSAR get access protection action, e.g. Sus-
pendOsInterrupts() or GetResource(), if for the related Data Communica-
tion Graph the Local Software Cluster Communication Plug-In support
is enabled.c(SRS_Rte_00306, SRS_Rte_00300)
7.2.4.4.4 Rte_Rips_StopWrite
[SWS_Rte_89007] d
Service Name Rte_Rips_<PlugIn>_StopWrite_<SwcBswI>[_<ExE>]_<CGI>
Syntax void Rte_Rips_<PlugIn>_StopWrite_<SwcBswI>[_<ExE>]_<CGI> (
void
)
c()
Please note that the Rte_Rips_StopWrite Service is only applicable for Lo-
cal Software Cluster Communication Plug-Ins since a Cross Software
Cluster Communication Plug-Ins does not implement access protection for
RTE code.
[SWS_Rte_70025] dThe associated Local Software Cluster Communica-
tion Plug-In shall provide the Rte_Rips_StopWrite Service for each Vari-
ableDataPrototype instance in an AbstractProvidedPortPrototype for
which an VariableAccess of a RunnableEntity in the role dataSendPoint ex-
ists
and for each VariableAccess in role writtenLocalVariable to an explicit-
InterRunnableVariable if
• for the related Data Communication Graph the Local Software Clus-
ter Communication Plug-In support is enabled
AND
• for the associated Local Software Cluster Communication
Plug-In the RteRipsGlobalCopyInstantiationPolicy is set to
RTE_RIPS_INSTANTIATION_BY_RTE.
c(SRS_Rte_00306, SRS_Rte_00300)
Please note: In case of protection of explicitInterRunnableVariables the
name part [_<ExE>] exists.
[SWS_Rte_70026] dThe associated Local Software Cluster Communica-
tion Plug-In shall provide the Rte_Rips_StopWrite Service for each BswVari-
ableAccess of a BswModuleEntity in the role dataSendPoint if
• for the related Data Communication Graph the Local Software Clus-
ter Communication Plug-In support is enabled
AND
• for the associated Local Software Cluster Communication
Plug-In the RteRipsGlobalCopyInstantiationPolicy is set to
RTE_RIPS_INSTANTIATION_BY_RTE.
c(SRS_Rte_00306, SRS_Rte_00300)
[SWS_Rte_80019] dThe RTE shall call Rte_Rips_StopWrite at the position and
instead of the RTE’s regular AUTOSAR release access protection action, e.g. Re-
sumeOsInterrupts() or ReleaseResource(), if for the related Data Communi-
cation Graph the associated Local Software Cluster Communication
Plug-In support is enabled.c(SRS_Rte_00306, SRS_Rte_00300)
7.2.4.5.1 Rte_Rips_Read
[SWS_Rte_89010]{OBSOLETE} d
Service Name Rte_Rips_<PlugIn>_Read_<SwcBswI>[_<ExE>]_<CGI> (obsolete)
Syntax Std_ReturnType Rte_Rips_<PlugIn>_Read_<SwcBswI>[_<ExE>]_<CGI> (
OUT <data>,
[Std_TransformerError transformerError]
)
4
Sync/Async Synchronous
Reentrancy Reentrant
Parameters (in) None
Parameters (inout) None
Parameters (out) <data> The OUT parameter <data> pass back the received data.
transformerError The OUT parameter transformerError contains the transformer
error which occurred during execution of the transformer chain.
Return value Std_ReturnType The return value is used to indicate communication errors.
Description Rte_Rips_Read Performs an "explicit" read on a sender-receiver communication data element.
Tags:atp.Status=obsolete
Available via Rte_Rips_<PlugIn>_<SwcBswI>.h
c()
Please note that [SWS_Rte_89010] is set to obsolete and will be replaced
by [SWS_Rte_89020] to support Cross Software Cluster Communication
Plug-Ins.
[SWS_Rte_89020]{DRAFT} d
Service Name Rte_Rips_<PlugIn>_Read_[<SwcBswI>][Partition][_<ExE>]_<CGI>(draft)
Syntax Std_ReturnType Rte_Rips_<PlugIn>_Read_[<SwcBswI>][Partition][_<
ExE>]_<CGI> (
OUT <data>,
[Std_TransformerError transformerError]
)
7.2.4.5.2 Rte_Rips_Write
[SWS_Rte_89011]{OBSOLETE} d
Service Name Rte_Rips_<PlugIn>_Write_<SwcBswI>[_<ExE>]_<CGI> (obsolete)
Syntax Std_ReturnType Rte_Rips_<PlugIn>_Write_<SwcBswI>[_<ExE>]_<CGI> (
IN <data>,
[Std_TransformerError transformerError]
)
4
Parameters (inout) None
Parameters (out) transformerError The OUT parameter transformerError contains the transformer
error which occurred during execution of the transformer chain.
Return value Std_ReturnType The return value is used to indicate communication errors.
Description Rte_Rips_Write Performs an "explicit" write on a sender-receiver communication data element.
Tags:atp.Status=obsolete
Available via Rte_Rips_<PlugIn>_<SwcBswI>.h
c()
Please note that [SWS_Rte_89011] is set to obsolete and will be replaced
by [SWS_Rte_89021] to support Cross Software Cluster Communication
Plug-Ins.
[SWS_Rte_89021]{DRAFT} d
Service Name Rte_Rips_<PlugIn>_Write_[<SwcBswI>][Partition][_<ExE>]_<CGI>(draft)
Syntax Std_ReturnType Rte_Rips_<PlugIn>_Write_[<SwcBswI>][Partition][_<
ExE>]_<CGI> (
IN <data>,
[Std_TransformerError transformerError]
)
AND
– for the associated Local Software Cluster Communication
Plug-In the RteRipsGlobalCopyInstantiationPolicy is set to
RTE_RIPS_INSTANTIATION_BY_PLUGIN.
OR
– a data transformation is configured according [SWS_Rte_08794] or
[SWS_Rte_08105].
c(SRS_Rte_00306, SRS_Rte_00300, SRS_Rte_00303)
Please note: In case of protection of explicitInterRunnableVariables the
name part [_<ExE>] exists.
[SWS_Rte_70057] dThe associated Local Software Cluster Communica-
tion Plug-In shall provide the Rte_Rips_Write Service for each BswVari-
ableAccess of a BswModuleEntity in the role dataSendPoint if
• for the related Data Communication Graph the Local Software Clus-
ter Communication Plug-In support is enabled
AND
• for the associated Local Software Cluster Communication
Plug-In the RteRipsGlobalCopyInstantiationPolicy is set to
RTE_RIPS_INSTANTIATION_BY_PLUGIN.
c(SRS_Rte_00306, SRS_Rte_00300, SRS_Rte_00303)
[SWS_Rte_70131]{DRAFT} dThe associated Cross Software Cluster
Communication Plug-In shall provide the Rte_Rips_Wrie Service for each
VariableDataPrototype instance in an AbstractProvidedPortPrototype
for which an VariableAccess of a RunnableEntity in the role dataSendPoint
exists if
• for the related Data Communication Graph the Cross Software Clus-
ter Communication Plug-In support is enabled
AND
• for the dataElement “event” semantics (swImplPolicy = queued) applies.
c(SRS_Rte_00306, SRS_Rte_00300, SRS_Rte_00303)
[SWS_Rte_70132]{DRAFT} dIn case of the existence condition described in
[SWS_Rte_70056], [SWS_Rte_70057], [SWS_Rte_70131] the optional name part
[<SwcBswI>] exists for the related Rte_Rips_Write Services.c(SRS_Rte_00306,
SRS_Rte_00300, SRS_Rte_00303)
[SWS_Rte_70133]{DRAFT} dThe associated Cross Software Cluster
Communication Plug-In shall provide the Rte_Rips_Write Service once for
each partition which has a software component mapped to it where the software
• for the related Data Communication Graph the Local Software Clus-
ter Communication Plug-In support is enabled
AND
• for the associated Local Software Cluster Communication
Plug-In the RteRipsGlobalCopyInstantiationPolicy is set to
RTE_RIPS_INSTANTIATION_BY_PLUGIN.
c(SRS_Rte_00306, SRS_Rte_00300, SRS_Rte_00303)
[SWS_Rte_80101] dThe RTE shall call Rte_Rips_Write at the position and instead
of the RTE’s regular access to the data transformer, if
• for the related Data Communication Graph the Local Software Clus-
ter Communication Plug-In support is enabled
AND
• a data transformation is configured according to [SWS_Rte_08794] or
[SWS_Rte_08105].
c(SRS_Rte_00306, SRS_Rte_00300)
[SWS_Rte_80150]{DRAFT} dThe RTE shall call Rte_Rips_Write at the position
and instead of the RTE’s regular read access to the data, if for the related Data Com-
munication Graph the Cross Software Cluster Communication Plug-In
support is enabled.
In case of explicit communication (queued or last is the best) the the usage is expected
in the context of the Rte_Send or Rte_Write API.
In case of implicit communication the the usage is expected in the context where
the RTE would flush the buffers of the preemption area in the OS tasks where
RunnableEntitys with implict access to related Data Communication Graph are
mapped to.
And yet the Rte_Rips_Write related to the partition where the OS tasks belongs
shall be applied.c(SRS_Rte_00306, SRS_Rte_00300)
[SWS_Rte_80151]{DRAFT} dThe RTE shall call the Rte_Rips_Write Services
created according to [SWS_Rte_70056], [SWS_Rte_70131], and [SWS_Rte_70133]
for the related Data Communication Graph on which Local Software Clus-
ter Communication Plug-In and Cross Software Cluster Communica-
tion Plug-In has been enabled in the following order:
• first the Rte_Rips_Write Service created according the Local Software
Cluster Communication Plug-In and then
• the Rte_Rips_Write Service created according the Cross Software Clus-
ter Communication Plug-In
c(SRS_Rte_00306, SRS_Rte_00301)
7.2.4.5.3 Rte_Rips_DRead
[SWS_Rte_91112] d
Service Name Rte_Rips_<PlugIn>_DRead_<SwcBswI>[_<ExE>]_<CGI>
Syntax <return> Rte_Rips_<PlugIn>_DRead_<SwcBswI>[_<ExE>]_<CGI> (
[Std_TransformerError transformerError]
)
c()
Please note that [SWS_Rte_91112] will be replaced by [SWS_Rte_91122] to support
Cross Software Cluster Communication Plug-Ins.
[SWS_Rte_91122]{DRAFT} d
Service Name Rte_Rips_<PlugIn>_DRead_<SwcBswI>[Partition][_<ExE>]_<CGI>(draft)
Syntax <return> Rte_Rips_<PlugIn>_DRead_<SwcBswI>[Partition][_<ExE>]_<
CGI> (
[Std_TransformerError transformerError]
)
7.2.4.6.1 Rte_Rips_Enter
[SWS_Rte_89008] d
Service Name Rte_Rips_<PlugIn>_Enter_<SwcBswI>[_<Event>/_<ExE>]_<ExclusiveArea>
Syntax void Rte_Rips_<PlugIn>_Enter_<SwcBswI>[_<Event>/_<ExE>]_<
ExclusiveArea> (
void
)
c()
Please note that the Rte_Rips_Enter Service is only applicable for a Local Soft-
ware Cluster Communication Plug-Ins.
[SWS_Rte_70027] dThe associated Local Software Cluster Communica-
tion Plug-In shall provide the Rte_Rips_Enter Service for all following cases:
• for each RTEEvent with a startOnEvent to RunnableEntity with a
runsInsideExclusiveArea association with the name parts <SwcBswI>,
<Event>, and <ExclusiveArea>
• for each BswEvent with a startsOnEvent to BswModuleEntity with a
runsInsideExclusiveArea association with the name parts <SwcBswI>,
<Event>, and <ExclusiveArea>
• for each ExecutableEntity with a canEnterExclusiveArea associ-
ation if the ExclusiveArea’s SwcExclusiveAreaPolicy/ BswExclu-
siveAreaPolicy.apiPrinciple is set to perExecutable with the name
parts <SwcBswI>, <ExE>, and <ExclusiveArea>
7.2.4.6.2 Rte_Rips_Exit
[SWS_Rte_89009] d
Service Name Rte_Rips_<PlugIn>_Exit_<SwcBswI>[_<Event>/_<ExE>]_<ExclusiveArea>
Syntax void Rte_Rips_<PlugIn>_Exit_<SwcBswI>[_<Event>/_<ExE>]_<
ExclusiveArea> (
void
)
c()
Please note that the Rte_Rips_Exit Service is only applicable for a Local Soft-
ware Cluster Communication Plug-Ins.
[SWS_Rte_70028] dThe associated Local Software Cluster Communica-
tion Plug-In shall provide the Rte_Rips_Exit Service for all following cases:
• for each RTEEvent with a startOnEvent to RunnableEntity with a
runsInsideExclusiveArea association with the name parts <SwcBswI>,
<Event>, and <ExclusiveArea>
7.2.4.7.1 Rte_Rips_EnterModeQueue
[SWS_Rte_91100] d
Service Name Rte_Rips_<PlugIn>_EnterModeQueue_<MMI/DSMQ>
Syntax void Rte_Rips_<PlugIn>_EnterModeQueue_<MMI/DSMQ> (
void
)
c()
[SWS_Rte_70096] dThe associated Local Software Cluster Communica-
tion Plug-In shall provide the Rte_Rips_EnterModeQueue Service if the Local
Software Cluster Communication Plug-In support is enabled for the related
7.2.4.7.2 Rte_Rips_ExitModeQueue
[SWS_Rte_91101] d
Service Name Rte_Rips_<PlugIn>_ExitModeQueue_<MMI/DSMQ>
Syntax void Rte_Rips_<PlugIn>_ExitModeQueue_<MMI/DSMQ> (
void
)
c()
[SWS_Rte_70097] dThe associated Local Software Cluster Communica-
tion Plug-In shall provide the Rte_Rips_ExitModeQueue Service if the Local
Software Cluster Communication Plug-In support is enabled for the related
mode machine instance or distributed shared mode queue .c(SRS_Rte_-
00315)
[SWS_Rte_80081] dThe RTE shall call Rte_Rips_ExitModeQueue at the position
and instead of the RTE’s regular AUTOSAR release access protection action, e.g. Re-
sumeOsInterrupts() or ReleaseResource(), if for the related mode machine
instance or distributed shared mode queue the Local Software Clus-
ter Communication Plug-In support is enabled.c(SRS_Rte_00315)
[SWS_Rte_91113]{DRAFT} d
Name Rte_Rips_SwitchNotificationStatusType (draft)
Kind Type
Derived from uint8
Range RTE_SWITCH_NOTIFICATION_ 0x00 mode switch notification cannot
SKIP be dequeued
RTE_SWITCH_NOTIFICATION_ 0x01 mode switch notification is
ENQUEUED_FIRST enqueued into an empty mode
queue
RTE_SWITCH_NOTIFICATION_ 0x02 mode switch notification is
ENQUEUED_NOT_FIRST enqueued into a non empty mode
queue
RTE_SWITCH_NOTIFICATION_ 0x03 enqueue operation into a non
ENQUEUE_FAILED empty mode queue failed
RTE_SWITCH_NOTIFICATION_ 0x04 last mode switch notification was
DEQUEUED_LAST enqueued from mode queue
RTE_SWITCH_NOTIFICATION_ 0x05 mode switch notification was
DEQUEUED_NOT_LAST enqueued from mode queue,
further mode switch notifications
are in the queue
Description Status of the en- and dequeue operation on a mode queue
Tags:atp.Status=draft
Available via Rte_Type.h
7.2.4.8.1 Rte_Rips_Switch
[SWS_Rte_91114]{DRAFT} d
Service Name Rte_Rips_<PlugIn>_Switch_<BswSwcI>_<MMI> (draft)
Syntax void Rte_Rips_<PlugIn>_Switch_<BswSwcI>_<MMI> (
Rte_Rips_SwitchNotificationStatusType switchNotificationStatus
,
uint32 previousmode,
uint32 nextmode
)
4
Description Rte_Rips_StartModeSwitch notifies the RTE Implementation Plug-In about an enqueue
operation in a mode queue.
Tags:atp.Status=draft
Available via Rte_Rips_<PlugIn>.h
7.2.4.8.2 Rte_Rips_DequeueModeSwitch
[SWS_Rte_91115]{DRAFT} d
Service Name Rte_Rips_<PlugIn>_DequeueModeSwitch_<MMI>_<OsTask> (draft)
Syntax Rte_Rips_SwitchNotificationStatusType Rte_Rips_<PlugIn>
_DequeueModeSwitch_<MMI>_<OsTask> (
void
)
[SWS_Rte_91102] d
Name Rte_DsmqStatusType
Kind Type
Derived from uint8
Range RTE_DSMQ_ENQUEUED_ 0x01 mode switch notification is
FIRST enqueued into an empty
distributed shared mode queue
RTE_DSMQ_ENQUEUED_NOT_ 0x02 mode switch notification is
FIRST enqueued into a non empty
distributed shared mode queue
RTE_DSMQ_ENQUEUE_FAILED 0x03 enqueue operation into a non
empty distributed shared mode
queue failed
RTE_DSMQ_DEQUEUED_LAST 0x04 last mode switch notification was
enqueued from distributed shared
mode queue
RTE_DSMQ_DEQUEUED_NOT_ 0x05 mode switch notification was
LAST enqueued from distributed shared
mode queue, further mode switch
notifications are in the queue
Description Status of the enqueue operation on a distributed shared mode queue
Available via Rte_Type.h
c()
[SWS_Rte_80085] dThe RTE shall define the Rte_DsmqStatusType and the belong-
ing literals in the Rte_Type.h file.c(SRS_Rte_00315)
7.2.4.9.1 Rte_Rips_DsmqSwitch
[SWS_Rte_91103] d
Service Name Rte_Rips_<PlugIn>_DsmqSwitch_<BswSwcI>_<MMI>
Syntax void Rte_Rips_<PlugIn>_DsmqSwitch_<BswSwcI>_<MMI> (
Rte_DsmqStatusType dsmqstatus,
uint32 previousmode,
uint32 nextmode
)
4
Return value None
Description Rte_Rips_DsmqSwitch notifies the RTE Implementation Plug-In about an enqueue operation in
a distributed shared mode queue.
Available via Rte_Rips_<PlugIn>.h
c()
[SWS_Rte_70103] dThe Local Software Cluster Communication Plug-In
assigned to the distributed shared mode queue shall provide the Rte_Rips_-
DsmqSwitch Service for each mode machine instance belonging to this dis-
tributed shared mode queue.c(SRS_Rte_00315)
7.2.4.9.2 Rte_Rips_DsmqTransitionStart
[SWS_Rte_91104] d
Service Name Rte_Rips_<PlugIn>_DsmqTransitionStart_<BswSwcI>_<MMI>
Syntax void Rte_Rips_<PlugIn>_DsmqTransitionStart_<BswSwcI>_<MMI> (
uint32 previousmode,
uint32 nextmode
)
c()
[SWS_Rte_70104] dThe Local Software Cluster Communication Plug-In
assigned to the distributed shared mode queue shall provide the Rte_Rips_-
DsmqTransitionStart Service for each mode machine instance belonging to
this distributed shared mode queue.c(SRS_Rte_00315)
7.2.4.9.3 Rte_Rips_DsmqTransitionSync
[SWS_Rte_91105] d
c()
[SWS_Rte_70105] dThe Local Software Cluster Communication Plug-In
assigned to the distributed shared mode queue shall provide the Rte_Rips_-
DsmqTransitionSync Service for each DSMQ transition OsTask belonging to this
distributed shared mode queue.c(SRS_Rte_00315)
7.2.4.9.4 Rte_Rips_DsmqTransitionEnd
[SWS_Rte_91106] d
Service Name Rte_Rips_<PlugIn>_DsmqTransitionEnd_<BswSwcI>_<MMI>
Syntax void Rte_Rips_<PlugIn>_DsmqTransitionEnd_<BswSwcI>_<MMI> (
Rte_DsmqStatusType dsmqstatus,
uint32 previousmode,
uint32 nextmode
)
4
Available via Rte_Rips_<PlugIn>.h
c()
[SWS_Rte_70106] dThe Local Software Cluster Communication Plug-In
assigned to the distributed shared mode queue shall provide the Rte_Rips_-
DsmqTransitionEnd Service for each mode machine instance belonging to this
distributed shared mode queue.c(SRS_Rte_00315)
7.2.4.10.1 Rte_Rips_Invoke
[SWS_Rte_89012]{OBSOLETE} d
Service Name Rte_Rips_<PlugIn>_Invoke_<SwcBswI>_<CGI> (obsolete)
Syntax Std_ReturnType Rte_Rips_<PlugIn>_Invoke_<SwcBswI>_<CGI> (
[IN|IN/OUT|OUT] <data_1>,
[IN|IN/OUT|OUT] ...,
[IN|IN/OUT|OUT] <data_n>,
[Std_TransformerError transformerError]
)
c()
Please note that [SWS_Rte_89012] is set to obsolete and will be replaced
by [SWS_Rte_89022] to support Cross Software Cluster Communication
Plug-Ins.
[SWS_Rte_89022]{DRAFT} d
7.2.4.10.2 Rte_Rips_ReturnResult
[SWS_Rte_89013]{OBSOLETE} d
Service Name Rte_Rips_<PlugIn>_ReturnResult_<SwcBswI>_<CGI> (obsolete)
Syntax Std_ReturnType Rte_Rips_<PlugIn>_ReturnResult_<SwcBswI>_<CGI> (
[IN/OUT|OUT] <param_1>,
[IN/OUT|OUT] <param_n>,
[Std_TransformerError transformerError]
)
c()
Please note that [SWS_Rte_89013] is set to obsolete and will be replaced
by [SWS_Rte_89023] to support Cross Software Cluster Communication
Plug-Ins.
[SWS_Rte_89023]{DRAFT} d
Service Name Rte_Rips_<PlugIn>_ReturnResult_<SwcBswI>_<CGI>(draft)
Syntax Std_ReturnType Rte_Rips_<PlugIn>_ReturnResult_<SwcBswI>_<CGI> (
[IN/OUT|OUT] <param_1>,
[IN/OUT|OUT] <param_n>,
[Std_TransformerError transformerError]
)
4
Return value Std_ReturnType The return value is used to indicate communication errors
Description Rte_Rips_ReturnResult get the server results of a performed a transformer or cross cluster
invocation for clients.
Available via Rte_Rips_<PlugIn>_<SwcBswI>.h
7.2.4.10.3 Rte_Rips_InvocationHandler
[SWS_Rte_89015] d
Service Name <name of the Invocation Handler>
Syntax void <name of the Invocation Handler> (
void
)
c()
[SWS_Rte_70077] dThe associated RTE Implementation Plug-In shall pro-
vide the Rte_Rips_InvocationHandler Service for each configured RteRipsIn-
vocationHandlerFnc.c(SRS_Rte_00306, SRS_Rte_00304, SRS_Rte_00312)
Further details about the RTE usage of Rte_Rips_InvocationHandler are de-
scribed in 7.3.11.2.
7.2.4.11.1 Rte_Rips_NotifyRxAck
[SWS_Rte_91107] d
Service Name Rte_Rips_<PlugIn>_NotifyRxAck_<CGI>
Syntax void Rte_Rips_<PlugIn>_NotifyRxAck_<CGI> (
void
)
c()
[SWS_Rte_70110] dThe associated RTE Implementation Plug-In shall pro-
vide the Rte_Rips_NotifyRxAck Service for each
• dataElement instance in an AbstractRequiredPortPrototype of an
Atomic Software Component
• operation instance in a PortPrototype of an Atomic Software Compo-
nent
• trigger instance in an AbstractRequiredPortPrototype of an Atomic
Software Component
if
• for the related Communication Graph the RTE Implementation Plug-In
support is enabled
AND
• a transformation is configured according [SWS_Rte_08794].
c(SRS_Rte_00300, SRS_Rte_00312, SRS_Rte_00317)
[SWS_Rte_80106] dThe RTE Generator shall call all Rte_Rips_NotifyRxAck Ser-
vices from the Rte_COMCbk_<sn> or Rte_COMCbk_<sg> callback respectively for
Communication Graphs where
• Rx signals are configured
AND
7.2.4.11.2 Rte_Rips_NotifyRxTOut
[SWS_Rte_91108] d
Service Name Rte_Rips_<PlugIn>_NotifyRxTOut_<CGI>
Syntax void Rte_Rips_<PlugIn>_NotifyRxTOut_<CGI> (
void
)
c()
[SWS_Rte_70111] dThe associated RTE Implementation Plug-In shall pro-
vide the Rte_Rips_NotifyRxTOut Service for each
• dataElement instance in an AbstractRequiredPortPrototype of an
Atomic Software Component
• operation instance in a PortPrototype of an Atomic Software Compo-
nent
• trigger instance in an AbstractRequiredPortPrototype of an Atomic
Software Component
if
• for the related Communication Graph the RTE Implementation Plug-In
support is enabled
AND
• a transformation is configured according to [SWS_Rte_08794].
7.2.4.11.3 Rte_Rips_NotifyTxAck
[SWS_Rte_91109] d
Service Name Rte_Rips_<PlugIn>_NotifyTxAck_<CGI>
Syntax void Rte_Rips_<PlugIn>_NotifyTxAck_<CGI> (
void
)
c()
[SWS_Rte_70112] dThe associated RTE Implementation Plug-In shall pro-
vide the Rte_Rips_NotifyTxAck Service for each
• dataElement instance in an AbstractProvidedPortPrototype of an
Atomic Software Component
• operation instance in a PortPrototype of an Atomic Software Compo-
nent
• trigger instance in an AbstractProvidedPortPrototype of an Atomic
Software Component
if
• for the related Communication Graph the RTE Implementation Plug-In
support is enabled
AND
• a transformation is configured according to [SWS_Rte_08794].
c(SRS_Rte_00300, SRS_Rte_00312, SRS_Rte_00317)
[SWS_Rte_80108] dThe RTE Generator shall call all Rte_Rips_NotifyTxAck Ser-
vices from the Rte_COMCbkTAck_<sn> or Rte_COMCbkTAck_<sg> callback respec-
tively for Communication Graphs where
• Tx signals are configured
AND
• for the related Communication Graph the RTE Implementation Plug-In
support is enabled
AND
• a transformation is configured according to [SWS_Rte_08794].
c(SRS_Rte_00312)
7.2.4.11.4 Rte_Rips_NotifyTxErr
[SWS_Rte_91110] d
Service Name Rte_Rips_<PlugIn>_NotifyTxErr_<CGI>
Syntax void Rte_Rips_<PlugIn>_NotifyTxErr_<CGI> (
void
)
c()
[SWS_Rte_70113] dThe associated RTE Implementation Plug-In shall pro-
vide the Rte_Rips_NotifyTxErr Service for each
7.2.4.11.5 Rte_Rips_NotifyTxTOut
[SWS_Rte_91111] d
Service Name Rte_Rips_<PlugIn>_NotifyTxTOut_<CGI>
Syntax void Rte_Rips_<PlugIn>_NotifyTxTOut_<CGI> (
void
)
4
Parameters (in) None
Parameters (inout) None
Parameters (out) None
Return value None
Description Rte_Rips_NotifyTxTOut notifies the RTE Implementation Plug-In that for signal used for the
Data Communication Graph requiring transformation the timeout of Transmission
AcknowledgementRequest for sending the signal has expired.
Available via Rte_Rips_<PlugIn>.h
c()
[SWS_Rte_70114] dThe associated RTE Implementation Plug-In shall pro-
vide the Rte_Rips_NotifyTxTOut Service for each
• dataElement instance in an AbstractProvidedPortPrototype of an
Atomic Software Component
• operation instance in a PortPrototype of an Atomic Software Compo-
nent
• trigger instance in an AbstractProvidedPortPrototype of an Atomic
Software Component
if
• for the related Communication Graph the RTE Implementation Plug-In
support is enabled
AND
• a transformation is configured according to [SWS_Rte_08794].
c(SRS_Rte_00300, SRS_Rte_00312, SRS_Rte_00317)
[SWS_Rte_80110] dThe RTE Generator shall call all Rte_Rips_NotifyTxTOut Ser-
vices from the Rte_COMCbkTOut_<sn> or Rte_COMCbkTOut_<sg> callback respec-
tively for Communication Graphs where
• Tx signals are configured
AND
• for the related Communication Graph the RTE Implementation Plug-In
support is enabled
AND
• a transformation is configured according to [SWS_Rte_08794].
c(SRS_Rte_00312)
7.2.4.12.1 Rte_Rips_Trigger
[SWS_Rte_91117]{DRAFT} d
Service Name Rte_Rips_<PlugIn>_Trigger_<BswSwcI>_<MMI> (draft)
Syntax void Rte_Rips_<PlugIn>_Trigger_<BswSwcI>_<MMI> (
void
)
7.2.4.13.1 Rte_Rips_Feedback
[SWS_Rte_91121]{DRAFT} d
Service Name Rte_Rips_<PlugIn>_Feedback_[<SwcBswI>][Partition]_<CGI> (draft)
Syntax Std_ReturnType Rte_Rips_<PlugIn>_Feedback_[<SwcBswI>][Partition]
_<CGI> (
void
)
4
Parameters (inout) None
Parameters (out) None
Return value Std_ReturnType The return value is used to pass error notifications.
Description The Rte_Rips_Feedback API provides access to acknowledgment notifications for explicit and
implicit sender-receiver communication and to pass error notification to senders in a Software
Cluster
Tags:atp.Status=draft
Available via Rte_Rips_<PlugIn>_<SwcBswI>.h
7.2.4.13.2 Rte_Rips_DataIsUpdated
[SWS_Rte_91119]{DRAFT} d
7.2.4.13.3 Rte_Rips_DataIsUpdated_EventActivation
[SWS_Rte_91000]{DRAFT} d
Service Name Rte_Rips_<PlugIn>_DataIsUpdatedEventActivation_<SwcBswI>_<DR>_<CGI> (draft)
Syntax boolean Rte_Rips_<PlugIn>_DataIsUpdatedEventActivation_<SwcBswI>
_<DR>_<CGI> (
void
)
7.2.4.14.1 Rte_Rips_Prm
[SWS_Rte_91116]{DRAFT} d
Service Name Rte_Rips_<PlugIn>_Prm_<CGI> (draft)
Syntax <return> Rte_Rips_<PlugIn>_Prm_<CGI> (
void
)
c()
[SWS_Rte_70141]{DRAFT} dThe associated Cross Software Cluster
Communication Plug-In shall provide the Rte_Rips_Prm Service for each
parameter instance in an RPortPrototype at the at the CompositionSwCom-
ponentType of the rootSoftwareComposition of the Ecu Extract if for the
RTE Implementation Plug-Ins might need initialization in the same way the RTE
might need it. Consequently, there will be init/deinit and start/stop APIs, which the RTE
has to call. As the RTE’s lifecycle APIs will be called on every core, also the RTE
Implementation Plug-In’s lifecycle APIs will do so.
[SWS_Rte_70047] dThe RTE Implementation Plug-In shall always provide
the Lifecycle APIs Rte_Rips_SchM_Init, Rte_Rips_Rte_Start, Rte_Rips_-
Rte_Stop, and Rte_Rips_SchM_Deinit.c(SRS_BSW_00101, SRS_BSW_00336,
SRS_Rte_00306, SRS_Rte_00304)
[SWS_Rte_80055] dThe RTE shall call the Lifecycle APIs of all participating RTE Im-
plementation Plug-Ins in the order given by index of the RteRipsPluginCon-
figurationRefs.c(SRS_BSW_00101, SRS_BSW_00336, SRS_Rte_00306, SRS_-
Rte_00304)
7.2.4.15.1 Rte_Rips_SchM_Init
[SWS_Rte_89016] d
Service Name Rte_Rips_<PlugIn>_SchM_Init
Syntax void Rte_Rips_<PlugIn>_SchM_Init (
void
)
4
Available via Rte_Rips_<PlugIn>.h
c()
[SWS_Rte_80051] dThe RTE shall call the init functions Rte_Rips_SchM_Init
of all participating RTE Implementation Plug-Ins in SchM_Init.c(SRS_BSW_-
00101, SRS_Rte_00306, SRS_Rte_00304)
7.2.4.15.2 Rte_Rips_Rte_Start
[SWS_Rte_89017] d
Service Name Rte_Rips_<PlugIn>_Rte_Start
Syntax void Rte_Rips_<PlugIn>_Rte_Start (
void
)
c()
[SWS_Rte_80052] dThe RTE shall call the init functions Rte_Rips_Rte_Start of
all participating RTE Implementation Plug-Ins in Rte_Start, after the variable
initializations have been performed, but before the execution of any RunnableEntity
(e.g. on-entry ExecutableEntitys).c(SRS_BSW_00101, SRS_Rte_00306,
SRS_Rte_00304)
7.2.4.15.3 Rte_Rips_Rte_Stop
[SWS_Rte_89018] d
c()
[SWS_Rte_80053] dThe RTE shall call the stop functions Rte_Rips_Rte_Stop of all
participating RTE Implementation Plug-Ins in Rte_Stop.c(SRS_BSW_00336,
SRS_Rte_00306, SRS_Rte_00304)
7.2.4.15.4 Rte_Rips_SchM_Deinit
[SWS_Rte_89019] d
Service Name Rte_Rips_SchM_Deinit
Syntax void Rte_Rips_SchM_Deinit (
void
)
c()
[SWS_Rte_80054] dThe RTE shall call the deinit functions Rte_Rips_SchM_Deinit
of all participating RTE Implementation Plug-Ins in SchM_Deinit.c(SRS_-
BSW_00336, SRS_Rte_00306, SRS_Rte_00304)
Example 7.3
1 uint64 Rte_DRead_myComponent_myRPort1_myExplicitLargePrimitveData(void)
2 {
3 uint64 rtn;
4 Rte_DReadHook_myComponent_myRPort1_myExplicitLargePrimitveData_Start
();
5 Rte_Rips_myPlugin_StartRead_myComponent_myLargePrimitveData1();
6 rtn = Rte_Rips_GlobalCopy_myLargePrimitveData1.value;
7 Rte_Rips_myPlugin_StopRead_myComponent_myLargePrimitveData1();
8 Rte_DReadHook_myComponent_myRPort1_myExplicitLargePrimitveData_Return
();
9 return rtn;
10 }
In general, which kind of direct or trusted function calls an RTE Generator supports is
a property of the RTE Generator. But an important use case of the utilization of RTE
Implementation Plug-Ins is the resource optimized scheduling and implementa-
tion of data consistency mechanisms in complex scenarios. Therefore it is beneficial
if an RTE Generator supports additionally the ExecutableEntity activation via di-
rect or trusted function calls in additional scenarios as the already standardized ones,
see [SWS_Rte_06798], [SWS_Rte_07409], [SWS_Rte_07173], [SWS_Rte_07214],
[SWS_Rte_07224], and [SWS_Rte_07554].
[SWS_Rte_80029] dThe RTE and Basic Software Scheduler should support the acti-
vation of ExecutableEntity via direct and trusted function call for
• DataReceivedEvents
• DataReceiveErrorEvents,
• DataWriteCompletedEvents,
• DataSendCompletedEvents
• OperationInvokedEvents where the client uses SynchronousServer-
CallPoints as well as AsynchronousServerCallPoints
• AsynchronousServerCallReturnsEvents where the server’s Opera-
tionInvokedEvent is not mapped to a OsTask.
when the support for RTE Implementation Plug-Ins is globally enabled (
RteRipsSupport = true)c(SRS_Rte_00305)
[SWS_Rte_CONSTR_80013] dRestrictions on direct and trusted function call configu-
rations in the scope of RTE Implementation Plug-Ins If an RTE Generator sup-
ports an activation of ExecutableEntitys via direct or trusted function call listed in
[SWS_Rte_80029] only when the support for RTE Implementation Plug-Ins is
enabled the input configuration needs to fulfill following condition:
• all Communication Graphs, ExclusiveAreas and mode machine in-
stances accessed by the to-be-activated ExecutableEntity are assigned
to RTE Implementation Plug-Inss
AND
• the to-be-activated ExecutableEntity do not in turn activate RTEEvents or
BswEvents which are mapped to OsTasks.
c(SRS_Rte_00305)
Please note: The activation of OsTasks is still a duty of the RTE.
[SWS_Rte_CONSTR_80011] shall ensure, that the RTE Generator is not forced to
implement OS interacting code in a context which can only occur in an RTE Imple-
mentation Plug-Ins specific configuration.
When utilizing RTE Implementation Plug-Ins the RTE Generator is no longer
able to validate the overall scenario. This means the RTE Generator can only validate,
if the activation of an ExecutableEntity at the configured position in the OsTask or
via direct or trusted function call can be supported by the RTE Generator. But it can not
finally judge whether the utilized RTE Implementation Plug-Ins can support the
requested functionality (e.g. an implicit communication) in the resulting call context(s).
But the specific validation whether the implementation of the data consistency mecha-
nism or ExclusiveAreas implementations is possible is the task of the utilized RTE
Implementation Plug-Ins.
[SWS_Rte_70040] dThe RTE Implementation Plug-Ins tool shall validate
whether the requested functionality can be implemented with the given Event To Task
Mapping.c(SRS_Rte_00305)
[SWS_Rte_80030] dThe RTE Generator shall restrict its applied validation on the
input configuration w.r.t. Event To Task Mapping and the resulting call tree to the
aspects concerning the RTE code generation, when the support for RTE Imple-
mentation Plug-Ins is globally enabled (RteRipsSupport) and all Communi-
cation Graphs, ExclusiveAreas, and mode machine instances accessed
by the to-be-activated ExecutableEntity are assigned to RTE Implementation
Plug-Ins.c(SRS_Rte_00305)
For instance:
According [SWS_Rte_07007] the RTE generator would reject configurations where a
RunnableEntity with implicit access gets potentially concurrently invoked. When
configuring such a component the RTE Generator would be required to create an im-
plicit buffering which depends on the current invocation context of the RunnableEn-
tity and this is not foreseen in chapter 4.3.1.5.1.
Now when applying RTE Implementation Plug-Ins according
[SWS_Rte_80030] the validation scope of the RTE Generator is reduced to the
scope of the RTE, which just ensures, that the triggering of the RunnableEntity
can be implemented by the RTE Generator. If the implicit buffering strategy can
deal with the dynamic side conditions - like a potential concurrent invocation - shall
be checked by the RTE Implementation Plug-Ins handling a specific Data
Communication Graph accessed by this RunnableEntity with implicit access.
Examples of Data Communication Graphs are given in figures 7.3 and 7.4.
4
n:m where n VariableDataPrototype instance in
No/Yes Yes No >= 1 and m the AbstractProvidedPortProto-
>= 1 type at the NvBlockSwComponent
VariableDataPrototype instance in
the AbstractProvidedPortProto-
type
No No Yes 1:n
AND one per different representation of
VariableDataPrototype instance in
the RPortPrototype
VariableDataPrototype instance in
the AbstractProvidedPortProto-
type
AND one per different representation
of VariableDataPrototype instance
Yes No Yes 1:n in the RPortPrototype AND one
per different representation of Vari-
ableDataPrototype instance in the
PPortPrototype at the Composi-
tionSwComponentType of the root-
SoftwareComposition of the Ecu
Extract.
VariableDataPrototype instance in
the AbstractRequiredPortProto-
type
No No Yes n:1
AND one per different representation of
VariableDataPrototype instance in
the PPortPrototype
VariableDataPrototype instance in
the AbstractRequiredPortProto-
type
AND one per different representation
of VariableDataPrototype instance
Yes No Yes n:1 in the PPortPrototype AND one
per different representation of Vari-
ableDataPrototype instance in the
PPortPrototype at the Composi-
tionSwComponentType of the root-
SoftwareComposition of the Ecu
Extract.
VariableDataPrototype instance in
the AbstractProvidedPortProto-
where n >= type at the NvBlockSwComponent
No Yes Yes 1 and m >=
1 AND one per different representation of
VariableDataPrototype instance in
the PortPrototype
5
4
VariableDataPrototype instance in
the AbstractProvidedPortProto-
type at the NvBlockSwComponent
AND one per different representation of
VariableDataPrototype instance in
where n >=
the PortPrototype
Yes Yes Yes 1 and m >=
1 AND one per different representation
of VariableDataPrototype instance
in the PPortPrototype at the Com-
positionSwComponentType of the
rootSoftwareComposition of the
Ecu Extract.
Table 7.1: Reference targets of RIPS FlatInstanceDescriptors
The figure 7.3 illustrates an example for a Data Communication Graph with data
conversion. Thereby it shall be assumed, that the dataElements data given in two
different SenderReceiverInterfaces are typed by ApplicationDataTypes de-
scribing a different resolution (not shown in the figure).
The RIPS FlatInstanceDescriptor dataVers1 assigns the blue part of the
Data Communication Graph for the ports of the Atomic Software Compo-
nents SWCA, SWCB, and SWCC to the RTE Implementation Plug-In. The RIPS
In the special case of non volatile data the RIPS FlatInstanceDescriptor will ref-
erence the AbstractProvidedPortPrototype of the NvBlockSwComponent. As
the protection and buffering always has to consider the complete Data Communica-
tion Graph and this Data Communication Graph in this case not only includes
the direction from the data element of the ramBlock to the consuming software com-
ponent, but also from the producing software component to the data element in the
ramBlock, this single RIPS FlatInstanceDescriptor also affects the latter con-
nection.
[SWS_Rte_80033] dThe RTE Generator and the RTE Implementation Plug-In
shall consider all VariableDataPrototype instances in PortPrototypes of
Atomic Software Components which are connected to VariableDataProto-
type instances in PortPrototypes of the NvBlockSwComponent which in turn are
mapped together with the same NvBlockDataMapping to an element of the ram-
Block as belonging to the same Data Communication Graph. Additionally the
mapped element of the ramBlock belongs to this Data Communication Graph.c
(SRS_Rte_00300, SRS_Rte_00301)
The RTE Generator can use the fact of [SWS_NvM_00347] that all ramBlock ac-
cesses within a NvBlockSwComponent are done in the call context of the Exe-
cutableEntity NvM_MainFunction.
The figure 7.4 illustrates an example for a Data Communication Graph involving
a NvBlockSwComponent. Thereby the RIPS FlatInstanceDescriptor MyN-
vData1 is referencing the p-port ppNvDat1 of the NvBlockSwComponent myN-
vBlockSwc. This enables the RTE Implementation Plug-In also for the partial
Data Communication Graph from the p-port ppNvDat1 of the Atomic Soft-
ware Component myComponent to the r-port rpNvDat1 of the NvBlockSwCom-
ponent. The shortName of this FlatInstanceDescriptor defines the name of
the RTE Implementation Plug-In Services for this, not explicitly marked Data
Communication Graph.
Due to the structure nature of the ramBlock it is possible, that different Data Commu-
nication Graphs overlay within the same ramBlock. There exist valid use cases
for such configurations, since it can be required to write (and optionally also read) the
whole ramBlock or a larger sub-structure of it via one port whereas the single data
elements are provided in distinct p-ports.
[SWS_Rte_80103] dThe RTE Generator shall support the overlay of Data Communi-
cation Graphs in ramBlocks.c(SRS_Rte_00300, SRS_Rte_00301)
The figure 7.5 illustrates an example for the overlay of Data Communication
Graphs in a ramBlock. In this example the Data Communication Graph All-
NvData gets written by the Atomic Software Component myComponent via the
p-port ppNvAllData. Further on Data Communication Graph AllNvData
overlays the Data Communication Graphs MyNvData1 and MyNvData2 which
are sub-elements of the ramBlock.
The existence of the Sender Status and Receiver Status depends on the configuration
of the communication features in a Data Communication Graph . The enabling of
communication features is controlled by the SenderComSpec, ReceiverComSpec,
and the InvalidationPolicy.
[SWS_Rte_80035] dThe RTE Generator and the RTE Implementation Plug-In
consider the Sender Status as required, if
• InvalidationPolicy.handleInvalid is not set to dontInvalidate
AND/OR
• SenderComSpec.handleOutOfRange is not set to none
AND/OR
• SenderComSpec.transmissionAcknowledge is defined
c(SRS_Rte_00300, SRS_Rte_00301)
[SWS_Rte_80036] dThe RTE Generator and the RTE Implementation Plug-In
consider the Receiver Status as required, if
• InvalidationPolicy.handleInvalid is not set to dontInvalidate
AND/OR
The RTE Implementation Plug-In interface assumes that the RTE implements
a variable that holds the actual value of communication data and where readers and
writers can set or get the data value. This variable is called global copy in the
RTE Implementation Plug-In relevant sections. In addition the concept of im-
plicit communication requires further buffers to ensure the stability of data for spe-
cific accessing RunnableEntitys. Those are called implicit communication
buffers.
As described in section 7.3.4.2 one or multiple RIPS FlatInstanceDescriptors
can point to a Data Communication Graph to enable the RTE Implementation
Plug-In support. Thereby the number of RIPS FlatInstanceDescriptors de-
termines the number of possible different representations of the data. Furthermore
the shortName of the RIPS FlatInstanceDescriptor defines the name space
of such a global copy and the belonging RTE Implementation Plug-In Ser-
vices.
[SWS_Rte_80040] dThe RTE shall provide an individual global copy for each
RIPS FlatInstanceDescriptor referencing the Data Communication Graph,
if the associated Local Software Cluster Communication Plug-In has
set the RteRipsGlobalCopyInstantiationPolicy to RTE_RIPS_INSTANTIA-
TION_BY_RTE.c(SRS_Rte_00300, SRS_Rte_00301)
Please note that the RTE Generator still has the freedom to decide about the naming of
the global copy as well as to group several global copies in RTE specific structures.
Please note: [SWS_Rte_80041] ensures a well defined data type for Data Commu-
nication Graphs with implicit accesses, but it leaves the data type open for Data
Communication Graphs with solely explicit accesses.
To support the coexistence of multiple optimization domains in a single ECU, cer-
tain Data Communication Graphs can be assigned to distinct, specialized Local
Software Cluster Communication Plug-In. Those RTE Implementation
Plug-Ins could then even take over the responsibility to instantiate the global copies
of the related Data Communication Graph.
[SWS_Rte_70043] dThe associated Local Software Cluster Communica-
tion Plug-In shall instantiate the required global copies for a Data Communica-
tion Graphs, if the associated RTE Implementation Plug-In has set the
RteRipsGlobalCopyInstantiationPolicy to RTE_RIPS_INSTANTIATION_-
BY_PLUGIN.c(SRS_Rte_00300, SRS_Rte_00301, SRS_Rte_00303)
Please note, that in case of [SWS_Rte_70043] the associated Local Software
Cluster Communication Plug-In has now freedom to name and group the
global copy. It could even implement strategies working with multiple global copies
for the same Data Communication Graph .
In contrast to Local Software Cluster Communication Plug-Ins, Cross
Software Cluster Communication Plug-Ins will create a communication
buffer which is accessible to / from other Software Clusters. In case only a Cross
Software Cluster Communication Plug-In is associated to a Data Commu-
nication Graph the RTE could omit its global copy, except it is still required for
measurement purpose or other RTE requirements leading to those global copy.
just forwards the explicit accesses via the RTE Implementation Plug-In Ser-
vices whereas in the second case the RTE has to use the RTE Implementation
Plug-In Services to protect potentially non atomic accesses.
In the case the global copy is provided by the RTE the only point of interest for the RTE
Implementation Plug-In is the kind of protection. For that purpose for read and
write accesses pairs of RTE Implementation Plug-In Services are provided
for opening the protection block and another one for closing it. The rest remains like
in an RTE code not using an RTE Implementation Plug-In. The RTE Imple-
mentation Plug-In only needs to know whether there is an according interruption
scenario and whether the data type is atomic in the given platform or not. Special care
has to be taken for the data status handling, as this might also lead to a protection
need, even though the pure data would be atomic otherwise. So the RTE Implemen-
tation Plug-In has to check whether a Sender Status or Receiver Status exists.
An RTE in turn has to make sure that the complete buffer manipulation happens under
a single protection block.
[SWS_Rte_80043] dThe RTE shall use the protecting RTE Implementation
Plug-In Services Rte_Rips_StartRead, Rte_Rips_StopRead, Rte_Rips_-
StartWrite, and Rte_Rips_StopWrite for any access to the Data Communi-
cation Graph where the implemented algorithm would suffer from a pre-emption
or concurrent execution. The usage shall be independent of the actual pre-emption
scenario found in the configuration.c(SRS_Rte_00300)
Please note: [SWS_Rte_80043] applies for unqueued and queued communication.
The RTE Implementation Plug-Ins will know the possible pre-emptions and pro-
vides an appropriate protection macro implementation.
[SWS_Rte_70044] dThe associated RTE Implementation Plug-In shall pro-
vide the protecting RTE Implementation Plug-In Services Rte_Rips_-
StartRead, Rte_Rips_StopRead, Rte_Rips_StartWrite, and Rte_Rips_-
StopWrite with an appropriate protection functionality for any explicit access to the
Data Communication Graph. Thereby the RTE Implementation Plug-Ins
shall consider whether the access is non-atomic due to the following side conditions
• the size of the data
• the existence of Sender Status or Receiver Status
• potential pre-emptions caused due to configured scheduling during the accesses
to the Data Communication Graphs
• usage of queued communication.
c(SRS_Rte_00300)
Please note, that the associated RTE Implementation Plug-In has to provide
the protecting RTE Implementation Plug-In Services regardless whether any
protection is needed. In case that no protection is needed the RTE Implementa-
tion Plug-In Services can be empty. See also the according existence condi-
tions [SWS_Rte_70019], [SWS_Rte_70020], [SWS_Rte_70021], [SWS_Rte_70022],
[SWS_Rte_70023], [SWS_Rte_70024], [SWS_Rte_70025], [SWS_Rte_70026].
The protection blocks can be nested, e.g. when a Runnable uses explicit communi-
cation while being executed in an ExclusiveArea. It is therefore recommended to
generally use protection block implementations which support nesting. As a minimum,
such implementations have to be used where nesting can occur, which would have to
be analyzed beforehand. On one hand those ExclusiveAreas are relevant which
are directly used by the ExecutableEntity (1) accessing the Data Communica-
tion Graphs. Additionally those ExclusiveAreas are relevant which are used by
all ExecutableEntitys invoking the ExecutableEntity (1) by a direct or trusted
function call with the Data Communication Graphs access.
[SWS_Rte_70045] dRTE Implementation Plug-In shall implement the protect-
ing RTE Implementation Plug-In Services Rte_Rips_StartRead, Rte_-
Rips_StopRead, Rte_Rips_StartWrite, and Rte_Rips_StopWrite in a way,
that those support a potential nesting with ExclusiveAreas when it can occur in the
call graph.c(SRS_Rte_00300)
The example code below shows the basic implementation in case the data does not
have any assigned status and the software component does not support multiple in-
stantiation and is provided as source code. Additionally, 64bit accesses are not atomic
on the underlying platform to demonstrate a protection scenario. In contrast to the
others, Rte_DRead is not implemented as a macro in order to show a different imple-
mentation flavour.
Example 7.4
Code example for Rte_myComponent.h in case the RTE Generator implements the
explicit APIs:
1 extern uint64 Rte_myExplicitSimpleData;
2
3 #define Rte_Write_myPPort1_myExplicitSimpleData(data) ( \
4 Rte_WriteHook_myComponent_myPPort1_myExplicitSimpleData_Start(data),
\
5 SuspendOSInterrupts(), \
6 (Rte_myExplicitSimpleData = data), \
7 ResumeOSInterrupts(), \
8 Rte_WriteHook_myComponent_myPPort1_myExplicitSimpleData_Return(data),
\
9 RTE_E_OK)
10
11 #define Rte_Read_myRPort1_myExplicitSimpleData(data) ( \
12 Rte_ReadHook_myComponent_myRPort1_myExplicitSimpleData_Start(data), \
13 SuspendOSInterrupts(), \
14 ((*(data)) = Rte_myExplicitSimpleData), \
15 ResumeOSInterrupts(), \
16 Rte_ReadHook_myComponent_myRPort1_myExplicitSimpleData_Return(data), \
17 RTE_E_OK)
18
19 extern uint64 Rte_DRead_myComponent_myRPort1_myExplicitSimpleData(void)
;
20 #define Rte_DRead_myRPort1_myExplicitSimpleData() (
Rte_DRead_myComponent_myRPort1_myExplicitSimpleData())
Code example for Rte.c in case the RTE Generator implements the explicit APIs:
1 #include "Rte_myComponent.h"
2
3 uint64 Rte_myExplicitSimpleData;
4 uint64 Rte_DRead_myComponent_myRPort1_myExplicitSimpleData(void)
5 {
6 uint64 rtn;
7
8 Rte_DReadHook_myComponent_myRPort1_myExplicitSimpleData_Start();
9 SuspendOSInterrupts();
10 rtn = Rte_myExplicitSimpleData;
11 ResumeOSInterrupts();
12 Rte_DReadHook_myComponent_myRPort1_myExplicitSimpleData_Return();
13 return rtn;
14 }
The following example 7.5 shows an equivalent implementation of the explicit APIs via
an RTE Implementation Plug-In.
Example 7.5
Code example for Rte_DataHandleType.h in case the RTE Generator redirects to-
wards an RTE Implementation Plug-In to implement the scenario:
1 /* Since the Communication Graph has only explicit accesses
SWS_Rte_80041 is not applicable */
Code example for Rte_myComponent.h in case the RTE Generator redirects towards
an RTE Implementation Plug-In to implement the explicit APIs:
1 #include "Rte_Rips_myPlugin_myComponent.h"
2
3 extern uint64 Rte_myExplicitSimpleData;
4
5 #define Rte_Write_myPPort1_myExplicitSimpleData(data) ( \
6 Rte_WriteHook_myComponent_myPPort1_myExplicitSimpleData_Start(data), \
7 Rte_Rips_myPlugin_StartWrite_myComponent_myGlobalData1(), \
8 (Rte_myExplicitSimpleData = data), \
9 Rte_Rips_myPlugin_StopWrite_myComponent_myGlobalData1(), \
10 Rte_WriteHook_myComponent_myPPort1_myExplicitSimpleData_Return(data),
\
11 RTE_E_OK)
12
13 #define Rte_Read_myRPort1_myExplicitSimpleData(data) ( \
14 Rte_ReadHook_myComponent_myRPort1_myExplicitSimpleData_Start(data), \
15 Rte_Rips_myPlugin_StartRead_myComponent_myGlobalData1(), \
16 ((*(data)) = Rte_myExplicitSimpleData), \
17 Rte_Rips_myPlugin_StopRead_myComponent_myGlobalData1(), \
18 Rte_ReadHook_myComponent_myRPort1_myExplicitSimpleData_Return(data), \
19 RTE_E_OK)
20
21 extern uint64 Rte_DRead_myComponent_myRPort1_myExplicitSimpleData(void)
;
22
23 #define Rte_DRead_myRPort1_myExplicitSimpleData() (
Rte_DRead_myComponent_myRPort1_myExplicitSimpleData())
Code example for Rte.c in case the RTE Generator redirects towards an RTE Im-
plementation Plug-In to implement the explicit APIs:
1 #include "Rte_myComponent.h"
2
3 uint64 Rte_myExplicitSimpleData;
4 uint64 Rte_DRead_myComponent_myRPort1_myExplicitSimpleData(void)
5 {
6 uint64 rtn;
7
8 Rte_DReadHook_myComponent_myRPort1_myExplicitSimpleData_Start();
9 Rte_Rips_myPlugin_StartRead_myComponent_myGlobalData1();
10 rtn = Rte_myExplicitSimpleData;
11 Rte_Rips_myPlugin_StopRead_myComponent_myGlobalData1();
12 Rte_DReadHook_myComponent_myRPort1_myExplicitSimpleData_Return();
13 return rtn;
14 }
12 #define Rte_Rips_myPlugin_StopRead_myComponent_myGlobalData1() \
13 ResumeOSInterrupts()
The example 7.6 shows the basic implementation in case the data does not have any
assigned status and the software component does not support multiple instantiation.
The RTE uses own standard queue implementations, but those are not protected.
Example 7.6
Code example for Rte_myComponent.h in case the RTE Generator implements the
explicit APIs:
1 extern Std_ReturnType
Rte_Write_myComponent_myPPort1_myExplicitSimpleData(uint32 data);
2
3 #define Rte_Write_myPPort1_myExplicitSimpleData(data) (
Rte_Write_myComponent_myPPort1_myExplicitSimpleData(data))
4
5 extern Std_ReturnType
Rte_Read_myComponent_myRPort1_myExplicitSimpleData(uint32 * data);
6
7 #define Rte_Read_myRPort1_myExplicitSimpleData(data) (
Rte_Read_myComponent_myRPort1_myExplicitSimpleData(data))
Code example for Rte.c in case the RTE Generator implements the explicit APIs:
1 #include "Rte_myComponent.h"
2
3 Rte_QueueType_uint32 Rte_Queue_myExplicitSimpleData;
4
5 Std_ReturnType Rte_Write_myComponent_myPPort1_myExplicitSimpleData(
uint32 data)
6 {
7 Std_ReturnType rtn;
8
9 Rte_WriteHook_myComponent_myPPort1_myExplicitSimpleData_Start(data)
;
10 SuspendOSInterrupts();
11 rtn = Rte_EnqueueUInt32(&Rte_Queue_myExplicitSimpleData, data);
12 ResumeOSInterrupts();
13 Rte_WriteHook_myComponent_myPPort1_myExplicitSimpleData_Return(data
);
14 return rtn;
15 }
16
17 Std_ReturnType Rte_Read_myComponent_myRPort1_myExplicitSimpleData(
uint32 * data)
18 {
19 Std_ReturnType rtn;
20
21 Rte_ReadHook_myComponent_myRPort1_myExplicitSimpleData_Start(data);
22 SuspendOSInterrupts();
23 rtn = Rte_DequeueUInt32(&Rte_Queue_myExplicitSimpleData, data);
24 ResumeOSInterrupts();
25 Rte_ReadHook_myComponent_myRPort1_myExplicitSimpleData_Return(data)
;
26 return rtn;
27 }
The following example 7.7 shows an equivalent implementation of the explicit APIs via
an RTE Implementation Plug-In.
Example 7.7
Code example for Rte_myComponent.h in case the RTE Generator redirects towards
an RTE Implementation Plug-In to implement the explicit APIs:
1 extern Std_ReturnType
Rte_Write_myComponent_myPPort1_myExplicitSimpleData(uint32 data);
2
3 #define Rte_Write_myPPort1_myExplicitSimpleData(data) (
Rte_Write_myComponent_myPPort1_myExplicitSimpleData(data))
4
5 extern Std_ReturnType
Rte_Read_myComponent_myRPort1_myExplicitSimpleData(uint32 * data);
6
7 #define Rte_Read_myRPort1_myExplicitSimpleData(data) (
Rte_Read_myComponent_myRPort1_myExplicitSimpleData(data))
Code example for Rte.c in case the RTE Generator redirects towards an RTE Im-
plementation Plug-In to implement the explicit APIs:
1 #include "Rte_myComponent.h"
2
3 Rte_QueueType_uint32 Rte_Queue_myExplicitSimpleData;
4
5 Std_ReturnType Rte_Write_myComponent_myPPort1_myExplicitSimpleData(
uint32 data)
6 {
7 Std_ReturnType rtn;
8
9 Rte_WriteHook_myComponent_myPPort1_myExplicitSimpleData_Start(data)
;
10 Rte_Rips_myPlugin_StartWrite_myComponent_myGlobalData1();
11 rtn = Rte_EnqueueUInt32(&Rte_Queue_myExplicitSimpleData, data);
12 Rte_Rips_myPlugin_StopWrite_myComponent_myGlobalData1();
13 Rte_WriteHook_myComponent_myPPort1_myExplicitSimpleData_Return(data
);
14 return rtn;
15 }
16
17 Std_ReturnType Rte_Read_myComponent_myRPort1_myExplicitSimpleData(
uint32 * data)
18 {
19 Std_ReturnType rtn;
20
21 Rte_ReadHook_myComponent_myRPort1_myExplicitSimpleData_Start(data);
22 Rte_Rips_myPlugin_StartRead_myComponent_myGlobalData1();
23 rtn = Rte_DequeueUInt32(&Rte_Queue_myExplicitSimpleData, data);
24 Rte_Rips_myPlugin_StopRead_myComponent_myGlobalData1();
25 Rte_ReadHook_myComponent_myRPort1_myExplicitSimpleData_Return(data)
;
26 return rtn;
27 }
In the case the global copy is provided by the RTE Implementation Plug-In the
RTE Implementation Plug-In has to provide the read and write RTE Imple-
mentation Plug-In Services Rte_Rips_Read, Rte_Rips_DRead and Rte_-
Rips_Write. Those access services implement the pure data access in a protected
manner to the global copy(s) provided by the RTE Implementation Plug-In.
Thereby it is assumed, that a data access in an intra ECU communication scenario
is always successful. In case the Rte_Rips_Read, Rte_Rips_DRead and Rte_-
Rips_Write services are used for transformer access the according error codes can
occur. (see section 7.3.11.1).
Further on requirements about existence and usage are already stated in section
7.2.4.5.
The creation of the global copy is described in section 7.3.4.5.
[SWS_Rte_80075] dThe RTE shall use the data access RTE Implementation
Plug-In Services Rte_Rips_Read, Rte_Rips_DRead and Rte_Rips_Write
for any explicit access to the Data Communication Graph.c(SRS_Rte_00300,
SRS_Rte_00306)
The RTE Implementation Plug-Ins will know the possible pre-emptions and pro-
vide an appropriate protection implementation.
Figure 7.6: Example of queued communication with Cross Software Cluster Com-
munication Plug-In
The protection blocks can be nested, e.g. when a Runnable uses explicit communi-
cation while being executed in an ExclusiveArea. It is therefore recommended, to
generally use protection block implementations which support nesting. As a minimum,
such implementations have to be used where nesting can occur, which would have to
be analysed beforehand. On one hand those ExclusiveAreas are relevant which
are directly used by the ExecutableEntity (1) accessing the Data Communica-
tion Graphs. Additionally those ExclusiveAreas are relevant which are used by
all ExecutableEntitys invoking the ExecutableEntity (1) by direct or trusted
function call with the Data Communication Graph access.
[SWS_Rte_70091] dRTE Implementation Plug-In shall implement the pro-
tecting RTE Implementation Plug-In Services Rte_Rips_Read and Rte_-
Rips_Write in a way, that those support a potential nesting with ExclusiveAreas
when it can occur in the call graph.c(SRS_Rte_00300, SRS_Rte_00306)
Generally, implicit access APIs point directly to or work directly on a memory address
(the task buffer or the global copy). The goal is therefore to offer a possibility that
the Local Software Cluster Communication Plug-In defines this memory
address. This implies that also the buffer synchronization (i.e. fill and flush) has to be
done by the Local Software Cluster Communication Plug-In. To do so, it
needs a possibility to insert the respective code at the desired positions in the runnable
call context (which might be a task body but also a caller’s Rte_Call, Rte_Trigger
or Rte_Switch API). The RTE in turn has to disable its respective model checks
(e.g. if implicit communication is allowed in a certain interruption scenario) and buffer
creation for the Data Communication Graphs handled by an associated Local
Software Cluster Communication Plug-In.
In case of source code delivered software components, not for all implicit access
macros it is strictly necessary that the implicit access macros work on a memory ad-
dress, but in case of Rte_IWrite or Rte_IRead there could be some more optimized
implementations. To make such implementations possible, the RTE should not provide
component data structures in case of software components not requiring the compat-
ibility mode due to source code delivery which it should anyway not do in this case to
reduce ROM consumption.
The usage of the according RTE Implementation Plug-In Services is de-
scribed in section 7.2.4.2 and 7.2.4.1.
[SWS_Rte_80044] dThe RTE shall use the Data Handles Section and Inter Runnable
Variable Handles Section for implicit communication only if the specific software com-
ponent requires compatibility mode due to delivery as object code or if the specific
software component supports multiple instantiations.c(SRS_Rte_00301, SRS_Rte_-
00316)
[SWS_Rte_80046] dThe RTE Generator shall inhibit the creation of implicit buffers and
according fill and flush routines for a Data Communication Graph if it is assigned
to an Local Software Cluster Communication Plug-In.c(SRS_Rte_00301)
[SWS_Rte_80056] dThe RTE shall reject the configuration if any RteImplicitCom-
munication buffering related needs (RteCoherentAccess or RteImmediate-
BufferUpdate) affect a Data Communication Graph which is associated to an
Local Software Cluster Communication Plug-In.c(SRS_Rte_00301)
This refers to the section 4.3.1.5.
In case a Cross Software Cluster Communication Plug-In is assigned to
a Data Communication Graph using implicit accesses, RTE utilizes the Rte_-
Rips_Read and Rte_Rips_Write services to get the data from a other Software
Cluster or to communicate data towards other Software Clusters. Please note
[SWS_Rte_80148] and [SWS_Rte_80150].
In case a Cross Software Cluster Communication Plug-In and a Local
Software Cluster Communication Plug-In is assigned to a Data Commu-
nication Graph using implicit accesses, RTE can not handle read and writes
from the Cross Software Cluster Communication Plug-In since it neither
knows the real point in time when the Local Software Cluster Communication
Plug-In fill or flush the data nor can the RTE impact the implementation of those fill
and flush routines.
[SWS_Rte_70136]{DRAFT} dIf the data is required from another Software Clus-
ter the Local Software Cluster Communication Plug-In shall call the
Rte_Rips_Read Services of the Cross Software Cluster Communication
Plug-In when it would read from the global copy.c(SRS_Rte_00300, SRS_Rte_-
00306, SRS_Rte_00320)
[SWS_Rte_70137]{DRAFT} dIf the data is provided to another Software Clus-
ter the Local Software Cluster Communication Plug-In shall call the
Rte_Rips_Write Services of the Cross Software Cluster Communication
Plug-In when it writes to the global copy.c(SRS_Rte_00300, SRS_Rte_00306,
SRS_Rte_00320)
Please note: Due to [SWS_Rte_70136] and [SWS_Rte_70137] the Local Software
Cluster Communication Plug-In is free in the point in time when Rte_Rips_-
Read and Rte_Rips_Write are called. This point in time depends on the to be
implemented buffering strategy. For example, this can be compliant to the classical
implicit communication behavior or be compliant to Logical Execution Time (LET).
The Local Software Cluster Communication Plug-In is free to implement
[SWS_Rte_70136] and [SWS_Rte_70136] with the means of a Complex Driver. This
is illustrated in figure 7.7.
For sure an approach may change the communication multiplicity seen by the RTE.
Please note section 7.3.3.4.
Nevertheless the RTE needs to invoke the Buffer Fill Routines and Buffer Flush Rou-
tines at the right place in the call sequence of ExecutableEntitys. In general
an associated Local Software Cluster Communication Plug-In is free
to implement both functionalities in one common function. Therefore those func-
tions are called Rte_Rips_FillFlushRoutine. The information whether an Rte_-
Rips_FillFlushRoutine shall be invoked before or after an ExecutableEntity
is given by configuration via RteRipsFillRoutineRef and RteRipsFlushRou-
tineRef at the related RteEventToTaskMapping / RteBswEventToTaskMap-
ping.
[SWS_Rte_80047] dThe RTE shall invoke Rte_Rips_FillFlushRoutines config-
ured via RteRipsFillRoutineRef with the identical activation conditions as the
The example 7.8 shows the basic implementation in case the data is primitive, the
Data Communication Graph does not require Sender Status nor Receiver Status,
and the software component does not support multiple instantiation and is provided as
source code.
Example 7.8
Code example for Rte_myComponent.h in case the RTE Generator implements the
implicit communication:
1 #include "Rte_DataHandleType.h"
2
3 /* task buffer for TASK_COOP_10MS */
4 extern Rte_PerTaskBuffers_TASK_COOP_10MS_Type
Rte_PerTaskBuffers_TASK_COOP_10MS;
5
6 /* task buffer for TASK_PREEMPT_1MS */
7 extern Rte_PerTaskBuffers_TASK_PREEMPT_1MS_Type
Rte_PerTaskBuffers_TASK_PREEMPT_1MS;
8 #define Rte_IWrite_myProducerRunnable1_myPPort1_myImplicitSimpleData(
data) ( \
9 Rte_PerTaskBuffers_TASK_COOP_10MS.myImplicitSimpleData.value = (data)
)
10
11 #define Rte_IWriteRef_myProducerRunnable1_myPPort1_myImplicitSimpleData
() ( \
12 &Rte_PerTaskBuffers_TASK_COOP_10MS.myImplicitSimpleData.value )
13 #define Rte_IRead_myConsumerRunnable_myRPort1_myImplicitSimpleData() (
\
14 Rte_PerTaskBuffers_TASK_PREEMPT_1MS.myImplicitSimpleData.value )
Code example for Rte.c in case the RTE Generator implements the implicit commu-
nication:
1 #include "Rte_myComponent.h"
2
3 Rte_DE_uint32 Rte_myImplicitSimpleData;
4
5 /* task buffer for TASK_COOP_10MS */
6 Rte_PerTaskBuffers_TASK_COOP_10MS_Type
Rte_PerTaskBuffers_TASK_COOP_10MS;
7
8 /* task buffer for TASK_PREEMPT_1MS */
9 Rte_PerTaskBuffers_TASK_PREEMPT_1MS_Type
Rte_PerTaskBuffers_TASK_PREEMPT_1MS;
10
11 TASK(TASK_COOP_10MS)
12 {
13 Rte_Runnable_myComponent_myProducerRunnable1_Start();
14 myProducerRunnable1();
15 Rte_Runnable_myComponent_myProducerRunnable1_Return();
16 Rte_myImplicitSimpleData = Rte_PerTaskBuffers_TASK_COOP_10MS.
myImplicitSimpleData;
17 }
18
19 TASK(TASK_PREEMPT_1MS)
20 {
21 Rte_PerTaskBuffers_TASK_PREEMPT_1MS.myImplicitSimpleData =
Rte_myImplicitSimpleData;
22 Rte_Runnable_myComponent_myConsumerRunnable_Start();
23 myConsumerRunnable();
24 Rte_Runnable_myComponent_myConsumerRunnable_Return();
25 }
Example 7.9
Code example for Rte.c in case the RTE Implementation Plug-In implements
the implicit communication:
1 #include "Rte_myComponent.h"
2 #include "Rte.h" /* which will include Rte_Rips_myPlugin.h */
3
4 Rte_DE_uint32 Rte_myGlobalData2;
5
6 TASK(TASK_COOP_10MS)
7 {
8 Rte_Runnable_myComponent_myProducerRunnable1_Start();
9 myProducerRunnable1();
10 Rte_Runnable_myComponent_myProducerRunnable1_Return();
11 Rips_Flush_Runnable1();
12 }
13
14 TASK(TASK_PREEMPT_1MS)
15 {
16 Rips_Fill_Runnable1();
17 Rte_Runnable_myComponent_myConsumerRunnable_Start();
18 myConsumerRunnable();
19 Rte_Runnable_myComponent_myConsumerRunnable_Return();
20 }
7
8 Rte_PerTaskBuffers_TASK_PREEMPT_1MS_Type
Rte_PerTaskBuffers_TASK_PREEMPT_1MS;
9 void Rips_Flush_Runnable1(void)
10 {
11 Rte_Rips_GlobalCopy_myGlobalData2 =
Rte_PerTaskBuffers_TASK_COOP_10MS.myGlobalData2;
12 }
13
14 void Rips_Fill_Runnable1(void)
15 {
16 Rte_PerTaskBuffers_TASK_PREEMPT_1MS.myGlobalData2 =
Rte_Rips_GlobalCopy_myGlobalData2;
17 }
The example 7.10 shows the basic implementation in case the data is primitive, the
Communication Graph does not require Sender Status nor Receiver Status, but has
a different resolution on sender and receiver side, the software component does not
support multiple instantiation, but is provided as object code. Besides being an object
code delivered software component and showing conversion, the example is identical
to example 7.8.
Example 7.10
Code example for Rte_myComponent.h (already compiled into the software compo-
nent) in case the RTE Generator implements the implicit communication:
1 #include "Rte_DataHandleType.h"
2
3 typedef struct
4 {
5 Rte_DE_uint16 * myConsumerRunnable_myRPort1_myImplicitSimpleData2;
6 Rte_DE_uint32 * myProducerRunnable1_myPPort1_myImplicitSimpleData;
7 } Rte_CDS_myComponent;
8
9 extern CONSTP2CONST(Rte_CDS_myComponent, RTE_CONST, RTE_CONST)
Rte_Inst_myComponent;
10
11 #define Rte_IWrite_myProducerRunnable1_myPPort1_myImplicitSimpleData(
data) ( \
12 Rte_Inst_myComponent->
myProducerRunnable1_myPPort1_myImplicitSimpleData->value = (data)
)
13
14 #define Rte_IWriteRef_myProducerRunnable1_myPPort1_myImplicitSimpleData
() ( \
15 &Rte_Inst_myComponent->
myProducerRunnable1_myPPort1_myImplicitSimpleData->value )
16
17 #define Rte_IRead_myConsumerRunnable_myRPort1_myImplicitSimpleData2() (
\
18 Rte_Inst_myComponent->
myConsumerRunnable_myRPort1_myImplicitSimpleData2->value )
Code example for Rte.c in case the RTE Generator implements the implicit commu-
nication:
1 #include "Rte_myComponent.h"
2
3 Rte_DE_uint32 Rte_myImplicitSimpleData;
4
5 /* task buffer for TASK_COOP_10MS */
6 Rte_PerTaskBuffers_TASK_COOP_10MS_Type
Rte_PerTaskBuffers_TASK_COOP_10MS;
7
8 /* task buffer for TASK_PREEMPT_1MS */
9 Rte_PerTaskBuffers_TASK_PREEMPT_1MS_Type
Rte_PerTaskBuffers_TASK_PREEMPT_1MS;
10
11 const Rte_CDS_myComponent Rte_Inst_myComponent = {
12 &Rte_PerTaskBuffers_TASK_PREEMPT_1MS.myImplicitSimpleData2,
13 &Rte_PerTaskBuffers_TASK_COOP_10MS.myImplicitSimpleData };
14
15 TASK(TASK_COOP_10MS)
16 {
17 Rte_Runnable_myComponent_myProducerRunnable1_Start();
18 myProducerRunnable1();
19 Rte_Runnable_myComponent_myProducerRunnable1_Return();
20 Rte_myImplicitSimpleData = Rte_PerTaskBuffers_TASK_COOP_10MS.
myImplicitSimpleData;
21 }
22
23 TASK(TASK_PREEMPT_1MS)
24 {
25 Rte_PerTaskBuffers_TASK_PREEMPT_1MS.myImplicitSimpleData2 =
Rte_myImplicitSimpleData/2;
26 Rte_Runnable_myComponent_myConsumerRunnable_Start();
27 myConsumerRunnable();
28 Rte_Runnable_myComponent_myConsumerRunnable_Return();
29 }
Example 7.11
Code example for Rte_myComponent.h from contract phase (already compiled into
the software component) in case the RTE Implementation Plug-In implements
the implicit communication. Please note, that the contract phase is not impacted by the
application of RTE Implementation Plug-Ins.
1 #include "Rte_DataHandleType.h"
2
3 typedef struct
4 {
5 Rte_DE_uint16 * myConsumerRunnable_myRPort1_myImplicitSimpleData2;
6 Rte_DE_uint32 * myProducerRunnable1_myPPort1_myImplicitSimpleData;
7 } Rte_CDS_myComponent;
8
9 extern CONSTP2CONST(Rte_CDS_myComponent, RTE_CONST, RTE_CONST)
Rte_Inst_myComponent;
10
11 #define Rte_IWrite_myProducerRunnable1_myPPort1_myImplicitSimpleData(
data) ( \
12 Rte_Inst_myComponent->
myProducerRunnable1_myPPort1_myImplicitSimpleData->value = (data)
)
13
14 #define Rte_IWriteRef_myProducerRunnable1_myPPort1_myImplicitSimpleData
() ( \
15 &Rte_Inst_myComponent->
myProducerRunnable1_myPPort1_myImplicitSimpleData->value )
16
17 #define Rte_IRead_myConsumerRunnable_myRPort1_myImplicitSimpleData2() (
\
18 Rte_Inst_myComponent->
myConsumerRunnable_myRPort1_myImplicitSimpleData2->value )
Code example for Rte.c in case the RTE Implementation Plug-In implements
the implicit communication:
1 #include "Rte_myComponent.h"
2 #include "Rte.h"
3
22 }
23
24 TASK(TASK_PREEMPT_1MS)
25 {
26 Rips_Fill_Runnable1();
27 Rte_Runnable_myComponent_myConsumerRunnable_Start();
28 myConsumerRunnable();
29 Rte_Runnable_myComponent_myConsumerRunnable_Return();
30 }
Besides the fact that InterRunnableVariables are used by a SWC internally and use an
own set of APIs (i.e. Rte_IrvIRead, Rte_IrvIWrite and Rte_IrvIWriteRef),
there is no difference in their implementing code or their need for protection or buffering
compared to regular data instances. They shall therefore not be treated differently to
regular inter SWC implicit communication. I.e. the InterRunnableVariable will also
be referenced by a RIPS FlatInstanceDescriptor and their access APIs will as
well be routed via the same RTE Implementation Plug-In Services as regular
implicit accesses would be.
There are no specific requirements on InterRunnableVariables since those are already
covered in the requirements for Implicit and Explicit communication. For instance
[SWS_Rte_70015], [SWS_Rte_70016], [SWS_Rte_70017], [SWS_Rte_70018],
[SWS_Rte_70019], [SWS_Rte_70021], [SWS_Rte_70023], [SWS_Rte_70025],
[SWS_Rte_70050], [SWS_Rte_70056].
Please note, that for all of those Data Communication Graphs individual RIPS
FlatInstanceDescriptors need to be provided.
Further on its not required, that all Data Communication Graphs overlaying in a
NvBlock are associated to the same RTE Implementation Plug-In nor are han-
dled by an RTE Implementation Plug-In at all.
[SWS_Rte_70082] dThe associated RTE Implementation Plug-In shall pro-
vide a set of Rte_Rips_StartRead and Rte_Rips_StopRead Services for each
Data Communication Graph involving a NvBlockSwComponent, if
• for the related Data Communication Graph the RTE Implementation
Plug-In support is enabled
AND
• for the associated RTE Implementation Plug-In the RteRipsGlobal-
CopyInstantiationPolicy is set to RTE_RIPS_INSTANTIATION_BY_RTE.
Thereby
• <SwcBswI> is the SwComponentPrototype’s name of the NvBlockSwCom-
ponent,
• <ExE> is the name of the callback GetMirror,
• <CGI> is the name of the Communication Graph Instance according to
[SWS_Rte_70038].
c(SRS_Rte_00300, SRS_Rte_00301)
[SWS_Rte_70083] dThe associated RTE Implementation Plug-In shall pro-
vide a set of Rte_Rips_StartWrite and Rte_Rips_StopWrite Services for each
Data Communication Graph involving a NvBlockSwComponent, if
• for the related Data Communication Graph the RTE Implementation
Plug-In support is enabled
AND
• for the associated RTE Implementation Plug-In the RteRipsGlobal-
CopyInstantiationPolicy is set to RTE_RIPS_INSTANTIATION_BY_RTE.
Thereby
• <SwcBswI> is the SwComponentPrototype’s name of the NvBlockSwCom-
ponent,
• <ExE> is the name of the callbacks SetMirror and NvMNotifyInitBlock,
• <CGI> is the name of the Communication Graph Instance according to
[SWS_Rte_70038].
c(SRS_Rte_00300, SRS_Rte_00301)
• Rte_Rips_myPlugin_StartRead_myNvBlockSwc_GetMirror_myNvData
• Rte_Rips_myPlugin_StopRead_myNvBlockSwc_GetMirror_myNvData
• Rte_Rips_myPlugin_StartWrite_myNvBlockSwc_SetMirror_myNvData
• Rte_Rips_myPlugin_StopWrite_myNvBlockSwc_SetMirror_myNvData
• Rte_Rips_myPlugin_StartWrite_myNvBlockSwc_
NvMNotifyInitBlock_myNvData
• Rte_Rips_myPlugin_StopWrite_myNvBlockSwc_
NvMNotifyInitBlock_myNvData
In case the global copy is provided by the RTE and Data Communication
Graphs overlay in the ramBlock of a NvBlockSwComponent the order in which the
Rte_Rips_StartRead and Rte_Rips_StopRead Services for the different Data
Communication Graphs are called needs to be defined.
[SWS_Rte_80104] dThe RTE Generator shall call the Rte_Rips_StartRead and
Rte_Rips_StopRead Services for overlaid Data Communication Graphs in the
following order:
1. The Rte_Rips_StartRead / Rte_Rips_StartWrite Service of a Data
Communication Graph containing other Data Communication Graphss is
called before the Rte_Rips_StartRead / Rte_Rips_StartWrite Services
of the contained Data Communication Graphs.
2. The Rte_Rips_StopRead / Rte_Rips_StopWrite Service of a Data Com-
munication Graphs containing other Data Communication Graphs is
called after the Rte_Rips_StopRead / Rte_Rips_StopWrite Service of the
contained Data Communication Graphs.
The calls shall be placed in the callback functions
• Rte_GetMirror
• Rte_SetMirror
• Rte_NvMNotifyInitBlock
belonging to the ramBlock of a NvBlockSwComponent.c(SRS_Rte_00300, SRS_-
Rte_00301)
In case the global copy is provided by the RTE Implementation Plug-In it is
not useful to call the Rte_Rips_Read and Rte_Rips_Write Services for the Data
Communication Graphs which are already contained in another Data Communi-
cation Graph.
[SWS_Rte_80105] dIn case of overlaid Data Communication Graphs the RTE
Generator shall only call the Rte_Rips_Read, Rte_Rips_DRead and Rte_Rips_-
Write Services for the Data Communication Graphs which are not contained in
another Data Communication Graph in the callback functions
• Rte_GetMirror
• Rte_SetMirror
• Rte_NvMNotifyInitBlock
belonging to the ramBlock of a NvBlockSwComponent.c(SRS_Rte_00300, SRS_-
Rte_00301)
7.3.4.9.1 Example about source code software component with complex call
tree and NV data
The example 7.12 shows a more complex constellation of implicit communication. That
is:
• the software component is delivered as source code and
• the software component does not support multiple instantiation and
• the data writing RunnableEntity is executed conditionally (e.g. due to a Swc-
ModeSwitchEvent) and
• the data reading RunnableEntity is executed as a direct function call server
and
• writer and reader are called in interrupting tasks and
• the data is part of a RamBlock of an NvBlockSwComponent and
• the NonqueuedReceiverComSpec has handleNeverReceived set to TRUE,
the NonqueuedSenderComSpec does not set any option enforcing a data ele-
ment status and
• the data is an array.
Example 7.12
Code example for Rte_Type.h in case the RTE Generator implements the implicit
communication:
1 typedef uint32 myArrayType[4];
10 } Rte_DE_myArrayType;
11
12 /* NV block type */
13 typedef struct
14 {
15 myArrayType myBlockElement1;
16 } myNvBlockType;
17
18 /* task buffer type for TASK_COOP_10MS */
19
20 typedef struct
21 {
22 Rte_DE_myArrayType myArrayData;
23 } Rte_PerTaskBuffers_TASK_COOP_10MS_Type;
24
25 /* task buffer type for server runnable */
26
27 typedef struct
28 {
29 Rte_DES_myArrayType myArrayData;
30 } Rte_PerTaskBuffers_myComponent_myServerRPort_myOperation_Type;
Code example for Rte_myComponent.h in case the RTE Generator implements the
implicit communication:
1 #include "Rte_DataHandleType.h"
2
8 extern Rte_PerTaskBuffers_TASK_PREEMPT_1MS_Type
Rte_PerTaskBuffers_TASK_PREEMPT_1MS;
9
10 #define Rte_IWriteRef_myProducerRunnable2_myPPort2_myArrayData() ( \
11 (uint32 *)&Rte_PerTaskBuffers_TASK_COOP_10MS.myArrayData.value )
12
13 #define Rte_IWrite_myProducerRunnable2_myPPort2_myArrayData(data) ( \
14 Rte_MemCopy(&Rte_PerTaskBuffers_TASK_COOP_10MS.myArrayData.value, \
15 data, \
16 sizeof data); )
17
18 #define Rte_IRead_myServerRunnable_myRPort2_myArrayData() ( \
19 (const uint32 *) &
Rte_PerTaskBuffers_myComponent_myServerRPort_myOperation.
myArrayData.value )
20
21 #define Rte_IStatus_myServerRunnable_myRPort2_myArrayData() ( \
22 Rte_PerTaskBuffers_myComponent_myServerRPort_myOperation.myArrayData.
status )
23
24 #define Rte_Call_myServerRPort_myOperation() \ (
Rte_Call_myComponent_myServerRPort_myOperation() )
Code example for Rte.c in case the RTE Generator implements the implicit commu-
nication:
1 #include "Rte_myComponent.h"
2 #include "Rte.h"
3
4 Rte_DES_myArrayType Rte_myArrayData = {{0,1,255,4294967295},
RTE_E_NEVER_RECEIVED};
5
6 /* RomBlock */
7 const myNvBlockType Rte_RomBlock = {{0,1,255,4294967295}};
8
9 /* task buffer for TASK_COOP_10MS */
10 Rte_PerTaskBuffers_TASK_COOP_10MS_Type
Rte_PerTaskBuffers_TASK_COOP_10MS;
11
12 /* task buffer for server runnable */
13 Rte_PerTaskBuffers_myComponent_myServerRPort_myOperation_Type \
14 Rte_PerTaskBuffers_myComponent_myServerRPort_myOperation;
15
16 Std_ReturnType Rte_Call_myComponent_myServerRPort_myOperation(void)
17 {
18 Std_ReturnType rtn;
19 Rte_CallHook_myComponent_myServerRPort_myOperation_Start();
20 SuspendOsInterrupts();
21 Rte_MemCopy(&
Rte_PerTaskBuffers_myComponent_myServerRPort_myOperation.
myArrayData, \
22 &Rte_myArrayData, \
23 sizeof Rte_myArrayData);
24 ResumeOsInterrupts();
25 Rte_Runnable_myComponent_myServerRunnable_Start()
26 myServerRunnable();
27 Rte_Runnable_myComponent_myServerRunnable_Return()
28 rtn = RTE_E_OK;
29 Rte_CallHook_myComponent_myServerRPort_myOperation_Return();
30 return rtn;
31 }
32
33 Std_ReturnType Rte_GetMirror_myNvBlockSwc_myNvBlockDescriptor(void *
NvmBuffer)
34 {
35 SuspendOSInterrupts();
36 Rte_MemCopy(&((myNvBlockType *)NvmBuffer)->myBlockElement1,
37 &Rte_myArrayData.value,
38 sizeof Rte_myArrayData.value);
39 ResumeOSInterrupts();
40 return RTE_E_OK;
41 }
42
43 Std_ReturnType Rte_NvMNotifyInitBlock_myNvBlockSwc_myNvBlockDescriptor(
void)
44 {
45 SuspendOSInterrupts();
46 Rte_MemCopy(&Rte_myArrayData.value,
47 &Rte_RomBlock->myBlockElement1,
48 sizeof Rte_myArrayData.value);
49 ResumeOSInterrupts();
50 return RTE_E_OK;
51 }
52
53 TASK(TASK_COOP_10MS)
54 {
55 Std_ReturnType ret;
56 if (...myProducerRunnable2 execution condition...)
57 {
58 Rte_Runnable_myComponent_myProducerRunnable2_Start();
59 myProducerRunnable2();
60 Rte_Runnable_myComponent_myProducerRunnable2_Return();
61 }
62 ... some unrelated runnables ...
63 if (...myProducerRunnable2 execution condition...)
64 {
65 SuspendOsInterrupts();
66 Rte_MemCopy(&Rte_myArrayData.value, \
67 &Rte_PerTaskBuffers_TASK_COOP_10MS.myArrayData.value, \
68 sizeof Rte_myArrayData.value);
69 Rte_myArrayData.status &= (Std_ReturnType)(~RTE_E_NEVER_RECEIVED)
;
70 ResumeOsInterrupts();
71 }
72 }
73
74 TASK(TASK_PREEMPT_1MS)
75 {
76 Rte_Runnable_myComponent_myClientRunnable_Start();
77 myClientRunnable(); // will execute
Rte_Call_myServerRPort_myOperation()
78 Rte_Runnable_myComponent_myClientRunnable_Return();
79 }
Example 7.13
Code example for Rte_Type.h in case the RTE Generator redirects towards an RTE
Implementation Plug-In to implement the scenario:
1 typedef uint32 myArrayType[4];
Code example for Rte_DataHandleType.h in case the RTE Generator redirects to-
wards an RTE Implementation Plug-In to implement the scenario:
1 typedef struct
2 {
3 myArrayType value;
4 } Rte_DE_myArrayType;
5
6 typedef struct
7 {
8 myArrayType value;
9 Std_ReturnType status;
10 } Rte_DES_myArrayType;
11
12 /* NV block type */
13
14 typedef struct
15 {
16 myArrayType myBlockElement1;
17 } myNvBlockType;
18
19 /* wrapper type according SWS_Rte_80079 */
20 typedef Rte_DE_myArrayType Rte_Rips_GlobalCopy_myGlobalData3_Type;
21 typedef Rte_DES_myArrayType Rte_Rips_GlobalCopy_myGlobalData4_Type;
Code example for Rte_myComponent.h in case the RTE Generator redirects towards
an RTE Implementation Plug-In to implement the scenario:
1 #include "Rte_DataHandleType.h"
2 #include "Rte_Rips_myPlugin_myComponent.h"
3
4 #define Rte_IWriteRef_myProducerRunnable2_myPPort2_myArrayData() ( \
5 Rte_Rips_myPlugin_IWBufferRef_myComponent_myProducerRunnable2_myGlobalData3
() )
6
7 #define Rte_IWrite_myProducerRunnable2_myPPort2_myArrayData(data) ( \
8 Rte_MemCopy( \
9 Rte_Rips_myPlugin_IWBufferRef_myComponent_myProducerRunnable2_myGlobalData3
(), \
10 data, \
11 sizeof data); )
12
13 #define Rte_IRead_myServerRunnable_myRPort2_myArrayData() ( \
14 (const uint32 *) &Rte_Rips_myPlugin_IRBufferRef_myComponent
_myServerRunnable_myGlobalData4()->value )
15
16 #define Rte_IStatus_myServerRunnable_myRPort2_myArrayData() ( \
17 Rte_Rips_myPlugin_IRBufferRef_myComponent
_myServerRunnable_myGlobalData4()->status )
18
19 #define Rte_Call_myServerRPort_myOperation() \
20 (Rte_Call_myComponent_myServerRPort_myOperation() )
Code example for Rte.h in case the RTE Generator redirects towards an RTE Im-
plementation Plug-In to implement the scenario:
1 #include "Rte_Rips_myPlugin.h"
Code example for Rte.c in case the RTE Generator redirects towards an RTE Im-
plementation Plug-In to implement the scenario:
1 #include "Rte.h"
2 #include "Rte_Buffers.h"
3 #include "Rte_myComponent.h"
4
5 Rte_DES_myArrayType Rte_myGlobalData4 = {{0,1,255,4294967295},
RTE_E_NEVER_RECEIVED};
6 Rte_DE_myArrayType Rte_myGlobalData3 = {0,1,255,4294967295};
7
8 /* RomBlock */
9 const myNvBlockType Rte_RomBlock = {{0,1,255,4294967295}};
10
11 Std_ReturnType Rte_Call_myComponent_myServerRPort_myOperation(void)
12 {
13 Std_ReturnType rtn;
14 Rte_CallHook_myComponent_myServerRPort_myOperation_Start();
15 Rips_Fill_Runnable2();
16 Rte_Runnable_myComponent_myServerRunnable_Start();
17 myServerRunnable();
18 Rte_Runnable_myComponent_myServerRunnable_Return();
19 rtn = RTE_E_OK;
20 Rte_CallHook_myComponent_myServerRPort_myOperation_Return();
21 return rtn;
22 }
23
24 Std_ReturnType Rte_GetMirror_myNvBlockSwc_myNvBlockDescriptor(void *
NvmBuffer)
25 {
26 /* start protection whole ramBlock */
27 Rte_Rips_myPlugin_StartRead_myNvBlockSwc_GetMirror_myRamBlock();
28 /* start protection single data element */
29 Rte_Rips_myPlugin_StartRead_myNvBlockSwc_GetMirror_myGlobalData3();
30 Rte_MemCopy(&((myNvBlockType *)NvmBuffer)->myBlockElement1,
31 &Rte_myGlobalData3, sizeof Rte_myGlobalData3);
32 /* stop protection single data element */
33 Rte_Rips_myPlugin_StopRead_myNvBlockSwc_GetMirror_myGlobalData3();
34 /* stop protection whole ramBlock */
35 Rte_Rips_myPlugin_StopRead_myNvBlockSwc_GetMirror_myRamBlock();
36 return RTE_E_OK;
37 }
38
39 Std_ReturnType Rte_NvMNotifyInitBlock_myNvBlockSwc_myNvBlockDescriptor(
void)
40 {
41 /* start protection whole ramBlock */
42 Rte_Rips_myPlugin_StartWrite_myNvBlockSwc_GetMirror_myRamBlock();
43 /* start protection single data element */
44 Rte_Rips_myPlugin_StartWrite_myNvBlockSwc_GetMirror_myGlobalData3();
45
46 Rte_MemCopy(&Rte_myGlobalData3,
47 &Rte_RomBlock->myBlockElement1,
48 sizeof Rte_myGlobalData3);
49
50 /* stop protection single data element */
51 Rte_Rips_myPlugin_StopWrite_myNvBlockSwc_GetMirror_myGlobalData3();
52 /* start protection single data element */
53 Rte_Rips_myPlugin_StartWrite_myNvBlockSwc_GetMirror_myGlobalData4();
54
55 Rte_MemCopy(&Rte_myGlobalData4.value,
56 &Rte_RomBlock->myBlockElement1,
57 sizeof Rte_myGlobalData4.value);
58
59 /* stop protection single data element */
60 Rte_Rips_myPlugin_StopWrite_myNvBlockSwc_GetMirror_myGlobalData4();
61 /* stop protection whole ramBlock */
62 Rte_Rips_myPlugin_StopWrite_myNvBlockSwc_GetMirror_myRamBlock();
63 return RTE_E_OK;
64 }
65
66 TASK(TASK_COOP_10MS)
67 {
68 Std_ReturnType ret;
69 if (...myProducerRunnable2 execution condition...)
70 {
71 Rte_Runnable_myComponent_myProducerRunnable2_Start();
72 myProducerRunnable2();
73 Rte_MemCopy(
74 Rte_Rips_myPlugin_IWBufferRef_myComponent
_myProducerRunnable2_myGlobalData4(),
75 Rte_Rips_myPlugin_IWBufferRef_myComponent
_myProducerRunnable2_myGlobalData3(),
76 sizeof Rte_myGlobalData4.value);
77 Rte_Rips_myPlugin_IWBufferRef_myComponent
_myProducerRunnable2_myGlobalData4()->status
78 &= (Std_ReturnType)(~RTE_E_NEVER_RECEIVED);
79 Rte_Runnable_myComponent_myProducerRunnable2_Return();
80 Rips_Flush_Runnable2();
81 }
82 ... some unrelated runnables ...
83 /* RTE specifc buffer handling at the end of the task is inhibited
*/
84 }
85
86 TASK(TASK_PREEMPT_1MS)
87 {
88 Rte_Runnable_myComponent_myClientRunnable_Start();
89 myClientRunnable(); // will execute
Rte_Call_myServerRPort_myOperation()
90 Rte_Runnable_myComponent_myClientRunnable_Return();
91 }
Code example for Rte_Buffers.h in case the RTE Generator redirects towards an
RTE Implementation Plug-In to implement the scenario:
1 #include "Rte_DataHandleType.h"
2 #include "Rte_Rips_myPlugin_Buffers.h"
3
4 /* the mapping according SWS_Rte_80006 below can be omitted, if the RTE
Generator names the variable Rte_Rips_GlobalCopy_myGlobalData4 */
5 extern Rte_DES_myArrayType Rte_myGlobalData4;
6
9 #define
Rte_Rips_myPlugin_IRBufferRef_myComponent_myServerRunnable_myGlobalData4
() \
10 &Rte_PerTaskBuffers_myComponent_myServerRPort_myOperation.
myGlobalData4
20 extern Rte_PerTaskBuffers_TASK_COOP_10MS_Type
Rte_PerTaskBuffers_TASK_COOP_10MS;
21 /* task buffer for server runnable */
22
23 extern Rte_PerTaskBuffers_myComponent_myServerRPort_myOperation_Type \
24 Rte_PerTaskBuffers_myComponent_myServerRPort_myOperation;
Code example for Rte_Rips_myPlugin.h in case the RTE Generator redirects to-
wards an RTE Implementation Plug-In to implement the scenario:
1 #define Rte_Rips_myPlugin_FillEnter_Rips_Fill_Runnable2() \
2 SuspendOSInterrupts()
3 #define Rte_Rips_myPlugin_FillExit_Rips_Fill_Runnable2() \
4 ResumeOSInterrupts()
5 #define Rte_Rips_myPlugin_FlushEnter_Rips_Flush_Runnable2() \
6 SuspendOSInterrupts()
7 #define Rte_Rips_myPlugin_FlushExit_Rips_Flush_Runnable2() \
8 ResumeOSInterrupts()
9 #define Rte_Rips_myPlugin_StartReadCallback_NvM_myRamBlock() \
10 SuspendOSInterrupts()
11 #define Rte_Rips_myPlugin_StopReadCallback_NvM_myRamBlock() \
12 ResumeOSInterrupts()
13 #define Rte_Rips_myPlugin_StartWriteCallback_NvM_myRamBlock() \
14 SuspendOSInterrupts()
15 #define Rte_Rips_myPlugin_StopWriteCallback_NvM_myRamBlock() \
16 ResumeOSInterrupts()
Code example for Rte_Rips_myPlugin.c in case the RTE Generator redirects to-
wards an RTE Implementation Plug-In to implement the scenario:
1 #include "Rte_Buffers.h"
2
24 sizeof Rte_Rips_GlobalCopy_myGlobalData3);
25 }
OR
• common.
[SWS_Rte_80022] dIf an ExecutableEntity defines a canEnterExclusiveArea
association, the RTE Generator shall call the corresponding Rte_Rips_Enter and
Rte_Rips_Exit Services inside the belonging Rte_Enter and Rte_Exit APIs.c
(SRS_Rte_00302)
[SWS_Rte_80023] dIf an ExecutableEntity defines a runsInsideExclu-
siveArea association, the RTE shall call the corresponding Rte_Rips_Enter
and Rte_Rips_Exit Services where the according RunnableEntity or BswMod-
uleEntity is called due to the activation of a specific RTEEvent or BswEvent.c
(SRS_Rte_00302)
Please note: If the related event has been mapped as a direct or trusted function call,
this can be inside another RTE API. In case the event is mapped to a task it is inside
the according task body.
Example 7.14
Code example for Rte_myComponent.h in case the RTE Generator implements the
ExclusiveArea:
1 #define Rte_Enter_myExclusiveArea1() ( \
2 (Rte_EnterHook_myComponent_myExclusiveArea1_Start()), \
3 SuspendOSInterrupts(), \
4 (Rte_EnterHook_myComponent_myExclusiveArea1_Return()) )
5
6 #define Rte_Exit_myExclusiveArea1() ( \
7 (Rte_ExitHook_myComponent_myExclusiveArea1_Start()), \
8 ResumeOSInterrupts(), \
9 (Rte_ExitHook_myComponent_myExclusiveArea1_Return()) )
Code example for Rte.c in case the RTE Generator implements the Exclu-
siveArea:
1 #include "Rte_myComponent.h"
2 void Rte_Enter_myComponent_myExclusiveArea1(void)
3 {
4 Rte_EnterHook_myComponent_myExclusiveArea1_Start();
5 SuspendOSInterrupts();
6 Rte_EnterHook_myComponent_myExclusiveArea1_Return();
7 }
8
9 void Rte_Exit_myComponent_myExclusiveArea1(void)
10 {
11 Rte_ExitHook_myComponent_myExclusiveArea1_Start();
12 ResumeOSInterrupts();
13 Rte_ExitHook_myComponent_myExclusiveArea1_Return();
14 }
Example 7.15
Code example for Rte_myComponent.h in case the RTE Generator redirects towards
an RTE Implementation Plug-In to implement the ExclusiveArea:
1 #include "Rte_Rips_myPlugin_myComponent.h"
2 #define Rte_Enter_myExclusiveArea1() ( \
3 (Rte_EnterHook_myComponent_myExclusiveArea1_Start()), \
4 Rte_Rips_myPlugin_Enter_myComponent_myExclusiveArea1(), \
5 (Rte_EnterHook_myComponent_myExclusiveArea1_Return()) )
6
7 #define Rte_Exit_myExclusiveArea1() ( \
8 (Rte_ExitHook_myComponent_myExclusiveArea1_Start()), \
9 Rte_Rips_myPlugin_Exit_myComponent_myExclusiveArea1(), \
10 (Rte_ExitHook_myComponent_myExclusiveArea1_Return()) )
Code example for Rte.c in case the RTE Generator redirects towards an RTE Im-
plementation Plug-In to implement the ExclusiveArea:
1 #include "Rte_myComponent.h"
2 void Rte_Enter_myComponent_myExclusiveArea1(void)
3 {
4 Rte_EnterHook_myComponent_myExclusiveArea1_Start();
5 Rte_Rips_myPlugin_Enter_myComponent_myExclusiveArea1();
6 Rte_EnterHook_myComponent_myExclusiveArea1_Return();
7 }
8
9 void Rte_Exit_myComponent_myExclusiveArea1(void)
10 {
11 Rte_ExitHook_myComponent_myExclusiveArea1_Start();
12 Rte_Rips_myPlugin_Exit_myComponent_myExclusiveArea1();
13 Rte_ExitHook_myComponent_myExclusiveArea1_Return();
14 }
Example 7.16
Code example for Rte.c in case the RTE Generator implements the Exclu-
siveArea:
1 #include "Rte.h"
2 TASK(TASK_COOP_10MS)
3 {
4 SuspendOSInterrupts();
5 Rte_Runnable_myComponent_EvMyRunnable10ms_Start();
6 myRunnable();
7 Rte_Runnable_myComponent_EvMyRunnable10ms_Return();
8 ResumeOSInterrupts();
9 }
Example 7.17
Code example for Rte.c in case the RTE Generator redirects towards an RTE Im-
plementation Plug-In to implement the ExclusiveArea:
1 #include "Rte.h"
2 #include "Rte_Rips_myPlugin_myComponent.h"
3 TASK(TASK_COOP_10MS)
4 {
5 Rte_Runnable_myComponent_EvMyRunnable10ms_Start();
6 Rte_Rips_myPlugin_Enter_myComponent_EvMyRunnable10ms_myExclusiveArea
();
7 myRunnable();
8 Rte_Rips_myPlugin_Exit_myComponent_EvMyRunnable10ms_myExclusiveArea
();
9 Rte_Runnable_myComponent_EvMyRunnable10ms_Return();
10 }
7.3.6 Modes
7.3.6.3 Enable RTE Implementation Plug-In support for mode machine in-
stances
[SWS_Rte_80082] dThe RTE Generator shall enable the Local Software Clus-
ter Communication Plug-In support for a mode machine instance, if the
related RteModeMachineInstanceConfig or RteBswModeMachineInstance-
Config container contains the reference RteModeMachineInstanceResponsib-
leRipsPluginRef.c(SRS_Rte_00315)
[SWS_Rte_CONSTR_80024]{DRAFT} RteModeMachineInstanceRespon-
sibleRipsPluginRef ins only applicable for Local Software Cluster
Communication Plug-Ins dThe reference RteModeMachineInstanceRe-
sponsibleRipsPluginRef shall only reference a Local Software Cluster
Communication Plug-In.c()
[SWS_Rte_80132] dThe RTE Generator shall enable the Cross Software Clus-
ter Communication Plug-In support for a mode machine instance, if for a
Mode Communication Graph
• a FlatInstanceDescriptor references the Mode Communication Graph
AND
• and the rtePluginProps.associatedCrossSwClusterComRtePlugin ref-
erences the RteRipsPluginProps container of the Cross Software Clus-
ter Communication Plug-In.
c(SRS_Rte_00321)
[SWS_Rte_CONSTR_80026]{DRAFT} modeGroup instance reference for Rte
Implementation Plug-Ins I dThe RIPS FlatInstanceDescriptor for a Mode
Communication Graph shall reference the modeGroup instance in the Abstract-
ProvidedPortPrototype, if the configuration contains the mode manager for the
Mode Communication Graph.c(SRS_Rte_00321)
7.3.6.4 Cross Software Cluster Communication Plug-In support for mode com-
munication
With the Rte_Rips_DequeueModeSwitch service the RTE can dequeue the next
mode switch from the mode queue at the point in time when the mode switch is finished
at all Software Clusters. In case the mode providing Applicative Software
Cluster utilizes multiple mode switch tasks (e.g. in a multi core or mode switch config-
uration) the Rte_Rips_DequeueModeSwitch gets called by the Cross Software
Cluster Communication Plug-In for each mode switch tasks. It’s up on the RTE
to decide in which of the calls the real dequeue operation happens. Please note, that
the Rte_Rips_DequeueModeSwitch service is only applicable in an Applicative
Software Cluster. In the Host Software Cluster, the RTE implements the
mode switches on top of the real OS tasks - in which the execution of mode switches in
Applicative Software Clusters are scheduled. Hence, it is not possible, that
a mode switch in another Software Cluster is not finished after the mode switch of
the Host Software Cluster is finished.
[SWS_Rte_70123]{DRAFT} dThe Cross Software Cluster Communication
Plug-In in an Applicative Software Cluster shall call the Rte_Rips_De-
queueModeSwitch Service in a context which behaves identical as any mode switch
task w.r.t preemption and priority after the last on-entry ExecutableEntitys
terminated, if the Cross Software Cluster Communication Plug-In support
for a Mode Communication Graph is enabled in an Applicative Software
Cluster where the mode is provided to other Software Clusters.c(SRS_Rte_-
00321)
[SWS_Rte_80137]{DRAFT} dThe RTE shall dequeue the next mode when the Rte_-
Rips_DequeueModeSwitch gets called and
• the last on-entry ExecutableEntitys terminated ()
OR if no on-entry ExecutableEntitys is configured
• the last on-transition ExecutableEntitys terminated
OR if no on-transition ExecutableEntitys is configured
• the last on-exit ExecutableEntitys terminated (if any is configured)
OR if no on-exit ExecutableEntitys is configured
• immediately
c(SRS_Rte_00321)
[SWS_Rte_80112] dIn case the Rte_Switch API enqueued into an empty dis-
tributed shared mode queue, the RTE shall pass the current mode of the re-
lated mode machine instance as parameter previousmode, the requested mode
as parameter nextmode, and RTE_DSMQ_ENQUEUED_FIRST as parameter dsmqs-
tatus to the Rte_Rips_DsmqSwitch Service.c(SRS_Rte_00311)
[SWS_Rte_80113] dIn case the Rte_Switch API enqueued into a non empty dis-
tributed shared mode queue, the RTE shall pass the requested mode as param-
eter nextmode and RTE_DSMQ_ENQUEUED_NOT_FIRST as parameter dsmqstatus
to the Rte_Rips_DsmqSwitch Service.c(SRS_Rte_00311)
[SWS_Rte_80114] dIn case the Rte_Switch API could not enqueue into the dis-
tributed shared mode queue, the RTE shall pass the requested mode as pa-
rameter nextmode and RTE_DSMQ_ENQUEUE_FAILED as parameter dsmqstatus to
the Rte_Rips_DsmqSwitch Service.c(SRS_Rte_00311)
Please note: In case of [SWS_Rte_80113] and [SWS_Rte_80114] it is possible that
a mode transition of this mode machine instance is ongoing. Therefore the pa-
rameter previousmode is not reliable since it may change at any time during the
execution of the Rte_Rips_DsmqSwitch Service. Therefore the value of the param-
eter previousmode is implementation specific and will not be evaluated by the RTE
Implementation Plug-In.
Thereby the the RTE can assume that the Rte_Rips_DsmqSwitch Service will not
return before all "non-chained" DSMQ transition OsTasks participating in the dis-
tributed shared mode queue called the Rte_Rips_DsmqSwitch Service.
[SWS_Rte_70109] dThe RTE Implementation Plug-In shall stay in the Rte_-
Rips_DsmqSwitch Service until all Rte_Rips_DsmqSwitch Services of "non-
chained" DSMQ transition OsTasks are entered.c(SRS_Rte_00315)
[SWS_Rte_80121] dThe RTE shall treat the time between the dequeue operation of
the current mode switch and the return of the Rte_Rips_DsmqTransitionEnd Ser-
vice of the current mode switch as a critical section. Enqueue operations into this
distributed shared mode queue occurring during the critical section shall be
executed when the critical section is left.c(SRS_Rte_00311)
Note: Since the distributed shared mode queue is protected by a
pair of Rte_Rips_EnterModeQueue and Rte_Rips_ExitModeQueue Services,
[SWS_Rte_80121] requires the following sequence:
1. call of Rte_Rips_EnterModeQueue
2. manipulation of the distributed shared mode queue (set new current
mode, dequeue next mode transition)
3. call of Rte_Rips_DsmqTransitionEnd
4. call of Rte_Rips_ExitModeQueue.
Thereby the parameters are set according to the following requirements:
[SWS_Rte_80122] dIn case the distributed shared mode queue was emptied
by the mode switch, the RTE shall pass RTE_DSMQ_DEQUEUED_LAST as parameter
dsmqstatus, the mode from which the mode switch was performed as parameter
previousmode, and the mode to which the mode switch was performed as parameter
nextmode to the Rte_Rips_DsmqTransitionEnd Service to the just switched mode
machine instance.c(SRS_Rte_00311)
[SWS_Rte_80123] dIn case the distributed shared mode queue was not emp-
tied by the mode switch, the RTE shall pass RTE_DSMQ_DEQUEUED_NOT_LAST as
parameter dsmqstatus, the mode from which the next mode switch will be performed
as parameter previousmode, and the mode to which the next mode switch will be
performed as parameter nextmode to the Rte_Rips_DsmqTransitionEnd Service
related to the next to be switched mode machine instance.c(SRS_Rte_00311)
[SWS_Rte_80124] dIn case the distributed shared mode queue was not emp-
tied by the mode switch, the RTE shall activate the non chained DSMQ transition
OsTasks participating in the distributed shared mode queue after the Rte_-
Rips_DsmqTransitionEnd Service returned.c(SRS_Rte_00311)
7.3.7 Parameters
The RTE Implementation Plug-In interface assumes that the RTE implements
per Parameter Communication Graphs containing a PPortPrototype exactly
one constant variable that holds the value of the parameter. This constant variable is
called parameter instance.
[SWS_Rte_80130]{DRAFT} dThe RTE shall provide exactly one parameter in-
stance for each Parameter Communication Graphs containing a PPortPro-
totype if the Parameter Communication Graphs is assigned to an RTE Imple-
mentation Plug-In.c(SRS_Rte_00319)
Please note that the RTE Generator still has the freedom to decide about the naming
of the parameter instance as well as to group parameter instances in RTE
specific structures. In this case the requirement [SWS_Rte_80131] ensures the acces-
sibility by a defined name.
[SWS_Rte_80154]{DRAFT} dWhen the RTE provides an parameter instance
for a Parameter Communication Graph it shall use the Implementation-
DataType applicable for the parameter in the PPortPrototype.c(SRS_Rte_-
00300, SRS_Rte_00301)
The usage of the RTE Implementation Plug-In Services by the RTE is trans-
parent for the software component. When a RTE has to support compatibility mode,
e.g. due to an object code delivered software component, the RTE Implementa-
tion Plug-In Services are used either in the real RTE API C-functions or in the
component data structure only.
As a consequence, applying RTE Implementation Plug-Ins does not impact the
contract phase.
Nevertheless the RTE Implementation Plug-Ins has to consider the usage of
the Rte_Rips_IRBufferRef and Rte_Rips_IWBufferRef Services for the initial-
ization of the handles in the component data structure.
[SWS_Rte_70108] dIn case an Atomic Software Component requires compati-
bility mode due to object code integration (see [SWS_Rte_80045]) or the software
component supports multiple instantiation, the associated RTE Implementation
Plug-In shall implement all Rte_Rips_IRBufferRef and Rte_Rips_IWBuffer-
Ref Services for every instance of this Atomic Software Component in a way that
those services can be used as static initializer.c(SRS_Rte_00306, SRS_Rte_00301)
7.3.9.1 Enable RTE Implementation Plug-In support for client server Communi-
cation
In case a Trigger Communication uses data transformation, enabling of the RTE Im-
plementation Plug-In support is done as follows:
OR
• the trigger communication occurs cross Software Clusters.
c(SRS_Rte_00317)
7.3.11 Transformers
[SWS_Rte_80074] dThe RTE Generator shall inhibit the call of the transformers (
4.10.1) and the creation of the belonging transformer buffer (4.10.3) for a Data Com-
munication Graph, if
• the Software Cluster Local Communication support is enabled on it,
AND
• a transformation is configured according [SWS_Rte_08794] or
[SWS_Rte_08105].
c(SRS_Rte_00312)
Instead of the RTE now the RTE Implementation Plug-In has the duty to call the
belonging transformers in the correct order. Nevertheless carving out this functionality
into an RTE Implementation Plug-In supports sophisticated buffer reuse opti-
mizations relying on the precise scheduling scenario as well as the distinct transfer of
the transformer calls in specific call contexts.
Thereby the RTE Implementation Plug-In Services Rte_Rips_Read, Rte_-
Rips_DRead and Rte_Rips_Write are called in the context of the related Rte_-
Read,Rte_DRead and Rte_Write APIs.
[SWS_Rte_70089] dThe RTE Implementation Plug-In assigned to a Data
Communication Graph shall call transformers behaving functionally correctly ac-
cording to section (4.10.1). This includes the handling of the transformerError
and return value described in section 7.2.4.5.c(SRS_Rte_00312)
[SWS_Rte_80068] dThe RTE Generator shall inhibit the call of the transformers (
4.10.1) and the creation of the belonging transformer buffer (4.10.3) for a Client
Server Communication Graph and Trigger Communication Graph, if
• the Software Cluster Local Communication support is enabled on it
AND
• a transformation is configured according [SWS_Rte_08794] or
[SWS_Rte_08105].
c(SRS_Rte_00312, SRS_Rte_00317)
On the client / trigger source side the RTE calls the according Rte_Rips_Invoke
service in the context of the belonging RTE API (Rte_Call or Rte_Trigger). In
7.3.12 Measurement
The only impact occurs when the RTE Implementation Plug-In instantiates the
global copy as described in section 7.3.4.5. In this case the RTE Generator is not
able to provide the McDataInstance.symbol for the described McDataInstances
in the McSupportData.
[SWS_Rte_80073] dThe RTE Generator shall inhibit the export of McDataIn-
stance.symbol attributes for McDataInstances belonging to Data Communi-
cation Graphs associated to an RTE Implementation Plug-In where the
RteRipsGlobalCopyInstantiationPolicy is set to RTE_RIPS_INSTANTIA-
TION_BY_PLUGIN.c(SRS_Rte_00153, SRS_Rte_00303)
Nevertheless currently no support for explicit life-cycle handling of those different par-
titions is standardized. Therefore as a prerequisite all partitions affecting one RTE
Implementation Plug-In need to have the same life-cycle. For instance this ex-
cludes the usage of individual termination and restart of partitions.
[SWS_Rte_CONSTR_80010] dPartitions shall have the same life-cycle All partitions
affecting the same RTE Implementation Plug-In shall have the same life-cycle.c
(SRS_Rte_00307, SRS_Rte_00309)
[SWS_Rte_80077] dThe Rte shall support the implementation of Communication
Graphs with inter-partition-communication handled by an RTE Implementation
Plug-In.c(SRS_Rte_00307, SRS_Rte_00309)
Please note: [SWS_Rte_80077] includes inter-partition-communication between mul-
tiple cores as well as inter-partition-communication for the separation of different ASIL
levels.
Thereby it is the responsibility of the RTE Implementation Plug-In to check,
whether it can handle the according configuration.
[SWS_Rte_70093] dThe RTE Implementation Plug-In shall reject configura-
tions which cannot be implemented by the RTE Implementation Plug-In.c
(SRS_Rte_00307, SRS_Rte_00309)
The Component wrapper method is not impacted by the usage of RTE Implementa-
tion Plug-Ins
When using the Direct buffer access method the RTE Generator can not describe the
buffers when the RTE Implementation Plug-In implements the implicit commu-
nication in a Data Communication Graph.
[SWS_Rte_70094] dThe RTE Implementation Plug-In shall generate the Mc-
SupportData for the implicit communication buffers when Direct buffer ac-
cess method is selected as defined in section 4.9.3.c(SRS_Rte_00244)
In case the Extended buffer access method is selected (see section 4.9.4), the re-
sponsibility is shared between the RTE and the RTE Implementation Plug-In.
For rptPreparationLevels greater than rptLevel1 the RTE implementation and
the implementation of the RTE Implementation Plug-In would suffer from a lot
of cross dependencies due to the required RP enabler flags.
Therefore those configurations are currently not supported in a standardized manner.
[SWS_Rte_CONSTR_80011] dLimitation on RTE Implementation Plug-In sup-
port for rptPreparationLevels Data Communication Graphs with rpt-
PreparationLevels greater than rptLevel1 shall not be assigned to an RTE Im-
plementation Plug-In.c(SRS_Rte_00244)
Except for implicit communication the bypass support is implemented by the RTE Gen-
erator as it is defined in section 4.9.4:
API Class rptLevel1
Explicit S/R RTE
Implicit S/R RTE Implementation
Plug-In
C/S RTE
Mode RTE
Trigger No
Explicit IRV RTE
Implicit IRV RTE Implementation
Plug-In
Basically the usage of RTE Implementation Plug-Ins does not replace the RTE
internal mechanism of RTEEvents and BswEvents triggering. But the chapter 4.2.3 still
leaves some freedom when an RTE activates a sequence of ExecutableEntitys
exactly in a OsTask. But for the interaction with RTE Implementation Plug-Ins
some additional definitions are required in order to preserve certain sequences. In the
case RTEEvents and BswEvents for ExecutableEntitys, which do have the same
activation condition, are mapped to an OsTask, an unintended out of order execution
shall be prevented. For instance such identical activation condition can be
• a set of ExternalTriggerOccurredEvents connected to the same trigger
source or
The overall structure of the RTE configuration parameters is shown in figure 8.2. It has
to be distinguished between the configuration parameters for the RTE generator and
the configuration parameters for the generated RTE itself.
Most of the information needed to generate an RTE is already available in the ECU
Extract of the System Description [8]. From this extract also the links to the AUTOSAR
software-component descriptions and ECU Resource description are available. So
only additional information not covered by the three aforementioned formats needs to
be provided by the ECU Configuration description.
To additionally allow the most flexibility and freedom in the implementations of the RTE,
only configuration parameters which are common to all implementations are standard-
ized in the ECU Configuration Parameter definition. Any additional configuration pa-
rameters which might be needed to configure a full functional RTE have to be specified
using the vendor specific parameter definition mechanism described in the ECU Con-
figuration specification document [5].
lowerMultiplicity = 0
RteSwComponentType: upperMultiplicity = 1 +type 0..1
+parameter
EcucParamConfContainerDef defaultValue = false {redefines
«isOfType»
lowerMultiplicity = 0 atpType}
+container upperMultiplicity = *
AtpPrototype
+reference RteComponentTypeRef:
SwComponentPrototype
EcucForeignReferenceDef
destinationType = SW-COMPONENT-TYPE
RteSwComponentInstance: RteSoftwareComponentInstanceRef:
EcucParamConfContainerDef EcucForeignReferenceDef
+reference
lowerMultiplicity = 0 destinationType = SW-COMPONENT-PROTOTYPE
upperMultiplicity = * upperMultiplicity = 1
lowerMultiplicity = 0
RteEventToTaskMapping:
+subContainer EcucParamConfContainerDef
upperMultiplicity = *
lowerMultiplicity = 0
RteEventToIsrMapping:
+subContainer EcucParamConfContainerDef
+container
upperMultiplicity = *
lowerMultiplicity = 0
RteExclusiveAreaImplementation:
+subContainer EcucParamConfContainerDef
upperMultiplicity = *
lowerMultiplicity = 0
RteNvRamAllocation:
+subContainer EcucParamConfContainerDef
upperMultiplicity = *
lowerMultiplicity = 0
+subContainer
RteExternalTriggerConfig:
EcucParamConfContainerDef
lowerMultiplicity = 0
upperMultiplicity = *
RteOsInteraction:
+container EcucParamConfContainerDef
lowerMultiplicity = 1
upperMultiplicity = * RteInitializationRunnableBatch:
+container EcucParamConfContainerDef
upperMultiplicity = *
lowerMultiplicity = 0
RtePostBuildVariantConfiguration:
+container EcucParamConfContainerDef
lowerMultiplicity = 0
upperMultiplicity = 1
RteDistributedSharedModeQueue:
+container EcucParamConfContainerDef
upperMultiplicity = *
lowerMultiplicity = 0
In order to identify the RTE Configuration version a dedicated RTE code has been
generated from the RTE Configuration information may contain one or more DOC-
REVISION elements in the ECUC-MODULE-CONFIGURATION-VALUES element of the
RTE Configuration (see example 8.1).
[SWS_Rte_05184] dThe REVISION-LABEL shall be parsed according to the rules
defined in the Generic Structure Template [10] for RevisionLabelString allowing
to parse the three version informations for AUTOSAR:
• major version: first part of the REVISION-LABEL
• minor version: second part of the REVISION-LABEL
• patch version: third part of the REVISION-LABEL
• optional fourth part shall be used for documentation purposes in the Basic Soft-
ware Module Description (see section 3.4.4)
If the parsing fails all three version numbers shall be set to zero.c(SRS_Rte_00233)
[SWS_Rte_05185] dIf there are several DOC-REVISION elements in the input ECUC-
MODULE-CONFIGURATION-VALUES the newest according to the DATE shall be taken
into account.
If the search for the newest DOC-REVISION fails three version numbers shall be set to
zero.c(SRS_Rte_00233)
Example 8.1
<AUTOSAR xmlns="http://autosar.org/4.0.0" xmlns:xsi="http://www.w3.org
/2001/XMLSchema-instance" xsi:schemaLocation="http://autosar.org
/4.0.0 AUTOSAR.xsd">
<AR-PACKAGES>
<AR-PACKAGE>
<SHORT-NAME>Rte_Example</SHORT-NAME>
<ELEMENTS>
<ECUC-MODULE-CONFIGURATION-VALUES>
<SHORT-NAME>Rte_Configuration</SHORT-NAME>
<ADMIN-DATA>
<DOC-REVISIONS>
<DOC-REVISION>
<REVISION-LABEL>2.1.34</REVISION-LABEL>
<DATE>2009-05-09T00:00:00.0Z</DATE>
</DOC-REVISION>
<DOC-REVISION>
<REVISION-LABEL>2.1.35</REVISION-LABEL>
<DATE>2009-06-21T09:30:00.0Z</DATE>
</DOC-REVISION>
</DOC-REVISIONS>
</ADMIN-DATA>
<DEFINITION-REF DEST="ECUC-MODULE-DEF">/AUTOSAR/Rte</
DEFINITION-REF>
<CONTAINERS>
min = 0
max = 65535 +parameter RteValueRangeCheckEnabled:
EcucBooleanParamDef
defaultValue = false
RteVfbTraceEnabled: EcucBooleanParamDef
+parameter
defaultValue = false
+literal COMPATIBILITY_MODE:
+parameter RteGenerationMode: EcucEnumerationLiteralDef
EcucEnumerationParamDef
+literal
defaultValue = COMPATIBILITY_MODE VENDOR_MODE: EcucEnumerationLiteralDef
+literal
+parameter RteOptimizationMode: RUNTIME: EcucEnumerationLiteralDef
EcucEnumerationParamDef
+literal
defaultValue = RUNTIME
MEMORY: EcucEnumerationLiteralDef
RteToolChainSignificantCharacters:
EcucIntegerParamDef
+parameter defaultValue = 31
lowerMultiplicity = 0
upperMultiplicity = 1 RteVfbTraceClientPosition:
min = 0 EcucIntegerParamDef
max = 65535 min = 0
max = 65535
RteVfbTraceClient: +parameter lowerMultiplicity = 0
+subContainer EcucParamConfContainerDef upperMultiplicity = 1
lowerMultiplicity = 0 +parameter
upperMultiplicity = * RteVfbTraceFunction: EcucFunctionNameDef
upperMultiplicity = *
+reference lowerMultiplicity = 0
RteVfbTraceHooksRef: +destinationUri
RteVfbTraceHooks:
EcucUriReferenceDef EcucDestinationUriDef
lowerMultiplicity = 0
upperMultiplicity = 1
RteInExclusiveAreaCheckEnabled:
EcucBooleanParamDef
+parameter
defaultValue = true
+literal
RteCalibrationSupport: NONE: EcucEnumerationLiteralDef
EcucEnumerationParamDef +literal
+parameter SINGLE_POINTERED: EcucEnumerationLiteralDef
defaultValue = NONE
+literal
DOUBLE_POINTERED: EcucEnumerationLiteralDef
+literal
INITIALIZED_RAM: EcucEnumerationLiteralDef
+literal
RteBypassSupport: NONE: EcucEnumerationLiteralDef
EcucEnumerationParamDef
+literal
EXTENDED_BUFFER_ACCESS:
EcucEnumerationLiteralDef
RteVfbTraceAnonymousClientEnabled:
+parameter
EcucBooleanParamDef
defaultValue = false
lowerMultiplicity = 1
upperMultiplicity = 1
Description This container holds the parameters for the configuration of the RTE
Generation.
Configuration Parameters
Multiplicity 1
Type EcucBooleanParamDef
Default Value false
Post-Build Variant false
Value
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency scope: local
Included Containers
Container Name Multiplicity Scope / Dependency
RteVfbTraceClient 0..* The RTE shall add the VFB Trace client with the
ShortName of this container as the client’s prefix.
Description The RTE shall add the VFB Trace client with the ShortName of this
container as the client’s prefix.
Post-Build Variant false
Multiplicity
Multiplicity Pre-compile time X All Variants
Configuration Class
Link time –
Post-build time –
Configuration Parameters
No Included Containers
+destinationUriPolicy
+subContainer
RteVfbTraceHook:
EcucParamConfContainerDef
lowerMultiplicity = 0
upperMultiplicity = *
+parameter
+literal
RteVfbTraceHookType: RTE_API_START: EcucEnumerationLiteralDef
EcucEnumerationParamDef +literal
RTE_API_RETURN: EcucEnumerationLiteralDef
+literal
SCHM_API_START: EcucEnumerationLiteralDef
+literal
SCHM_API_RETURN: EcucEnumerationLiteralDef
+literal
RUNNABLE_ENTITY_INVOCATION: EcucEnumerationLiteralDef
+literal
RUNNABLE_ENTITY_TERMINATION: EcucEnumerationLiteralDef
+literal
BSW_SCHEDULABLE_ENTITY_INVOCATION: EcucEnumerationLiteralDef
+literal
BSW_SCHEDULABLE_ENTITY_TERMINATION: EcucEnumerationLiteralDef
+literal
RPT_TRANSMISSION: EcucEnumerationLiteralDef
+literal
RPT_RECEPTION: EcucEnumerationLiteralDef
+literal
OS_TASK_ACTIVATION: EcucEnumerationLiteralDef
+literal
OS_TASK_DISPATCH: EcucEnumerationLiteralDef
+literal
OS_TASK_TERMINATION: EcucEnumerationLiteralDef
+literal
OS_SET_EVENT: EcucEnumerationLiteralDef
+literal
OS_WAIT_EVENT: EcucEnumerationLiteralDef
+literal
OS_RECEIVED_EVENT: EcucEnumerationLiteralDef
+literal
COM_SIGNAL_TRANSMISSION: EcucEnumerationLiteralDef
+literal
COM_SIGNAL_RECEPTION: EcucEnumerationLiteralDef
+literal
COM_SIGNAL_INVALIDATION: EcucEnumerationLiteralDef
+literal
COM_SIGNAL_GROUP_INVALIDATION: EcucEnumerationLiteralDef
+literal
COM_SIGNAL_CALLBACK: EcucEnumerationLiteralDef
Included Containers
Container Name Multiplicity Scope / Dependency
RteVfbTraceHooks 1 This container defines the parent container to which all
trace hook containers are added.
Included Containers
Container Name Multiplicity Scope / Dependency
RteVfbTraceHook 0..* This container represents a specific VFB Trace hook. Its
ShortName equals the hook function’s C symbol.
ARElement
RteVfbTraceHookApi: AtpBlueprint
+subContainer EcucParamConfContainerDef AtpBlueprintable
AtpType
lowerMultiplicity = 0 SwComponentType
upperMultiplicity = 1
RteVfbTraceHookComponentTypeSymbol: RteVfbTraceHookSwComponentTypeRef:
+subContainer EcucParamConfContainerDef +reference EcucForeignReferenceDef
lowerMultiplicity = 0 lowerMultiplicity = 1
upperMultiplicity = 1 upperMultiplicity = 1
destinationType = SW-COMPONENT-TYPE
RteVfbTraceHookVendorId:
+subContainer EcucParamConfContainerDef
lowerMultiplicity = 0
upperMultiplicity = 1
Implementation
BswImplementation
RteVfbTraceHookVendorApiInfix:
+subContainer EcucParamConfContainerDef + arReleaseVersion: RevisionLabelString
+ vendorApiInfix: Identifier [0..1]
lowerMultiplicity = 0
upperMultiplicity = 1
RteVfbTraceHookBswImplementationRef:
EcucForeignReferenceDef
RteVfbTraceHookBswSchedulerNamePrefix: +reference
+subContainer lowerMultiplicity = 1
EcucParamConfContainerDef
upperMultiplicity = 1
lowerMultiplicity = 0 destinationType = BSW-IMPLEMENTATION
upperMultiplicity = 1
RteVfbTraceHookAccessPointElementRef: MultilanguageReferrable
EcucForeignReferenceDef Identifiable
RteVfbTraceHookAccessPoint: +reference
+subContainer EcucParamConfContainerDef destinationType = IDENTIFIABLE
lowerMultiplicity = 1
lowerMultiplicity = 0 upperMultiplicity = *
upperMultiplicity = 1
RteVfbTraceHookNameElementRef:
RteVfbTraceHookName: EcucForeignReferenceDef
+subContainer +reference
EcucParamConfContainerDef
destinationType = IDENTIFIABLE
lowerMultiplicity = 0 lowerMultiplicity = 1
upperMultiplicity = 1 upperMultiplicity = *
RteVfbTraceHookVariable:
+subContainer RteVfbTraceHookVariableElementRef:
EcucParamConfContainerDef +reference
EcucForeignReferenceDef
lowerMultiplicity = 0
destinationType = IDENTIFIABLE
upperMultiplicity = 1
lowerMultiplicity = 1
upperMultiplicity = *
RteVfbTraceHookExecutableEntityName:
+subContainer EcucParamConfContainerDef RteVfbTraceHookExecutableEntityRef:
+reference
EcucForeignReferenceDef
lowerMultiplicity = 0
upperMultiplicity = 1 lowerMultiplicity = 1
upperMultiplicity = 1
destinationType = EXECUTABLE-ENTITY
ExecutableEntity
RteVfbTraceHookComHookEvent:
+subContainer EcucParamConfContainerDef
lowerMultiplicity = 0
upperMultiplicity = 1
Included Containers
Container Name Multiplicity Scope / Dependency
RteVfbTraceHookAccess 0..1 In case of an RTE API Trace hook the ShortName of this
Point container is the Access Point name part of the VFB
Trace hook (<ap> in SWS_Rte).
RteVfbTraceHookApi 0..1 In case of a BSW Scheduler API Trace hook or RTE API
Trace hook the ShortName of this container is the API
name part of the VFB Trace hook (<api> in SWS_Rte).
RteVfbTraceHookBsw 0..1 In case of a BSW Scheduler API Trace hook or BSW
SchedulerNamePrefix Schedulable Entities Trace hook the ShortName of this
container is the BSW Scheduler Name Prefix name part
of the VFB Trace hook (<bsnp> in SWS_Rte).
RteVfbTraceHookCom 0..1 In case of a COM Trace hook the ShortName of this
HookEvent container is the COM hook event part of the VFB Trace
hook (<Event> in SWS_Rte).
RteVfbTraceHook 0..1 In case of an RTE API Trace hook, Runnable Entity
ComponentTypeSymbol Trace hook or RPT Trace hook the ShortName of this
container is the component type symbol name part of
the VFB Trace hook (<cts> in SWS_Rte).
RteVfbTraceHook 0..1 In case of a Runnable Entity Trace hook or BSW
ExecutableEntityName Schedulable Entities Trace hook the ShortName of this
container is the Executable Entity name part of the VFB
Trace hook (<reName> or <entityName> in SWS_Rte).
RteVfbTraceHookName 0..1 In case of a BSW Scheduler API Trace hook the
ShortName of this container is the "Name provided by
the API" name part of the VFB Trace hook (<name> in
SWS_Rte).
RteVfbTraceHookOs 0..1 In case of an OS Trace hook the ShortName of this
Application container is the application name part of the VFB Trace
hook (<application> in SWS_Rte).
No Included Containers
No Included Containers
No Included Containers
No Included Containers
No Included Containers
No Included Containers
No Included Containers
No Included Containers
No Included Containers
No Included Containers
No Included Containers
Description In case of an RPT Trace hook the ShortName of this container is the
"identifying name of the RP global buffer" name part of the VFB Trace
hook ( in SWS_Rte).
Post-Build Variant false
Multiplicity
Multiplicity Pre-compile time X All Variants
Configuration Class
Link time –
Post-build time –
Configuration Parameters
No Included Containers
No Included Containers
No Included Containers
EcuC: EcucModuleDef
upperMultiplicity = 1
lowerMultiplicity = 0
GenericStructureTemplate
+container
+includedVariant 0..*
EcucVariationResolver:
EcucParamConfContainerDef PredefinedVariantRef: EcucForeignReferenceDef ARElement
+reference
PredefinedVariant
lowerMultiplicity = 0 destinationType = PREDEFINED-VARIANT
upperMultiplicity = 1 lowerMultiplicity = 1
upperMultiplicity = *
+swSystemconstantValueSet 0..*
ARElement
SwSystemconstantValueSet
+swSystemconstantValue 0..*
SwSystemconstValue
«atpVariation»
+ value: Numerical
+swSystemconst 1
ARElement
AtpDefinition
SwSystemconst
No Included Containers
RtePostBuildVariantConfiguration:
EcucParamConfContainerDef
lowerMultiplicity = 0 GenericStructureTemplate
upperMultiplicity = 1 +includedVariant
ARElement 0..*
PredefinedVariant
+reference
RtePostBuildUsedPredefinedVariant:
EcucForeignReferenceDef
destinationType = PREDEFINED-VARIANT
+postBuildVariantCriterionValueSet 0..*
lowerMultiplicity = 1
upperMultiplicity = * ARElement
PostBuildVariantCriterionValueSet
+postBuildVariantCriterionValue 0..*
PostBuildVariantCriterionValue
«atpVariation»
+ value: Integer
+variantCriterion 1
ARElement
AtpDefinition
PostBuildVariantCriterion
No Included Containers
+ecuExtract 0..1
ARElement
AtpStructureElement
System
«atpVariation,atpSplitable»
ARElement
+rootSoftwareComposition 0..1
AtpBlueprint
AtpPrototype
AtpBlueprintable
Identifiable AtpType
RootSwCompositionPrototype SwComponentType
+type 0..1
«isOfType»
{redefines
1
atpType}
{redefines
+softwareComposition «isOfType»
atpType} «atpVariation,atpSplitable»
CompositionSwComponentType AtpPrototype
+component SwComponentPrototype
«atpVariation,atpSplitable» 0..*
«atpVariation,atpSplitable»
+connector * +port 0..*
AtpStructureElement
AtpBlueprintable
SwConnector AtpPrototype
PortPrototype
AbstractProvidedPortPrototype
+provider
«instanceRef» 0..1
Included Containers
Container Name Multiplicity Scope / Dependency
RteEventToIsrMapping 0..* Maps a RunnableEntity onto one OsIsr based on the
activating ExternalTriggerOccurredEvent.
RteEventToTaskMapping 0..* Maps an instance of a RunnableEntity onto one OsTask
based on the activating RTEEvent. In the case of a
RunnableEntity executed via a direct or trusted function
call this RteEventToTaskMapping is still specified but no
RteMappedToTask element is included. The
RtePositionInTask parameter is necessary to provide an
ordering of events invoked by the same RTE API.
RteExclusiveArea 0..* Specifies the implementation to be used for the data
Implementation consistency of this ExclusiveArea.
RteExternalTriggerConfig 0..* Defines the configuration of External Trigger Event
Communication for Software Components
RteInternalTriggerConfig 0..* Defines the configuration of Inter Runnable Triggering
for Software Components
RteModeMachine 0..* Defines the configuration of RTE assigned
InstanceConfig (SWS_Rte_07533) mode machine instances.
RteNvRamAllocation 0..* Specifies the relationship between the
AtomicSwComponentType’s NVRAMMapping / NVRAM
needs and the NvM module configuration.
One of the major fragments of the RTE configuration is the mapping of AUTOSAR
Software-Components’ RunnableEntitys to OS Tasks or ISRs. The parameters de-
fined to achieve this are shown in figure 8.10 and figure 8.11.
OsTask:
+reference RteVirtuallyMappedToTaskRef: EcucParamConfContainerDef
EcucReferenceDef +destination
upperMultiplicity = *
RtePositionInTask: upperMultiplicity = 1 lowerMultiplicity = 0
EcucIntegerParamDef lowerMultiplicity = 0
+parameter
upperMultiplicity = 1
lowerMultiplicity = 0
RteActivationOffset:
min = 0
EcucFloatParamDef
max = 65535
min = 0
+parameter max = INF
lowerMultiplicity = 0
upperMultiplicity = 1
RteOsSchedulePoint: +literal
NONE:
EcucEnumerationParamDef EcucEnumerationLiteralDef
+parameter lowerMultiplicity = 0
upperMultiplicity = 1 +literal
CONDITIONAL:
EcucEnumerationLiteralDef
+literal
OsEvent:
UNCONDITIONAL: EcucParamConfContainerDef
EcucEnumerationLiteralDef
upperMultiplicity = *
RteUsedOsEventRef:
+destination lowerMultiplicity = 0
+reference EcucReferenceDef
upperMultiplicity = 1
lowerMultiplicity = 0 OsAlarm:
EcucParamConfContainerDef
RteUsedOsAlarmRef: +destination
+reference EcucReferenceDef upperMultiplicity = *
lowerMultiplicity = 0
upperMultiplicity = 1
lowerMultiplicity = 0
RteUsedOsSchTblExpiryPointRef: OsScheduleTableExpiryPoint:
+reference EcucReferenceDef +destination
EcucParamConfContainerDef
upperMultiplicity = 1 upperMultiplicity = *
lowerMultiplicity = 0 lowerMultiplicity = 1
RteImmediateRestart:
EcucBooleanParamDef
+parameter
defaultValue = false
RteEventPredecessorSyncPointRef:
+reference EcucReferenceDef
lowerMultiplicity = 0
+destination
upperMultiplicity = *
RteEventSuccessorSyncPointRef:
+reference EcucReferenceDef
upperMultiplicity = 1
RteServerQueueLength:
lowerMultiplicity = 0
EcucIntegerParamDef
+parameter upperMultiplicity = 1
lowerMultiplicity = 0
min = 0
max = 65535
Rte: EcucModuleDef
upperMultiplicity = 1
lowerMultiplicity = 0
+container
RteSwComponentInstance:
EcucParamConfContainerDef Software Component template
lowerMultiplicity = 0 AtpStructureElement
upperMultiplicity = * ExecutableEntity
RunnableEntity
+subContainer RtePositionInIsr:
+ canBeInvokedConcurrently: Boolean [0..1]
EcucIntegerParamDef
+ symbol: CIdentifier [0..1]
RteEventToIsrMapping:
+parameter min = 0
EcucParamConfContainerDef +startOnEvent 0..1
max = 65535
lowerMultiplicity = 1 +waitPoint *
upperMultiplicity = *
lowerMultiplicity = 0 upperMultiplicity = 1 AbstractEvent +trigger Identifiable
AtpStructureElement WaitPoint
0..1
RTEEvent
+ timeout: TimeValue [0..1]
RteIsrEventRef:
+reference EcucForeignReferenceDef
destinationType = RTE-EVENT
lowerMultiplicity = 1
upperMultiplicity = 1
+destination OsIsr:
+reference RteMappedToIsrRef:
EcucReferenceDef EcucParamConfContainerDef
lowerMultiplicity = 1 upperMultiplicity = *
upperMultiplicity = 1 lowerMultiplicity = 0
+reference RteRipsFillRoutineRef:
EcucUriReferenceDef
RteRipsFlushRoutineRef: +destinationUri
+reference EcucUriReferenceDef
requiresIndex = true
lowerMultiplicity = 0
upperMultiplicity = *
The mapping is based on the RTEEvent because it is the source of the activation.
For each RunnableEntity which belongs to an AUTOSAR Software-Component in-
stance mapped on the ECU there needs to be a mapping container specifying how this
RunnableEntity activation shall be handled.
[SWS_Rte_07843] dThe RTE Generator shall reject configurations where the same
RTEEvent instance which can start a RunnableEntity is mapped to tasks multiple
times.c()
[SWS_Rte_03630] dThe RTE Generator shall reject configurations where the same
RTEEvent instance which can start a RunnableEntity is mapped to RteInitial-
izationRunnableBatches multiple times.c(SRS_Rte_00240)
[SWS_Rte_03631] dThe RTE Generator shall reject configurations where the same
RTEEvent instance which can start a RunnableEntity is mapped to both a
task and an RteInitializationRunnableBatch with the exception of SwcMod-
eSwitchEvents with activation = onEntry and referring to the initialMode.c
(SRS_Rte_00240)
Example 8.2
[SWS_Rte_05115] dThe RTE Generator shall create no call to the Os API Schedule af-
ter the execution of the RunnableEntity if the RteOsSchedulePoint configuration
parameter is not present or is set to NONE.c()
[SWS_Rte_01373] dThe RTE Generator shall support the independent setting
of RteOsSchedulePoint for RteEventToTaskMappings that map the same
RunnableEntity.c(SRS_Rte_00018)
8.5.1.5 Os Interaction
8.5.1.7 Constraints
There are some constraints which do apply when actually mapping the RunnableEn-
tity to an OsTask:
[SWS_Rte_05082] dThe following restrictions apply to RTEEvents which are used
to activate RunnableEntity. OsEvents that are used to wakeUpFromWaitPoint
shall not be included in the mapping.c()
When a wakeUpFromWaitPoint is occurring the RunnableEntity resumes its ex-
ecution in the context of the originally activated OsTask.
One major constraint is posed by the canBeInvokedConcurrently attribute of each
RunnableEntity because data consistency issues have to be considered.
[SWS_Rte_05083] dThe RTE Generator shall reject configurations where a
RunnableEntity has its canBeInvokedConcurrently attribute set to false, and
this RunnableEntity is mapped to different tasks which can preempt each other.c()
[SWS_Rte_07229] dTo evaluate [SWS_Rte_05083] in case of triggered
runnables which are activated by a direct or trusted function call ([SWS_Rte_07214],
[SWS_Rte_07224] and [SWS_Rte_07554]) the OsTask (context of the caller) is defined
by the RunnableEntity’s containing the activating InternalTriggeringPoint
or ExternalTriggeringPoint.c(SRS_Rte_00162, SRS_Rte_00163, SRS_Rte_-
00230)
[SWS_Rte_07155] dTo evaluate [SWS_Rte_05083] in case of on-entry Ex-
ecutableEntitys, on-transition ExecutableEntitys, on-exit Ex-
ecutableEntitys, and ModeSwitchAck ExecutableEntitys which are
activated by a direct or trusted function call the OsTask (context of the caller) is
defined by the RunnableEntity’s containing the activating ModeSwitchPoint.c
(SRS_Rte_00143, SRS_Rte_00144)
[SWS_Rte_CONSTR_03873] dAll OperationInvokedEvents/ BswOperationIn-
vokedEvents which are activating the same server ExecutableEntity shall be
mapped by at most one RteEventToTaskMapping/RteBswEventToTaskMapping
which references an OsTask.c(SRS_Rte_00019, SRS_Rte_00033)
Note: This shall ensure that direct or trusted function calls and server serialization can
be mixed for the same server ExecutableEntity. But the server serialization can
only be configured at exactly one RtePositionInTask/RteBswPositionInTask.
[SWS_Rte_CONSTR_03874] dA RteEventToTaskMapping/ RteBswEventTo-
TaskMapping shall only own more than one RteEventRef/RteBswEventRef ref-
erence if all owned RteEventRefs/RteBswEventRefs refer to OperationIn-
vokedEvents/BswOperationInvokedEvents which in turn are triggering the same
server ExecutableEntity.c(SRS_Rte_00019, SRS_Rte_00033)
SWS Item [ECUC_Rte_09020]
Container Name RteEventToTaskMapping
Parent Container RteSwComponentInstance
This parameter shall not be set to true when the mapped RTEEvent
refers to a RunnableEntity which minimumStartInterval attribute is > 0.
Multiplicity 1
Type EcucBooleanParamDef
Default Value false
Post-Build Variant false
Value
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency scope: local
Default Value
Post-Build Variant false
Multiplicity
Post-Build Variant false
Value
Multiplicity Pre-compile time X All Variants
Configuration Class
Link time –
Post-build time –
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency scope: local
Attributes:
requiresIndex=true
Multiplicity 0..*
Type Reference to destinationUri [ RteRipsUriDefSet/RteRipsPluginFillFlush
Routine ]
Post-Build Variant false
Multiplicity
Post-Build Variant false
Value
Multiplicity Pre-compile time X All Variants
Configuration Class
Link time –
Post-build time –
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency scope: local
Attributes:
requiresIndex=true
Multiplicity 0..*
Type Reference to destinationUri [ RteRipsUriDefSet/RteRipsPluginFillFlush
Routine ]
Post-Build Variant false
Multiplicity
Post-Build Variant false
Value
No Included Containers
This section contains configuration items which are closely related to the interaction of
the Rte with the Os.
RteOsInteraction: RteUsedOsActivation:
EcucParamConfContainerDef +subContainer EcucParamConfContainerDef
lowerMultiplicity = 1 upperMultiplicity = *
upperMultiplicity = * lowerMultiplicity = 0
RteModeToScheduleTableMapping:
+subContainer EcucParamConfContainerDef
lowerMultiplicity = 0
upperMultiplicity = *
RteSyncPoint:
+subContainer EcucParamConfContainerDef
lowerMultiplicity = 0
upperMultiplicity = *
RteOsTaskChain:
+subContainer EcucParamConfContainerDef
lowerMultiplicity = 0
upperMultiplicity = *
Included Containers
Container Name Multiplicity Scope / Dependency
RteModeToSchedule 0..* Provides configuration input in which Modes of a
TableMapping ModeDeclarionGroupPrototype of a Mode Manager a
OsScheudleTable shall be active. The Mode Manager is
either specified as a SwComponentPrototype
(RteModeSchtblMapSwc) or as a BSW-Module
(RteModeSchtblMapBsw).
RteOsTaskChain 0..* This container holds the configuration of one task chain
configuration.
RteSyncPoint 0..* The RteSyncPoint is necessary to provide an cross core
synchronization in case of RteEvents triggered by the
same event source but mapped to tasks belonging to
different partitions on different cores.
This is a collection of possible ways how the Rte might utilize Os to achieve various ac-
tivation scenarios. The used Os objects are referenced in these configuration entities.
RteOsInteraction:
EcucParamConfContainerDef
lowerMultiplicity = 1
upperMultiplicity = *
+subContainer
RteActivationOsSchTblRef: OsScheduleTable:
+reference EcucReferenceDef +destination EcucParamConfContainerDef
upperMultiplicity = 1 upperMultiplicity = *
lowerMultiplicity = 0 lowerMultiplicity = 0
RteActivationOsAlarmRef: OsAlarm:
+reference EcucReferenceDef +destination EcucParamConfContainerDef
upperMultiplicity = 1 upperMultiplicity = *
lowerMultiplicity = 0 lowerMultiplicity = 0
RteExpectedTickDuration:
EcucFloatParamDef
+parameter
min = 0
max = INF
lowerMultiplicity = 1
upperMultiplicity = 1
RteExpectedActivationOffset:
EcucFloatParamDef
+parameter
min = 0
max = INF
lowerMultiplicity = 1
upperMultiplicity = 1
Default Value
Post-Build Variant false
Value
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency scope: local
No Included Containers
Optional configuration of the Rte to support the mapping of modes and Os’ schedule
tables.
RteOsInteraction:
EcucParamConfContainerDef
lowerMultiplicity = 1
upperMultiplicity = * RteModeScheduleTableRef: OsScheduleTable:
EcucReferenceDef +destination EcucParamConfContainerDef
+subContainer upperMultiplicity = 1 upperMultiplicity = *
+reference
lowerMultiplicity = 1 lowerMultiplicity = 0
RteModeToScheduleTableMapping:
EcucParamConfContainerDef
lowerMultiplicity = 0
RteModeSchtblMapBsw: +reference RteModeSchtblMapBswInstanceRef:
upperMultiplicity = *
EcucParamConfContainerDef EcucReferenceDef
lowerMultiplicity = 0
upperMultiplicity = 1 +destination
RteBswModuleInstance:
+subContainer EcucParamConfContainerDef
lowerMultiplicity = 0
upperMultiplicity = *
+reference RteModeSchtblMapBswProvidedModeGroupRef:
EcucForeignReferenceDef
lowerMultiplicity = 1
upperMultiplicity = 1
destinationType = MODE-DECLARATION-GROUP-PROTOTYPE
lowerMultiplicity = 0
upperMultiplicity = 1 +destination
RteSwComponentInstance:
+subContainer EcucParamConfContainerDef
lowerMultiplicity = 0
upperMultiplicity = *
destinationType = ABSTRACT-PROVIDED-PORT-PROTOTYPE
RteModeSchtblMapModeDeclarationRef:
EcucForeignReferenceDef
+reference
lowerMultiplicity = 1
upperMultiplicity = *
destinationType = MODE-DECLARATION
«isOfType» 0..1
{redefines
+type atpType}
AtpStructureElement ARElement
Identifiable +modeDeclaration AtpBlueprint
ModeDeclaration 0..* «atpVariation» AtpBlueprintable
AtpType
+ value: PositiveInteger [0..1] +initialMode
ModeDeclarationGroup
0..1
Figure 8.14: Configuration how modes are interacting with schedule tables
Included Containers
Container Name Multiplicity Scope / Dependency
RteModeSchtblMapBsw 0..1 Specifies an instance of a
ModeDeclarationGroupPrototype of a Bsw-Module.
RteModeSchtblMapSwc 0..1 Specifies an instance of a
ModeDeclarationGroupPrototype of a
SwComponentPrototype.
No Included Containers
No Included Containers
The RTE Generator can be configured to implement a different data consistency mech-
anism for each ExclusiveArea defined for an AUTOSAR software-component.
In figure 8.15 the configuration of the actually selected data consistency mechanism is
shown.
[SWS_Rte_CONSTR_03510] Exclude usage of OS_SPINLOCK in RteExclu-
siveAreaImplementation dThe usage of the enumeration literal OS_SPINLOCK
for the parameter RteExclusiveAreaImplMechanism shall be excluded if the pa-
rameter RteExclusiveAreaImplMechanism is used in the context of the container
RteExclusiveAreaImplementation.c()
RteSwComponentInstance: RteSoftwareComponentInstanceRef:
EcucParamConfContainerDef +reference EcucForeignReferenceDef
AtpPrototype ARElement
+type AtpBlueprint
Composition::
AtpBlueprintable
SwComponentPrototype
0..1 «isOfType» AtpType
{redefines atpType} Components::SwComponentType
Components::
AtomicSwComponentType
AtpStructureElement
Identifiable +exclusiveArea InternalBehavior::
InternalBehavior:: InternalBehavior «atpVariation,atpSplitable»
ExclusiveArea 0..* «atpVariation,atpSplitable»
+internalBehavior 0..1
SwcInternalBehavior::SwcInternalBehavior
+subContainer
RteExclusiveAreaImplementation: RteExclusiveAreaRef:
+reference
EcucParamConfContainerDef EcucForeignReferenceDef
+literal ALL_INTERRUPT_BLOCKING:
EcucEnumerationLiteralDef
+literal
OS_INTERRUPT_BLOCKING:
EcucEnumerationLiteralDef
+parameter
+literal
OS_SPINLOCK: EcucEnumerationLiteralDef
Os
RteExclusiveAreaOsResourceRef: OsResource:
+reference EcucReferenceDef +destination EcucParamConfContainerDef
lowerMultiplicity = 0 upperMultiplicity = *
upperMultiplicity = 1 lowerMultiplicity = 0
(from OS)
RteExclusiveAreaResponsibleRipsPluginRef:
+reference EcucUriReferenceDef +destinationUri RteRipsPlugin:
EcucDestinationUriDef
lowerMultiplicity = 0
upperMultiplicity = 1
(from RteRips)
No Included Containers
The configuration of the NVRam access does involve several templates, because it
closes the gap between the AUTOSAR software-components, the NVRAM Manager
Services and the BSW Modules.
In figure 8.16 the related information from the AUTOSAR Software Component Tem-
plate is shown.
«atpVariation» «atpVariation,atpSplitable»
+assignedData 0..* +perInstanceMemory *
AtpStructureElement
NvBlockNeeds RoleBasedDataAssignment
Identifiable
+ role: Identifier [0..1] PerInstanceMemory
+usedPim
+ initValue: String [0..1]
0..1
+ type: CIdentifier [0..1]
+ typeDefinition: String [0..1]
«atpVariation,atpSplitable»
«atpVariation,atpSplitable»
{XOR
role of owning
RoleBasedDataAssignement shall be
ramBlock}
{role of owning
RoleBasedDataAssignement +usedDataElement 0..1 +arTypedPerInstanceMemory *
shall be defaultValue}
AutosarDataPrototype
AutosarVariableRef +localVariable
VariableDataPrototype
0..1
«instanceRef» 0..1
In figure 8.17 the ECU Configuration part of the NVRam allocation is shown. It re-
lates the software-components’ SwcServiceDependency and NvBlockNeeds infor-
mation with the NVRam Managers NvMBlockDescriptor and the linker symbols of
the RAM and ROM sections to be used.
upperMultiplicity = * upperMultiplicity = 1
lowerMultiplicity = 0 NvMRomBlockDataAddress: lowerMultiplicity = 0
EcucStringParamDef
lowerMultiplicity = 0
upperMultiplicity = 1
+parameter 0..1
+parameter
+parameter 0..1
RteNvmRamBlockLocationSymbol: NvMNvramBlockIdentifier:
NvMRamBlockDataAddress: EcucIntegerParamDef
+parameter EcucLinkerSymbolDef
EcucStringParamDef
upperMultiplicity = 1 symbolicNameValue = true
lowerMultiplicity = 0 min = 2
lowerMultiplicity = 0
upperMultiplicity = 1 max = 65535
+reference +reference
Software Component template
AtpStructureElement
Identifiable
NvBlockDescriptor
Identifiable AtpStructureElement
+serviceNeeds AtpStructureElement
ServiceNeeds Identifiable Identifiable
0..1 ServiceDependency PerInstanceMemory
SwcServiceDependency
+ initValue: String [0..1]
+ type: CIdentifier [0..1]
+nvBlockNeeds 0..1 + typeDefinition: String [0..1]
«atpVariation»
NvBlockNeeds +assignedData 0..* 0..1 +usedPim 0..1
{XOR
+writingStrategyRole role of owning
RoleBasedDataAssignment RoleBasedDataAssignement
+ role: Identifier [0..1] shall be ramBlock}
+ramBlock 0..1
+usedDataElement AutosarDataPrototype
+localVariable
AutosarVariableRef VariableDataPrototype
0..1 0..1
+romBlock 0..1
+usedParameterElement
AutosarParameterRef AutosarDataPrototype
0..1
ParameterDataPrototype
{role of owning
RoleBasedDataAssignement shall be
defaultValue}
XOR
Multiplicity 0..1
Type Foreign reference to SWC-SERVICE-DEPENDENCY
Post-Build Variant false
Multiplicity
Post-Build Variant false
Value
Multiplicity Pre-compile time X All Variants
Configuration Class
Link time –
Post-build time –
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency scope: local
No Included Containers
This configuration determine the size of the queue queuing the issued triggers.
The RteExternalTriggerConfig container and RteInternalTriggerConfig
container is defined in the context of the RteSwComponentInstance which already
predefines the context of the Trigger / InternalTriggeringPoint.
[SWS_Rte_CONSTR_09005] The references RteSwcTriggerSourceRef has to
be consistent with the RteSoftwareComponentInstanceRef dThe references
RteSwcTriggerSourceRef has to be consistent with the RteSoftwareCompo-
nentInstanceRef. This means the referenced Trigger / InternalTrigger-
ingPoint has to belong to the AtomicSwComponentType which is referenced by
the related SwComponentPrototype.c()
From SWC-T
AtpBlueprintable ARElement
AtpPrototype +port AtpBlueprint
PortPrototype AtpBlueprintable
0..* «atpVariation,atpSplitable» AtpType
SwComponentType
AbstractProvidedPortPrototype
AtomicSwComponentType
PPortPrototype
«atpVariation,atpSplitable»
+internalBehavior 0..1
«isOfType»
0..1 InternalBehavior
+providedInterface {redefines atpType}
SwcInternalBehavior
ARElement
AtpBlueprint
AtpBlueprintable
AtpType
PortInterface
«atpVariation,atpSplitable»
+runnable 0..*
AtpStructureElement
ExecutableEntity
RunnableEntity
TriggerInterface
+subContainer
RteTriggerSourceQueueLength:
EcucIntegerParamDef
+parameter
defaultValue = 0
lowerMultiplicity = 1
upperMultiplicity = 1
min = 0
max = 4294967295
+subContainer
RteTriggerSourceQueueLength:
EcucIntegerParamDef
+parameter
defaultValue = 0
lowerMultiplicity = 1
upperMultiplicity = 1
min = 0
max = 4294967295
No Included Containers
No Included Containers
This configuration provides the settings for the implementation of a RTE assigned
mode machine instance (see [SWS_Rte_07533].
The RteModeMachineInstanceConfig container is defined in the context of the
RteSwComponentInstance which already predefines the context of the ModeDec-
larationGroupPrototype in the RteSwcModeManagerRef .
[SWS_Rte_CONSTR_09100] The reference RteSwcModeManagerRef has to be
consistent with the RteSoftwareComponentInstanceRef dThe reference
RteSwcModeManagerRef has to be consistent with the RteSoftwareCompo-
nentInstanceRef. This means the referenced ModeDeclarationGroupProto-
type shall be instantiated in the context of an AbstractProvidedPortPrototype
owned by the AtomicSwComponentType which is referenced by the related SwCom-
ponentPrototype.c()
RteSwComponentInstance:
EcucParamConfContainerDef
lowerMultiplicity = 0
upperMultiplicity = *
(from RTE)
+subContainer
RteModeMachineQueueLength:
EcucIntegerParamDef
+parameter defaultValue = 1
lowerMultiplicity = 1
upperMultiplicity = 1
min = 0
max = 4294967295
RteModeMachineInstanceResponsibleRipsPluginRef:
+reference EcucUriReferenceDef +destinationUri RteRipsPlugin:
EcucDestinationUriDef
lowerMultiplicity = 0
upperMultiplicity = 1
(from RteRips)
Configuration Parameters
Name RteModeMachineInstanceResponsibleRipsPluginRef
[ECUC_Rte_89013]
Parent Container RteModeMachineInstanceConfig
Description Optional reference to the configuration container of the RTE
Implementation Plug-in implementing the protection of the mode
machine instance.
Multiplicity 0..1
Type Reference to destinationUri [ RteRipsUriDefSet/RteRipsPlugin ]
Multiplicity Pre-compile time X All Variants
Configuration Class
Link time –
Post-build time –
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency
No Included Containers
During the system development there is no need to select the actual implementation
which will be later integrated on one ECU. Therefore the ECU Extract of System De-
scription may not specify the SwcImplementation information yet.
For RTE Generation the information about the to be used SwcImplementation
for each SwComponentType needs be provided to the RTE Generator (regardless
whether the information is from the Ecu Extract or the Ecu Configuration.
The mapping of SwcImplementation to SwComponentType is done in the Ecu Con-
figuration of the Rte using the two references RteComponentTypeRef and RteIm-
plementationRef (see figure 8.20). For the mapping in the Ecu Extract please refer
to the Specification of the System Template [8].
RteComponentTypeRef: RteSwComponentType: RteImplementationRef:
EcucForeignReferenceDef +reference EcucParamConfContainerDef EcucForeignReferenceDef
+reference
SWComponentTemplate
Implementation
ARElement SwcImplementation
AtpBlueprint
+ requiredRTEVendor: String [0..1]
AtpBlueprintable
AtpType
SwComponentType
+behavior 0..1
InternalBehavior
AtomicSwComponentType +internalBehavior SwcInternalBehavior
Included Containers
Container Name Multiplicity Scope / Dependency
RteComponentType 0..1 Specifies for each ParameterSwComponentType or
Calibration AtomicSwComponentType whether calibration is
enabled. If references to SwAddrMethod are provided in
RteCalibrationSwAddrMethodRef only
ParameterDataPrototypes with the referenced
SwAddrMethod shall have software calibration support
enabled.
In the AUTOSAR Software Component Template two places may provide calibration
data: the ParameterSwComponentType and the AtomicSwComponentType (or
more precisely the subclasses of AtomicSwComponentType). Whether the calibra-
tion is enabled for a specific SwComponentType can be configured as shown in figure
8.21.
RteSwComponentType: RteComponentTypeRef: Software Component template
+reference EcucForeignReferenceDef
EcucParamConfContainerDef
ARElement
lowerMultiplicity = 0 destinationType = SW-COMPONENT-TYPE AtpBlueprint
upperMultiplicity = * AtpBlueprintable
AtpType
SwComponentType
AtomicSwComponentType ParameterSwComponentType
«atpVariation»
SwDataDefProps
+swAddrMethod 0..1
ARElement
AtpBlueprint
AtpBlueprintable
SwAddrMethod
RteComponentTypeCalibration:
EcucParamConfContainerDef
+parameter RteCalibrationSupportEnabled:
upperMultiplicity = 1 EcucBooleanParamDef
lowerMultiplicity = 0
+subContainer
RteCalibrationSwAddrMethodRef:
+reference
EcucForeignReferenceDef
lowerMultiplicity = 0
upperMultiplicity = *
destinationType = SW-ADDR-METHOD
No Included Containers
«isOfType»
AtomicSwComponentType
«atpVariation,atpSplitable»
+internalBehavior 0..1
InternalBehavior
SwcInternalBehavior
AtpStructureElement
ExecutableEntity
RunnableEntity
RteImplicitCommunication: RteVariableReadAccessRef:
EcucParamConfContainerDef EcucForeignReferenceDef
+reference
upperMultiplicity = * destinationType = VARIABLE-ACCESS
lowerMultiplicity = 0 lowerMultiplicity = 0
upperMultiplicity = *
RteVariableWriteAccessRef:
EcucForeignReferenceDef
+reference
destinationType = VARIABLE-ACCESS
lowerMultiplicity = 0
upperMultiplicity = *
RteImmediateBufferUpdate:
+parameter
EcucBooleanParamDef
defaultValue = false
defaultValue = false
RteSoftwareComponentInstanceRef: EcucInstanceReferenceDef
destinationType = SW-COMPONENT-PROTOTYPE
+reference
upperMultiplicity = *
lowerMultiplicity = 1
destinationContext = ROOT-SW-COMPOSITION-PROTOTYPE
Data values for Coherent Implicit Read Access’es are read before the
first reading RunnbaleEntity starts and are stable during the execution
of all the reading RunnableEntitys; except Coherent Implicit Write
Access’es belongs to the same Coherency Group. Data values written
by Coherent Implicit Write Access’es are available for readers not
belonging to the Coherency Group after the last writing RunnableEntity
has terminated.
Please note that a Coherent Implicit Data Access can be defined for
VariableAccess’es to same and different data element. Nevertheless
all Coherent Implicit Data Access’es of one Coherency Group have to
be executed in the same task.
Multiplicity 1
Type EcucBooleanParamDef
Default Value false
Post-Build Variant false
Value
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency scope: local
No Included Containers
Rte: EcucModuleDef
upperMultiplicity = 1
lowerMultiplicity = 0
+container
RteExclusiveAccessOptimization: Identifiable
RteAccessingEntityRef: EcucForeignReferenceDef
+reference ExecutableEntity
EcucParamConfContainerDef
lowerMultiplicity = 0
lowerMultiplicity = 0 upperMultiplicity = * + minimumStartInterval: TimeValue [0..1]
upperMultiplicity = * + reentrancyLevel: ReentrancyLevelEnum [0..1]
RteSoftwareComponentReadRef: EcucInstanceReferenceDef
+reference upperMultiplicity = 1
lowerMultiplicity = 0
destinationContext = ROOT-SW-COMPOSITION-PROTOTYPE SW-COMPONENT-PROTOTYPE
destinationType = VARIABLE-ACCESS
AbstractAccessPoint
AtpStructureElement
Identifiable
VariableAccess
RteSoftwareComponentWriteRef: EcucInstanceReferenceDef
lowerMultiplicity = 0
upperMultiplicity = 1
+reference
destinationContext = ROOT-SW-COMPOSITION-PROTOTYPE SW-COMPONENT-PROTOTYPE
destinationType = VARIABLE-ACCESS
No Included Containers
RteOsInteraction:
EcucParamConfContainerDef
+container lowerMultiplicity = 1
upperMultiplicity = *
RteBswModuleConfigurationRef: EcucForeignReferenceDef
+reference
lowerMultiplicity = 0
upperMultiplicity = 1
destinationType = ECUC-MODULE-CONFIGURATION-VALUES
RteBswEventToTaskMapping:
+subContainer EcucParamConfContainerDef
lowerMultiplicity = 0
upperMultiplicity = *
+container RteBswEventToIsrMapping:
+subContainer EcucParamConfContainerDef
lowerMultiplicity = 0
upperMultiplicity = *
RteBswExclusiveAreaImpl:
+subContainer EcucParamConfContainerDef
lowerMultiplicity = 0
upperMultiplicity = *
RteBswRequiredTriggerConnection:
+subContainer EcucParamConfContainerDef
lowerMultiplicity = 0
upperMultiplicity = *
RteBswRequiredModeGroupConnection:
+subContainer EcucParamConfContainerDef
lowerMultiplicity = 0
upperMultiplicity = *
Rte: EcucModuleDef
upperMultiplicity = 1
lowerMultiplicity = 0
+container
RteBswGeneral: RteSchMVersionInfoApi:
EcucParamConfContainerDef +parameter EcucBooleanParamDef
lowerMultiplicity = 1 lowerMultiplicity = 1
upperMultiplicity = 1 upperMultiplicity = 1
defaultValue = false
No Included Containers
Included Containers
Container Name Multiplicity Scope / Dependency
RteBswEventToIsr 0..* Maps a BswModuleEntity onto an OsIsr based on the
Mapping activating BswExternalTriggerOccurredEvent.
RteBswEventToTask 0..* Maps a BswModuleEntity onto an OsTask based on the
Mapping activating BswEvent. A BswModuleEntity can be
activated by more than one BswEvent and thus be
mapped to more than one OsTask. In the case of a
BswSchedulableEntity executed via a direct or trusted
function call this RteBswEventToTaskMapping is still
specified but no RteBswMappedToTaskRef element is
included. The RteBswPositionInTask parameter is
necessary to provide an ordering of events invoked by
the same RTE API.
RteBswExclusiveArea 0..* Represents one ExclusiveArea of one
Impl BswImplementation. Used to specify the implementation
means of this ExclusiveArea.
RteBswExternalTrigger 0..* Defines the configuration of Inter Basic Software Module
Config Entity Triggering
RteBswInternalTrigger 0..* Defines the configuration of internal Basic Software
Config Module Entity Triggering
RteBswModeMachine 0..* Defines the configuration of Basic Software Scheduler
InstanceConfig assigned (SWS_Rte_07534) mode machine instances.
RteBswRequiredClient 0..* Defines the connection between one
ServerConnection requiredClientServerEntry and one
providedClientServerEntry of a BswModuleDescription.
This container shall be provided on the client side of the
connection.
RteBswRequiredMode 0..* Defines the connection between one
GroupConnection requiredModeGroup of this BSW Module instance and
one providedModeGroup instance.
+literal OS_INTERRUPT_BLOCKING:
+subContainer EcucEnumerationLiteralDef
RteBswExclusiveAreaImpl:
EcucParamConfContainerDef +literal OS_RESOURCE: EcucEnumerationLiteralDef
lowerMultiplicity = 0
upperMultiplicity = *
+parameter
+literal OS_SPINLOCK: EcucEnumerationLiteralDef
Os
RteBswExclusiveAreaOsResourceRef:
+reference EcucReferenceDef OsResource:
+destination
EcucParamConfContainerDef
lowerMultiplicity = 0
upperMultiplicity = 1 upperMultiplicity = *
lowerMultiplicity = 0
RteBswExclusiveAreaOsSpinlockRef: OsSpinlock:
+reference EcucReferenceDef +destination EcucParamConfContainerDef
lowerMultiplicity = 0 lowerMultiplicity = 0
upperMultiplicity = 1 upperMultiplicity = *
RteBswExclusiveAreaResponsibleRipsPluginRef:
+reference EcucUriReferenceDef +destinationUri RteRipsPlugin:
EcucDestinationUriDef
lowerMultiplicity = 0
upperMultiplicity = 1
RteBswExclusiveAreaRef:
EcucForeignReferenceDef
+reference
lowerMultiplicity = 1
upperMultiplicity = 1
destinationType = EXCLUSIVE-AREA
BswModuleTemplate
Identifiable
ExclusiveArea
Identifiable
ExecutableEntity
BswModuleEntity
BswSchedulableEntity
No Included Containers
BswModuleTemplate
RteBswImplementationRef: Implementation
RteBswModuleInstance:
EcucForeignReferenceDef BswImplementation
EcucParamConfContainerDef +reference
lowerMultiplicity = 1 + arReleaseVersion: RevisionLabelString
lowerMultiplicity = 0 + vendorApiInfix: Identifier [0..1]
upperMultiplicity = 1
upperMultiplicity = *
destinationType = BSW-IMPLEMENTATION
+behavior 1
InternalBehavior
BswInternalBehavior
RteBswEventRef:
EcucForeignReferenceDef «atpVariation,atpSplitable»
+subContainer
+event 0..*
+reference destinationType = BSW-EVENT
RteBswEventToTaskMapping: AbstractEvent
lowerMultiplicity = 1
EcucParamConfContainerDef BswEvent
upperMultiplicity = *
lowerMultiplicity = 0
upperMultiplicity = *
RteBswMappedToTaskRef:
+reference EcucReferenceDef
Os
lowerMultiplicity = 0 +destination
upperMultiplicity = 1 OsTask:
EcucParamConfContainerDef
RteBswUsedOsEventRef: upperMultiplicity = *
+reference EcucReferenceDef lowerMultiplicity = 0
upperMultiplicity = 1 +destination
lowerMultiplicity = 0 OsEvent:
EcucParamConfContainerDef
upperMultiplicity = *
RteBswUsedOsAlarmRef: lowerMultiplicity = 0
+reference EcucReferenceDef
upperMultiplicity = 1 +destination
lowerMultiplicity = 0 OsAlarm:
EcucParamConfContainerDef
upperMultiplicity = *
RteBswUsedOsSchTblExpiryPointRef: lowerMultiplicity = 0
+reference EcucReferenceDef
upperMultiplicity = 1 +destination
lowerMultiplicity = 0 OsScheduleTableExpiryPoint:
EcucParamConfContainerDef
upperMultiplicity = *
RteBswPositionInTask: lowerMultiplicity = 1
EcucIntegerParamDef
+parameter
upperMultiplicity = 1
lowerMultiplicity = 0
min = 0 +literal NONE:
max = 65535 RteOsSchedulePoint: EcucEnumerationLiteralDef
EcucEnumerationParamDef
+parameter
lowerMultiplicity = 0 +literal
CONDITIONAL:
upperMultiplicity = 1
EcucEnumerationLiteralDef
RteBswActivationOffset:
EcucFloatParamDef +literal
+parameter UNCONDITIONAL:
min = 0 EcucEnumerationLiteralDef
max = INF
lowerMultiplicity = 0
upperMultiplicity = 1 RteBswImmediateRestart:
+parameter EcucBooleanParamDef
defaultValue = false
RteBswEventPredecessorSyncPointRef:
+reference EcucReferenceDef
+destination RteSyncPoint:
upperMultiplicity = 1 EcucParamConfContainerDef
lowerMultiplicity = 0
lowerMultiplicity = 0
+destination upperMultiplicity = *
RteBswEventSuccessorSyncPointRef:
+reference EcucReferenceDef
RteBswServerQueueLength:
upperMultiplicity = 1 EcucIntegerParamDef
lowerMultiplicity = 0
+parameter upperMultiplicity = 1
lowerMultiplicity = 0
min = 0
max = 65535
This parameter shall not be set to true when the mapped BswEvent
refers to a BswSchedulableEntitiy which minimumStartInterval attribute
is > 0.
Multiplicity 1
Type EcucBooleanParamDef
Default Value false
Post-Build Variant false
Value
Attributes:
requiresIndex=true
Multiplicity 0..*
Type Reference to destinationUri [ RteRipsUriDefSet/RteRipsPluginFillFlush
Routine ]
Post-Build Variant false
Multiplicity
Post-Build Variant false
Value
Multiplicity Pre-compile time X All Variants
Configuration Class
Link time –
Post-build time –
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency scope: local
Attributes:
requiresIndex=true
Multiplicity 0..*
Type Reference to destinationUri [ RteRipsUriDefSet/RteRipsPluginFillFlush
Routine ]
Post-Build Variant false
Multiplicity
Post-Build Variant false
Value
No Included Containers
RteBswModuleInstance: EcucParamConfContainerDef
lowerMultiplicity = 0
upperMultiplicity = *
+destination
+subContainer
lowerMultiplicity = 0
upperMultiplicity = *
RteBswReleasedTriggerRef:
EcucForeignReferenceDef
+reference
lowerMultiplicity = 1
upperMultiplicity = 1
destinationType = TRIGGER
RteBswRequiredTriggerRef:
EcucForeignReferenceDef
+reference
lowerMultiplicity = 1
upperMultiplicity = 1
destinationType = TRIGGER
BswModuleTemplate
InternalBehavior
+triggerDirectImplementation BswTriggerDirectImplementation
BswInternalBehavior
«atpVariation,atpSplitable»0..* + cat2Isr: Identifier [0..1]
+ task: Identifier [0..1]
No Included Containers
This configuration determine the size of the queue queuing the issued triggers.
The RteBswExternalTriggerConfig container and RteBswInternalTrigger-
Config container is defined in the context of the RteBswModuleInstance which
already predefines the context of the provided Trigger / BswInternalTrigger-
ingPoint.
ARElement
AtpBlueprint
AtpStructureElement
AtpBlueprintable
+releasedTrigger Identifiable
AtpStructureElement
Trigger
BswModuleDescription «atpVariation,atpSplitable» 0..*
+ swImplPolicy: SwImplPolicyEnum [0..1]
+ moduleId: PositiveInteger [0..1]
«atpSplitable»
+internalBehavior 0..*
InternalBehavior
Identifiable
BswInternalBehavior
BswInternalTriggeringPoint
+internalTriggeringPoint
«atpVariation,atpSplitable» + swImplPolicy: SwImplPolicyEnum [0..1]
0..*
+subContainer
RteBswTriggerSourceQueueLength:
EcucIntegerParamDef
+parameter
defaultValue = 0
lowerMultiplicity = 1
upperMultiplicity = 1
min = 0
max = 4294967295
+subContainer
RteBswTriggerSourceQueueLength:
EcucIntegerParamDef
+parameter
defaultValue = 0
lowerMultiplicity = 1
upperMultiplicity = 1
min = 0
max = 4294967295
Configuration Parameters
No Included Containers
No Included Containers
lowerMultiplicity = 0
upperMultiplicity = *
+destination
+subContainer
RteModeDeclarationMappingSetRef: EcucForeignReferenceDef
+reference
lowerMultiplicity = 0
upperMultiplicity = 1
destinationType = MODE-DECLARATION-MAPPING-SET
RteBswProvidedModeGroupRef: EcucForeignReferenceDef
+reference
lowerMultiplicity = 1
upperMultiplicity = 1
destinationType = MODE-DECLARATION-GROUP-PROTOTYPE
RteBswRequiredModeGroupRef: EcucForeignReferenceDef
+reference
lowerMultiplicity = 1
upperMultiplicity = 1
destinationType = MODE-DECLARATION-GROUP-PROTOTYPE
BswModuleTemplate
«isOfType»
0..1
+type {redefines atpType}
+modeDeclaration ARElement
AtpStructureElement AtpBlueprint
Identifiable 0..* «atpVariation» AtpBlueprintable
ModeDeclaration +initialMode AtpType
ModeDeclarationGroup
+ value: PositiveInteger [0..1]
0..1
+ onTransitionValue: PositiveInteger [0..1]
+firstMode 0..* +secondMode 0..1
AtpStructureElement ARElement
Identifiable +modeDeclarationMapping AtpType
ModeDeclarationMapping ModeDeclarationMappingSet
0..*
No Included Containers
RteBswModuleInstance: EcucParamConfContainerDef
lowerMultiplicity = 0
upperMultiplicity = *
+destination
+subContainer
lowerMultiplicity = 0
upperMultiplicity = *
RteBswProvidedClientServerEntryRef: EcucForeignReferenceDef
+reference lowerMultiplicity = 1
upperMultiplicity = 1
destinationType = BSW-MODULE-CLIENT-SERVER-ENTRY
RteBswRequiredClientServerEntryRef: EcucForeignReferenceDef
+reference lowerMultiplicity = 1
upperMultiplicity = 1
destinationType = BSW-MODULE-CLIENT-SERVER-ENTRY
BswModuleTemplate
No Included Containers
RteBswModuleInstance: EcucParamConfContainerDef
lowerMultiplicity = 0
upperMultiplicity = *
+destination
+subContainer
lowerMultiplicity = 0
upperMultiplicity = *
RteBswProvidedVariableDataPrototypeRef:
EcucForeignReferenceDef
+reference
lowerMultiplicity = 1
upperMultiplicity = 1
destinationType = VARIABLE-DATA-PROTOTYPE
RteBswRequiredVariableDataPrototypeRef:
EcucForeignReferenceDef
+reference
lowerMultiplicity = 1
upperMultiplicity = 1
destinationType = VARIABLE-DATA-PROTOTYPE
BswModuleTemplate
ARElement AutosarDataPrototype
+providedData
AtpBlueprint
VariableDataPrototype
AtpBlueprintable «atpVariation,atpSplitable» 0..*
AtpStructureElement
BswModuleDescription +requiredData
No Included Containers
This configuration provides the settings for the implementation of a Basic Software
Scheduler assigned mode machine instance (see [SWS_Rte_07534].
The RteBswModeMachineInstanceConfig container is defined in the context of
the RteBswModuleInstance which already predefines the context of the ModeDec-
larationGroupPrototype in the RteBswModeManagerRef .
[SWS_Rte_CONSTR_09101] The reference RteBswModeManagerRef has to be
consistent with the RteBswImplementationRef dThe reference RteBswModeM-
anagerRef has to be consistent with the RteBswImplementationRef. This means
lowerMultiplicity = 0
upperMultiplicity = *
(from RTE)
+subContainer
RteBswModeMachineInstanceConfig:
RteBswModeManagerRef: EcucForeignReferenceDef
EcucParamConfContainerDef
+reference destinationType = MODE-DECLARATION-GROUP-PROTOTYPE
lowerMultiplicity = 0
upperMultiplicity = 1
upperMultiplicity = *
lowerMultiplicity = 1
RteBswModeMachineQueueLength:
EcucIntegerParamDef
+parameter defaultValue = 1
lowerMultiplicity = 1
upperMultiplicity = 1
min = 0
max = 4294967295
RteModeMachineInstanceResponsibleRipsPluginRef:
+reference EcucUriReferenceDef +destinationUri RteRipsPlugin:
lowerMultiplicity = 0 EcucDestinationUriDef
upperMultiplicity = 1
(from RteRips)
(from RteModeConfiguration)
Figure 8.33: Configuration of a Basic Software Scheduler assigned mode machine in-
stance
Name RteModeMachineInstanceResponsibleRipsPluginRef
[ECUC_Rte_89013]
Parent Container RteBswModeMachineInstanceConfig
Description Optional reference to the configuration container of the RTE
Implementation Plug-in implementing the protection of the mode
machine instance.
Multiplicity 0..1
Type Reference to destinationUri [ RteRipsUriDefSet/RteRipsPlugin ]
Multiplicity Pre-compile time X All Variants
Configuration Class
Link time –
Post-build time –
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency
No Included Containers
+reference +reference
upperMultiplicity = 1 upperMultiplicity = 1
lowerMultiplicity = 0 lowerMultiplicity = 0
No Included Containers
+parameter
+literal
RteInitializationStrategy: RTE_INITIALIZATION_STRATEGY_NONE: EcucEnumerationLiteralDef
EcucEnumerationParamDef
upperMultiplicity = 1 +literal
lowerMultiplicity = 1
RTE_INITIALIZATION_STRATEGY_AT_DATA_DECLARATION: EcucEnumerationLiteralDef
+literal RTE_INITIALIZATION_STRATEGY_AT_DATA_DECLARATION_AND_PARTITION_RESTART:
EcucEnumerationLiteralDef
+literal RTE_INITIALIZATION_STRATEGY_AT_RTE_START_AND_PARTITION_RESTART:
EcucEnumerationLiteralDef
Multiplicity 1..*
Type EcucStringParamDef
Default Value
Regular Expression
Post-Build Variant false
Multiplicity
Post-Build Variant false
Value
Multiplicity Pre-compile time X All Variants
Configuration Class
Link time –
Post-build time –
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency scope: local
No Included Containers
[SWS_Rte_07075] dThe RTE generator shall reject configurations where not all oc-
curring sectionInitializationPolicy attribute values are configured to an
RteInitializationStrategy.c(SRS_Rte_00018)
The call of Rte_Start may trigger RunnableEntitys for initialization purpose.
Those RunnableEntitys are either triggered by SwcModeSwitchEvents or
upperMultiplicity = 1
lowerMultiplicity = 0
+container
RteInitializationRunnableBatch:
EcucParamConfContainerDef
upperMultiplicity = *
lowerMultiplicity = 0
+destination
RteUsedInitFnc:
EcucReferenceDef
upperMultiplicity = 1
lowerMultiplicity = 0
+reference
RteEventToTaskMapping: RtePositionInTask:
EcucParamConfContainerDef +parameter EcucIntegerParamDef
upperMultiplicity = * upperMultiplicity = 1
lowerMultiplicity = 0 lowerMultiplicity = 0
min = 0
max = 65535
No Included Containers
Rte_Init API may only schedule RunnableEntitys for initialization purpose ore
which are on-entry Runnable Entities.
[SWS_Rte_CONSTR_09063] Restricted kinds of RTEEvents which may
mapped to RteInitializationRunnableBatch containers dOnly SwcMod-
eSwitchEvents with activation = onEntry and referring to the initialMode or
InitEvents may be mapped to RteInitializationRunnableBatch containers
with the means of a RteUsedInitFnc reference.c()
[SWS_Rte_06769] dThe RTE Generator shall reject configurations violating
[SWS_Rte_CONSTR_09063].c(SRS_Rte_00143, SRS_Rte_00240, SRS_Rte_-
00018)
lowerMultiplicity = 1
upperMultiplicity = *
+subContainer
RteSuccessorOsTaskRef:
+reference EcucReferenceDef +destination
lowerMultiplicity = 1
upperMultiplicity = 1
(from OS)
No Included Containers
Rte: EcucModuleDef
upperMultiplicity = 1
lowerMultiplicity = 0
(from RTE)
RteModeMachineInstanceConfig:
+container EcucParamConfContainerDef
lowerMultiplicity = 0
upperMultiplicity = *
(from RteBswModeConfiguration)
(from OS)
RteDSMQResponsibleRipsPluginRef:
+reference EcucUriReferenceDef +destinationUri RteRipsPlugin:
EcucDestinationUriDef
lowerMultiplicity = 0
upperMultiplicity = 1
(from RteRips)
No Included Containers
Please note, that for the structural decoupling of the RTE’s configuration and the config-
uration of RTE Implementation Plug-Ins Uri References are used. See doc-
ument [5], section Uri Reference. Thereby each RTE Implementation Plug-In
define its own EcucModuleDef. AUTOSAR itself does not standardize those Ecuc-
ModuleDefs. Instead the required references in the ECU configuration of the RTE are
defined as EcucUriReferenceDefs and for the reference destination containers the
EcucDestinationUriDefs are standardized in the RteRipsUriDefSet.
SWS Item ECUC_Rte_89003
EcucDestinationUriDefSet RteRipsUriDefSet
Name
Description Defines the set of DestinationUriDefs for the RTE Implementation
Plug-in support.
Included EcucDestinationUriDefs
Name Description
RteRipsInvocationHandler Defines the configuration container content of an invocation handler
of an RTE Implementation Plug-In.
RteRipsPlugin Defines the configuration container content of the RIPS Plug-in
holding the Rte relevant settings.
RteRipsPluginFillFlush Defines the configuration container content of a Fill-Flush Routine
Routine implemented by a RTE Implementation Plug-In.
Included Containers
Container Name Multiplicity Scope / Dependency
RteRipsInvocation 0..* This container describes an invocation handler function
HandlerFnc implemented by an RTE Implementation Plug-In to
handle the invocation of server runnables and triggered
runnables via a transformer.
Included Containers
Container Name Multiplicity Scope / Dependency
RteRipsPluginProps 1 This container defines the identity of the Rte
Implementation Plug-in and provides the RTE relevant
parameters of the Rte Implementation Plug-in. The
shortName of the container defines the name of the Rte
Implementation Plug-in used for the API infixes.
Included Containers
Container Name Multiplicity Scope / Dependency
RteRipsPluginFillFlush 0..* This container describes a Fill-Flush Routine function
RoutineFnc implemented by a RTE Implementation Plug-In to
handle the buffering for implicit communication.
The general configuration of the RTE Generator concerning the used RTE Imple-
mentation Plug-Ins are defined in the container RteRips.
The section lists the configuration for the general settings to enable the RTE Imple-
mentation Plug-In support by RTE Generator.
Rte: EcucModuleDef
+module AUTOSARParameterDefinition:
upperMultiplicity = 1 EcucDefinitionCollection
lowerMultiplicity = 0
(from ECUCParameterDefinitions)
(from RTE)
+container
RteRipsUriDefSet:
EcucDestinationUriDefSet
RteRipsPluginConfigurationRef: +destinationUriDef
+reference EcucUriReferenceDef
+destinationUri RteRipsPlugin:
lowerMultiplicity = 0 EcucDestinationUriDef
upperMultiplicity = *
requiresIndex = true
+destinationUriPolicy
:EcucDestinationUriPolicy
destinationUriNestingContract = targetContainer
+container
SwCluCXcc:
RtePluginSupportsIReadIWrite: EcucParamConfContainerDef
+parameter EcucBooleanParamDef
lowerMultiplicity = 0
defaultValue = false upperMultiplicity = 1
lowerMultiplicity = 1
upperMultiplicity = 1 (from
CrossClusterCommunication)
Attributes:
requiresIndex=true
Multiplicity 0..*
Type Reference to destinationUri [ RteRipsUriDefSet/RteRipsPlugin ]
Multiplicity Pre-compile time X All Variants
Configuration Class
Link time –
Post-build time –
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency
No Included Containers
No Included Containers
The section lists the configuration for the Fill-Flush-Routines needed in case a RTE
Implementation Plug-In implements implicit communication. The details are de-
scribed in section 7.3.4.7.1.
RteRipsUriDefSet:
EcucDestinationUriDefSet
+destinationUriDef
RteRipsFlushRoutineRef:
RteBswEventToTaskMapping:
EcucUriReferenceDef
EcucParamConfContainerDef +reference +destinationUri
lowerMultiplicity = 0
lowerMultiplicity = 0
+reference upperMultiplicity = *
upperMultiplicity = *
requiresIndex = true
(from
RteBswEventToTaskMapping)
+destinationUriPolicy
:EcucDestinationUriPolicy
destinationUriNestingContract = targetContainer
+container
RteRipsPluginFillFlushRoutineFncSymbol:
EcucFunctionNameDef
+parameter upperMultiplicity = 1
lowerMultiplicity = 1
RteRipsOsSchedulePoint: +literal
NONE:
EcucEnumerationParamDef EcucEnumerationLiteralDef
+parameter lowerMultiplicity = 0
upperMultiplicity = 1
+literal
UNCONDITIONAL:
EcucEnumerationLiteralDef
Regular Expression
Post-Build Variant false
Value
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency scope: local
No Included Containers
The section lists the configuration for the invocation handles needed in case a RTE
Implementation Plug-In needs to invoke server runnables respectively the
triggered runnables. The details are described in section 7.3.11.2.
RteRipsUriDefSet:
EcucDestinationUriDefSet
+destinationUriDef
(from RteEventToTaskMapping)
+destinationUriPolicy
:EcucDestinationUriPolicy
destinationUriNestingContract = targetContainer
+container
RteRipsInvocationHandlerFnc: RteRipsInvocationHandlerFncSymbol:
EcucParamConfContainerDef EcucFunctionNameDef
lowerMultiplicity = 0 +parameter
upperMultiplicity = 1
upperMultiplicity = * lowerMultiplicity = 1
No Included Containers
A Metamodel Restrictions
This chapter lists all the restrictions to the AUTOSAR meta-model this version of the
AUTOSAR RTE specification document relies on. The RTE generator shall reject con-
figuration where any of the specified restrictions are violated.
Rationale: The name of the runnable entity entry point is formed by a combi-
nation of SWC symbol prefix and symbol attribute of RunnableEntity. This
means that two runnables in different SWCs can have the same symbol attribute
as long as different SWC prefixes are used.
2. [SWS_Rte_02733] dThe RTE Generator shall reject a configuration where a
runnable has the attribute canBeInvokedConcurrently set to true and the
attribute minimumStartInterval set to greater zero.c(SRS_Rte_00018)
Rationale: If a runnable should run concurrently (i.e., have several Exe-
cutableEntity execution-instances), this implies that the minimum in-
terval between the start of the runnables is zero. The configuration to be rejected
is inconsistent.
3. [SWS_Rte_08909] dThe RTE Generator shall reject a configuration where a
RunnableEntity defines a dataWriteAccess and a dataSendPoint to the
same data element, except when those data accesses are subject to variability
with bindingTime later than codeGenerationTime.c(SRS_Rte_00018)
Note: Please note that if the accesses are subject to variability, this misconfigu-
ration can only be detected if the latest bindingTime is codeGenerationTime. In
other cases it is in the responsibility of the user to ensure that at run-time only one
variant is active, i.e. either dataWriteAccess (implict sending) or dataSendPoint
(explicit sending), but not both.
Rationale: The initValue is used to guarantee that the RTE won’t deliver un-
defined values.
2. [SWS_Rte_08311] dWhen the external configuration switch strictInitial-
ValuesCheck is enabled, the RTE Generator shall reject configurations where
a SwAddrMethod has a sectionInitializationPolicy set to init but no
initValue is specified on the inter runnable variable.c(SRS_Rte_00068, SRS_-
Rte_00108, SRS_Rte_00018)
Rationale: The initValue is used to guarantee that the RTE won’t deliver un-
defined values.
3. [SWS_Rte_07681] dIf strict checking of initial values is enabled
(see [SWS_Rte_07680]), the RTE Generator shall reject configurations
where a ParameterDataPrototype has no initValues.c(SRS_Rte_00108,
SRS_Rte_00018)
Rationale: This allows to provide the values with a calibration without any in-
volvements from the RTE Generator, and still permits to enable a stricter check
on projects where it is required.
Please note that a wait point can either be a modelling WaitPoint e. g. a Wait-
Point in the SW-C description caused by the usage of a blocking API (e. g.
Rte_Receive) or an implementation wait point caused by a special implementa-
tion to fulfill the requirements of the ECU configuration, e. g. the runnable-to-task
mapping.
Rationale: The operating system has the limitation that a WaitEvent call is
not allowed with disabled interrupts. Therefore the implementation mechanism
InterruptBlocking cannot be used if the exclusive area contains a WaitPoint.
Further the operating system has the limitation that an OS WaitPoint cannot
be entered with occupied OS Resources. This implies that the implementation
mechanism OsResource cannot be used if the exclusive area contains a Wait-
Point.
B External Requirements
A summary on model constraints is provided in document [34].
C MISRA C Compliance
In general, all RTE code, whether generated or not, shall conform to the MISRA C
standard [SWS_Rte_01168] [27]. This chapter lists all the MISRA C rules that may be
violated by the generated RTE.
The MISRA C standard was defined with having mainly hand-written code in mind. Part
of the MISRA C rules only apply to hand-written code, they do not make much sense
in the context of automatic code generation. Additionally, there are some rules that are
violated because of technical reasons, mainly to reduce RTE overhead.
The rules listed in this chapter are expected to be violated by RTE code. Violations to
the rules listed here do not need to be documented as non-compliant to MISRA C in
the generated code itself.
MISRA rule 2.3
Description A project should not contain unused type declarations.
Violations This is in support of [SWS_Rte_02648].
4
Class AbstractProvidedPortPrototype (abstract)
Base ARObject, AtpBlueprintable, AtpFeature, AtpPrototype, Identifiable, MultilanguageReferrable, Port
Prototype, Referrable
Subclasses PPortPrototype, PRPortPrototype
Attribute Type Mult. Kind Note
providedCom PPortComSpec * aggr Provided communication attributes per interface element
Spec (data element or operation).
Class AnyInstanceRef
Package M2::AUTOSARTemplates::GenericStructure::GeneralTemplateClasses::AnyInstanceRef
Note Describes a reference to any instance in an AUTOSAR model. This is the most generic form of an
instance ref. Refer to the superclass notes for more details.
Base ARObject, AtpInstanceRef
Attribute Type Mult. Kind Note
base AtpClassifier 1 ref This is the base from which navigation path begins.
Stereotypes: atpDerived
contextElement AtpFeature * ref This is one step in the navigation path specified by the
instance ref.
target AtpFeature 1 ref This is the target of the instance ref.
Enumeration ApiPrincipleEnum
Package M2::AUTOSARTemplates::CommonStructure::InternalBehavior
Note This enumeration represents the ability to control the granularity of API generation.
Literal Description
common The Rte or SchM API is provided for the whole software component / BSW Module
Tags:atp.EnumerationLiteralIndex=0
perExecutable The Rte or SchM API is provided for a specific ExecutableEntity of a software component / BSW
Module
Tags:atp.EnumerationLiteralIndex=1
Class ApplicationArrayDataType
Package M2::AUTOSARTemplates::SWComponentTemplate::Datatype::Datatypes
Note An application data type which is an array, each element is of the same application data type.
Tags:atp.recommendedPackage=ApplicationDataTypes
Base ARElement, ARObject, ApplicationCompositeDataType, ApplicationDataType, AtpBlueprint, Atp
Blueprintable, AtpClassifier , AtpType, AutosarDataType, CollectableElement, Identifiable, Multilanguage
Referrable, PackageableElement, Referrable
Attribute Type Mult. Kind Note
dynamicArray String 0..1 attr Specifies the profile which the array will follow if it is a
SizeProfile variable size array.
element ApplicationArray 0..1 aggr This association implements the concept of an array
Element element. That is, in some cases it is necessary to be able
to identify single array elements, e.g. as input values for
an interpolation routine.
Class ApplicationArrayElement
Package M2::AUTOSARTemplates::SWComponentTemplate::Datatype::DataPrototypes
Note Describes the properties of the elements of an application array data type.
Base ARObject, ApplicationCompositeElementDataPrototype, AtpFeature, AtpPrototype, DataPrototype,
Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
arraySize ArraySizeHandling 0..1 attr The way how the size of the array is handled.
Handling Enum
arraySize ArraySizeSemantics 0..1 attr This attribute controls how the information about the array
Semantics Enum size shall be interpreted.
indexDataType ApplicationPrimitive 0..1 ref This reference can be taken to assign a CompuMethod of
DataType category TEXTTABLE to the array. The texttable entries
associate a textual value to an index number such that
the element with that index number is represented by a
symbolic name.
maxNumberOf PositiveInteger 0..1 attr The maximum number of elements that the array can
Elements contain.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
Class ApplicationError
Package M2::AUTOSARTemplates::SWComponentTemplate::PortInterface
Note This is a user-defined error that is associated with an element of an AUTOSAR interface. It is specific for
the particular functionality or service provided by the AUTOSAR software component.
Base ARObject, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
errorCode Integer 0..1 attr The RTE generator is forced to assign this value to the
corresponding error symbol. Note that for error codes
certain ranges are predefined (see RTE specification).
Class ApplicationPrimitiveDataType
Package M2::AUTOSARTemplates::SWComponentTemplate::Datatype::Datatypes
Note A primitive data type defines a set of allowed values.
Tags:atp.recommendedPackage=ApplicationDataTypes
Base ARElement, ARObject, ApplicationDataType, AtpBlueprint, AtpBlueprintable, AtpClassifier , AtpType,
AutosarDataType, CollectableElement, Identifiable, MultilanguageReferrable, PackageableElement,
Referrable
Attribute Type Mult. Kind Note
– – – – –
Table D.13: ApplicationPrimitiveDataType
Class ApplicationRecordDataType
Package M2::AUTOSARTemplates::SWComponentTemplate::Datatype::Datatypes
Note An application data type which can be decomposed into prototypes of other application data types.
Tags:atp.recommendedPackage=ApplicationDataTypes
Base ARElement, ARObject, ApplicationCompositeDataType, ApplicationDataType, AtpBlueprint, Atp
Blueprintable, AtpClassifier , AtpType, AutosarDataType, CollectableElement, Identifiable, Multilanguage
Referrable, PackageableElement, Referrable
Attribute Type Mult. Kind Note
element ApplicationRecord * aggr Specifies an element of a record.
(ordered) Element
The aggregation of ApplicationRecordElement is subject
to variability with the purpose to support the conditional
existence of elements inside a ApplicationrecordData
Type.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
Class ApplicationRecordElement
Package M2::AUTOSARTemplates::SWComponentTemplate::Datatype::DataPrototypes
Note Describes the properties of one particular element of an application record data type.
Base ARObject, ApplicationCompositeElementDataPrototype, AtpFeature, AtpPrototype, DataPrototype,
Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
isOptional Boolean 0..1 attr This attribute represents the ability to declare the
enclosing ApplicationRecordElement as optional. This
means the that, at runtime, the ApplicationRecord
Element may or may not have a valid value and shall
therefore be ignored.
The underlying runtime software provides means to set
the ApplicationRecordElement as not valid at the sending
end of a communication and determine its validity at the
receiving end.
Class ApplicationRuleBasedValueSpecification
Package M2::AUTOSARTemplates::CommonStructure::Constants
Note This meta-class represents rule based values for DataPrototypes typed by ApplicationDataTypes
(ApplicationArrayDataType or a compound ApplicationPrimitiveDataType which also boils down to an
array-nature).
Base ARObject, AbstractRuleBasedValueSpecification, ValueSpecification
Attribute Type Mult. Kind Note
category Identifier 0..1 attr This represents the category of the RuleBasedValue
Specification
Tags:xml.sequenceOffset=-20
swAxisCont RuleBasedAxisCont * aggr This represents the axis values of a Compound Primitive
(ordered) Data Type (curve or map).
The first swAxisCont describes the x-axis, the second sw
AxisCont describes the y-axis, the third swAxisCont
describes the z-axis. In addition to this, the axis can be
denoted in swAxisIndex.
5
4
Class ApplicationRuleBasedValueSpecification
swValueCont RuleBasedValueCont 0..1 aggr This represents the values of an array or Compound
Primitive Data Type.
Class ApplicationSwComponentType
Package M2::AUTOSARTemplates::SWComponentTemplate::Components
Note The ApplicationSwComponentType is used to represent the application software.
Tags:atp.recommendedPackage=SwComponentTypes
Base ARElement, ARObject, AtomicSwComponentType, AtpBlueprint, AtpBlueprintable, AtpClassifier , Atp
Type, CollectableElement, Identifiable, MultilanguageReferrable, PackageableElement, Referrable, Sw
ComponentType
Attribute Type Mult. Kind Note
– – – – –
Table D.17: ApplicationSwComponentType
Class ApplicationValueSpecification
Package M2::AUTOSARTemplates::CommonStructure::Constants
Note This meta-class represents values for DataPrototypes typed by ApplicationDataTypes (this includes in
particular compound primitives).
For further details refer to ASAM CDF 2.0. This meta-class corresponds to some extent with
SW-INSTANCE in ASAM CDF 2.0.
Base ARObject, ValueSpecification
Attribute Type Mult. Kind Note
category Identifier 0..1 attr Specifies to which category of ApplicationDataType this
ApplicationValueSpecification can be applied (e.g. as an
initial value), thus imposing constraints on the structure
and semantics of the contained values, see [constr_1006]
and [constr_2051].
swAxisCont SwAxisCont * aggr This represents the axis values of a Compound Primitive
(ordered) Data Type (curve or map).
The first swAxisCont describes the x-axis, the second sw
AxisCont describes the y-axis, the third swAxisCont
describes the z-axis. In addition to this, the axis can be
denoted in swAxisIndex.
swValueCont SwValueCont 0..1 aggr This represents the values of a Compound Primitive Data
Type.
Class ArgumentDataPrototype
Package M2::AUTOSARTemplates::SWComponentTemplate::PortInterface
Note An argument of an operation, much like a data element, but also carries direction information and is
owned by a particular ClientServerOperation.
Base ARObject, AtpFeature, AtpPrototype, AutosarDataPrototype, DataPrototype, Identifiable, Multilanguage
Referrable, Referrable
Attribute Type Mult. Kind Note
direction ArgumentDirection 0..1 attr This attribute specifies the direction of the argument
Enum prototype.
5
4
Class ArgumentDataPrototype
serverArgument ServerArgumentImpl 0..1 attr This defines how the argument type of the servers
ImplPolicy PolicyEnum RunnableEntity is implemented.
If the attribute is not defined this has the same semantics
as if the attribute is set to the value useArgumentType for
primitive arguments and structures.
Enumeration ArgumentDirectionEnum
Package M2::AUTOSARTemplates::GenericStructure::GeneralTemplateClasses::PrimitiveTypes
Note Use cases:
• Arguments in ClientServerOperation can have different directions that need to be formally
indicated because they have an impact on how the function signature looks like eventually.
• Arguments in BswModuleEntry already determine a function signature, but the direction is
used to specify the semantics, especially of pointer arguments.
Literal Description
in The argument value is passed to the callee.
Tags:atp.EnumerationLiteralIndex=0
inout The argument value is passed to the callee but also passed back from the callee to the caller.
Tags:atp.EnumerationLiteralIndex=1
out The argument value is passed from the callee to the caller.
Tags:atp.EnumerationLiteralIndex=2
Enumeration ArrayImplPolicyEnum
Package M2::AUTOSARTemplates::CommonStructure::ImplementationDataTypes
Note This meta-class provides values to configure the implementation of the payload part of an array.
Literal Description
payloadAsArray This configuration demands the implementation of the payload as an array.
Tags:atp.EnumerationLiteralIndex=0
payloadAsPointerTo This configuration demands the implementation of the payload as a pointer to an array.
Array
Tags:atp.EnumerationLiteralIndex=1
Enumeration ArraySizeSemanticsEnum
Package M2::AUTOSARTemplates::CommonStructure::ImplementationDataTypes
Note This type controls how the information about the number of elements in an ApplicationArrayDataType
is to be interpreted.
Literal Description
fixedSize This means that the ApplicationArrayDataType will always have a fixed number of elements.
Tags:atp.EnumerationLiteralIndex=0
variableSize This implies that the actual number of elements in the ApplicationArrayDataType might vary at
run-time. The value of arraySize represents the maximum number of elements in the array.
Tags:atp.EnumerationLiteralIndex=1
Class ArrayValueSpecification
Package M2::AUTOSARTemplates::CommonStructure::Constants
Note Specifies the values for an array.
Base ARObject, CompositeValueSpecification, ValueSpecification
Attribute Type Mult. Kind Note
element ValueSpecification * aggr The value for a single array element. All Value
(ordered) Specifications aggregated by ArrayValueSpecification
shall have the same structure.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
intendedPartial PositiveInteger 0..1 attr This attribute shall only have a meaning for dynamic
Initialization arrays and shall be taken as a sanity check: the number
Count filled in the attribute shall be identical to the number of
ArrayValueSpecification.element.
If the attribute does not exist it means that no partial
initialization is intended.
Table D.23: ArrayValueSpecification
Class AssemblySwConnector
Package M2::AUTOSARTemplates::SWComponentTemplate::Composition
Note AssemblySwConnectors are exclusively used to connect SwComponentPrototypes in the context of a
CompositionSwComponentType.
Base ARObject, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, MultilanguageReferrable,
Referrable, SwConnector
Attribute Type Mult. Kind Note
provider AbstractProvidedPort 0..1 iref Instance of providing port.
Prototype
InstanceRef implemented by:PPortInComposition
InstanceRef
requester AbstractRequiredPort 0..1 iref Instance of requiring port.
Prototype
InstanceRef implemented by:RPortInComposition
InstanceRef
Table D.24: AssemblySwConnector
Class AsynchronousServerCallPoint
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::ServerCall
Note An AsynchronousServerCallPoint is used for asynchronous invocation of a ClientServerOperation.
IMPORTANT: a ServerCallPoint cannot be used concurrently. Once the client RunnableEntity has made
the invocation, the ServerCallPoint cannot be used until the call returns (or an error occurs!) at which
point the ServerCallPoint becomes available again.
Base ARObject, AbstractAccessPoint, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable,
MultilanguageReferrable, Referrable, ServerCallPoint
Attribute Type Mult. Kind Note
– – – – –
Table D.25: AsynchronousServerCallPoint
Class AsynchronousServerCallResultPoint
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::ServerCall
Note If a RunnableEntity owns a AsynchronousServerCallResultPoint it is entitled to get the result of the
referenced AsynchronousServerCallPoint. If it is associated with AsynchronousServerCallReturnsEvent,
this RTEEvent notifies the completion of the required ClientServerOperation or a timeout. The
occurrence of this event can either unblock a WaitPoint or can lead to the invocation of a RunnableEntity.
Base ARObject, AbstractAccessPoint, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable,
MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
asynchronous AsynchronousServer 0..1 ref The referenced Asynchronous Server Call Point defines
ServerCallPoint CallPoint the asynchronous server call from which the results are
returned.
Table D.26: AsynchronousServerCallResultPoint
Class AsynchronousServerCallReturnsEvent
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::RTEEvents
Note This event is raised when an asynchronous server call is finished.
Base ARObject, AbstractEvent, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, Multilanguage
Referrable, RTEEvent, Referrable
Attribute Type Mult. Kind Note
eventSource AsynchronousServer 0..1 ref The referenced AsynchronousServerCallResultPoint
CallResultPoint which is raises the RTEEvent in case of returning
asynchronous server call.
4
Class AutosarDataType (abstract)
swDataDef SwDataDefProps 0..1 aggr The properties of this AutosarDataType.
Props
Class BackgroundEvent
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::RTEEvents
Note This event is used to trigger RunnableEntities that are supposed to be executed in the background.
Base ARObject, AbstractEvent, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, Multilanguage
Referrable, RTEEvent, Referrable
Attribute Type Mult. Kind Note
– – – – –
Table D.32: BackgroundEvent
Class BaseTypeDirectDefinition
Package M2::MSR::AsamHdo::BaseTypes
Note This BaseType is defined directly (as opposite to a derived BaseType)
Base ARObject, BaseTypeDefinition
Attribute Type Mult. Kind Note
baseType BaseTypeEncoding 0..1 attr This specifies, how an object of the current BaseType is
Encoding String encoded, e.g. in an ECU within a message sequence.
Tags:xml.sequenceOffset=90
baseTypeSize PositiveInteger 0..1 attr Describes the length of the data type specified in the
container in bits.
Tags:xml.sequenceOffset=70
byteOrder ByteOrderEnum 0..1 attr This attribute specifies the byte order of the base type.
Tags:xml.sequenceOffset=110
5
4
Class BaseTypeDirectDefinition
memAlignment PositiveInteger 0..1 attr This attribute describes the alignment of the memory
object in bits. E.g. "8" specifies, that the object in
question is aligned to a byte while "32" specifies that it is
aligned four byte. If the value is set to "0" the meaning
shall be interpreted as "unspecified".
Tags:xml.sequenceOffset=100
native NativeDeclarationString 0..1 attr This attribute describes the declaration of such a base
Declaration type in the native programming language, primarily in the
Programming language C. This can then be used by a
code generator to include the necessary declarations into
a header file. For example
BaseType with shortName: "MyUnsignedInt" native
Declaration: "unsigned short"
Results in
typedef unsigned short MyUnsignedInt;
If the attribute is not defined the referring Implementation
DataTypes will not be generated as a typedef by RTE.
If a nativeDeclaration type is given it shall fulfill the
characteristic given by basetypeEncoding and baseType
Size.
This is required to ensure the consistent handling and
interpretation by software components, RTE, COM and
MCM systems.
Tags:xml.sequenceOffset=120
Enumeration BindingTimeEnum
Package M2::AUTOSARTemplates::GenericStructure::VariantHandling
Note This enumerator specifies the applicable binding times for the pre build variation points.
Literal Description
codeGeneration • Coding by hand, based on requirements document.
Time
• Tool based code generation, e.g. from a model.
• The model may contain variants.
• Only code for the selected variant(s) is actually generated.
Tags:atp.EnumerationLiteralIndex=0
linkTime Configure what is included in object code, and what is omitted Based on which variant(s) are selected
E.g. for modules that are delivered as object code (as opposed to those that are delivered as source
code)
Tags:atp.EnumerationLiteralIndex=1
preCompileTime This is typically the C-Preprocessor. Exclude parts of the code from the compilation process, e.g.,
because they are not required for the selected variant, because they are incompatible with the
selected variant, because they require resources that are not present in the selected variant. Object
code is only generated for the selected variant(s). The code that is excluded at this stage code will
not be available at later stages.
Tags:atp.EnumerationLiteralIndex=2
5
4
Enumeration BindingTimeEnum
systemDesignTime • Designing the VFB.
• Software Component types (PortInterfaces).
• SWC Prototypes and the Connections between SWCprototypes.
• Designing the Topology
• ECUs and interconnecting Networks
• Designing the Communication Matrix and Data Mapping
Tags:atp.EnumerationLiteralIndex=3
Class BswAsynchronousServerCallPoint
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note Represents an asynchronous procedure call point via the BSW Scheduler.
Base ARObject, BswModuleCallPoint, Referrable
Attribute Type Mult. Kind Note
calledEntry BswModuleClientServer 1 ref The entry to be called.
Entry
Class BswAsynchronousServerCallResultPoint
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note The callback point for an BswAsynchronousServerCallPoint i.e. the point at which the result can be
retrieved from the BSW Scheduler.
5
4
Class BswAsynchronousServerCallResultPoint
Base ARObject, BswModuleCallPoint, Referrable
Attribute Type Mult. Kind Note
asynchronous BswAsynchronous 1 ref The call point invoking the call to which the result belongs.
ServerCallPoint ServerCallPoint
Class BswBackgroundEvent
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note A recurring BswEvent which is used to perform background activities. It is similar to a BswTimingEvent
but has no fixed time period and is activated only with low priority.
Base ARObject, AbstractEvent, BswEvent, BswScheduleEvent, Identifiable, MultilanguageReferrable,
Referrable
Attribute Type Mult. Kind Note
– – – – –
Table D.40: BswBackgroundEvent
Class BswCalledEntity
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note BSW module entity which is designed to be called from another BSW module or cluster.
Base ARObject, BswModuleEntity , ExecutableEntity , Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
– – – – –
Table D.41: BswCalledEntity
Class BswDataReceivedEvent
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note This event is thrown on reception of the referenced data via Sender-Receiver-Communication over the
BSW Scheduler.
Base ARObject, AbstractEvent, BswEvent, BswScheduleEvent, Identifiable, MultilanguageReferrable,
Referrable
Attribute Type Mult. Kind Note
data VariableDataPrototype 1 ref The received data.
Class BswExclusiveAreaPolicy
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note The ExclusiveArea for which the BSW Scheduler using this policy.
Base ARObject, BswApiOptions
Attribute Type Mult. Kind Note
apiPrinciple ApiPrincipleEnum 0..1 attr Specifies for this ExclusiveArea if either one common set
of Enter and Exit APIs for the whole BSW module is
requested from the SchM or if the set of Enter and Exit
APIs is expected per BswModuleEntity. The default value
is "common".
exclusiveArea ExclusiveArea 1 ref The ExclusiveArea for which the BSW Scheduler using
this policy.
Enumeration BswExecutionContext
Package M2::AUTOSARTemplates::BswModuleTemplate::BswInterfaces
Note Specifies the execution context required or guaranteed for the call associated with this service.
Literal Description
hook Context of an OS "hook" routine always
Tags:atp.EnumerationLiteralIndex=0
interruptCat1 CAT1 interrupt context always
Tags:atp.EnumerationLiteralIndex=1
interruptCat2 CAT2 interrupt context always
Tags:atp.EnumerationLiteralIndex=2
task Task context always
Tags:atp.EnumerationLiteralIndex=3
unspecified The execution context is not specified by the API
Tags:atp.EnumerationLiteralIndex=4
Class BswExternalTriggerOccurredEvent
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note A BswEvent resulting from a trigger released by another module or cluster.
Base ARObject, AbstractEvent, BswEvent, BswScheduleEvent, Identifiable, MultilanguageReferrable,
Referrable
Attribute Type Mult. Kind Note
trigger Trigger 1 ref The trigger associated with this event. The trigger is
external to this module.
Table D.47: BswExternalTriggerOccurredEvent
Class BswImplementation
Package M2::AUTOSARTemplates::BswModuleTemplate::BswImplementation
Note Contains the implementation specific information in addition to the generic specification (BswModule
Description and BswBehavior). It is possible to have several different BswImplementations referring to
the same BswBehavior.
Tags:atp.recommendedPackage=BswImplementations
Base ARElement, ARObject, CollectableElement, Identifiable, Implementation, MultilanguageReferrable,
PackageableElement, Referrable
Attribute Type Mult. Kind Note
arRelease RevisionLabelString 1 attr Version of the AUTOSAR Release on which this
Version implementation is based. The numbering contains three
levels (major, minor, revision) which are defined by
AUTOSAR.
behavior BswInternalBehavior 1 ref The behavior of this implementation.
This relation is made as an association because
• it follows the pattern of the SWCT
• since ARElement cannot be splitted, but we want
supply the implementation later, the Bsw
Implementation is not aggregated in BswBehavior
preconfigured EcucModule * ref Reference to the set of preconfigured (i.e. fixed)
Configuration ConfigurationValues configuration values for this BswImplementation.
If the BswImplementation represents a cluster of several
modules, more than one EcucModuleConfigurationValues
element can be referred (at most one per module),
otherwise at most one such element can be referred.
Tags:xml.roleWrapperElement=true
recommended EcucModule * ref Reference to one or more sets of recommended
Configuration ConfigurationValues configuration values for this module or module cluster.
vendorApiInfix Identifier 0..1 attr In driver modules which can be instantiated several times
on a single ECU, SRS_BSW_00347 requires that the
names of files, APIs, published parameters and memory
allocation keywords are extended by the vendorId and a
vendor specific name. This parameter is used to specify
the vendor specific name. In total, the implementation
specific API name is generated as follows: <Module
Name>_<vendorId>_ <vendorApiInfix>_<API name from
SWS>.
E.g. assuming that the vendorId of the implementer is
123 and the implementer chose a vendorApiInfix of
"v11r456" an API name Can_Write defined in the SWS
will translate to Can_123_v11r456_Write.
5
5
4
Class BswImplementation
4
This attribute is mandatory for all modules with upper
multiplicity > 1. It shall not be used for modules with
upper multiplicity =1.
See also SWS_BSW_00102.
vendorSpecific EcucModuleDef * ref Reference to
ModuleDef
• the vendor specific EcucModuleDef used in this
BswImplementation if it represents a single
module
• several EcucModuleDefs used in this Bsw
Implementation if it represents a cluster of
modules
• one or no EcucModuleDefs used in this Bsw
Implementation if it represents a library
Tags:xml.roleWrapperElement=true
Class BswInternalBehavior
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note Specifies the behavior of a BSW module or a BSW cluster w.r.t. the code entities visible by the BSW
Scheduler. It is possible to have several different BswInternalBehaviors referring to the same BswModule
Description.
Base ARObject, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, InternalBehavior , Multilanguage
Referrable, Referrable
Attribute Type Mult. Kind Note
arTypedPer VariableDataPrototype * aggr Defines an AUTOSAR typed memory-block that needs to
Instance be available for each instance of the Basic Software
Memory Module. The aggregation of arTypedPerInstanceMemory
is subject to variability with the purpose to support
variability in the Basic Software Module’s
implementations. Typically different algorithms in the
implementation are requiring different number of memory
objects.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=arTypedPerInstanceMemory.shortName, ar
TypedPerInstanceMemory.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
bswPerInstance BswPerInstance * aggr Policy for a arTypedPerInstanceMemory The policy
MemoryPolicy MemoryPolicy selects the options of the Schedule Manager API
generation.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=bswPerInstanceMemoryPolicy, bswPer
InstanceMemoryPolicy.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
clientPolicy BswClientPolicy * aggr Policy for a requiredClientServerEntry. The policy selects
the options of the Schedule Manager API generation.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=clientPolicy, clientPolicy.variationPoint.short
Label
vh.latestBindingTime=preCompileTime
5
4
Class BswInternalBehavior
distinguished BswDistinguished * aggr Indicates an abstract partition context in which the
Partition Partition enclosing BswModuleEntity can be executed.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=distinguishedPartition.shortName,
distinguishedPartition.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=60
entity BswModuleEntity * aggr A code entity for which the behavior is described
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=entity.shortName, entity.variationPoint.short
Label
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=5
event BswEvent * aggr An event required by this module behavior.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=event.shortName, event.variationPoint.short
Label
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=10
exclusiveArea BswExclusiveArea * aggr Policy for an ExclusiveArea in this BswInternalBehavior.
Policy Policy The policy selects the options of the Schedule Manager
API generation.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=exclusiveAreaPolicy, exclusiveArea
Policy.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
includedData IncludedDataTypeSet * aggr The includedDataTypeSet is used by a basic software
TypeSet module for its implementation.
Stereotypes: atpSplitable
Tags:atp.Splitkey=includedDataTypeSet
internal BswInternalTriggering * aggr An internal triggering point.
TriggeringPoint Point
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=internalTriggeringPoint.shortName, internal
TriggeringPoint.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=2
internal BswInternalTriggering * aggr Policy for an internalTriggeringPoint in this BswInternal
TriggeringPoint PointPolicy Behavior.. The policy selects the options of the Schedule
Policy Manager API generation.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=internalTriggeringPointPolicy, internal
TriggeringPointPolicy.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
5
4
Class BswInternalBehavior
modeReceiver BswModeReceiver * aggr Implementation policy for the reception of mode switches.
Policy Policy
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=modeReceiverPolicy, modeReceiver
Policy.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=25
modeSender BswModeSenderPolicy * aggr Implementation policy for providing a mode group.
Policy
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=modeSenderPolicy, modeSender
Policy.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=20
parameterPolicy BswParameterPolicy * aggr Policy for a perInstanceParameter in this BswInternal
Behavior. The policy selects the options of the Schedule
Manager API generation.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=parameterPolicy, parameterPolicy.variation
Point.shortLabel
vh.latestBindingTime=preCompileTime
perInstance ParameterData * aggr Describes a read only memory object containing
Parameter Prototype characteristic value(s) needed by this BswInternal
Behavior. The role name perInstanceParameter is chosen
in analogy to the similar role in the context of SwcInternal
Behavior.
In contrast to constantMemory, this object is not allocated
locally by the module’s code, but by the BSW Scheduler
and it is accessed from the BSW module via the BSW
Scheduler API. The main use case is the support of
software emulation of calibration data.
The aggregation is subject to variability with the purpose
to support implementation variants.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=perInstanceParameter.shortName, per
InstanceParameter.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=45
receptionPolicy BswDataReception * aggr Data reception policy for inter-partition and/or inter-core
Policy communication.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=receptionPolicy, receptionPolicy.variation
Point.shortLabel
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=55
releasedTrigger BswReleasedTrigger * aggr Policy for a releasedTrigger. The policy selects the
Policy Policy options of the Schedule Manager API generation.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=releasedTriggerPolicy, releasedTrigger
Policy.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
5
4
Class BswInternalBehavior
schedulerName BswSchedulerName * aggr Optional definition of one or more prefixes to be used for
Prefix Prefix the BswScheduler.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=schedulerNamePrefix.shortName, scheduler
NamePrefix.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=50
sendPolicy BswDataSendPolicy * aggr Policy for a providedData. The policy selects the options
of the Schedule Manager API generation.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=sendPolicy, sendPolicy.variationPoint.short
Label
vh.latestBindingTime=preCompileTime
service BswService * aggr Defines the requirements on AUTOSAR Services for a
Dependency Dependency particular item.
The aggregation is subject to variability with the purpose
to support the conditional existence of ServiceNeeds.
The aggregation is splitable in order to support that
ServiceNeeds might be provided in later development
steps.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=serviceDependency.ident.shortName,
serviceDependency.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=40
triggerDirect BswTriggerDirect * aggr Specifies a trigger to be directly implemented via OS
Implementation Implementation calls.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=triggerDirectImplementation, triggerDirect
Implementation.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=15
variationPoint VariationPointProxy * aggr Proxy of a variation points in the C/C++ implementation.
Proxy
Stereotypes: atpSplitable
Tags:atp.Splitkey=variationPointProxy.shortName
Class BswInternalTriggerOccurredEvent
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note A BswEvent, which can happen sporadically. The event is activated by explicit calls from the module to
the BSW Scheduler. The main purpose for such an event is to cause a context switch, e.g. from an ISR
context into a task context. Activation and switching are handled within the same module or cluster only.
Base ARObject, AbstractEvent, BswEvent, BswScheduleEvent, Identifiable, MultilanguageReferrable,
Referrable
Attribute Type Mult. Kind Note
eventSource BswInternalTriggering 1 ref The activation point is the source of this event.
Point
Table D.50: BswInternalTriggerOccurredEvent
Class BswInternalTriggeringPoint
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note Represents the activation point for one or more BswInternalTriggerOccurredEvents.
Base ARObject, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
swImplPolicy SwImplPolicyEnum 0..1 attr This attribute, when set to value queued, specifies a
queued processing of the internal trigger event.
Class BswInterruptEntity
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note BSW module entity, which is designed to be triggered by an interrupt.
Base ARObject, BswModuleEntity , ExecutableEntity , Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
interrupt BswInterruptCategory 1 attr Category of the interrupt
Category
interruptSource String 1 attr Allows a textual documentation of the intended interrupt
source.
Table D.52: BswInterruptEntity
Class BswModeReceiverPolicy
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note Specifies the details for the reception of a mode switch for the referred mode group.
Base ARObject
Attribute Type Mult. Kind Note
enhancedMode Boolean 0..1 attr This controls the creation of the enhanced mode API that
Api returns information about the previous mode and the next
mode. If set to TRUE the enhanced mode API is
supposed to be generated. For more details please refer
to the SWS_RTE.
requiredMode ModeDeclarationGroup 1 ref The required mode group for which the policy is specified.
Group Prototype
supports Boolean 1 attr Specifies whether the module can handle the reception of
Asynchronous an asynchronous mode switch (true) or not (false).
ModeSwitch
Class BswModeSenderPolicy
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note Specifies the details for the sending of a mode switch for the referred mode group.
Base ARObject
Attribute Type Mult. Kind Note
ackRequest BswModeSwitchAck 0..1 aggr Request for acknowledgement
Request
enhancedMode Boolean 0..1 attr This controls the creation of the enhanced mode API that
Api returns information about the previous mode and the next
mode. If set to TRUE the enhanced mode API is
supposed to be generated. For more details please refer
to the SWS_RTE.
5
4
Class BswModeSenderPolicy
providedMode ModeDeclarationGroup 1 ref The provided mode group for which the policy is specified.
Group Prototype
queueLength PositiveInteger 1 attr Length of call queue on the sender side. The queue is
implemented by the RTE resp.BswScheduler. The value
shall be greater or equal to 0. Setting the value of queue
Length to 0 implies non-queued communication.
Class BswModeSwitchAckRequest
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note Requests acknowledgements that a mode switch has been processed successfully
Base ARObject
Attribute Type Mult. Kind Note
timeout TimeValue 1 attr Number of seconds before an error is reported.
Class BswModeSwitchEvent
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note A BswEvent resulting from a mode switch.
Base ARObject, AbstractEvent, BswEvent, BswScheduleEvent, Identifiable, MultilanguageReferrable,
Referrable
Attribute Type Mult. Kind Note
activation ModeActivationKind 1 attr Kind of activation w.r.t. to the referred mode.
mode (ordered) ModeDeclaration 0..2 iref Reference to one or two Modes that initiate the Mode
Switch Event.
InstanceRef implemented by:ModeInBswModule
DescriptionInstanceRef
Class BswModeSwitchedAckEvent
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note The event is raised after a switch of the referenced mode group has been acknowledged or an error
occurs. The referenced mode group shall be provided by this module.
Base ARObject, AbstractEvent, BswEvent, BswScheduleEvent, Identifiable, MultilanguageReferrable,
Referrable
Attribute Type Mult. Kind Note
modeGroup ModeDeclarationGroup 1 ref A mode group provided by this module. The
Prototype acknowledgement of a switch of this group raises this
event.
Table D.57: BswModeSwitchedAckEvent
4
Class BswModuleCallPoint (abstract)
Subclasses BswAsynchronousServerCallPoint, BswAsynchronousServerCallResultPoint, BswDirectCallPoint, Bsw
SynchronousServerCallPoint
Attribute Type Mult. Kind Note
context BswDistinguished * ref The existence of this reference indicates that the call
Limitation Partition point is used only in the context of the referred Bsw
DistinguishedPartitions.
Class BswModuleClientServerEntry
Package M2::AUTOSARTemplates::BswModuleTemplate::BswInterfaces
Note This meta-class represents a single API entry into the BSW module or cluster that has the ability to be
called in client-server fashion via the BSW Scheduler.
In this regard it is more special than BswModuleEntry and can be seen as a wrapper around the Bsw
ModuleEntry to which it refers (property encapsulatedEntry).
Tags:atp.recommendedPackage=BswModuleEntrys
Base ARObject, Referrable
Attribute Type Mult. Kind Note
encapsulated BswModuleEntry 1 ref The underlying BswModuleEntry.
Entry
Tags:xml.sequenceOffset=5
isReentrant Boolean 0..1 attr Reentrancy from the viewpoint of clients invoking the
service via the BSW Scheduler:
• True: Enables the service to be invoked again,
before the service has finished.
• False: It is prohibited to invoke the service again
before is has finished.
Tags:xml.sequenceOffset=10
isSynchronous Boolean 0..1 attr Synchronicity from the viewpoint of clients invoking the
service via the BSW Scheduler:
• True: This calls a synchronous service, i.e. the
service is completed when the call returns.
• False: The service (on semantical level) may not
be complete when the call returns.
Tags:xml.sequenceOffset=15
Class BswModuleDependency
Package M2::AUTOSARTemplates::BswModuleTemplate::BswInterfaces
Note This class collects the dependencies of a BSW module or cluster on a certain other BSW module.
Base ARObject, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
targetModuleId PositiveInteger 0..1 attr AUTOSAR identifier of the target module of which the
dependencies are defined.
This information is optional, because the target module
may also be identified by targetModuleRef.
Tags:xml.sequenceOffset=5
5
4
Class BswModuleDependency
targetModule BswModuleDescription 0..1 ref Reference to the target module. It is an <<atpUriDef>>
Ref because the reference shall be used to identify the target
module without actually needing the description of that
target module.
Stereotypes: atpUriDef; atpVariation
Tags:
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=7
Class BswModuleDescription
Package M2::AUTOSARTemplates::BswModuleTemplate::BswOverview
Note Root element for the description of a single BSW module or BSW cluster. In case it describes a BSW
module, the short name of this element equals the name of the BSW module.
Tags:atp.recommendedPackage=BswModuleDescriptions
Base ARElement, ARObject, AtpBlueprint, AtpBlueprintable, AtpClassifier , AtpFeature, AtpStructureElement,
CollectableElement, Identifiable, MultilanguageReferrable, PackageableElement, Referrable
Attribute Type Mult. Kind Note
bswModule BswModuleDependency * aggr Describes the dependency to another BSW module.
Dependency
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=bswModuleDependency.shortName, bsw
ModuleDependency.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=20
bswModule SwComponent 0..1 aggr This adds a documentation to the BSW module.
Documentation Documentation
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=bswModuleDocumentation, bswModule
Documentation.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=6
expectedEntry BswModuleEntry * ref Indicates an entry which is required by this module.
Replacement of outgoingCallback / requiredEntry.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=expectedEntry.bswModuleEntry, expected
Entry.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
implemented BswModuleEntry * ref Specifies an entry provided by this module which can be
Entry called by other modules. This includes "main" functions,
interrupt routines, and callbacks. Replacement of
providedEntry / expectedCallback.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=implementedEntry.bswModuleEntry,
implementedEntry.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
5
4
Class BswModuleDescription
internalBehavior BswInternalBehavior * aggr The various BswInternalBehaviors associated with a Bsw
ModuleDescription can be distributed over several
physical files. Therefore the aggregation is <<atp
Splitable>>.
Stereotypes: atpSplitable
Tags:
atp.Splitkey=internalBehavior.shortName
xml.sequenceOffset=65
moduleId PositiveInteger 0..1 attr Refers to the BSW Module Identifier defined by the
AUTOSAR standard. For non-standardized modules, a
proprietary identifier can be optionally chosen.
Tags:xml.sequenceOffset=5
providedClient BswModuleClientServer * aggr Specifies that this module provides a client server entry
ServerEntry Entry which can be called from another parition or core.This
entry is declared locally to this context and will be
connected to the requiredClientServerEntry of another or
the same module via the configuration of the BSW
Scheduler.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=providedClientServerEntry.shortName,
providedClientServerEntry.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=45
providedData VariableDataPrototype * aggr Specifies a data prototype provided by this module in
order to be read from another partition or core.The
providedData is declared locally to this context and will be
connected to the requiredData of another or the same
module via the configuration of the BSW Scheduler.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=providedData.shortName, provided
Data.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=55
providedMode ModeDeclarationGroup * aggr A set of modes which is owned and provided by this
Group Prototype module or cluster. It can be connected to the required
ModeGroups of other modules or clusters via the
configuration of the BswScheduler. It can also be
synchronized with modes provided via ports by an
associated ServiceSwComponentType, EcuAbstraction
SwComponentType or ComplexDeviceDriverSw
ComponentType.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=providedModeGroup.shortName, provided
ModeGroup.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=25
releasedTrigger Trigger * aggr A Trigger released by this module or cluster. It can be
connected to the requiredTriggers of other modules or
clusters via the configuration of the BswScheduler. It can
also be synchronized with Triggers provided via ports by
an associated ServiceSwComponentType, Ecu
AbstractionSwComponentType or ComplexDeviceDriver
SwComponentType.
5
5
4
Class BswModuleDescription
4
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=releasedTrigger.shortName, released
Trigger.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=35
requiredClient BswModuleClientServer * aggr Specifies that this module requires a client server entry
ServerEntry Entry which can be implemented on another parition or
core.This entry is declared locally to this context and will
be connected to the providedClientServerEntry of another
or the same module via the configuration of the BSW
Scheduler.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=requiredClientServerEntry.shortName,
requiredClientServerEntry.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=50
requiredData VariableDataPrototype * aggr Specifies a data prototype required by this module in oder
to be provided from another partition or core.The required
Data is declared locally to this context and will be
connected to the providedData of another or the same
module via the configuration of the BswScheduler.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=requiredData.shortName, required
Data.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=60
requiredMode ModeDeclarationGroup * aggr Specifies that this module or cluster depends on a certain
Group Prototype mode group. The requiredModeGroup is local to this
context and will be connected to the providedModeGroup
of another module or cluster via the configuration of the
BswScheduler.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=requiredModeGroup.shortName, required
ModeGroup.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=30
requiredTrigger Trigger * aggr Specifies that this module or cluster reacts upon an
external trigger.This requiredTrigger is declared locally to
this context and will be connected to the providedTrigger
of another module or cluster via the configuration of the
BswScheduler.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=requiredTrigger.shortName, required
Trigger.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=40
Class BswModuleEntry
Package M2::AUTOSARTemplates::BswModuleTemplate::BswInterfaces
Note This class represents a single API entry (C-function prototype) into the BSW module or cluster.
The name of the C-function is equal to the short name of this element with one exception: In case of
multiple instances of a module on the same CPU, special rules for "infixes" apply, see description of class
BswImplementation.
Tags:atp.recommendedPackage=BswModuleEntrys
Base ARElement, ARObject, AtpBlueprint, AtpBlueprintable, CollectableElement, Identifiable, Multilanguage
Referrable, PackageableElement, Referrable
Attribute Type Mult. Kind Note
argument SwServiceArg * aggr An argument belonging to this BswModuleEntry.
(ordered)
Stereotypes: atpVariation
Tags:
vh.latestBindingTime=blueprintDerivationTime
xml.sequenceOffset=45
bswEntryKind BswEntryKindEnum 0..1 attr This describes whether the entry is concrete or abstract.
If the attribute is missing the entry is considered as
concrete.
Tags:xml.sequenceOffset=40
callType BswCallType 1 attr The type of call associated with this service.
Tags:xml.sequenceOffset=25
execution BswExecutionContext 1 attr Specifies the execution context which is required (in case
Context of entries into this module) or guaranteed (in case of
entries called from this module) for this service.
Tags:xml.sequenceOffset=30
function NameToken 0..1 attr This attribute is used to control the generation of function
Prototype prototypes. If set to "RTE", the RTE generates the
Emitter function prototypes in the Module Interlink Header File.
isReentrant Boolean 1 attr Reentrancy from the viewpoint of function callers:
• True: Enables the service to be invoked again,
before the service has finished.
• False: It is prohibited to invoke the service again
before is has finished.
Tags:xml.sequenceOffset=15
isSynchronous Boolean 1 attr Synchronicity from the viewpoint of function callers:
• True: This calls a synchronous service, i.e. the
service is completed when the call returns.
• False: The service (on semantical level) may not
be complete when the call returns.
Tags:xml.sequenceOffset=20
returnType SwServiceArg 0..1 aggr The return type belonging to this bswModuleEntry.
Tags:xml.sequenceOffset=40
role Identifier 0..1 attr Specifies the role of the entry in the given context. It shall
be equal to the standardized name of the service call,
especially in cases where no ServiceIdentifier is specified,
e.g. for callbacks. Note that the ShortName is not always
sufficient because it maybe vendor specific (e.g. for
callbacks which can have more than one instance).
Tags:xml.sequenceOffset=10
5
4
Class BswModuleEntry
serviceId PositiveInteger 0..1 attr Refers to the service identifier of the Standardized
Interfaces of AUTOSAR basic software. For
non-standardized interfaces, it can optionally be used for
proprietary identification.
Tags:xml.sequenceOffset=5
swServiceImpl SwServiceImplPolicy 1 attr Denotes the implementation policy as a standard function
Policy Enum call, inline function or macro. This has to be specified on
interface level because it determines the signature of the
call.
Tags:xml.sequenceOffset=35
Class BswOperationInvokedEvent
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note This event is thrown on operation invocation in Client-Server-Communication via the BSW Scheduler. Its
"entry" reference provides the BswClientServerEntry that is called subsequently.
Note this event is not needed in case of direct function calls.
Base ARObject, AbstractEvent, BswEvent, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
entry BswModuleClientServer 1 ref The providedClientServerEntry invoked by this event.
Entry
Class BswOsTaskExecutionEvent
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note This BswEvent is supposed to execute BswSchedulableEntitys which have to react on the execution of
specific OsTasks. Therefore, this event is unconditionally raised whenever the OsTask on which it is
mapped is executed. The main use case for this event is scheduling of Runnables of Complex Drivers
which have to react on task executions.
Tags:atp.Status=draft
Base ARObject, AbstractEvent, BswEvent, BswScheduleEvent, Identifiable, MultilanguageReferrable,
Referrable
Attribute Type Mult. Kind Note
– – – – –
Table D.65: BswOsTaskExecutionEvent
Class BswQueuedDataReceptionPolicy
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note Reception policy attributes specific for queued receiving.
Base ARObject, BswApiOptions, BswDataReceptionPolicy
Attribute Type Mult. Kind Note
queueLength PositiveInteger 1 attr Length of queue for received events.
Class BswSchedulableEntity
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note BSW module entity, which is designed for control by the BSW Scheduler. It may for example implement a
so-called "main" function.
Base ARObject, BswModuleEntity , ExecutableEntity , Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
– – – – –
Table D.67: BswSchedulableEntity
Class BswSchedulerNamePrefix
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note A prefix to be used in names of generated code artifacts which make up the interface of a BSW module
to the BswScheduler.
Base ARObject, ImplementationProps, Referrable
Attribute Type Mult. Kind Note
– – – – –
Table D.69: BswSchedulerNamePrefix
Class BswSynchronousServerCallPoint
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note Represents a synchronous procedure call point via the BSW Scheduler.
Base ARObject, BswModuleCallPoint, Referrable
Attribute Type Mult. Kind Note
calledEntry BswModuleClientServer 1 ref The entry to be called.
Entry
calledFrom ExclusiveAreaNesting 0..1 ref This indicates that the call point is located at the deepest
WithinExclusive Order level inside one or more ExclusiveAreas that are nested
Area in the given order.
Class BswTimingEvent
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note A recurring BswEvent driven by a time period.
Base ARObject, AbstractEvent, BswEvent, BswScheduleEvent, Identifiable, MultilanguageReferrable,
Referrable
Attribute Type Mult. Kind Note
5
4
Class BswTimingEvent
period TimeValue 1 attr Requirement for the time period (in seconds) by which
this event is triggered.
Class BswTriggerDirectImplementation
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note Specifies a released trigger to be directly implemented via OS calls, for example in a Complex Driver
module.
Base ARObject
Attribute Type Mult. Kind Note
cat2Isr Identifier 0..1 attr The name of the OS category 2 ISR, which is controlled
by the referred trigger. This means, that the module
manages the category 2 ISR (e.g. according hardware
initialization and enabling of ISR). Instead of calling an
RTE / SchM API to raise the appropriate events in
components or modules receiving the trigger, this ISR
directly schedules the triggered ExecutableEntitys. The
ISR name is required by the integrator to map the Bsw
Events and RTEEvents to this ISR.
masteredTrigger Trigger 1 ref The trigger which is directly mastered by this module.
There may be several different BswTriggerDirect
Implementations mastering the same Trigger. This may
be required e.g. due to memory partitioning.
task Identifier 0..1 attr The name of the OS task, which is controlled by the
referred trigger. This means, that the module uses the
trigger condition to directly activate an OS task instead of
calling an API of the BswScheduler. The task name is
required by the RTE generator resp. BswScheduler to
raise the appropriate events in components or modules
receiving the trigger.
Class BswVariableAccess
Package M2::AUTOSARTemplates::BswModuleTemplate::BswBehavior
Note The presence of a BswVariableAccess implies that a BswModuleEntity needs access to a VariableData
Prototype via the BSW Scheduler.
The kind of access is specified by the role in which the class is used.
Base ARObject, Referrable
Attribute Type Mult. Kind Note
accessed VariableDataPrototype 1 ref The data accessed via the BSW Scheduler.
Variable
context BswDistinguished * ref The existence of this reference indicates that the variable
Limitation Partition is recevied resp. sent only in the context of the referred
BswDistinguishedPartitions.
Class BufferProperties
Package M2::AUTOSARTemplates::SystemTemplate::Transformer
Note Configuration of the buffer properties the transformer needs to work.
Base ARObject
Attribute Type Mult. Kind Note
buffer CompuScale 0..1 aggr If the transformer changes the size of the data, the
Computation CompuScale can be used to specify a rule to derive the
size of the output data based on the size of the input data.
headerLength Integer 1 attr Defines the length of the header (in bits) this transformer
will add in front of the data.
inPlace Boolean 1 attr If set, the transformer uses the input buffer as output
buffer.
Table D.74: BufferProperties
Class BulkNvDataDescriptor
Package M2::AUTOSARTemplates::SWComponentTemplate::NvBlockComponent
Note This meta-class represents one bulk NV Data Block that is read-only for the application software. The
purpose of a bulk NV Data Block is to provide access to information uploaded to the vehicle at e.g. the
end of the production line.
Base ARObject, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, MultilanguageReferrable,
Referrable
Attribute Type Mult. Kind Note
bulkNvBlock VariableDataPrototype 0..1 aggr This aggregation represents the actual bulk NVBlock.
nvBlockData NvBlockDataMapping * aggr Defines the mapping between the VariableData
Mapping Prototypes in the NvBlockComponents ports and the
VariableDataPrototypes of the non-volatile memory.
The aggregation of NvBlockDataMapping is subject to
variability with the purpose to support the conditional
existence of nv data ports.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
Enumeration CSTransformerErrorReactionEnum
Package M2::AUTOSARTemplates::SystemTemplate::Transformer
Note Possible kinds of error reaction in case of a hard transformer error.
Literal Description
applicationOnly The application is responsible for any error reaction. No autonomous error reaction of RTE and
transformer.
Tags:atp.EnumerationLiteralIndex=0
autonomous RTE and Transformer coordinate an autonomous error reaction on their own.
Tags:atp.EnumerationLiteralIndex=1
Class CalibrationParameterValue
Package M2::AUTOSARTemplates::SWComponentTemplate::MeasurementAndCalibration::CalibrationParameter
Values
5
4
Class CalibrationParameterValue
Note Specifies instance specific calibration parameter values used to initialize the memory objects
implementing calibration parameters in the generated RTE code.
RTE generator will use the implInitValue to override the initial values specified for the DataPrototypes of a
component type.
The applInitValue is used to exchange init values with the component vendor not publishing the
transformation algorithm between ApplicationDataTypes and ImplementationDataTypes or defining an
instance specific initialization of components which are only defined with ApplicationDataTypes.
Note: If both representations of init values are available these need to represent the same content.
Note further that in this case an explicit mapping of ValueSpecification is not implemented because
calibration parameters are delivered back after the calibration phase.
Base ARObject
Attribute Type Mult. Kind Note
applInitValue ValueSpecification 0..1 aggr This is the initial value specification structured according
to the ApplicationDataType
implInitValue ValueSpecification 0..1 aggr This is the initial value specification structured according
to the ImplementationDataType
initialized FlatInstanceDescriptor 0..1 ref This represents the parameter that is initialized by the
Parameter CalibrationParameterValue.
Class ClientIdDefinition
Package M2::AUTOSARTemplates::SystemTemplate
Note Several clients in one client-ECU can communicate via inter-ECU client-server communication with a
server on a different ECU, if a client identifier is used to distinguish the different clients. The Client
Identifier of the transaction handle that is used by the RTE can be defined by this element.
Base ARObject, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
clientId Numerical 1 attr The Client Identifier of the transaction handle used for an
inter-ECU client server communication is defined by this
attribute. If defined the RTE generator shall use this client
Id.
clientServer ClientServerOperation 1 iref Reference to the ClientServerOperation that is called by
Operation the client.
InstanceRef implemented by:OperationInSystem
InstanceRef
Table D.78: ClientIdDefinition
Class ClientServerApplicationErrorMapping
Package M2::AUTOSARTemplates::SWComponentTemplate::PortInterface
Note This meta-class represents the ability to map ApplicationErrors onto each other.
Base ARObject
Attribute Type Mult. Kind Note
firstApplication ApplicationError 0..1 ref This represents the first ApplicationError in the context of
Error the ClientServerApplicationErrorMapping.
second ApplicationError 0..1 ref This represents the second ApplicationError in the
ApplicationError context of the ClientServerApplicationErrorMapping.
Class ClientServerInterface
Package M2::AUTOSARTemplates::SWComponentTemplate::PortInterface
Note A client/server interface declares a number of operations that can be invoked on a server by a client.
Tags:atp.recommendedPackage=PortInterfaces
Base ARElement, ARObject, AtpBlueprint, AtpBlueprintable, AtpClassifier , AtpType, CollectableElement,
Identifiable, MultilanguageReferrable, PackageableElement, PortInterface, Referrable
Attribute Type Mult. Kind Note
operation ClientServerOperation * aggr ClientServerOperation(s) of this ClientServerInterface.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=blueprintDerivationTime
possibleError ApplicationError * aggr Application errors that are defined as part of this interface.
Class ClientServerInterfaceMapping
Package M2::AUTOSARTemplates::SWComponentTemplate::PortInterface
Note Defines the mapping of ClientServerOperations in context of two different ClientServerInterfaces.
Base ARObject, AtpBlueprint, AtpBlueprintable, Identifiable, MultilanguageReferrable, PortInterfaceMapping,
Referrable
Attribute Type Mult. Kind Note
errorMapping ClientServerApplication * aggr Map two different ApplicationErrors defined in the context
ErrorMapping of two different ClientServerInterfaces.
operation ClientServerOperation * aggr Mapping of two ClientServerOperations in two different
Mapping Mapping ClientServerInterfaces
Class ClientServerOperation
Package M2::AUTOSARTemplates::SWComponentTemplate::PortInterface
Note An operation declared within the scope of a client/server interface.
Base ARObject, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, MultilanguageReferrable,
Referrable
Attribute Type Mult. Kind Note
argument ArgumentDataPrototype * aggr An argument of this ClientServerOperation
(ordered)
Stereotypes: atpVariation
Tags:vh.latestBindingTime=blueprintDerivationTime
diagArgIntegrity Boolean 0..1 attr This attribute shall only be used in the implementation of
diagnostic routines to support the case where input and
output arguments are allocated in a shared buffer and
might unintentionally overwrite input arguments by
tentative write operations to output arguments.
This situation can happen during sliced execution or while
output parameters are arrays (call by reference). The
value true means that the ClientServerOperation is aware
of the usage of a shared buffer and takes precautions to
avoid unintentional overwrite of input arguments.
If the attribute does not exist or is set to false the Client
ServerOperation does not have to consider the usage of a
shared buffer.
possibleError ApplicationError * ref Possible errors that may by raised by the referring
operation.
Class ClientServerToSignalMapping
Package M2::AUTOSARTemplates::SystemTemplate::DataMapping
Note This element maps the ClientServerOperation to call- and return-SystemSignals.
Base ARObject, DataMapping
Attribute Type Mult. Kind Note
callSignal SystemSignal 1 ref Reference to the callSignal to which the IN and INOUT
ArgumentDataPrototypes are mapped.
clientServer ClientServerOperation 1 iref Reference to a ClientServerOperation, which is mapped
Operation to a call SystemSignal and a return SystemSignal.
InstanceRef implemented by:OperationInSystem
InstanceRef
returnSignal SystemSignal 0..1 ref Reference to the returnSignal to which the OUT and
INOUT ArgumentDataPrototypes are mapped.
Tags:atp.Status=shallBecomeMandatory
Class Code
Package M2::AUTOSARTemplates::CommonStructure::Implementation
Note A generic code descriptor. The type of the code (source or object) is defined via the category attribute of
the associated engineering object.
Base ARObject, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
artifact AutosarEngineering * aggr Refers to the artifact belonging to this code descriptor.
Descriptor Object
callbackHeader ServiceNeeds * ref The association callbackHeader describes in which
header files the function declarations of callback functions
are provided to a service module. With this information
the service module can include the appropriate header
files in its configuration files.
Class ComplexDeviceDriverSwComponentType
Package M2::AUTOSARTemplates::SWComponentTemplate::Components
Note The ComplexDeviceDriverSwComponentType is a special AtomicSwComponentType that has direct
access to hardware on an ECU and which is therefore linked to a specific ECU or specific hardware. The
ComplexDeviceDriverSwComponentType introduces the possibility to link from the software
representation to its hardware description provided by the ECU Resource Template.
Tags:atp.recommendedPackage=SwComponentTypes
Base ARElement, ARObject, AtomicSwComponentType, AtpBlueprint, AtpBlueprintable, AtpClassifier , Atp
Type, CollectableElement, Identifiable, MultilanguageReferrable, PackageableElement, Referrable, Sw
ComponentType
Attribute Type Mult. Kind Note
hardware HwDescriptionEntity * ref Reference from the ComplexDeviceDriverSwComponent
Element Type to the description of the used HwElements.
Class CompositionSwComponentType
Package M2::AUTOSARTemplates::SWComponentTemplate::Composition
Note A CompositionSwComponentType aggregates SwComponentPrototypes (that in turn are typed by Sw
ComponentTypes) as well as SwConnectors for primarily connecting SwComponentPrototypes among
each others and towards the surface of the CompositionSwComponentType. By this means hierarchical
structures of software-components can be created.
Tags:atp.recommendedPackage=SwComponentTypes
Base ARElement, ARObject, AtpBlueprint, AtpBlueprintable, AtpClassifier , AtpType, CollectableElement,
Identifiable, MultilanguageReferrable, PackageableElement, Referrable, SwComponentType
Attribute Type Mult. Kind Note
component SwComponent * aggr The instantiated components that are part of this
Prototype composition. The aggregation of SwComponentPrototype
is subject to variability with the purpose to support the
conditional existence of a SwComponentPrototype.
Please be aware: if the conditional existence of Sw
ComponentPrototypes is resolved post-build the
deselected SwComponentPrototypes are still contained in
the ECUs build but the instances are inactive in in that
they are not scheduled by the RTE.
The aggregation is marked as atpSplitable in order to
allow the addition of service components to the ECU
extract during the ECU integration.
The use case for having 0 components owned by the
CompositionSwComponentType could be to deliver an
empty CompositionSwComponentType to e.g. a supplier
for filling the internal structure.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=component.shortName, component.variation
Point.shortLabel
vh.latestBindingTime=postBuild
connector SwConnector * aggr SwConnectors have the principal ability to establish a
connection among PortPrototypes. They can have many
roles in the context of a CompositionSwComponentType.
Details are refined by subclasses.
The aggregation of SwConnectors is subject to variability
with the purpose to support variant data flow.
The aggregation is marked as atpSplitable in order to
allow the extension of the ECU extract with AssemblySw
Connectors between ApplicationSwComponentTypes and
ServiceSwComponentTypes during the ECU integration.
5
5
4
Class CompositionSwComponentType
4
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=connector.shortName, connector.variation
Point.shortLabel
vh.latestBindingTime=postBuild
constantValue ConstantSpecification * ref Reference to the ConstantSpecificationMapping to be
Mapping MappingSet applied for initValues of PPortComSpecs and RPortCom
Spec.
Stereotypes: atpSplitable
Tags:atp.Splitkey=constantValueMapping
dataType DataTypeMappingSet * ref Reference to the DataTypeMapping to be applied for the
Mapping used ApplicationDataTypes in PortInterfaces.
Background: when developing subsystems it may happen
that ApplicationDataTypes are used on the surface of
CompositionSwComponentTypes. In this case it would be
reasonable to be able to also provide the intended
mapping to the ImplementationDataTypes. However, this
mapping shall be informal and not technically binding for
the implementors mainly because the RTE generator is
not concerned about the CompositionSwComponent
Types.
Rationale: if the mapping of ApplicationDataTypes on the
delegated and inner PortPrototype matches then the
mapping to ImplementationDataTypes is not impacting
compatibility.
Stereotypes: atpSplitable
Tags:atp.Splitkey=dataTypeMapping
instantiation InstantiationRTEEvent * aggr This allows to define instantiation specific properties for
RTEEventProps Props RTE Events, in particular for instance specific scheduling.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=instantiationRTEEventProps.shortLabel,
instantiationRTEEventProps.variationPoint.shortLabel
vh.latestBindingTime=codeGenerationTime
Class CompuConst
Package M2::MSR::AsamHdo::ComputationMethod
Note This meta-class represents the fact that the value of a computation method scale is constant.
Base ARObject
Attribute Type Mult. Kind Note
compuConst CompuConstContent 0..1 aggr This is the actual content of the constant compu method
ContentType scale.
Tags:
xml.roleElement=false
xml.roleWrapperElement=false
xml.sequenceOffset=10
xml.typeElement=false
xml.typeWrapperElement=false
Class CompuMethod
Package M2::MSR::AsamHdo::ComputationMethod
Note This meta-class represents the ability to express the relationship between a physical value and the
mathematical representation.
Note that this is still independent of the technical implementation in data types. It only specifies the
formula how the internal value corresponds to its physical pendant.
Tags:atp.recommendedPackage=CompuMethods
Base ARElement, ARObject, AtpBlueprint, AtpBlueprintable, CollectableElement, Identifiable, Multilanguage
Referrable, PackageableElement, Referrable
Attribute Type Mult. Kind Note
compuInternal Compu 0..1 aggr This specifies the computation from internal values to
ToPhys physical values.
Tags:xml.sequenceOffset=80
compuPhysTo Compu 0..1 aggr This represents the computation from physical values to
Internal the internal values.
Tags:xml.sequenceOffset=90
displayFormat DisplayFormatString 0..1 attr This property specifies, how the physical value shall be
displayed e.g. in documents or measurement and
calibration tools.
Tags:xml.sequenceOffset=20
unit Unit 0..1 ref This is the physical unit of the Physical values for which
the CompuMethod applies.
Tags:xml.sequenceOffset=30
Class CompuNominatorDenominator
Package M2::MSR::AsamHdo::ComputationMethod
Note This class represents the ability to express a polynomial either as Nominator or as Denominator.
Base ARObject
Attribute Type Mult. Kind Note
v (ordered) Numerical * attr this is the list of polynomial factors. Note that the first vf
represents the power=0. The polynomial is v[0] * xˆ0 +
v[1] * xˆ1 ...
Stereotypes: atpVariation
Tags:
vh.latestBindingTime=preCompileTime
xml.roleElement=true
xml.roleWrapperElement=false
xml.sequenceOffset=20
xml.typeElement=false
xml.typeWrapperElement=false
Class CompuRationalCoeffs
Package M2::MSR::AsamHdo::ComputationMethod
Note This meta-class represents the ability to express a rational function by specifying the coefficients of
nominator and denominator.
Base ARObject
Attribute Type Mult. Kind Note
5
4
Class CompuRationalCoeffs
compu CompuNominator 0..1 aggr This is the denominator of the expression.
Denominator Denominator
Tags:xml.sequenceOffset=30
compu CompuNominator 0..1 aggr This is the numerator of the rational expression.
Numerator Denominator
Tags:xml.sequenceOffset=20
Class CompuScale
Package M2::MSR::AsamHdo::ComputationMethod
Note This meta-class represents the ability to specify one segment of a segmented computation method.
Base ARObject
Attribute Type Mult. Kind Note
compuInverse CompuConst 0..1 aggr This is the inverse value of the constraint. This supports
Value the case that the scale is not reversible per se.
Tags:xml.sequenceOffset=60
compuScale CompuScaleContents 0..1 aggr This represents the computation details of the scale.
Contents
Tags:
xml.roleElement=false
xml.roleWrapperElement=false
xml.sequenceOffset=70
xml.typeElement=false
xml.typeWrapperElement=false
desc MultiLanguageOverview 0..1 aggr <desc> represents a general but brief description of the
Paragraph object in question.
Tags:xml.sequenceOffset=30
lowerLimit Limit 0..1 attr This specifies the lower limit of the scale.
Stereotypes: atpVariation
Tags:
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=40
mask PositiveInteger 0..1 attr In difference to all the other computational methods every
COMPU-SCALE will be applied including the bit MASK.
Therefore it is allowed for this type of COMPU-METHOD,
that COMPU-SCALES overlap.
To calculate the string reverse to a value, the string has to
be split and the according value for each substring has to
be summed up. The sum is finally transmitted.
The processing has to be done in order of the
COMPU-SCALE elements.
Tags:xml.sequenceOffset=35
shortLabel Identifier 0..1 attr This element specifies a short name for the particular
scale. The name can for example be used to derive a
programming language identifier.
Tags:xml.sequenceOffset=20
symbol CIdentifier 0..1 attr The symbol, if provided, is used by code generators to get
a C identifier for the CompuScale. The name will be used
as is for the code generation, therefore it needs to be
unique within the generation context.
Tags:xml.sequenceOffset=25
5
4
Class CompuScale
upperLimit Limit 0..1 attr This specifies the upper limit of a of the scale.
Stereotypes: atpVariation
Tags:
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=50
Class CompuScaleConstantContents
Package M2::MSR::AsamHdo::ComputationMethod
Note This meta-class represents the fact that a particular scale of the computation method is constant.
Base ARObject, CompuScaleContents
Attribute Type Mult. Kind Note
compuConst CompuConst 0..1 aggr This represents the fact that the scale is a constant. The
use case is mainly a non interpolated scale. It is a
simplification of the fact that a constant scale can also be
expressed as rational function of order 0.
Tags:xml.sequenceOffset=90
Class CompuScales
Package M2::MSR::AsamHdo::ComputationMethod
Note This meta-class represents the ability to stepwise express a computation method.
Base ARObject, CompuContent
Attribute Type Mult. Kind Note
compuScale CompuScale * aggr This represents one scale within the compu method. Note
(ordered) that it contains a Variationpoint in order to support
blueprints of enumerations.
Stereotypes: atpVariation
Tags:
vh.latestBindingTime=blueprintDerivationTime
xml.roleElement=true
xml.roleWrapperElement=true
xml.sequenceOffset=40
xml.typeElement=false
xml.typeWrapperElement=false
4
Class <<atpMixedString>> ConditionByFormula
bindingTime BindingTimeEnum 1 attr This attribute specifies the point in time when condition
may be evaluated at earliest. At this point in time all
referenced system constants shall have a value.
Tags:xml.attribute=true
Class ConsistencyNeeds
Package M2::AUTOSARTemplates::SWComponentTemplate::ImplicitCommunicationBehavior
Note This meta-class represents the ability to define requirements on the implicit communication behavior.
Base ARObject, AtpBlueprint, AtpBlueprintable, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
dpgDoesNot DataPrototypeGroup * aggr This group of VariableDataPrototypes does not require
Require coherency with respect to the implicit communication
Coherency behavior.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=dpgDoesNotRequireCoherency.shortName,
dpgDoesNotRequireCoherency.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
dpgRequires DataPrototypeGroup * aggr This group of VariableDataPrototypes requires coherency
Coherency with respect to the implicit communication behavior, i.e.
all read and write access to VariableDataPrototypes in the
DataPrototypeGroup by the RunnableEntitys of the
RunnableEntityGroup need to be handled in a coherent
manner.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=dpgRequiresCoherency.shortName, dpg
RequiresCoherency.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
regDoesNot RunnableEntityGroup * aggr This group of RunnableEntities does not require stability
RequireStability with respect to the implicit communication behavior.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=regDoesNotRequireStability.shortName, reg
DoesNotRequireStability.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
regRequires RunnableEntityGroup * aggr This group of RunnableEntities requires stability with
Stability respect to the implicit communication behavior, i.e. all
read and write access to VariableDataPrototypes in the
DataPrototypeGroup by the RunnableEntitys of the
RunnableEntityGroup need to be handled in a stable
manner.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=regRequiresStability.shortName, reg
RequiresStability.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
Class ConstantReference
Package M2::AUTOSARTemplates::CommonStructure::Constants
Note Instead of defining this value inline, a constant is referenced.
Base ARObject, ValueSpecification
Attribute Type Mult. Kind Note
constant ConstantSpecification 0..1 ref The referenced constant.
Class ConstantSpecificationMapping
Package M2::AUTOSARTemplates::CommonStructure::Constants
Note This meta-class is used to create an association of two ConstantSpecifications. One Constant
Specification is supposed to be defined in the application domain while the other should be defined in the
implementation domain.
Hence the ConstantSpecificationMapping needs to be used where a ConstantSpecification defined in
one domain needs to be associated to a ConstantSpecification in the other domain.
This information is crucial for the RTE generator.
Base ARObject
Attribute Type Mult. Kind Note
applConstant ConstantSpecification 0..1 ref A ConstantSpecification defined in the application
domain.
implConstant ConstantSpecification 0..1 ref A ConstantSpecification defined in the implementation
domain.
Table D.98: ConstantSpecificationMapping
Class CpSoftwareCluster
Package M2::AUTOSARTemplates::SystemTemplate::SoftwareCluster
Note This meta class provides the ability to define a CP Software Cluster. Each CP Software Cluster can be
integrated and build individually. It defines the sub-set of hierarchical tree(s) of Software Components
belonging to this CP Software Cluster. Resources required or provided by this CP Software Cluster are
given in the according mappings.
Tags:
atp.Status=draft
atp.recommendedPackage=CpSoftwareClusters
Base ARElement, ARObject, CollectableElement, Identifiable, MultilanguageReferrable, Packageable
Element, Referrable
Attribute Type Mult. Kind Note
swComponent SwComponent * aggr This is the colllection of SwComponentPrototype
Assignment PrototypeAssignment Assignments
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=swComponentAssignment, swComponent
Assignment.variationPoint.shortLabel
atp.Status=draft
vh.latestBindingTime=postBuild
swComposition CompositionSw * ref Software Components in the context of a CompositionSw
ComponentType ComponentType belonging to this CP Software Cluster.
This reference can be used to describe the belonging
SWCs when the CP Software Cluster is described out of
the context of a System, e.g. reusable CP Software
Cluster.
5
5
4
Class CpSoftwareCluster
4
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=swComposition.compositionSwComponent
Type, swComposition.variationPoint.shortLabel
atp.Status=draft
vh.latestBindingTime=systemDesignTime
Class CpSoftwareClusterCommunicationResource
Package M2::AUTOSARTemplates::SystemTemplate::SoftwareCluster
Note Represents a single resource required or provided by a CP Software Cluster which relates to the port
based communication on VFB level.
Tags:atp.Status=draft
Base ARObject, CpSoftwareClusterResource, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
comProps CpSoftwareCluster 0..1 aggr This aggregation supports the further qualification of the
Communication enclosing CpSoftwareClusterCommunicationRecource by
ResourceProps means of additional attributes depending on the nature of
the CpSoftwareClusterCommunicationRecource.
Class DataComProps
Package M2::AUTOSARTemplates::SystemTemplate::SoftwareCluster
Note Represents a single resource required or provided by a CP Software Cluster which relates to the port
based communication on VFB level.
Tags:atp.Status=draft
Base ARObject, CpSoftwareClusterCommunicationResourceProps
Attribute Type Mult. Kind Note
sendIndication SendIndicationEnum 0..1 attr Send indication behavior for last-is-the best data
communciation.
Table D.101: DataComProps
Class DataConstr
Package M2::MSR::AsamHdo::Constraints::GlobalConstraints
Note This meta-class represents the ability to specify constraints on data.
Tags:atp.recommendedPackage=DataConstrs
Base ARElement, ARObject, AtpBlueprint, AtpBlueprintable, CollectableElement, Identifiable, Multilanguage
Referrable, PackageableElement, Referrable
Attribute Type Mult. Kind Note
dataConstrRule DataConstrRule * aggr This is one particular rule within the data constraints.
Tags:
xml.roleElement=true
xml.roleWrapperElement=true
xml.sequenceOffset=30
xml.typeElement=false
xml.typeWrapperElement=false
Class DataPrototypeGroup
Package M2::AUTOSARTemplates::SWComponentTemplate::ImplicitCommunicationBehavior
Note This meta-class represents the ability to define a collection of DataPrototypes that are subject to the
formal definition of implicit communication behavior. The definition of the collection can be nested.
Base ARObject, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, MultilanguageReferrable,
Referrable
Attribute Type Mult. Kind Note
dataPrototype DataPrototypeGroup * iref This represents the ability to define nested groups of
Group VariableDataPrototypes.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
InstanceRef implemented by:InnerDataPrototypeGroup
InCompositionInstanceRef
implicitData VariableDataPrototype * iref This represents a collection of VariableDataPrototypes
Access that belong to the enclosing DataPrototypeGroup
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
InstanceRef implemented by:VariableDataPrototypeIn
CompositionInstanceRef
Class DataPrototypeMapping
Package M2::AUTOSARTemplates::SWComponentTemplate::PortInterface
Note Defines the mapping of two particular VariableDataPrototypes, ParameterDataPrototypes or Argument
DataPrototypes with unequal names and/or unequal semantic (resolution or range) in context of two
different SenderReceiverInterface, NvDataInterface or ParameterInterface or Operations.
If the semantic is unequal following rules apply: The textTableMapping is only applicable if the referred
DataPrototypes are typed by AutosarDataType referring to CompuMethods of category TEXTTABLE,
SCALE_LINEAR_AND_TEXTTABLE or BITFIELD_TEXTTABLE.
In the case that the DataPrototypes are typed by AutosarDataType either referring to CompuMethods of
category LINEAR, IDENTICAL or referring to no CompuMethod (which is similar as IDENTICAL) the
linear conversion factor is calculated out of the factorSiToUnit and offsetSiToUnit attributes of the referred
Units and the CompuRationalCoeffs of a compuInternalToPhys of the referred CompuMethods.
Base ARObject
Attribute Type Mult. Kind Note
firstData AutosarDataPrototype 0..1 ref First to be mapped DataPrototype in context of a Sender
Prototype ReceiverInterface, NvDataInterface, ParameterInterface
or Operation.
firstToSecond DataTransformation 0..1 ref This reference defines the need to execute the Data
Data Transformation <Mip>_<transformerId> functions of the
Transformation transformation chain when communicating from the Data
PrototypeMapping.firstDataPrototype to the Data
PrototypeMapping.secondDataPrototype.
This reference also specifies the reverse Data
Transformation <Mip>_Inv_<transformerId> functions of
the transformation chain (i.e. from the DataPrototype
Mapping.secondDataPrototype to the DataPrototype
Mapping.firstDataPrototype) if the referenced Data
Transformation is symmetric, i.e. attribute Data
Transformation.dataTransformationKind is set to
symmetric.
secondData AutosarDataPrototype 0..1 ref Second to be mapped DataPrototype in context of a
Prototype SenderReceiverInterface, NvDataInterface, Parameter
Interface or Operation.
secondToFirst DataTransformation 0..1 ref This defines the need to execute the reverse Data
Data Transformation <Mip>_Inv_<transformerId> functions of
Transformation the transformation chain when communicating from the
DataPrototypeMapping.secondDataPrototype to the Data
PrototypeMapping.firstDataPrototype.
subElement SubElementMapping * aggr This represents the owned SubelementMapping.
Mapping
textTable TextTableMapping 0..2 aggr Applied TextTableMapping(s)
Mapping
Class DataPrototypeTransformationProps
Package M2::AUTOSARTemplates::SystemTemplate::Transformer
Note DataPrototypeTransformationProps allows to set the attributes for the different Transformation
Technologies that are DataPrototype specific.
Base ARObject
Attribute Type Mult. Kind Note
dataProtototype DataPrototype 0..1 aggr Reference to a DataPrototype that is transported in the
InPortInterface Reference serialized ISignal.
Ref
Tags:atp.Status=obsolete
5
4
Class DataPrototypeTransformationProps
dataPrototypeIn DataPrototype 0..1 aggr Reference to a DataPrototype that is transported in the
PortInterface Reference serialized ISignal.
Ref
network SwDataDefProps 0..1 aggr Specification of the actual network representation for the
Representation referenced primitive DataPrototype. If a network
Props representation is provided then the baseType shall be
used by the Transformer as input for the serialization/
deserilaization.
transformation TransformationProps 0..1 ref Collection of AutosarDataPrototype related configuration
Props settings for a transformer.
Class DataReceiveErrorEvent
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::RTEEvents
Note This event is raised by the RTE when the Com layer detects and notifies an error concerning the
reception of the referenced data element.
Base ARObject, AbstractEvent, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, Multilanguage
Referrable, RTEEvent, Referrable
Attribute Type Mult. Kind Note
data VariableDataPrototype 0..1 iref Data element referenced by event
InstanceRef implemented by:RVariableInAtomicSwc
InstanceRef
Table D.108: DataReceiveErrorEvent
Class DataReceivedEvent
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::RTEEvents
Note The event is raised when the referenced data elements are received.
Base ARObject, AbstractEvent, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, Multilanguage
Referrable, RTEEvent, Referrable
Attribute Type Mult. Kind Note
data VariableDataPrototype 0..1 iref Data element referenced by event
InstanceRef implemented by:RVariableInAtomicSwc
InstanceRef
Table D.109: DataReceivedEvent
Class DataSendCompletedEvent
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::RTEEvents
Note The event is raised when the referenced data elements have been sent or an error occurs.
Base ARObject, AbstractEvent, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, Multilanguage
Referrable, RTEEvent, Referrable
Attribute Type Mult. Kind Note
eventSource VariableAccess 0..1 ref The variable access that triggers the event.
Class DataTransformation
Package M2::AUTOSARTemplates::SystemTemplate::Transformer
Note A DataTransformation represents a transformer chain. It is an ordered list of transformers.
Base ARObject, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
data DataTransformationKind 0..1 attr This attribute controls the kind of DataTransformation to
Transformation Enum be applied.
Kind
executeDespite Boolean 1 attr Specifies whether the transformer chain is executed even
Data if no input data are available.
Unavailability
transformer Transformation 1..* ref This attribute represents the definition of a chain of
Chain (ordered) Technology transformers that are supposed to be executed according
to the order of being referenced from DataTransformation.
Enumeration DataTransformationErrorHandlingEnum
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::PortAPIOptions
Note This enumeration defines different ways how a RunnableEntity shall handle transformer errors.
Literal Description
noTransformerError A runnable does not handle transformer errors.
Handling
Tags:atp.EnumerationLiteralIndex=0
transformerError The runnable implements the handling of transformer errors.
Handling
Tags:atp.EnumerationLiteralIndex=1
Enumeration DataTransformationStatusForwardingEnum
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::PortAPIOptions
Note This enumeration defines different ways how a RunnableEntity shall be able to forward status into the
transformer chain.
Literal Description
noTransformer The runnable is not able to forward a transformer status.
StatusForwarding
Tags:atp.EnumerationLiteralIndex=0
transformerStatus The runnable is able to forward a transformer status.
Forwarding
Tags:atp.EnumerationLiteralIndex=1
Class DataTypeMap
Package M2::AUTOSARTemplates::SWComponentTemplate::Datatype::Datatypes
Note This class represents the relationship between ApplicationDataType and its implementing Abstract
ImplementationDataType.
Base ARObject
Attribute Type Mult. Kind Note
applicationData ApplicationDataType 0..1 ref This is the corresponding ApplicationDataType
Type
implementation AbstractImplementation 0..1 ref This is the corresponding AbstractImplementationData
DataType DataType Type.
Class DataTypeMappingSet
Package M2::AUTOSARTemplates::SWComponentTemplate::Datatype::Datatypes
Note This class represents a list of mappings between ApplicationDataTypes and ImplementationDataTypes.
In addition, it can contain mappings between ImplementationDataTypes and ModeDeclarationGroups.
Tags:atp.recommendedPackage=DataTypeMappingSets
Base ARElement, ARObject, AtpBlueprint, AtpBlueprintable, CollectableElement, Identifiable, Multilanguage
Referrable, PackageableElement, Referrable
Attribute Type Mult. Kind Note
dataTypeMap DataTypeMap * aggr This is one particular association between an Application
DataType and its AbstractImplementationDataType.
modeRequest ModeRequestTypeMap * aggr This is one particular association between an Mode
TypeMap DeclarationGroup and its AbstractImplementationData
Type.
Enumeration DataTypePolicyEnum
Package M2::AUTOSARTemplates::SystemTemplate::DataMapping
Note This class lists the supported DataTypePolicies.
Literal Description
legacy In case the System Description doesn’t use a complete Software Component Description (VFB View)
this value can be chosen. This supports the inclusion of legacy signals.
The aggregation of SwDataDefProps shall be used to configure the "ComSignalDataInvalidValue"
and the Data Semantics.
Tags:atp.EnumerationLiteralIndex=0
network Ignore any networkRepresentationProps of this ISignal and use the networkRepresentation from the
Representation ComSpec.
FromComSpec
Please note that the usage does not imply the existence of the SwDataDefProps in the role network
Representation aggregated by the SenderComSpec or ReceiverComSpec if an ImplementationData
Type is defined.
Tags:atp.EnumerationLiteralIndex=1
override If this value is chosen the requirements specified in the ComSpec (networkRepresentationFromCom
Spec) are not fullfilled by the aggregated SwDataDefProps. In this case the networkRepresentation is
specified by the aggregated swDataDefProps.
Tags:atp.EnumerationLiteralIndex=2
transformingISignal This literal indicates that a transformer chain shall be used to communicate the ISignal as UINT8_N
over the bus.
Tags:atp.EnumerationLiteralIndex=4
Class DataWriteCompletedEvent
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::RTEEvents
Note This event is raised if an implicit write access was successful or an error occurred.
Base ARObject, AbstractEvent, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, Multilanguage
Referrable, RTEEvent, Referrable
Attribute Type Mult. Kind Note
eventSource VariableAccess 0..1 ref The variable access that triggers the event.
Class DelegationSwConnector
Package M2::AUTOSARTemplates::SWComponentTemplate::Composition
Note A delegation connector delegates one inner PortPrototype (a port of a component that is used inside the
composition) to a outer PortPrototype of compatible type that belongs directly to the composition (a port
that is owned by the composition).
Base ARObject, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, MultilanguageReferrable,
Referrable, SwConnector
Attribute Type Mult. Kind Note
innerPort PortPrototype 0..1 iref The port that belongs to the ComponentPrototype in the
composition
Tags:xml.typeElement=true
InstanceRef implemented by:PortInCompositionType
InstanceRef
outerPort PortPrototype 0..1 ref The port that is located on the outside of the Composition
Type
Class DependencyOnArtifact
Package M2::AUTOSARTemplates::CommonStructure::Implementation
Note Dependency on the existence of another artifact, e.g. a library.
Base ARObject, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
artifact AutosarEngineering 0..1 aggr The specified artifact needs to exist.
Descriptor Object
usage DependencyUsage 1..* attr Specification for which process step(s) this dependency is
Enum required.
Class EcuAbstractionSwComponentType
Package M2::AUTOSARTemplates::SWComponentTemplate::Components
Note The ECUAbstraction is a special AtomicSwComponentType that resides between a software-component
that wants to access ECU periphery and the Microcontroller Abstraction. The EcuAbstractionSw
ComponentType introduces the possibility to link from the software representation to its hardware
description provided by the ECU Resource Template.
Tags:atp.recommendedPackage=SwComponentTypes
Base ARElement, ARObject, AtomicSwComponentType, AtpBlueprint, AtpBlueprintable, AtpClassifier , Atp
Type, CollectableElement, Identifiable, MultilanguageReferrable, PackageableElement, Referrable, Sw
ComponentType
Attribute Type Mult. Kind Note
hardware HwDescriptionEntity * ref Reference from the EcuAbstractionComponentType to the
Element description of the used HwElements.
Class EcuInstance
Package M2::AUTOSARTemplates::SystemTemplate::Fibex::FibexCore::CoreTopology
Note ECUInstances are used to define the ECUs used in the topology. The type of the ECU is defined by a
reference to an ECU specified with the ECU resource description.
Tags:atp.recommendedPackage=EcuInstances
5
4
Class EcuInstance
Base ARObject, CollectableElement, FibexElement, Identifiable, MultilanguageReferrable, Packageable
Element, Referrable
Attribute Type Mult. Kind Note
associatedCom ISignalIPduGroup * ref With this reference it is possible to identify which ISignal
IPduGroup IPduGroups are applicable for which Communication
Connector/ ECU.
Only top level ISignalIPduGroups shall be referenced by
an EcuInstance. If an ISignalIPduGroup contains other
ISignalIPduGroups than these contained ISignalIPdu
Groups shall not be referenced by the EcuInstance.
Contained ISignalIPduGroups are associated to an Ecu
Instance via the top level ISignalIPduGroup.
associated ConsumedProvided * ref With this reference it is possible to identify which
Consumed ServiceInstanceGroup ConsumedProvidedServiceInstanceGroups are
Provided applicable for which ECUInstance.
ServiceInstance
Stereotypes: atpVariation
Group
Tags:vh.latestBindingTime=postBuild
associatedPdur PdurIPduGroup * ref With this reference it is possible to identify which PduR
IPduGroup IPdu Groups are applicable for which Communication
Connector/ ECU.
clientIdRange ClientIdRange 0..1 aggr Restriction of the Client Identifier for this Ecu to an
allowed range of numerical values. The Client Identifier of
the transaction handle is generated by the client RTE for
inter-Ecu Client/Server communication.
com TimeValue 0..1 attr The period between successive calls to Com_Main
Configuration FunctionRouteSignals of the AUTOSAR COM module in
GwTimeBase seconds.
com TimeValue 0..1 attr The period between successive calls to Com_Main
ConfigurationRx FunctionRx of the AUTOSAR COM module in seconds.
TimeBase
com TimeValue 0..1 attr The period between successive calls to Com_Main
ConfigurationTx FunctionTx of the AUTOSAR COM module in seconds.
TimeBase
comEnable Boolean 0..1 attr Enables for the Com module of this EcuInstance the
MDTForCyclic minimum delay time monitoring for cyclic and repeated
Transmission transmissions (TransmissionModeTiming has cyclic
Timing assigned or eventControlledTiming with numberOf
Repetitions > 0).
commController Communication 1..* aggr CommunicationControllers of the ECU.
Controller
Stereotypes: atpVariation
Tags:vh.latestBindingTime=postBuild
connector Communication * aggr All channels controlled by a single controller.
Connector
Stereotypes: atpVariation
Tags:vh.latestBindingTime=postBuild
dltConfig DltConfig 0..1 aggr Describes the Dlt configuration on this EcuInstance.
doIpConfig DoIpConfig 0..1 aggr DoIp configuration on this EcuInstance.
Tags:atp.Status=draft
ethSwitchPort Boolean 0..1 attr Defines whether the derivation of SwitchPortGroups
Group based on VLAN and/or CouplingPort.pncMapping shall be
Derivation performed for this EcuInstance. If not defined the
derivation shall not be done.
partition EcuPartition * aggr Optional definition of Partitions within an Ecu.
pncPrepare TimeValue 0..1 attr Time in seconds the PNC state machine shall wait in
SleepTimer PNC_PREPARE_SLEEP.
5
4
Class EcuInstance
pnc Boolean 0..1 attr If this parameter is available and set to true then all
Synchronous available PNCs will be woken up as soon as a channel
Wakeup wakeup occurs. This is ensured by adding all PNCs to all
channel wakeup sources during upstream mapping.
pnResetTime TimeValue 0..1 attr Specifies the runtime of the reset timer in seconds. This
reset time is valid for the reset of PN requests in the EIRA
and in the ERA.
sleepMode Boolean 1 attr Specifies whether the ECU instance may be put to a "low
Supported power mode"
• true: sleep mode is supported
• false: sleep mode is not supported
Note: This flag may only be set to "true" if the feature is
supported by both hardware and basic software.
tcpIpIcmpProps EthTcpIpIcmpProps 0..1 ref EcuInstance specific ICMP (Internet Control Message
Protocol) attributes
tcpIpProps EthTcpIpProps 0..1 ref EcuInstance specific TcpIp Stack attributes.
v2xSupported V2xSupportEnum 0..1 attr This attribute is used to control the existence of the V2X
stack on the given EcuInstance.
wakeUpOver Boolean 1 attr Driver support for wakeup over Bus.
BusSupported
Class EcucContainerValue
Package M2::AUTOSARTemplates::ECUCDescriptionTemplate
Note Represents a Container definition in the ECU Configuration Description.
Base ARObject, EcucIndexableValue, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
definition EcucContainerDef 0..1 ref Reference to the definition of this Container in the ECU
Configuration Parameter Definition.
Stereotypes: atpIdentityContributor
Tags:xml.sequenceOffset=-10
parameterValue EcucParameterValue * aggr Aggregates all ECU Configuration Values within this
Container.
atpVariation: [RS_ECUC_00079]
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=parameterValue.definition, parameter
Value.variationPoint.shortLabel
vh.latestBindingTime=postBuild
referenceValue EcucAbstractReference * aggr Aggregates all References with this container.
Value
atpVariation: [RS_ECUC_00079]
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=referenceValue.definition, reference
Value.variationPoint.shortLabel
vh.latestBindingTime=postBuild
5
4
Class EcucContainerValue
subContainer EcucContainerValue * aggr Aggregates all sub-containers within this container.
atpVariation: [RS_ECUC_00078]
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=subContainer.definition, subContainer.short
Name, subContainer.variationPoint.shortLabel
vh.latestBindingTime=postBuild
Class EcucDestinationUriDef
Package M2::AUTOSARTemplates::ECUCParameterDefTemplate
Note Description of an EcucDestinationUriDef that is used as target of EcucUriReferenceDefs.
Base ARObject, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
destinationUri EcucDestinationUri 0..1 aggr Description of the targeted EcucContainerDef.
Policy Policy
Class EcucForeignReferenceDef
Package M2::AUTOSARTemplates::ECUCParameterDefTemplate
Note Specify a reference to an XML description of an entity described in another AUTOSAR template.
Base ARObject, AtpDefinition, EcucAbstractExternalReferenceDef , EcucAbstractReferenceDef , Ecuc
CommonAttributes, EcucDefinitionElement, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
destinationType String 0..1 attr The type in the AUTOSAR Metamodel to which instance
this reference is allowed to point to.
Class EcucModuleConfigurationValues
Package M2::AUTOSARTemplates::ECUCDescriptionTemplate
Note Head of the configuration of one Module. A Module can be a BSW module as well as the RTE and ECU
Infrastructure.
As part of the BSW module description, the EcucModuleConfigurationValues element has two different
roles:
The recommendedConfiguration contains parameter values recommended by the BSW module vendor.
The preconfiguredConfiguration contains values for those parameters which are fixed by the
implementation and cannot be changed.
These two EcucModuleConfigurationValues are used when the base EcucModuleConfigurationValues
(as part of the base ECU configuration) is created to fill parameters with initial values.
Tags:atp.recommendedPackage=EcucModuleConfigurationValuess
Base ARElement, ARObject, CollectableElement, Identifiable, MultilanguageReferrable, Packageable
Element, Referrable
Attribute Type Mult. Kind Note
5
4
Class EcucModuleConfigurationValues
container EcucContainerValue * aggr Aggregates all containers that belong to this module
configuration.
atpVariation: [RS_ECUC_00078]
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=container.definition, container.shortName,
container.variationPoint.shortLabel
vh.latestBindingTime=postBuild
xml.sequenceOffset=10
definition EcucModuleDef 0..1 ref Reference to the definition of this EcucModule
ConfigurationValues element. Typically, this is a vendor
specific module configuration.
Stereotypes: atpIdentityContributor
Tags:xml.sequenceOffset=-10
ecucDefEdition RevisionLabelString 0..1 attr This is the version info of the ModuleDef ECUC
Parameter definition to which this values conform to / are
based on.
For the Definition of ModuleDef ECUC Parameters the
AdminData shall be used to express the semantic
changes. The compatibility rules between the definition
and value revision labels is up to the module’s vendor.
implementation EcucConfiguration 0..1 attr Specifies the kind of deliverable this EcucModule
ConfigVariant VariantEnum ConfigurationValues element provides. If this element is
not used in a particular role (e.g. preconfigured
Configuration or recommendedConfiguration) then the
value shall be one of VariantPreCompile, VariantLink
Time, VariantPostBuild.
module BswImplementation 0..1 ref Referencing the BSW module description, which this
Description EcucModuleConfigurationValues element is configuring.
This is optional because the EcucModuleConfiguration
Values element is also used to configure the ECU
infrastructure (memory map) or Application SW-Cs.
However in case the EcucModuleConfigurationValues are
used to configure the module, the reference is mandatory
in order to fetch module specific "common" published
information.
postBuildVariant Boolean 0..1 attr Indicates whether a module implementation has or plans
Used to have (i.e., introduced at link or post-build time) new
post-build variation points. TRUE means yes, FALSE
means no. If the attribute is not defined, FALSE
semantics shall be assumed.
Table D.125: EcucModuleConfigurationValues
Class EcucModuleDef
Package M2::AUTOSARTemplates::ECUCParameterDefTemplate
Note Used as the top-level element for configuration definition for Software Modules, including BSW and RTE
as well as ECU Infrastructure.
Tags:atp.recommendedPackage=EcucModuleDefs
Base ARElement, ARObject, AtpBlueprint, AtpBlueprintable, AtpDefinition, CollectableElement, Ecuc
DefinitionElement, Identifiable, MultilanguageReferrable, PackageableElement, Referrable
Attribute Type Mult. Kind Note
5
4
Class EcucModuleDef
apiServicePrefix CIdentifier 0..1 attr For CDD modules this attribute holds the apiService
Prefix.
The shortName of the module definition of a Complex
Driver is always "Cdd". Therefore for CDD modules the
module apiServicePrefix is described with this attribute.
container EcucContainerDef * aggr Aggregates the top-level container definitions of this
specific module definition.
Stereotypes: atpSplitable
Tags:
atp.Splitkey=container.shortName
xml.sequenceOffset=11
postBuildVariant Boolean 0..1 attr Indicates if a module supports different post-build variants
Support (previously known as post-build selectable configuration
sets). TRUE means yes, FALSE means no.
refinedModule EcucModuleDef 0..1 ref Optional reference from the Vendor Specific Module
Def Definition to the Standardized Module Definition it refines.
In case this EcucModuleDef has the category
STANDARDIZED_MODULE_DEFINITION this reference
shall not be provided. In case this EcucModuleDef has
the category VENDOR_SPECIFIC_MODULE_
DEFINITION this reference is mandatory.
Stereotypes: atpUriDef
supported EcucConfiguration * attr Specifies which ConfigurationVariants are supported by
ConfigVariant VariantEnum this software module. This attribute is optional if the Ecuc
ModuleDef has the category STANDARDIZED_
MODULE_DEFINITION. If the category attribute of the
EcucModuleDef is set to VENDOR_SPECIFIC_
MODULE_DEFINITION then this attribute is mandatory.
Class EcucUriReferenceDef
Package M2::AUTOSARTemplates::ECUCParameterDefTemplate
Note Definition of reference with a destination that is specified via a destinationUri. With such a reference it is
possible to define a reference to a EcucContainerDef in a different module independent from the
concrete definition of the target container.
Base ARObject, AtpDefinition, EcucAbstractInternalReferenceDef , EcucAbstractReferenceDef , EcucCommon
Attributes, EcucDefinitionElement, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
destinationUri EcucDestinationUriDef 0..1 ref Any EcucContainerDef with a destinationUri that is
identical to the destinationUri that is referenced here
defines a valid target.
Stereotypes: atpUriDef
4
Class EngineeringObject (abstract)
Subclasses AutosarEngineeringObject, BuildEngineeringObject, Graphic
Attribute Type Mult. Kind Note
category NameToken 1 attr This denotes the role of the engineering object in the
development cycle. Categories are such as
• SWSRC for source code
• SWOBJ for object code
• SWHDR for a C-header file
Further roles need to be defined via Methodology.
Tags:xml.sequenceOffset=20
domain NameToken 0..1 attr This denotes the domain in which the engineering object
is stored. This allows to indicate various segments in the
repository keeping the engineering objects. The domain
may segregate companies, as well as automotive
domains. Details need to be defined by the Methodology.
Attribute is optional to support a default domain.
Tags:xml.sequenceOffset=40
revisionLabel RevisionLabelString * attr This is a revision label denoting a particular version of the
engineering object.
Tags:xml.sequenceOffset=30
shortLabel NameToken 1 attr This is the short name of the engineering object. Note
that it is modeled as NameToken and not as Identifier
since in ASAM-CC it is also a NameToken.
Tags:xml.sequenceOffset=10
Class ExclusiveArea
Package M2::AUTOSARTemplates::CommonStructure::InternalBehavior
Note Prevents an executable entity running in the area from being preempted.
Base ARObject, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
– – – – –
Table D.129: ExclusiveArea
4
Class ExecutableEntity (abstract)
canEnter ExclusiveArea * ref This means that the executable entity can enter/leave the
ExclusiveArea referenced exclusive area through explicit API calls.
exclusiveArea ExclusiveAreaNesting * ref This represents the set of ExclusiveAreaNestingOrders
NestingOrder Order recognized by this ExecutableEntity.
minimumStart TimeValue 0..1 attr Specifies the time in seconds by which two consecutive
Interval starts of an ExecutableEntity are guaranteed to be
separated.
reentrancyLevel ReentrancyLevelEnum 0..1 attr The reentrancy level of this ExecutableEntity. See the
documentation of the enumeration type ReentrancyLevel
Enum for details.
Please note that nonReentrant interfaces can have also
reentrant or multicoreReentrant implementations, and
reentrant interfaces can also have multicoreReentrant
implementations.
runsInside ExclusiveArea * ref The executable entity runs completely inside the
ExclusiveArea referenced exclusive area.
swAddrMethod SwAddrMethod 0..1 ref Addressing method related to this code entity. Via an
association to the same SwAddrMethod, it can be
specified that several code entities (even of different
modules or components) shall be located in the same
memory without already specifying the memory section
itself.
Table D.130: ExecutableEntity
Class ExecutableEntityActivationReason
Package M2::AUTOSARTemplates::CommonStructure::InternalBehavior
Note This meta-class represents the ability to define the reason for the activation of the enclosing Executable
Entity.
Base ARObject, ImplementationProps, Referrable
Attribute Type Mult. Kind Note
bitPosition PositiveInteger 0..1 attr This attribute allows for defining the position of the
enclosing ExecutableEntityActivationReason in the
activation vector.
Table D.131: ExecutableEntityActivationReason
Class ExternalTriggerOccurredEvent
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::RTEEvents
Note The event is raised when the referenced trigger have been occurred.
Base ARObject, AbstractEvent, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, Multilanguage
Referrable, RTEEvent, Referrable
Attribute Type Mult. Kind Note
trigger Trigger 0..1 iref Reference to the applicable Trigger.
InstanceRef implemented by:RTriggerInAtomicSwc
InstanceRef
Table D.132: ExternalTriggerOccurredEvent
Class ExternalTriggeringPoint
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::Trigger
Note If a RunnableEntity owns an ExternalTriggeringPoint it is entitled to raise an ExternalTriggerOccurred
Event.
Base ARObject
Attribute Type Mult. Kind Note
ident ExternalTriggeringPoint 0..1 aggr The aggregation in the role ident provides the ability to
Ident make the ExternalTriggeringPoint identifiable.
From the semantical point of view, the ExternalTriggering
Point is considered a first-class Identifiable and therefore
the aggregation in the role ident shall always exist (until it
may be possible to let ModeAccessPoint directly inherit
from Identifiable).
Stereotypes: atpIdentityContributor
Tags:
atp.Status=shallBecomeMandatory
xml.sequenceOffset=-100
trigger Trigger 0..1 iref The trigger taken for the ExternalTriggeringPoint.
Tags:
xml.namePlural=TRIGGER-IREF
xml.roleElement=false
xml.roleWrapperElement=true
xml.typeElement=true
xml.typeWrapperElement=false
InstanceRef implemented by:PTriggerInAtomicSwcType
InstanceRef
Table D.133: ExternalTriggeringPoint
Class FlatInstanceDescriptor
Package M2::AUTOSARTemplates::CommonStructure::FlatMap
Note Represents exactly one node (e.g. a component instance or data element) of the instance tree of a
software system. The purpose of this element is to map the various nested representations of this
instance to a flat representation and assign a unique name (shortName) to it.
Use cases:
• Specify unique names of measurable data to be used by MCD tools
• Specify unique names of calibration data to be used by MCD tool
• Specify a unique name for an instance of a component prototype in the ECU extract of the
system description
Note that in addition it is possible to assign alias names via AliasNameAssignment.
Base ARObject, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
ecuExtract AtpFeature 0..1 iref Refers to the instance in the ECU extract. This is valid
Reference only, if the FlatMap is used in the context of an ECU
extract.
The reference shall be such that it uniquely defines the
object instance. For example, if a data prototype is
declared as a role within an SwcInternalBehavior, it is not
enough to state the SwcInternalBehavior as context and
the aggregated data prototype as target. In addition, the
reference shall also include the complete path identifying
instance of the component prototype and the Atomic
5
5
4
Class FlatInstanceDescriptor
4
SoftwareComponentType, which is refered by the
particular SwcInternalBehavior.
Tags:xml.sequenceOffset=40
InstanceRef implemented by:AnyInstanceRef
role Identifier 0..1 attr The role denotes the particular role of the downstream
memory location described by this FlatInstanceDescriptor.
It applies to use case where one upstream object results
in multiple downstream objects, e.g. ModeDeclaration
GroupPrototypes which are measurable. In this case the
RTE will provide locations for current mode, previous
mode and next mode.
rtePluginProps RtePluginProps 0..1 aggr The properties of a communication graph with respect to
the utilization of RTE Implementation Plug-in.
Stereotypes: atpSplitable
Tags:atp.Splitkey=rtePluginProps
swDataDef SwDataDefProps 0..1 aggr The properties of this FlatInstanceDescriptor.
Props
upstream AtpFeature 0..1 iref Refers to the instance in the context of an "upstream"
Reference descriptions, wich could be the system or system extract
description, the basic software module description or (if a
flat map is used in preliminary context) a description of an
atomic component or composition. This reference is
optional in case the flat map is used in ECU context.
The reference shall be such that it uniquely defines the
object instance in the given context. For example, if a
data prototype is declared as a role within an SwcInternal
Behavior, it is not enough to state the SwcInternal
Behavior as context and the aggregated data prototype
as target. In addition, the reference shall also include the
complete path identifying the instance of the component
prototype that contains the particular instance of Swc
InternalBehavior.
Tags:xml.sequenceOffset=20
InstanceRef implemented by:AnyInstanceRef
Class FlatMap
Package M2::AUTOSARTemplates::CommonStructure::FlatMap
Note Contains a flat list of references to software objects. This list is used to identify instances and to resolve
name conflicts. The scope is given by the RootSwCompositionPrototype for which it is used, i.e. it can be
applied to a system, system extract or ECU-extract.
An instance of FlatMap may also be used in a preliminary context, e.g. in the scope of a software
component before integration into a system. In this case it is not referred by a RootSwComposition
Prototype.
Tags:atp.recommendedPackage=FlatMaps
Base ARElement, ARObject, AtpBlueprint, AtpBlueprintable, CollectableElement, Identifiable, Multilanguage
Referrable, PackageableElement, Referrable
Attribute Type Mult. Kind Note
5
4
Class FlatMap
instance FlatInstanceDescriptor 1..* aggr A descriptor instance aggregated in the flat map.
The variation point accounts for the fact, that the system
in scope can be subject to variability, and thus the
existence of some instances is variable.
The aggregation has been made splitable because the
content might be contributed by different stakeholders at
different times in the workflow. Plus, the overall size might
be so big that eventually it becomes more manageable if
it is distributed over several files.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=instance.shortName, instance.variation
Point.shortLabel
vh.latestBindingTime=postBuild
Enumeration HandleInvalidEnum
Package M2::AUTOSARTemplates::SWComponentTemplate::Communication
Note Strategies of handling the reception of invalidValue.
Literal Description
dontInvalidate Invalidation is switched off.
Tags:atp.EnumerationLiteralIndex=0
external Replace a received invalidValue. The replacement value is sourced from the externalReplacement.
Replacement
Tags:atp.EnumerationLiteralIndex=1
keep The application software is supposed to handle signal invalidation on RTE API level either by Data
ReceiveErrorEvent or check of error code on read access.
Tags:atp.EnumerationLiteralIndex=2
replace Replace a received invalidValue. The replacement value is specified by the initValue.
Tags:atp.EnumerationLiteralIndex=3
Enumeration HandleOutOfRangeEnum
Package M2::AUTOSARTemplates::SWComponentTemplate::Communication
Note A value of this type is taken for controlling the range checking behavior of the AUTOSAR RTE.
Literal Description
default The RTE will use the initValue if the actual value is out of the specified bounds.
Tags:atp.EnumerationLiteralIndex=0
external This indicates that the value replacement is sourced from the attribute replaceWith.
Replacement
Tags:atp.EnumerationLiteralIndex=1
ignore The RTE will ignore any attempt to send or receive the corresponding dataElement if the value is out
of the specified range.
Tags:atp.EnumerationLiteralIndex=2
invalid The RTE will use the invalidValue if the value is out of the specified bounds.
Tags:atp.EnumerationLiteralIndex=3
none A range check is not required.
Tags:atp.EnumerationLiteralIndex=4
5
4
Enumeration HandleOutOfRangeEnum
saturate The RTE will saturate the value of the dataElement such that it is limited to the applicable upper
bound if it is greater than the upper bound. Consequently, it is limited to the applicable lower bound if
the value is less than the lower bound.
Tags:atp.EnumerationLiteralIndex=5
Enumeration HandleOutOfRangeStatusEnum
Package M2::AUTOSARTemplates::SWComponentTemplate::Communication
Note This enumeration defines how the RTE handles values that are out of range.
Literal Description
indicate The RTE sets the return status to RTE_E_OUT_OF_RANGE if the received value is out of range and
the attribute handleOutOfRange is not set to "none" or "invalid".
Tags:atp.EnumerationLiteralIndex=0
silent The RTE sets the return status to RTE_E_OK
Tags:atp.EnumerationLiteralIndex=1
Enumeration HandleTimeoutEnum
Package M2::AUTOSARTemplates::SWComponentTemplate::Communication
Note Strategies of handling a reception timeout violation.
Literal Description
none If set to none no replacement shall take place.
Tags:atp.EnumerationLiteralIndex=0
replace If set to replace, the replacement value shall be the ComInitValue.
Tags:atp.EnumerationLiteralIndex=1
replaceByTimeout If set to replace, the replacement value shall be the timeout substitution value.
SubstitutionValue
Tags:atp.EnumerationLiteralIndex=2
Class HwElement
Package M2::AUTOSARTemplates::EcuResourceTemplate
Note This represents the ability to describe Hardware Elements on an instance level. The particular types of
hardware are distinguished by the category. This category determines the applicable attributes. The
possible categories and attributes are defined in HwCategory.
Tags:atp.recommendedPackage=HwElements
Base ARElement, ARObject, CollectableElement, HwDescriptionEntity , Identifiable, MultilanguageReferrable,
PackageableElement, Referrable
Attribute Type Mult. Kind Note
hwElement HwElementConnector * aggr This represents one particular connection between two
Connection hardware elements.
Stereotypes: atpVariation
Tags:
vh.latestBindingTime=systemDesignTime
xml.sequenceOffset=110
5
4
Class HwElement
hwPinGroup HwPinGroup * aggr This aggregation is used to describe the connection
facilities of a hardware element. Note that hardware
element has no pins but only pingroups.
Stereotypes: atpVariation
Tags:
vh.latestBindingTime=systemDesignTime
xml.sequenceOffset=90
nestedElement HwElement * ref This association is used to establish hierarchies of hw
elements. Note that one particular HwElement can be
target of this association only once. I.e. multiple
instantiation of the same HwElement is not supported (at
any hierarchy level).
Stereotypes: atpVariation
Tags:
vh.latestBindingTime=systemDesignTime
xml.sequenceOffset=70
Class ISignal
Package M2::AUTOSARTemplates::SystemTemplate::Fibex::FibexCore::CoreCommunication
Note Signal of the Interaction Layer. The RTE supports a "signal fan-out" where the same System Signal is
sent in different SignalIPdus to multiple receivers.
To support the RTE "signal fan-out" each SignalIPdu contains ISignals. If the same System Signal is to
be mapped into several SignalIPdus there is one ISignal needed for each ISignalToIPduMapping.
ISignals describe the Interface between the Precompile configured RTE and the potentially Postbuild
configured Com Stack (see ECUC Parameter Mapping).
In case of the SystemSignalGroup an ISignal shall be created for each SystemSignal contained in the
SystemSignalGroup.
Tags:atp.recommendedPackage=ISignals
Base ARObject, CollectableElement, FibexElement, Identifiable, MultilanguageReferrable, Packageable
Element, Referrable
Attribute Type Mult. Kind Note
data DataTransformation 0..1 ref Optional reference to a DataTransformation which
Transformation represents the transformer chain that is used to transform
the data that shall be placed inside this ISignal.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=dataTransformation.dataTransformation,
dataTransformation.variationPoint.shortLabel
vh.latestBindingTime=codeGenerationTime
dataTypePolicy DataTypePolicyEnum 1 attr With the aggregation of SwDataDefProps an ISignal
specifies how it is represented on the network. This
representation follows a particular policy. Note that this
causes some redundancy which is intended and can be
used to support flexible development methodology as well
as subsequent integrity checks.
If the policy "networkRepresentationFromComSpec" is
chosen the network representation from the ComSpec
that is aggregated by the PortPrototype shall be used. If
the "override" policy is chosen the requirements specified
5
5
4
Class ISignal
4
in the PortInterface and in the ComSpec are not fulfilled
by the networkRepresentationProps. In case the System
Description doesn’t use a complete Software Component
Description (VFB View) the "legacy" policy can be
chosen.
initValue ValueSpecification 0..1 aggr Optional definition of a ISignal’s initValue in case the
System Description doesn’t use a complete Software
Component Description (VFB View). This supports the
inclusion of legacy system signals.
This value can be used to configure the Signal’s "Init
Value".
If a full DataMapping exist for the SystemSignal this
information may be available from a configured Sender
ComSpec and ReceiverComSpec. In this case the
initvalues in SenderComSpec and/or ReceiverComSpec
override this optional value specification. Further
restrictions apply from the RTE specification.
iSignalProps ISignalProps 0..1 aggr Additional optional ISignal properties that may be stored
in different files.
Stereotypes: atpSplitable
Tags:atp.Splitkey=iSignalProps
iSignalType ISignalTypeEnum 0..1 attr This attribute defines whether this iSignal is an array that
results in a UINT8_N / UINT8_DYN ComSignalType in the
COM configuration or a primitive type.
length Integer 1 attr Size of the signal in bits. The size needs to be derived
from the mapped VariableDataPrototype according to the
mapping of primitive DataTypes to BaseTypes as used in
the RTE. Indicates maximum size for dynamic length
signals.
The ISignal length of zero bits is allowed.
network SwDataDefProps 0..1 aggr Specification of the actual network representation. The
Representation usage of SwDataDefProps for this purpose is restricted to
Props the attributes compuMethod and baseType. The optional
baseType attributes "memAllignment" and "byteOrder"
shall not be used.
The attribute "dataTypePolicy" in the SystemTemplate
element defines whether this network representation shall
be ignored and the information shall be taken over from
the network representation of the ComSpec.
If "override" is chosen by the system integrator the
network representation can violate against the
requirements defined in the PortInterface and in the
network representation of the ComSpec.
In case that the System Description doesn’t use a
complete Software Component Description (VFB View)
this element is used to configure "ComSignalDataInvalid
Value" and the Data Semantics.
systemSignal SystemSignal 1 ref Reference to the System Signal that is supposed to be
transmitted in the ISignal.
timeout ValueSpecification 0..1 aggr Defines and enables the ComTimeoutSubstituition for this
Substitution ISignal.
Value
5
4
Class ISignal
transformation TransformationISignal * aggr A transformer chain consists of an ordered list of
ISignalProps Props transformers. The ISignal specific configuration
properties for each transformer are defined in the
TransformationISignalProps class. The transformer
configuration properties that are common for all ISignals
are described in the TransformationTechnology class.
Class ISignalGroup
Package M2::AUTOSARTemplates::SystemTemplate::Fibex::FibexCore::CoreCommunication
Note SignalGroup of the Interaction Layer. The RTE supports a "signal fan-out" where the same System
Signal Group is sent in different SignalIPdus to multiple receivers.
An ISignalGroup refers to a set of ISignals that shall always be kept together. A ISignalGroup represents
a COM Signal Group.
Therefore it is recommended to put the ISignalGroup in the same Package as ISignals (see
atp.recommendedPackage)
Tags:atp.recommendedPackage=ISignalGroup
Base ARObject, CollectableElement, FibexElement, Identifiable, MultilanguageReferrable, Packageable
Element, Referrable
Attribute Type Mult. Kind Note
comBased DataTransformation 0..1 ref Optional reference to a DataTransformation which
SignalGroup represents the transformer chain that is used to transform
Transformation the data that shall be placed inside this ISignalGroup
based on the COMBasedTransformer approach.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=comBasedSignalGroupTransformation.data
Transformation, comBasedSignalGroup
Transformation.variationPoint.shortLabel
vh.latestBindingTime=codeGenerationTime
iSignal ISignal * ref Reference to a set of ISignals that shall always be kept
together.
systemSignal SystemSignalGroup 1 ref Reference to the SystemSignalGroup that is defined on
Group VFB level and that is supposed to be transmitted in the
ISignalGroup.
transformation TransformationISignal * aggr A transformer chain consists of an ordered list of
ISignalProps Props transformers. The ISignalGroup specific configuration
properties for each transformer are defined in the
TransformationISignalProps class. The transformer
configuration properties that are common for all ISignal
Groups are described in the TransformationTechnology
class.
Table D.142: ISignalGroup
Class ISignalIPdu
Package M2::AUTOSARTemplates::SystemTemplate::Fibex::FibexCore::CoreCommunication
Note Represents the IPdus handled by Com. The ISignalIPdu assembled and disassembled in AUTOSAR
COM consists of one or more signals. In case no multiplexing is performed this IPdu is routed to/from the
Interface Layer.
A maximum of one dynamic length signal per IPdu is allowed.
Tags:atp.recommendedPackage=Pdus
5
4
Class ISignalIPdu
Base ARObject, CollectableElement, FibexElement, IPdu, Identifiable, MultilanguageReferrable, Packageable
Element, Pdu, Referrable
Attribute Type Mult. Kind Note
iPduTiming IPduTiming 0..1 aggr Timing specification for Com IPdus (Transmission
Specification Modes). This information is mandatory for the sender in a
System Extract. This information may be omitted on
receivers in a System Extract.
atpVariation: The timing of a Pdu can vary.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=postBuild
iSignalToPdu ISignalToIPduMapping * aggr Definition of SignalToIPduMappings included in the Signal
Mapping IPdu.
atpVariation: The content of a PDU can be variable.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=postBuild
pduCounter SignalIPduCounter 0..1 aggr An included Pdu counter is used to ensure that a
sequence of Pdus is maintained.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
pduReplication SignalIPduReplication 0..1 aggr Pdu Replication is a form of redundancy where the data
content of one ISignalIPdu (source) is transmitted inside a
set of replica ISignalIPdus. These ISignalIPdus (copies)
have different Pdu IDs, identical PduCounters, identical
data content and are transmitted with the same frequency.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
unusedBit Integer 1 attr AUTOSAR COM and AUTOSAR IPDUM are filling not
Pattern used areas of an IPDU with this bit-pattern. This attribute
is mandatory to avoid undefined behavior. This
byte-pattern will be repeated throughout the IPdu.
Class ISignalProps
Package M2::AUTOSARTemplates::SystemTemplate::Fibex::FibexCore::CoreCommunication
Note Additional ISignal properties that may be stored in different files.
Base ARObject
Attribute Type Mult. Kind Note
handleOutOf HandleOutOfRange 1 attr This attribute defines the outOfRangeHandling for
Range Enum received and sent signals.
Class ISignalToIPduMapping
Package M2::AUTOSARTemplates::SystemTemplate::Fibex::FibexCore::CoreCommunication
Note An ISignalToIPduMapping describes the mapping of ISignals to ISignalIPdus and defines the position of
the ISignal within an ISignalIPdu.
Base ARObject, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
5
4
Class ISignalToIPduMapping
iSignal ISignal 0..1 ref Reference to a ISignal that is mapped into the ISignal
IPdu.
Each ISignal contained in the ISignalGroup shall be
mapped into an IPdu by an own ISignalToIPduMapping.
The references to the ISignal and to the ISignalGroup in
an ISignalToIPduMapping are mutually exclusive.
iSignalGroup ISignalGroup 0..1 ref Reference to an ISignalGroup that is mapped into the
SignalIPdu. If an ISignalToIPduMapping for an ISignal
Group is defined, only the UpdateIndicationBitPosition
and the transferProperty is relevant. The startPosition
and the packingByteOrder shall be ignored.
Each ISignal contained in the ISignalGroup shall be
mapped into an IPdu by an own ISignalToIPduMapping.
The references to the ISignal and to the ISignalGroup in
an ISignalToIPduMapping are mutually exclusive.
packingByte ByteOrderEnum 0..1 attr This parameter defines the order of the bytes of the signal
Order and the packing into the SignalIPdu. The byte ordering
"Little Endian" (MostSignificantByteLast), "Big Endian"
(MostSignificantByteFirst) and "Opaque" can be selected.
For opaque data endianness conversion shall be
configured to Opaque. The value of this attribute impacts
the absolute position of the signal into the SignalIPdu
(see the startPosition attribute description).
For an ISignalGroup the packingByteOrder is irrelevant
and shall be ignored.
startPosition Integer 0..1 attr This parameter is necessary to describe the bitposition of
a signal within an SignalIPdu. It denotes the least
significant bit for "Little Endian" and the most significant
bit for "Big Endian" packed signals within the IPdu (see
the description of the packingByteOrder attribute). In
AUTOSAR the bit counting is always set to "sawtooth"
and the bit order is set to "Decreasing". The bit counting
in byte 0 starts with bit 0 (least significant bit). The most
significant bit in byte 0 is bit 7.
Please note that the way the bytes will be actually sent on
the bus does not impact this representation: they will
always be seen by the software as a byte array.
If a mapping for the ISignalGroup is defined, this attribute
is irrelevant and shall be ignored.
transferProperty TransferPropertyEnum 0..1 attr Defines how the referenced ISignal contributes to the
send triggering of the ISignalIPdu.
update Integer 0..1 attr The UpdateIndicationBit indicates to the receivers that the
IndicationBit signal (or the signal group) was updated by the sender.
Position Length is always one bit. The UpdateIndicationBitPosition
attribute describes the position of the update bit within the
SignalIPdu. For Signals of a ISignalGroup this attribute is
irrelevant and shall be ignored.
Note that the exact bit position of the updateIndicationBit
Position is linked to the value of the attribute packingByte
Order because the method of finding the bit position is
different for the values mostSignificantByteFirst and most
SignificantByteLast. This means that if the value of
packingByteOrder is changed while the value of update
IndicationBitPosition remains unchanged the exact bit
position of updateIndicationBitPosition within the
enclosing ISignalIPdu still undergoes a change.
5
5
4
Class ISignalToIPduMapping
4
This attribute denotes the least significant bit for "Little
Endian" and the most significant bit for "Big Endian"
packed signals within the IPdu (see the description of the
packingByteOrder attribute). In AUTOSAR the bit
counting is always set to "sawtooth" and the bit order is
set to "Decreasing". The bit counting in byte 0 starts with
bit 0 (least significant bit). The most significant bit in byte
0 is bit 7.
4
Class Identifiable (abstract)
Attribute Type Mult. Kind Note
adminData AdminData 0..1 aggr This represents the administrative data for the identifiable
object.
Tags:xml.sequenceOffset=-40
annotation Annotation * aggr Possibility to provide additional notes while defining a
model element (e.g. the ECU Configuration Parameter
Values). These are not intended as documentation but
are mere design notes.
Tags:xml.sequenceOffset=-25
category CategoryString 0..1 attr The category is a keyword that specializes the semantics
of the Identifiable. It affects the expected existence of
attributes and the applicability of constraints.
Tags:xml.sequenceOffset=-50
desc MultiLanguageOverview 0..1 aggr This represents a general but brief (one paragraph)
Paragraph description what the object in question is about. It is only
one paragraph! Desc is intended to be collected into
overview tables. This property helps a human reader to
identify the object in question.
More elaborate documentation, (in particular how the
object is built or used) should go to "introduction".
Tags:xml.sequenceOffset=-60
introduction DocumentationBlock 0..1 aggr This represents more information about how the object in
question is built or is used. Therefore it is a
DocumentationBlock.
Tags:xml.sequenceOffset=-30
uuid String 0..1 attr The purpose of this attribute is to provide a globally
unique identifier for an instance of a meta-class. The
values of this attribute should be globally unique strings
prefixed by the type of identifier. For example, to include a
DCE UUID as defined by The Open Group, the UUID
would be preceded by "DCE:". The values of this attribute
may be used to support merging of different AUTOSAR
models. The form of the UUID (Universally Unique
Identifier) is taken from a standard defined by the Open
Group (was Open Software Foundation). This standard is
widely used, including by Microsoft for COM (GUIDs) and
by many companies for DCE, which is based on CORBA.
The method for generating these 128-bit IDs is published
in the standard and the effectiveness and uniqueness of
the IDs is not in practice disputed. If the id namespace is
omitted, DCE is assumed. An example is
"DCE:2fac1234-31f8-11b4-a222-08002b34c003". The
uuid attribute has no semantic meaning for an AUTOSAR
model and there is no requirement for AUTOSAR tools to
manage the timestamp.
Tags:xml.attribute=true
4
Class Implementation (abstract)
Subclasses BswImplementation, SwcImplementation
Attribute Type Mult. Kind Note
buildAction BuildActionManifest 0..1 ref A manifest specifying the intended build actions for the
Manifest software delivered with this implementation.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=codeGenerationTime
codeDescriptor Code * aggr Specifies the provided implementation code.
compiler Compiler * aggr Specifies the compiler for which this implementation has
been released
generated DependencyOnArtifact * aggr Relates to an artifact that will be generated during the
Artifact integration of this Implementation by an associated
generator tool. Note that this is an optional information
since it might not always be in the scope of a single
module or component to provide this information.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
hwElement HwElement * ref The hardware elements (e.g. the processor) required for
this implementation.
linker Linker * aggr Specifies the linker for which this implementation has
been released.
mcSupport McSupportData 0..1 aggr The measurement & calibration support data belonging to
this implementation. The aggregtion is <<atpSplitable>>
because in case of an already exisiting BSW
Implementation model, this description will be added later
in the process, namely at code generation time.
Stereotypes: atpSplitable
Tags:atp.Splitkey=mcSupport
programming Programminglanguage 0..1 attr Programming language the implementation was created
Language Enum in.
requiredArtifact DependencyOnArtifact * aggr Specifies that this Implementation depends on the
existance of another artifact (e.g. a library). This
aggregation of DependencyOnArtifact is subject to
variability with the purpose to support variability in the
implementations. Different algorithms in the
implementation might cause different dependencies, e.g.
the number of used libraries.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
required DependencyOnArtifact * aggr Relates this Implementation to a generator tool in order to
GeneratorTool generate additional artifacts during integration.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
resource ResourceConsumption 0..1 aggr All static and dynamic resources for each implementation
Consumption are described within the ResourceConsumption class.
Stereotypes: atpSplitable
Tags:atp.Splitkey=resourceConsumption.shortName
swcBsw SwcBswMapping 0..1 ref This allows a mapping between an SWC and a BSW
Mapping behavior to be attached to an implementation description
(for AUTOSAR Service, ECU Abstraction and Complex
Driver Components). It is up to the methodology to define
whether this reference has to be set for the Swc- or Bsw
Implementtion or for both.
5
4
Class Implementation (abstract)
swVersion RevisionLabelString 0..1 attr Software version of this implementation. The numbering
contains three levels (like major, minor, patch), its values
are vendor specific.
usedCode String 0..1 attr Optional: code generator used.
Generator
vendorId PositiveInteger 0..1 attr Vendor ID of this Implementation according to the
AUTOSAR vendor list
Class ImplementationDataType
Package M2::AUTOSARTemplates::CommonStructure::ImplementationDataTypes
Note Describes a reusable data type on the implementation level. This will typically correspond to a typedef in
C-code.
Tags:atp.recommendedPackage=ImplementationDataTypes
Base ARElement, ARObject, AbstractImplementationDataType, AtpBlueprint, AtpBlueprintable, AtpClassifier ,
AtpType, AutosarDataType, CollectableElement, Identifiable, MultilanguageReferrable, Packageable
Element, Referrable
Attribute Type Mult. Kind Note
dynamicArray String 0..1 attr Specifies the profile which the array will follow in case this
SizeProfile data type is a variable size array.
isStructWith Boolean 0..1 attr This attribute is only valid if the attribute category is set to
Optional STRUCTURE.
Element
If set to True, this attribute indicates that the
ImplementationDataType has been created with the
intention to define at least one element of the structure as
optional.
subElement ImplementationData * aggr Specifies an element of an array, struct, or union data
(ordered) TypeElement type.
The aggregation of ImplementionDataTypeElement is
subject to variability with the purpose to support the
conditional existence of elements inside a Implementation
DataType representing a structure.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
symbolProps SymbolProps 0..1 aggr This represents the SymbolProps for the Implementation
DataType.
Stereotypes: atpSplitable
Tags:atp.Splitkey=symbolProps.shortName
typeEmitter NameToken 0..1 attr This attribute is used to control which part of the
AUTOSAR toolchain is supposed to trigger data type
definitions.
Table D.148: ImplementationDataType
Class ImplementationDataTypeElement
Package M2::AUTOSARTemplates::CommonStructure::ImplementationDataTypes
Note Declares a data object which is locally aggregated. Such an element can only be used within the scope
where it is aggregated.
This element either consists of further subElements or it is further defined via its swDataDefProps.
There are several use cases within the system of ImplementationDataTypes fur such a local declaration:
5
5
4
Class ImplementationDataTypeElement
4
• It can represent the elements of an array, defining the element type and array size
• It can represent an element of a struct, defining its type
• It can be the local declaration of a debug element.
Base ARObject, AbstractImplementationDataTypeElement, AtpClassifier , AtpFeature, AtpStructureElement,
Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
arrayImplPolicy ArrayImplPolicyEnum 0..1 attr This attribute controls the implementation of the payload
of an array. It shall only be used if the enclosing
ImplementationDataType constitutes an array.
arraySize PositiveInteger 0..1 attr The existence of this attributes (if bigger than 0) defines
the size of an array and declares that this Implementation
DataTypeElement represents the type of each single
array element.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
arraySize ArraySizeHandling 0..1 attr The way how the size of the array is handled in case of a
Handling Enum variable size array.
arraySize ArraySizeSemantics 0..1 attr This attribute controls the meaning of the value of the
Semantics Enum array size.
isOptional Boolean 0..1 attr This attribute represents the ability to declare the
enclosing ImplementationDataTypeElement as optional.
This means that, at runtime, the ImplementationDataType
Element may or may not have a valid value and shall
therefore be ignored.
The underlying runtime software provides means to set
the CppImplementationDataTypeElement as not valid at
the sending end of a communication and determine its
validity at the receiving end.
subElement ImplementationData * aggr Element of an array, struct, or union in case of a nested
(ordered) TypeElement declaration (i.e. without using "typedefs").
The aggregation of ImplementionDataTypeElement is
subject to variability with the purpose to support the
conditional existence of elements inside a Implementation
DataType representing a structure.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
swDataDef SwDataDefProps 0..1 aggr The properties of this ImplementationDataTypeElement.
Props
4
Class ImplementationProps (abstract)
symbol CIdentifier 0..1 attr The symbol to be used as (depending on the concrete
case) either a complete replacement or a prefix.
Class IncludedDataTypeSet
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::IncludedDataTypes
Note An includedDataTypeSet declares that a set of AutosarDataType is used by a basic software module or a
software component for its implementation and the AutosarDataType becomes part of the contract.
This information is required if the AutosarDataType is not used for any DataPrototype owned by this
software component or if the enumeration literals, lowerLimit and upperLimit constants shall be
generated with a literalPrefix.
The optional literalPrefix is used to add a common prefix on enumeration literals, lowerLimit and upper
Limit constants created by the RTE.
Base ARObject
Attribute Type Mult. Kind Note
dataType AutosarDataType * ref AutosarDataType belonging to the includedDataTypeSet
literalPrefix Identifier 0..1 attr LiteralPrefix defines a common prefix for all AutosarData
Types of the includedDataTypeSet to be added on
enumeration literals, lowerLimit and upperLimit constants
created by the RTE.
Class IncludedModeDeclarationGroupSet
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::ModeDeclarationGroup
Note An IncludedModeDeclarationGroupSet declares that a set of ModeDeclarationGroups used by the
software component for its implementation and consequently these ModeDeclarationGroups become
part of the contract.
Base ARObject
Attribute Type Mult. Kind Note
mode ModeDeclarationGroup * ref This represents the referenced ModeDeclarationGroup.
Declaration
Group
prefix Identifier 0..1 attr The prefix shall be used by the RTE generator as a prefix
for the creation of symbols related to the referenced
ModeDeclarationGroups, e.g RTE_TRANSITION_<Mode
DeclarationGroup>.
Class InitEvent
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::RTEEvents
Note This RTEEvent is supposed to be used for initialization purposes, i.e. for starting and restarting a
partition. It is not guaranteed that all RunnableEntities referenced by this InitEvent are executed before
the ’regular’ RunnableEntities are executed for the first time. The execution order depends on the task
mapping.
Base ARObject, AbstractEvent, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, Multilanguage
Referrable, RTEEvent, Referrable
Attribute Type Mult. Kind Note
– – – – –
Table D.153: InitEvent
Class InstantiationDataDefProps
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::InstantiationDataDefProps
Note This is a general class allowing to apply additional SwDataDefProps to particular instantiations of a Data
Prototype.
Typically the accessibility and further information like alias names for a particular data is modeled on the
level of DataPrototypes (especially VariableDataPrototypes, ParameterDataPrototypes). But due to the
recursive structure of the meta-model concerning data types (a composite (data) type consists out of
data prototypes) a part of the MCD information is described in the data type (in case of Application
CompositeDataType).
This is a strong restriction in the reuse of data typed because the data type should be re-used for
different VariableDataPrototypes and ParameterDataPrototypes to guarantee type compatibility on
C-implementation level (e.g. data of a Port is stored in PIM or a ParameterDataPrototype used as ROM
Block and shall be typed by the same data type as NVRAM Block).
This class overcomes such a restriction if applied properly.
Base ARObject
Attribute Type Mult. Kind Note
parameter AutosarParameterRef 0..1 aggr This is the particular ParameterDataPrototypes on which
Instance the swDataDefProps shall be applied.
swDataDef SwDataDefProps 0..1 aggr These are the particular data definition properties which
Props shall be applied
variableInstance AutosarVariableRef 0..1 aggr This is the particular VariableDataPrototypes on which
the swDataDefProps shall be applied.
4
Class InternalBehavior (abstract)
constant ParameterData * aggr Describes a read only memory object containing
Memory Prototype characteristic value(s) implemented by this Internal
Behavior.
The shortName of ParameterDataPrototype has to be
equal to the ”C’ identifier of the described constant.
The characteristic value(s) might be shared between Sw
ComponentPrototypes of the same SwComponentType.
The aggregation of constantMemory is subject to
variability with the purpose to support variability in the
software component or module implementations.
Typically different algorithms in the implementation are
requiring different number of memory objects.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=constantMemory.shortName, constant
Memory.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
constantValue ConstantSpecification * ref Reference to the ConstanSpecificationMapping to be
Mapping MappingSet applied for the particular InternalBehavior
Stereotypes: atpSplitable
Tags:atp.Splitkey=constantValueMapping
dataType DataTypeMappingSet * ref Reference to the DataTypeMapping to be applied for the
Mapping particular InternalBehavior
Stereotypes: atpSplitable
Tags:atp.Splitkey=dataTypeMapping
exclusiveArea ExclusiveArea * aggr This specifies an ExclusiveArea for this InternalBehavior.
The exclusiveArea is local to the component resp.
module. The aggregation of ExclusiveAreas is subject to
variability. Note: the number of ExclusiveAreas might vary
due to the conditional existence of RunnableEntities or
BswModuleEntities.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=exclusiveArea.shortName, exclusive
Area.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
exclusiveArea ExclusiveAreaNesting * aggr This represents the set of ExclusiveAreaNestingOrder
NestingOrder Order owned by the InternalBehavior.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=exclusiveAreaNestingOrder.shortName,
exclusiveAreaNestingOrder.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
staticMemory VariableDataPrototype * aggr Describes a read and writeable static memory object
representing measurerment variables implemented by
this software component. The term "static" is used in the
meaning of "non-temporary" and does not necessarily
specify a linker encapsulation. This kind of memory is
only supported if supportsMultipleInstantiation is FALSE.
The shortName of the VariableDataPrototype has to be
equal with the ”C’ identifier of the described variable.
The aggregation of staticMemory is subject to variability
with the purpose to support variability in the software
component’s implementations.
5
5
4
Class InternalBehavior (abstract)
4
Typically different algorithms in the implementation are
requiring different number of memory objects.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=staticMemory.shortName, static
Memory.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
Class InternalTriggerOccurredEvent
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::RTEEvents
Note The event is raised when the referenced internal trigger have been occurred.
Base ARObject, AbstractEvent, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, Multilanguage
Referrable, RTEEvent, Referrable
Attribute Type Mult. Kind Note
eventSource InternalTriggeringPoint 0..1 ref Internal Triggering Point that triggers the event.
Class InternalTriggeringPoint
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::Trigger
Note If a RunnableEntity owns an InternalTriggeringPoint it is entitled to trigger the execution of Runnable
Entities of the corresponding software-component.
Base ARObject, AbstractAccessPoint, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable,
MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
swImplPolicy SwImplPolicyEnum 0..1 attr This attribute, when set to value queued, allows for a
queued processing of Triggers.
Class InvalidationPolicy
Package M2::AUTOSARTemplates::SWComponentTemplate::PortInterface
Note Specifies whether the component can actively invalidate a particular dataElement.
If no invalidationPolicy points to a dataElement this is considered to yield the identical result as if the
handleInvalid attribute was set to dontInvalidate.
Base ARObject
Attribute Type Mult. Kind Note
dataElement VariableDataPrototype 0..1 ref Reference to the dataElement for which the Invalidation
Policy applies.
handleInvalid HandleInvalidEnum 0..1 attr This attribute controls how invalidation is applied to the
dataElement.
Table D.159: InvalidationPolicy
Class McDataInstance
Package M2::AUTOSARTemplates::CommonStructure::MeasurementCalibrationSupport
Note Describes the specific properties of one data instance in order to support measurement and/or
calibration of this data instance.
The most important attributes are:
• Its shortName is copied from the ECU Flat map (if applicable) and will be used as identifier and
for display by the MC system.
• The category is copied from the corresponding data type (ApplicationDataType if defined,
otherwise ImplementationDataType) as far as applicable.
• The symbol is the one used in the programming language. It will be used to find out the actual
memory address by the final generation tool with the help of linker generated information.
It is assumed that in the M1 model this part and all the aggregated and referred elements (with the
exception of the Flat Map and the references from ImplementationElementInParameterInstanceRef and
McAccessDetails) are completely generated from "upstream" information. This means, that even if an
element like e.g. a CompuMethod is only used via reference here, it will be copied into the M1 artifact
which holds the complete McSupportData for a given Implementation.
Base ARObject, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
arraySize PositiveInteger 0..1 attr The existence of this attribute turns the data instance into
an array of data. The attribute determines the size of the
array in terms of number of elements.
displayIdentifier McdIdentifier 0..1 attr An optional attribute to be used to set the ASAM ASAP2
DISPLAY_IDENTIFIER attribute.
flatMapEntry FlatInstanceDescriptor 0..1 ref Reference to the corresponding entry in the ECU Flat
Map. This allows to trace back to the original specification
of the generated data instance. This link shall be added
by the RTE generator mainly for documentation purposes.
The reference is optional because
• The McDataInstance may represent an array or
struct in which only the subElements correspond
to FlatMap entries.
• The McDataInstance may represent a task local
buffer for rapid prototyping access which is
different from the "main instance" used for
measurement access.
instanceIn ImplementationElement 0..1 aggr Reference to the corresponding data instance in the
Memory InParameterInstance description of calibration data structures published by the
Ref RTE generator. This is used to support emulation
methods inside the ECU, it is not required for A2L
generation.
mcDataAccess McDataAccessDetails 0..1 aggr Refers to "upstream" information on how the RTE uses
Details this data instance. Use Case: Rapid Prototyping
mcData RoleBasedMcData * aggr An assignment between McDataInstances. This supports
Assignment Assignment the indication of related McDataElement implementing
the of "RP global buffer", "RP global measurement
buffer", "RP enabler flag".
resulting SwDataDefProps 0..1 aggr These are the generated properties resulting from
Properties decisions taken by the RTE generator for the actually
implemented data instance. Only those properties are
relevant here, which are needed for the measurement
and calibration system.
resultingRptSw RptSwPrototyping 0..1 aggr Describes the implemented accessibility of data and
Prototyping Access modes by the rapid prototyping tooling.
Access
5
4
Class McDataInstance
role Identifier 0..1 attr An optional attribute to be used for additional information
on the role of this data instance, for example in the
context of rapid prototyping.
rptImplPolicy RptImplPolicy 0..1 aggr Describes the implemented code preparation for rapid
prototyping at data accesses for a hook based bypassing.
subElement McDataInstance * aggr This relation indicates, that the target element is part of a
(ordered) "struct" which is given by the source element. This
information will be used by the final generator to set up
the correct addressing scheme.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
symbol SymbolString 0..1 attr This String is used to determine the memory address
during final generation of the MC configuration data (e.g.
"A2L" file) . It shall be the name of the element in the
programming language such that it can be identified in
linker generated information.
In case the McDataInstance is part of composite data in
the programming language, the symbol String may
include parts denoting the element context, unless the
context is given by the symbol attribute of an enclosing
McDataInstance. This means in particular for the C
language that the "." character shall be used as a
separator between the name of a "struct" variable the
name of one of its elements.
The symbol can differ from the shortName in case of
generated C data declarations.
It is an optional attribute since it may be missing in case
the instance represents an element (e.g. a single array
element) which has no name in the linker map.
Stereotypes: atpSplitable
Tags:atp.Splitkey=symbol
Class McParameterElementGroup
Package M2::AUTOSARTemplates::CommonStructure::MeasurementCalibrationSupport
Note Denotes a group of calibration parameters which are handled by the RTE as one data structure.
Base ARObject
Attribute Type Mult. Kind Note
ramLocation VariableDataPrototype 1 ref Refers to the RAM location of this parameter group. To be
used for the init-RAM method.
romLocation ParameterData 1 ref Refers to the ROM location of this parameter group. To
Prototype be used for the init-RAM method.
shortLabel Identifier 1 attr Assigns a name to this element.
Tags:xml.sequenceOffset=-100
Class McSupportData
Package M2::AUTOSARTemplates::CommonStructure::MeasurementCalibrationSupport
Note Root element for all measurement and calibration support data related to one Implementation artifact on
an ECU. There shall be one such element related to the RTE implementation (if it owns MC data) and a
separate one for each module or component, which owns private MC data.
5
4
Class McSupportData
Base ARObject
Attribute Type Mult. Kind Note
emulation McSwEmulationMethod * aggr Describes the calibration method used by the RTE. This
Support Support information is not needed for A2L generation, but to setup
software emulation in the ECU.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
mcParameter McDataInstance * aggr A data instance to be used for calibration.
Instance
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=mcParameterInstance.shortName, mc
ParameterInstance.variationPoint.shortLabel
vh.latestBindingTime=postBuild
mcVariable McDataInstance * aggr A data instance to be used for measurement.
Instance
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=mcVariableInstance.shortName, mcVariable
Instance.variationPoint.shortLabel
vh.latestBindingTime=postBuild
measurable SwSystemconstant * ref Sets of system constant values to be transferred to the
System ValueSet MCD system, because the system constants have been
ConstantValues specified with "swCalibrationAccess" = readonly.
rptSupportData RptSupportData 0..1 aggr The rapid prototyping support data belonging to this
implementation. The aggregtion is <<atpSplitable>>
because in case of an already exisiting BSW
Implementation model, this description will be added later
in the process, namely at code generation time.
Stereotypes: atpSplitable
Tags:atp.Splitkey=rptSupportData
Class McSwEmulationMethodSupport
Package M2::AUTOSARTemplates::CommonStructure::MeasurementCalibrationSupport
Note This denotes the method used by the RTE to handle the calibration data. It is published by the RTE
generator and can be used e.g. to generate the corresponding emulation method in a Complex Driver.
According to the actual method given by the category attribute, not all attributes are always needed:
• double pointered method: only baseReference is mandatory
• single pointered method: only referenceTable is mandatory
• initRam method: only elementGroup(s) are mandatory
Note: For single/double pointered method the group locations are implicitly accessed via the reference
table and their location can be found from the initial values in the M1 model of the respective pointers.
Therefore, the description of elementGroups is not needed in these cases. Likewise, for double pointered
method the reference table description can be accessed via the M1 model under baseReference.
Base ARObject
Attribute Type Mult. Kind Note
baseReference VariableDataPrototype 0..1 ref Refers to the base pointer in case of the double-pointered
method.
5
4
Class McSwEmulationMethodSupport
category Identifier 1 attr Identifies the actual method. The possible names shall
correspond to the symbols of the ECU configuration
parameter for the calibration method of the RTE, and can
include vendor specific methods.
Tags:xml.sequenceOffset=-90
elementGroup McParameterElement * aggr Denotes the grouping of calibration parameters in the
Group actual RTE code. Depending on the category, this
information maybe required to set up the emulation code.
referenceTable VariableDataPrototype 0..1 ref Refers to the pointer table in case of the single-pointered
method.
shortLabel Identifier 1 attr Assigns a name to this element.
Tags:xml.sequenceOffset=-100
Enumeration MemoryAllocationKeywordPolicyType
Package M2::MSR::DataDictionary::AuxillaryObjects
Note Enumeration to specify the name pattern of the Memory Allocation Keyword.
Literal Description
addrMethodShort The MemorySection shortNames of referring MemorySections and therefore the belonging Memory
Name Allocation Keywords in the code are build with the shortName of the SwAddrMethod. This is the
default value if the attribute does not exist.
Tags:atp.EnumerationLiteralIndex=0
addrMethodShort The MemorySection shortNames of referring MemorySections and therefore the belonging Memory
NameAndAlignment Allocation Keywords in the code are build with the shortName of the SwAddrMethod and a variable
alignment postfix.
Thereby the alignment postfix needs to be consistent with the alignment attribute of the related
MemorySection.
Tags:atp.EnumerationLiteralIndex=1
Class MemorySection
Package M2::AUTOSARTemplates::CommonStructure::ResourceConsumption::MemorySectionUsage
Note Provides a description of an abstract memory section used in the Implementation for code or data. It shall
be declared by the Implementation Description of the module or component, which actually allocates the
memory in its code. This means in case of data prototypes which are allocated by the RTE, that the
generated Implementation Description of the RTE shall contain the corresponding MemorySections.
The attribute "symbol" (if symbol is missing: "shortName") defines the module or component specific
section name used in the code. For details see the document "Specification of Memory Mapping".
Typically the section name is build according the pattern:
<SwAddrMethod shortName>[_<further specialization nominator>][_<alignment>] where
• [<SwAddrMethod shortName>] is the shortName of the referenced SwAddrMethod
• [_<further specialization nominator>] is an optional infix to indicate the specialization in the
case that several MemorySections for different purpose of the same Implementation Description
referring to the same or equally named SwAddrMethods.
• [_<alignment>] is the alignment attributes value and is only applicable in the case that the
memoryAllocationKeywordPolicy value of the referenced SwAddrMethod is set to addrMethod
ShortNameAndAlignment
5
5
4
Class MemorySection
4
MemorySection used to Implement the code of RunnableEntitys and BswSchedulableEntitys shall have a
symbol (if missing: shortName) identical to the referred SwAddrMethod to conform to the generated RTE
header files.
In addition to the section name described above, a prefix is used in the corresponding macro code in
order to define a name space. This prefix is by default given by the shortName of the BswModule
Description resp. the SwComponentType. It can be superseded by the prefix attribute.
Base ARObject, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
alignment AlignmentType 0..1 attr The attribute describes the alignment of objects within
this memory section.
executableEntity ExecutableEntity * ref Reference to the ExecutableEntitites located in this
section. This allows to locate different Executable
Entitities in different sections even if the associated Sw
Addrmethod is the same.
This is applicable to code sections only.
memClass CIdentifier 0..1 attr Defines a specific symbol in order to generate the
Symbol compiler abstraction "memclass" code for this Memory
Section. The existence of this attribute supersedes the
usage of swAddrmethod.shortName for this purpose.
The complete name of the "memclass" preprocessor
symbol is constructed as <prefix>_<memClassSymbol>
where prefix is defined in the same way as for the
enclosing MemorySection. See also AUTOSAR_SWS_
CompilerAbstraction SWS_COMPILER_00040.
option Identifier * attr This attribute introduces the ability to specify further
intended properties of this MemorySection. The following
two values are standardized (to be used for code sections
only and exclusively to each other):
• INLINE - The code section is declared with the
compiler abstraction macro INLINE.
• LOCAL_INLINE - The code section is declared
with the compiler abstraction macro LOCAL_
INLINE
In both cases (INLINE and LOCAL_INLINE) the inline
expansion depends on the compiler specific
implementation of these macros. Depending on this, the
code section either corresponds to an actual section in
memory or is put into the section of the caller. See
AUTOSAR_SWS_CompilerAbstraction for more details.
prefix SectionNamePrefix 0..1 ref The prefix used to set the memory section’s namespace
in the code. The existence of a prefix element
supersedes rules for a default prefix (such as the Bsw
ModuleDescription’s shortName). This allows the user to
define several name spaces for memory sections within
the scope of one module, cluster or SWC.
size PositiveInteger 0..1 attr The size in bytes of the section.
swAddrmethod SwAddrMethod 0..1 ref This association indicates that this module specific
(abstract) memory section is part of an overall SwAddr
Method, referred by the upstream declarations (e.g.
calibration parameters, data element prototypes, code
entities) which share a common addressing strategy. This
can be evaluated for the ECU configuration of the build
support.
5
5
4
Class MemorySection
4
This association shall always be declared by the
Implementation description of the module or component,
which allocates the memory in its code. This means in
case of data prototypes which are allocated by the RTE,
that the software components only declare the grouping
of its data prototypes to SwAddrMethods, and the
generated Implementation Description of the RTE actually
sets up this association.
symbol Identifier 0..1 attr Defines the section name as explained in the main
description. By using this attribute for code generation
(instead of the shortName) it is possible to define several
different MemorySections having the same name - e.g.
symbol = CODE - but using different sectionName
Prefixes.
Table D.165: MemorySection
Class MetaDataItem
Package M2::AUTOSARTemplates::SWComponentTemplate::PortInterface
Note This meta-class represents a single meta-data item.
Base ARObject
Attribute Type Mult. Kind Note
length PositiveInteger 0..1 attr This attribute determines the length of the MetaDataItem
at run-time.
metaDataItem TextValueSpecification 0..1 aggr This aggregation contributes the specification of the
Type concrete meta-data item type.
Class MetaDataItemSet
Package M2::AUTOSARTemplates::SWComponentTemplate::PortInterface
Note This meta-class represents the ability to define a set of meta-data items to be used in SenderReceiver
Interfaces.
Base ARObject
Attribute Type Mult. Kind Note
dataElement VariableDataPrototype * ref This reference identifies the dataElement for which the
ordered list of meta-data items is defined.
metaDataItem MetaDataItem * aggr This aggregation represents the ordered definition of
(ordered) meta-data items.
Class ModeAccessPoint
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::ModeDeclarationGroup
Note A ModeAccessPoint is required by a RunnableEntity owned by a Mode Manager or Mode User. Its
semantics implies the ability to access the current mode (provided by the RTE) of a ModeDeclaration
GroupPrototype’s ModeDeclarationGroup.
Base ARObject
Attribute Type Mult. Kind Note
5
4
Class ModeAccessPoint
ident ModeAccessPointIdent 0..1 aggr The aggregation in the role ident provides the ability to
make the ModeAccessPoint identifiable.
From the semantical point of view, the ModeAccessPoint
is considered a first-class Identifiable and therefore the
aggregation in the role ident shall always exist (until it
may be possible to let ModeAccessPoint directly inherit
from Identifiable).
Stereotypes: atpIdentityContributor
Tags:
atp.Status=shallBecomeMandatory
xml.sequenceOffset=-100
modeGroup ModeDeclarationGroup 0..1 iref The mode declaration group that is accessed by this
Prototype runnable.
Tags:xml.typeElement=true
InstanceRef implemented by:ModeGroupInAtomicSwc
InstanceRef
Table D.168: ModeAccessPoint
Enumeration ModeActivationKind
Package M2::AUTOSARTemplates::CommonStructure::ModeDeclaration
Note Kind of mode switch condition used for activation of an event, as further described for each
enumeration field.
Literal Description
onEntry On entering the referred mode.
Tags:atp.EnumerationLiteralIndex=0
onExit On exiting the referred mode.
Tags:atp.EnumerationLiteralIndex=1
onTransition On transition of the 1st referred mode to the 2nd referred mode.
Tags:atp.EnumerationLiteralIndex=2
Class ModeDeclaration
Package M2::AUTOSARTemplates::CommonStructure::ModeDeclaration
Note Declaration of one Mode. The name and semantics of a specific mode is not defined in the meta-model.
Base ARObject, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, MultilanguageReferrable,
Referrable
Attribute Type Mult. Kind Note
value PositiveInteger 0..1 attr The RTE shall take the value of this attribute for
generating the source code representation of this Mode
Declaration.
Table D.170: ModeDeclaration
Class ModeDeclarationGroup
Package M2::AUTOSARTemplates::CommonStructure::ModeDeclaration
Note A collection of Mode Declarations. Also, the initial mode is explicitly identified.
Tags:atp.recommendedPackage=ModeDeclarationGroups
Base ARElement, ARObject, AtpBlueprint, AtpBlueprintable, AtpClassifier , AtpType, CollectableElement,
Identifiable, MultilanguageReferrable, PackageableElement, Referrable
5
4
Class ModeDeclarationGroup
Attribute Type Mult. Kind Note
initialMode ModeDeclaration 0..1 ref The initial mode of the ModeDeclarationGroup. This
mode is active before any mode switches occurred.
mode ModeDeclaration * aggr The ModeDeclarations collected in this ModeDeclaration
Declaration Group.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=blueprintDerivationTime
modeManager ModeErrorBehavior 0..1 aggr This represents the ability to define the error behavior
ErrorBehavior expected by the mode manager in case of errors on the
mode user side (e.g. terminated mode user).
modeTransition ModeTransition * aggr This represents the avaliable ModeTransitions of the
ModeDeclarationGroup
modeUserError ModeErrorBehavior 0..1 aggr This represents the definition of the error behavior
Behavior expected by the mode user in case of errors on the mode
manager side (e.g. terminated mode manager).
onTransition PositiveInteger 0..1 attr The value of this attribute shall be taken into account by
Value the RTE generator for programmatically representing a
value used for the transition between two statuses.
Table D.171: ModeDeclarationGroup
Class ModeDeclarationGroupPrototype
Package M2::AUTOSARTemplates::CommonStructure::ModeDeclaration
Note The ModeDeclarationGroupPrototype specifies a set of Modes (ModeDeclarationGroup) which is
provided or required in the given context.
Base ARObject, AtpFeature, AtpPrototype, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
swCalibration SwCalibrationAccess 0..1 attr This allows for specifying whether or not the enclosing
Access Enum ModeDeclarationGroupPrototype can be measured at
run-time.
type ModeDeclarationGroup 0..1 tref The "collection of ModeDeclarations" ( = ModeDeclaration
Group) supported by a component
Stereotypes: isOfType
Class ModeDeclarationMappingSet
Package M2::AUTOSARTemplates::SWComponentTemplate::PortInterface
Note This meta-class implements a container for ModeDeclarationGroupMappings
Tags:atp.recommendedPackage=PortInterfaceMappingSets
Base ARElement, ARObject, AtpClassifier , AtpType, CollectableElement, Identifiable, Multilanguage
Referrable, PackageableElement, Referrable
Attribute Type Mult. Kind Note
mode ModeDeclaration * aggr This represents the collection of ModeDeclaration
Declaration Mapping Mappings owned by the enclosing ModeDeclaration
Mapping MappingSet.
Class ModeErrorBehavior
Package M2::AUTOSARTemplates::CommonStructure::ModeDeclaration
Note This represents the ability to define the error behavior in the context of mode handling.
Base ARObject
Attribute Type Mult. Kind Note
defaultMode ModeDeclaration 0..1 ref This represents the ModeDeclaration that is considered
the error mode in the context of the enclosing Mode
DeclarationGroup.
errorReaction ModeErrorReaction 0..1 attr This represents the ability to define the policy in terms of
Policy PolicyEnum which default model shall apply in case an error occurs.
Enumeration ModeErrorReactionPolicyEnum
Package M2::AUTOSARTemplates::CommonStructure::ModeDeclaration
Note This represents the ability to specify the reaction on a mode error.
Literal Description
defaultMode This represents the ability to switch to the defaultMode in case of a mode error.
Tags:atp.EnumerationLiteralIndex=0
lastMode This represents the ability to keep the last mode in case of a mode error.
Tags:atp.EnumerationLiteralIndex=1
Class ModeInterfaceMapping
Package M2::AUTOSARTemplates::SWComponentTemplate::PortInterface
Note Defines the mapping of ModeDeclarationGroupPrototypes in context of two different ModeInterfaces.
Base ARObject, AtpBlueprint, AtpBlueprintable, Identifiable, MultilanguageReferrable, PortInterfaceMapping,
Referrable
Attribute Type Mult. Kind Note
modeMapping ModeDeclarationGroup 0..1 aggr Mapping of two ModeDeclarationGroupPrototypes in two
PrototypeMapping different ModeInterfaces
Class ModeRequestTypeMap
Package M2::AUTOSARTemplates::CommonStructure::ModeDeclaration
Note Specifies a mapping between a ModeDeclarationGroup and an ImplementationDataType. This
ImplementationDataType shall be used to implement the ModeDeclarationGroup.
Base ARObject
Attribute Type Mult. Kind Note
implementation AbstractImplementation 0..1 ref This is the corresponding AbstractImplementationData
DataType DataType Type. It shall be modeled along the idea of an "unsigned
integer-like" data type.
modeGroup ModeDeclarationGroup 0..1 ref This is the corresponding ModeDeclarationGroup.
Class ModeSwitchInterface
Package M2::AUTOSARTemplates::SWComponentTemplate::PortInterface
Note A mode switch interface declares a ModeDeclarationGroupPrototype to be sent and received.
Tags:atp.recommendedPackage=PortInterfaces
Base ARElement, ARObject, AtpBlueprint, AtpBlueprintable, AtpClassifier , AtpType, CollectableElement,
Identifiable, MultilanguageReferrable, PackageableElement, PortInterface, Referrable
Attribute Type Mult. Kind Note
modeGroup ModeDeclarationGroup 0..1 aggr The ModeDeclarationGroupPrototype of this mode
Prototype interface.
Class ModeSwitchPoint
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::ModeDeclarationGroup
Note A ModeSwitchPoint is required by a RunnableEntity owned a Mode Manager. Its semantics implies the
ability to initiate a mode switch.
Base ARObject, AbstractAccessPoint, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable,
MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
modeGroup ModeDeclarationGroup 0..1 iref The mode declaration group that is switched by this
Prototype runnable.
InstanceRef implemented by:PModeGroupInAtomic
SwcInstanceRef
Class ModeSwitchReceiverComSpec
Package M2::AUTOSARTemplates::SWComponentTemplate::Communication
Note Communication attributes of RPortPrototypes with respect to mode communication
Base ARObject, RPortComSpec
Attribute Type Mult. Kind Note
enhancedMode Boolean 0..1 attr This controls the creation of the enhanced mode API that
Api returns information about the previous mode and the next
mode. If set to "true" the enhanced mode API is
supposed to be generated. For more details please refer
to the SWS_RTE.
modeGroup ModeDeclarationGroup 0..1 ref ModeDeclarationGroupPrototype (of the same Port
Prototype Interface) to which these communication attributes apply.
Tags:atp.Status=shallBecomeMandatory
supports Boolean 0..1 attr This attribute controls the behavior of the corresponding
Asynchronous RPortPrototype with respect to the question whether it
ModeSwitch can deal with asynchronous mode switch requests, i.e. if
set to true, the RPortPrototype is able to deal with an
asynchronous mode switch request.
Class ModeSwitchSenderComSpec
Package M2::AUTOSARTemplates::SWComponentTemplate::Communication
Note Communication attributes of PPortPrototypes with respect to mode communication
Base ARObject, PPortComSpec
5
4
Class ModeSwitchSenderComSpec
Attribute Type Mult. Kind Note
enhancedMode Boolean 0..1 attr This controls the creation of the enhanced mode API that
Api returns information about the previous mode and the next
mode. If set to "true" the enhanced mode API is
supposed to be generated. For more details please refer
to the SWS_RTE.
modeGroup ModeDeclarationGroup 0..1 ref ModeDeclarationGroupPrototype (of the same Port
Prototype Interface) to which these communication attributes apply.
modeSwitched ModeSwitchedAck 0..1 aggr If this aggregation exists an acknowledgement for the
Ack Request successful processing of the mode switch request is
required.
queueLength PositiveInteger 0..1 attr Length of call queue on the mode user side. The queue is
implemented by the RTE. The value shall be greater or
equal to 1. Setting the value of queueLength to 1 implies
that incoming requests are rejected while another request
that arrived earlier is being processed.
Class ModeSwitchedAckEvent
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::RTEEvents
Note The event is raised when the referenced modes have been received or an error occurs.
Base ARObject, AbstractEvent, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, Multilanguage
Referrable, RTEEvent, Referrable
Attribute Type Mult. Kind Note
eventSource ModeSwitchPoint 0..1 ref Mode switch point that triggers the event.
Class ModeSwitchedAckRequest
Package M2::AUTOSARTemplates::SWComponentTemplate::Communication
Note Requests acknowledgements that a mode switch has been proceeded successfully
Base ARObject
Attribute Type Mult. Kind Note
timeout TimeValue 0..1 attr Number of seconds before an error is reported or in case
of allowed redundancy, the value is sent again.
Class NonqueuedReceiverComSpec
Package M2::AUTOSARTemplates::SWComponentTemplate::Communication
Note Communication attributes specific to non-queued receiving.
Base ARObject, RPortComSpec, ReceiverComSpec
Attribute Type Mult. Kind Note
aliveTimeout TimeValue 0..1 attr Specify the amount of time (in seconds) after which the
software component (via the RTE) needs to be notified if
the corresponding data item have not been received
according to the specified timing description.
If the aliveTimeout attribute is 0 no timeout monitoring
shall be performed.
5
4
Class NonqueuedReceiverComSpec
enableUpdate Boolean 0..1 attr This attribute controls whether application code is entitled
to check whether the value of the corresponding Variable
DataPrototype has been updated.
filter DataFilter 0..1 aggr The applicable filter algorithm for filtering the value of the
corresponding dataElement.
handleData Boolean 0..1 attr If this attribute is set to true than the Rte_IStatus API shall
Status exist. If the attribute does not exist or is set to false then
the Rte_IStatus API may still exist in response to the
existence of further conditions.
handleNever Boolean 0..1 attr This attribute specifies whether for the corresponding
Received VariableDataPrototype the "never received" flag is
available. If yes, the RTE is supposed to assume that
initially the VariableDataPrototype has not been received
before. After the first reception of the corresponding
VariableDataPrototype the flag is cleared.
• If the value of this attribute is set to "true" the flag
is required.
• If set to "false", the RTE shall not support the
"never received" functionality for the
corresponding VariableDataPrototype.
handleTimeout HandleTimeoutEnum 0..1 attr This attribute controls the behavior with respect to the
Type handling of timeouts.
initValue ValueSpecification 0..1 aggr Initial value to be used in case the sending component is
not yet initialized. If the sender also specifies an initial
value the receiver’s value will be used.
timeout ValueSpecification 0..1 aggr This attribute represents the substitution value applicable
Substitution in the case of a timeout.
Value
Table D.184: NonqueuedReceiverComSpec
Class NonqueuedSenderComSpec
Package M2::AUTOSARTemplates::SWComponentTemplate::Communication
Note Communication attributes for non-queued sender/receiver communication (sender side)
Base ARObject, PPortComSpec, SenderComSpec
Attribute Type Mult. Kind Note
dataFilter DataFilter 0..1 aggr The applicable filter algorithm for filtering the value of the
corresponding dataElement.
initValue ValueSpecification 0..1 aggr Initial value to be sent if sender component is not yet fully
initialized, but receiver needs data already.
Class NotAvailableValueSpecification
Package M2::AUTOSARTemplates::CommonStructure::Constants
Note This meta-class provides the ability to specify a ValueSpecification to state that the respective element is
not available. This ability is needed to support the existence of ApplicationRecordElements where
attribute isOptional ist set to the value True.
Tags:atp.Status=draft
Base ARObject, ValueSpecification
Attribute Type Mult. Kind Note
5
4
Class NotAvailableValueSpecification
defaultPattern PositiveInteger 0..1 attr The content of this attribute shall be used to initialize gaps
in the memory occupied by a structured data type in the
case that an NotAvailableValueSpecification is used. Note
that this pattern is only applied during initialization!
Class NumericalRuleBasedValueSpecification
Package M2::AUTOSARTemplates::CommonStructure::Constants
Note This meta-class is used to support a rule-based initialization approach for data types with an array-nature
(ImplementationDataType of category ARRAY).
Base ARObject, AbstractRuleBasedValueSpecification, ValueSpecification
Attribute Type Mult. Kind Note
ruleBased RuleBasedValue 0..1 aggr This represents the rule based value specification for the
Values Specification array.
Tags:
xml.roleElement=true
xml.roleWrapperElement=false
xml.typeWrapperElement=false
Class NumericalValueSpecification
Package M2::AUTOSARTemplates::CommonStructure::Constants
Note A numerical ValueSpecification which is intended to be assigned to a Primitive data element. Note that
the numerical value is a variant, it can be computed by a formula.
Base ARObject, ValueSpecification
Attribute Type Mult. Kind Note
value Numerical 0..1 attr This is the value itself.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
Class NvBlockDataMapping
Package M2::AUTOSARTemplates::SWComponentTemplate::NvBlockComponent
Note Defines the mapping between the VariableDataPrototypes in the NvBlockComponents ports and the
VariableDataPrototypes of the RAM Block.
The data types of the referenced VariableDataPrototypes in the ports and the referenced sub-element
(inside a CompositeDataType) of the VariableDataPrototype representing the RAM Block shall be
compatible.
Base ARObject
Attribute Type Mult. Kind Note
bitfieldTextTable PositiveInteger 0..1 attr This attribute identifies the applicable bit mask on the side
MaskNvBlock of the Nv Block.
Descriptor
bitfieldTextTable PositiveInteger 0..1 attr This attribute identifies the applicable bit mask on the side
MaskPort of the PortPrototype.
Prototype
nvRamBlock AutosarVariableRef 0..1 aggr Reference to a VariableDataPrototype of a RAM Block.
Element
5
4
Class NvBlockDataMapping
readNvData AutosarVariableRef 0..1 aggr Reference to a VariableDataPrototype of a pPort of the
NvBlockComponent providing read access to the RAM
Block.If there is no PortPrototype providing read access
(write-only) the reference can be omitted.
writtenNvData AutosarVariableRef 0..1 aggr Reference to a VariableDataPrototype of a rPort of the Nv
BlockComponent providing write access to the RAM
Block. If there is no port providing write access
(read-only) the reference can be omitted.
writtenReadNv AutosarVariableRef 0..1 aggr Reference to a VariableDataPrototype of a PRPort
Data Prototype of the NvBlockSwComponentType providing
write and read access to the RAM Block.
Table D.189: NvBlockDataMapping
Class NvBlockDescriptor
Package M2::AUTOSARTemplates::SWComponentTemplate::NvBlockComponent
Note Specifies the properties of exactly on NVRAM Block.
Base ARObject, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, MultilanguageReferrable,
Referrable
Attribute Type Mult. Kind Note
clientServerPort RoleBasedPort * aggr The RoleBasedPortAssignement defines which client
Assignment server port of the NvBlockSwComponentType serves for
which kind of service or notification. In case of
notifications one common callback function is provided by
the RTE for each individual kind of notification defined by
the "role".
The aggregation of RoleBasedPortAssignment is subject
to variability with the purpose to support the conditional
existence of ports.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
constantValue ConstantSpecification * ref Reference to the ConstanSpecificationMapping to be
Mapping MappingSet applied for the particular NVRAM Block
Stereotypes: atpSplitable
Tags:atp.Splitkey=constantValueMapping
dataType DataTypeMappingSet * ref Reference to the DataTypeMapping to be applied for the
Mapping particular NVRAM Block.
Stereotypes: atpSplitable
Tags:atp.Splitkey=dataTypeMapping
instantiation InstantiationDataDef * aggr The purpose of InstantiationDataDefProps are the
DataDefProps Props refinement of some data def properties of individual
instantiations within the context of a NvBlockSw
ComponentType.
The aggregation of InstantiationDataDefProps is subject
to variability with the purpose to support the conditional
existence of ports, component internal memory objects
and those attributes.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
5
4
Class NvBlockDescriptor
modeSwitch ModeSwitchEvent * aggr This represents the collection of ModeSwitchEvent
EventTriggered TriggeredActivity TriggeredActivities related to the enclosing NvBlock
Activity Descriptor.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=modeSwitchEventTriggeredActivity, mode
SwitchEventTriggeredActivity.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
nvBlockData NvBlockDataMapping * aggr Defines the mapping between the VariableData
Mapping Prototypes in the NvBlockComponents ports and the
VariableDataPrototypes of the RAM Block.
The aggregation of NvBlockDataMapping is subject to
variability with the purpose to support the conditional
existence of nv data ports.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
nvBlockNeeds NvBlockNeeds 0..1 aggr Specifies the abstract needs on the configuration of the
NVRAM Manager for the single NVRAM Block described
by this NvBlockDescriptor.
In addition, it may define requirements for writing
strategies in an implementation of an NvBlockSw
ComponentType by the RTE.
Please note that the attributes nDataSets and nRom
Blocks are not relevant for this aggregation because the
RTE will allocate just one block anyway. In a different
context, however, they do make sense.
ramBlock VariableDataPrototype 0..1 aggr Defines the RAM Block of the NVRAM Block provided by
NvBlockSwComponentType.
romBlock ParameterData 0..1 aggr Defines the ROM Block of the NVRAM Block provided by
Prototype NvBlockSwComponentType.
supportDirty Boolean 0..1 attr Specifies whether calling of NvM functions for writing and/
Flag or status control of potentially modified RAM Blocks to NV
memory shall be controlled by the RTE.
timingEvent TimingEvent 0..1 ref this reference can be taken to identify the TimingEvent to
be used by the RTE for implementing a cyclic writing
strategy for this block
writingStrategy RoleBasedData 0..1 aggr This attribute allows for assigning a specific writing
Role Assignment strategy for an incoming AutosarDataPrototype.
Class NvBlockNeeds
Package M2::AUTOSARTemplates::CommonStructure::ServiceNeeds
Note Specifies the abstract needs on the configuration of a single NVRAM Block.
Base ARObject, Identifiable, MultilanguageReferrable, Referrable, ServiceNeeds
Attribute Type Mult. Kind Note
calcRamBlock Boolean 0..1 attr Defines if CRC (re)calculation for the permanent RAM
Crc Block is required.
checkStatic Boolean 0..1 attr Defines if the Static Block Id check shall be enabled.
BlockId
cyclicWriting TimeValue 0..1 attr This represents the period for cyclic writing of NvData to
Period store the associated RAM Block.
5
4
Class NvBlockNeeds
nDataSets PositiveInteger 0..1 attr Number of data sets to be provided by the NVRAM
manager for this block. This is the total number of ROM
Blocks and RAM Blocks.
nRomBlocks PositiveInteger 0..1 attr Number of ROM Blocks to be provided by the NVRAM
manager for this block. Please note that these multiple
ROM Blocks are given in a contiguous area.
ramBlockStatus RamBlockStatusControl 0..1 attr This attribute defines how the management of the RAM
Control Enum Block status is controlled.
readonly Boolean 0..1 attr True: data of this NVRAM Block are write protected for
normal operation (but protection can be disabled)
false: no restriction
reliability NvBlockNeeds 0..1 attr Reliability against data loss on the non-volatile medium.
ReliabilityEnum
resistantTo Boolean 0..1 attr Defines whether an NVRAM Block shall be treated
ChangedSw resistant to configuration changes (true) or not (false). For
details how to handle initialization in the latter case,
please refer to the NVRAM specification.
restoreAtStart Boolean 0..1 attr Defines whether the associated RAM Block shall be
implicitly restored during startup by the basic software.
selectBlockFor Boolean 0..1 attr If this attribute is set to true the NvM shall process this
FirstInitAll block in the NvM_FirstInitAll() function.
storeAt Boolean 0..1 attr Defines whether or not the associated RAM Block shall be
Shutdown implicitly stored during shutdown by the basic software.
storeCyclic Boolean 0..1 attr Defines whether or not the associated RAM Block shall
be implicitly stored periodically by the basic software.
store Boolean 0..1 attr Defines whether or not the associated RAM Block shall
Emergency be implicitly stored in case of ECU failure (e.g. loss of
power) by the basic software. If the attribute store
Emergency is set to true the associated RAM Block shall
be configured to have immediate priority.
storeImmediate Boolean 0..1 attr Defines whether or not the associated RAM Block shall
be implicitly stored immediately during or after execution
of the according SW-C RunnableEntity by the basic
software.
useAuto Boolean 0..1 attr If set to true the RAM Block shall be auto validated during
ValidationAt shutdown phase.
ShutDown
useCRCComp Boolean 0..1 attr If set to true the CRC of the RAM Block shall be
Mechanism compared during a write job with the CRC which was
calculated during the last successful read or write job in
order to skip unnecessary NVRAM writings.
writeOnlyOnce Boolean 0..1 attr Defines write protection after first write:
true: This block is prevented from being changed/erased
or being replaced with the default ROM data after first
initialization by the software-component.
false: No such restriction.
writeVerification Boolean 0..1 attr Defines if Write Verification shall be enabled for this
NVRAM Block.
writing PositiveInteger 0..1 attr Provides the amount of updates to this block from the
Frequency application point of view. It has to be provided in "number
of write access per year".
writingPriority NvBlockNeedsWriting 0..1 attr Requires the priority of writing this block in case of
PriorityEnum concurrent requests to write other blocks.
Class NvBlockSwComponentType
Package M2::AUTOSARTemplates::SWComponentTemplate::Components
Note The NvBlockSwComponentType defines non volatile data which data can be shared between Sw
ComponentPrototypes. The non volatile data of the NvBlockSwComponentType are accessible via
provided and required ports.
Tags:atp.recommendedPackage=SwComponentTypes
Base ARElement, ARObject, AtomicSwComponentType, AtpBlueprint, AtpBlueprintable, AtpClassifier , Atp
Type, CollectableElement, Identifiable, MultilanguageReferrable, PackageableElement, Referrable, Sw
ComponentType
Attribute Type Mult. Kind Note
bulkNvData BulkNvDataDescriptor * aggr This aggregation formally defines the bulk Nv Blocks that
Descriptor are provided to the application software by the enclosing
NvBlockSwComponentType.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=bulkNvDataDescriptor.shortName, bulkNv
DataDescriptor.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
nvBlock NvBlockDescriptor * aggr Specification of the properties of exactly one NVRAM
Descriptor Block.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=nvBlockDescriptor.shortName, nvBlock
Descriptor.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
Class NvDataInterface
Package M2::AUTOSARTemplates::SWComponentTemplate::PortInterface
Note A non volatile data interface declares a number of VariableDataPrototypes to be exchanged between non
volatile block components and atomic software components.
Tags:atp.recommendedPackage=PortInterfaces
Base ARElement, ARObject, AtpBlueprint, AtpBlueprintable, AtpClassifier , AtpType, CollectableElement,
DataInterface, Identifiable, MultilanguageReferrable, PackageableElement, PortInterface, Referrable
Attribute Type Mult. Kind Note
nvData VariableDataPrototype * aggr The VariableDataPrototype of this nv data interface.
Class NvRequireComSpec
Package M2::AUTOSARTemplates::SWComponentTemplate::Communication
Note Communication attributes of RPortPrototypes with respect to Nv data communication on the required
side.
Base ARObject, RPortComSpec
Attribute Type Mult. Kind Note
initValue ValueSpecification 0..1 aggr The initial value owned by the NvComSpec
variable VariableDataPrototype 0..1 ref The VariableDataPrototype the ComSpec applies for.
Class OperationInvokedEvent
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::RTEEvents
Note The OperationInvokedEvent references the ClientServerOperation invoked by the client.
Base ARObject, AbstractEvent, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, Multilanguage
Referrable, RTEEvent, Referrable
Attribute Type Mult. Kind Note
operation ClientServerOperation 0..1 iref The operation to be executed as the consequence of the
event.
InstanceRef implemented by:POperationInAtomicSwc
InstanceRef
Table D.195: OperationInvokedEvent
Class OsTaskExecutionEvent
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::RTEEvents
Note This RTEEvent is supposed to execute RunnableEntities which have to react on the execution of specific
OsTasks. Therefore, this event is unconditionally raised whenever the OsTask on which it is mapped is
executed. The main use case for this event is scheduling of Runnables of Complex Drivers which have to
react on task executions.
Tags:atp.Status=draft
Base ARObject, AbstractEvent, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, Multilanguage
Referrable, RTEEvent, Referrable
Attribute Type Mult. Kind Note
– – – – –
Table D.196: OsTaskExecutionEvent
Class PPortPrototype
Package M2::AUTOSARTemplates::SWComponentTemplate::Components
Note Component port providing a certain port interface.
Base ARObject, AbstractProvidedPortPrototype, AtpBlueprintable, AtpFeature, AtpPrototype, Identifiable,
MultilanguageReferrable, PortPrototype, Referrable
Attribute Type Mult. Kind Note
provided PortInterface 0..1 tref The interface that this port provides.
Interface
Stereotypes: isOfType
Class PRPortPrototype
Package M2::AUTOSARTemplates::SWComponentTemplate::Components
Note This kind of PortPrototype can take the role of both a required and a provided PortPrototype.
Base ARObject, AbstractProvidedPortPrototype, AbstractRequiredPortPrototype, AtpBlueprintable, Atp
Feature, AtpPrototype, Identifiable, MultilanguageReferrable, PortPrototype, Referrable
Attribute Type Mult. Kind Note
provided PortInterface 0..1 tref This represents the PortInterface used to type the PRPort
Required Prototype
Interface
Stereotypes: isOfType
Class ParameterAccess
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::DataElements
Note The presence of a ParameterAccess implies that a RunnableEntity needs access to a ParameterData
Prototype.
Base ARObject, AbstractAccessPoint, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable,
MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
accessed AutosarParameterRef 0..1 aggr Refernce to the accessed calibration parameter.
Parameter
swDataDef SwDataDefProps 0..1 aggr This allows denote instance and access specific
Props properties, mainly input values and common axis.
Class ParameterDataPrototype
Package M2::AUTOSARTemplates::SWComponentTemplate::Datatype::DataPrototypes
Note A parameter element used for parameter interface and internal behavior, supporting signal like parameter
and characteristic value communication patterns and parameter and characteristic value definition.
Base ARObject, AtpFeature, AtpPrototype, AutosarDataPrototype, DataPrototype, Identifiable, Multilanguage
Referrable, Referrable
Attribute Type Mult. Kind Note
initValue ValueSpecification 0..1 aggr Specifies initial value(s) of the ParameterDataPrototype
Class ParameterInterface
Package M2::AUTOSARTemplates::SWComponentTemplate::PortInterface
Note A parameter interface declares a number of parameter and characteristic values to be exchanged
between parameter components and software components.
Tags:atp.recommendedPackage=PortInterfaces
Base ARElement, ARObject, AtpBlueprint, AtpBlueprintable, AtpClassifier , AtpType, CollectableElement,
DataInterface, Identifiable, MultilanguageReferrable, PackageableElement, PortInterface, Referrable
Attribute Type Mult. Kind Note
parameter ParameterData * aggr The ParameterDataPrototype of this ParameterInterface.
Prototype
Class ParameterProvideComSpec
Package M2::AUTOSARTemplates::SWComponentTemplate::Communication
Note "Communication" specification that applies to parameters on the provided side of a connection.
Base ARObject, PPortComSpec
Attribute Type Mult. Kind Note
initValue ValueSpecification 0..1 aggr The initial value applicable for the corresponding
ParameterDataPrototype.
parameter ParameterData 0..1 ref The ParameterDataPrototype to which the Parameter
Prototype ComSpec applies.
Class ParameterRequireComSpec
Package M2::AUTOSARTemplates::SWComponentTemplate::Communication
Note "Communication" specification that applies to parameters on the required side of a connection.
Base ARObject, RPortComSpec
Attribute Type Mult. Kind Note
initValue ValueSpecification 0..1 aggr The initial value applicable for the corresponding
ParameterDataPrototype.
parameter ParameterData 0..1 ref The ParameterDataPrototype to which the Parameter
Prototype RequireComSpec applies.
Class ParameterSwComponentType
Package M2::AUTOSARTemplates::SWComponentTemplate::Components
Note The ParameterSwComponentType defines parameters and characteristic values accessible via provided
Ports. The provided values are the same for all connected SwComponentPrototypes
Tags:atp.recommendedPackage=SwComponentTypes
Base ARElement, ARObject, AtpBlueprint, AtpBlueprintable, AtpClassifier , AtpType, CollectableElement,
Identifiable, MultilanguageReferrable, PackageableElement, Referrable, SwComponentType
Attribute Type Mult. Kind Note
constant ConstantSpecification * ref Reference to the ConstanSpecificationMapping to be
Mapping MappingSet applied for the particular ParameterSwComponentType
Stereotypes: atpSplitable
Tags:atp.Splitkey=constantMapping
dataType DataTypeMappingSet * ref Reference to the DataTypeMapping to be applied for the
Mapping particular ParameterSwComponentType
Stereotypes: atpSplitable
Tags:atp.Splitkey=dataTypeMapping
instantiation InstantiationDataDef * aggr The purpose of this is that within the context of a given
DataDefProps Props SwComponentType some data def properties of individual
instantiations can be modified.
The aggregation of InstantiationDataDefProps is subject
to variability with the purpose to support the conditional
existence of PortPrototypes
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
Class PerInstanceMemory
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::PerInstanceMemory
Note Defines a ’C’ typed memory-block that needs to be available for each instance of the SW-component.
This is typically only useful if supportsMultipleInstantiation is set to "true" or if the software-component
defines NVRAM access via permanent blocks.
Base ARObject, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, MultilanguageReferrable,
Referrable
Attribute Type Mult. Kind Note
initValue String 0..1 attr Specifies initial value(s) of the PerInstanceMemory
swDataDef SwDataDefProps 0..1 aggr This represents the ability to to allocate RAM at specific
Props memory sections, for example, to support the RAM Block
recovery strategy by mapping to uninitialized RAM.
5
4
Class PerInstanceMemory
type CIdentifier 0..1 attr The name of the "C"-type
typeDefinition String 0..1 attr A definition of the type with the syntax of a ’C’ typedef.
Class PortAPIOption
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::PortAPIOptions
Note Options how to generate the signatures of calls for an AtomicSwComponentType in order to
communicate over a PortPrototype (for calls into a RunnableEntity as well as for calls from a Runnable
Entity to the PortPrototype).
Base ARObject
Attribute Type Mult. Kind Note
enableTake Boolean 0..1 attr If set to true, the software-component is able to use the
Address API reference for deriving a pointer to an object.
errorHandling DataTransformation 0..1 attr This specifies whether a RunnableEntity accessing a Port
ErrorHandlingEnum Prototype that is referenced by this PortAPIOption shall
specifically handle transformer errors or not.
indirectAPI Boolean 0..1 attr If set to true this attribute specifies an "indirect API" to be
generated for the associated port which means that the
software-component is able to access the actions on a
port via a pointer to an object representing a port. This
allows e.g. iterating over ports in a loop. This option has
no effect for PPortPrototypes of client/server interfaces.
port PortPrototype 0..1 ref The option is valid for generated functions related to
communication over this port
portArgValue PortDefinedArgument * aggr An argument value defined by this port.
(ordered) Value
supported SwcSupportedFeature * aggr This collection specifies which features are supported by
Feature the RunnableEntitys which access a PortPrototype that it
referenced by this PortAPIOption.
transformer DataTransformation 0..1 attr This specifies whether a RunnableEntity accessing a Port
Status StatusForwardingEnum Prototype that is referenced by this PortAPIOption shall
Forwarding be able to forward a status to the transformer chain.
Class PortDefinedArgumentValue
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::PortAPIOptions
Note A PortDefinedArgumentValue is passed to a RunnableEntity dealing with the ClientServerOperations
provided by a given PortPrototype. Note that this is restricted to PPortPrototypes of a ClientServer
Interface.
Base ARObject
Attribute Type Mult. Kind Note
value ValueSpecification 0..1 aggr Specifies the actual value.
valueType ImplementationData 0..1 tref The implementation type of this argument value. It should
Type not be composite type or a pointer.
Stereotypes: isOfType
4
Class PortPrototype (abstract)
ioHwAbstraction IoHwAbstractionServer * aggr Annotations on this IO Hardware Abstraction port.
Server Annotation
Annotation
modePort ModePortAnnotation * aggr Annotations on this mode port.
Annotation
nvDataPort NvDataPortAnnotation * aggr Annotations on this non voilatile data port.
Annotation
parameterPort ParameterPort * aggr Annotations on this parameter port.
Annotation Annotation
senderReceiver SenderReceiver * aggr Collection of annotations of this ports sender/receiver
Annotation Annotation communication.
triggerPort TriggerPortAnnotation * aggr Annotations on this trigger port.
Annotation
Table D.210: PortPrototype
Class PostBuildVariantCondition
Package M2::AUTOSARTemplates::GenericStructure::VariantHandling
Note This class specifies the value which shall be assigned to a particular variant criterion in order to bind the
variation point. If multiple criterion/value pairs are specified, they shall all match to bind the variation
point.
In other words binding can be represented by
(criterion1 == value1) && (condition2 == value2) ...
Base ARObject
Attribute Type Mult. Kind Note
matching PostBuildVariant 1 ref This is the criterion which needs to match the value in
Criterion Criterion order to make the PostbuildVariantCondition to be true.
value Integer 1 attr This is the particular value of the post-build variant
criterion.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
Class PostBuildVariantCriterion
Package M2::AUTOSARTemplates::GenericStructure::VariantHandling
Note This class specifies one particular PostBuildVariantSelector.
Tags:atp.recommendedPackage=PostBuildVariantCriterions
Base ARElement, ARObject, AtpDefinition, CollectableElement, Identifiable, MultilanguageReferrable,
PackageableElement, Referrable
Attribute Type Mult. Kind Note
compuMethod CompuMethod 1 ref The compuMethod specifies the possible values for the
variant criterion serving as an enumerator.
Class PostBuildVariantCriterionValue
Package M2::AUTOSARTemplates::GenericStructure::VariantHandling
Note This class specifies the value which shall be assigned to a particular variant criterion in order to bind the
variation point. If multiple criterion/value pairs are specified, they all shall match to bind the variation
point.
5
4
Class PostBuildVariantCriterionValue
Base ARObject
Attribute Type Mult. Kind Note
annotation Annotation * aggr This provides the ability to add information why the value
is set like it is.
Tags:xml.sequenceOffset=30
value Integer 1 attr This is the particular value of the post-build variant
criterion.
Stereotypes: atpVariation
Tags:
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=20
variantCriterion PostBuildVariant 1 ref This association selects the variant criterion whose value
Criterion is specified.
Tags:xml.sequenceOffset=10
Class PostBuildVariantCriterionValueSet
Package M2::AUTOSARTemplates::GenericStructure::VariantHandling
Note This meta-class represents the ability to denote one set of postBuildVariantCriterionValues.
Tags:atp.recommendedPackage=PostBuildVariantCriterionValueSets
Base ARElement, ARObject, CollectableElement, Identifiable, MultilanguageReferrable, Packageable
Element, Referrable
Attribute Type Mult. Kind Note
postBuildVariant PostBuildVariant * aggr This is is one particular postbuild variant criterion/value
CriterionValue CriterionValue pair being part of the PostBuildVariantSet.
Class PredefinedVariant
Package M2::AUTOSARTemplates::GenericStructure::VariantHandling
Note This specifies one predefined variant. It is characterized by the union of all system constant values and
post-build variant criterion values aggregated within all referenced system constant value sets and post
build variant criterion value sets plus the value sets of the included variants.
Tags:atp.recommendedPackage=PredefinedVariants
Base ARElement, ARObject, CollectableElement, Identifiable, MultilanguageReferrable, Packageable
Element, Referrable
Attribute Type Mult. Kind Note
includedVariant PredefinedVariant * ref The associated variants are considered part of this
PredefinedVariant. This means the settings of the
included variants are included in the settings of the
referencing PredefinedVariant. Nevertheless the included
variants might be included in several predefined variants.
postBuildVariant PostBuildVariant * ref This is the postBuildVariantCriterionValueSet contributing
CriterionValue CriterionValueSet to the predefinded variant.
Set
sw SwSystemconstant * ref This ist the set of Systemconstant Values contributing to
Systemconstant ValueSet the predefined variant.
ValueSet
Class QueuedReceiverComSpec
Package M2::AUTOSARTemplates::SWComponentTemplate::Communication
Note Communication attributes specific to queued receiving.
Base ARObject, RPortComSpec, ReceiverComSpec
Attribute Type Mult. Kind Note
queueLength PositiveInteger 0..1 attr Length of queue for received events.
Class QueuedSenderComSpec
Package M2::AUTOSARTemplates::SWComponentTemplate::Communication
Note Communication attributes specific to distribution of events (PPortPrototype, SenderReceiverInterface and
dataElement carries an "event").
Base ARObject, PPortComSpec, SenderComSpec
Attribute Type Mult. Kind Note
– – – – –
Table D.217: QueuedSenderComSpec
Class RPortPrototype
Package M2::AUTOSARTemplates::SWComponentTemplate::Components
Note Component port requiring a certain port interface.
Base ARObject, AbstractRequiredPortPrototype, AtpBlueprintable, AtpFeature, AtpPrototype, Identifiable,
MultilanguageReferrable, PortPrototype, Referrable
Attribute Type Mult. Kind Note
required PortInterface 0..1 tref The interface that this port requires.
Interface
Stereotypes: isOfType
Class RapidPrototypingScenario
Package M2::AUTOSARTemplates::SWComponentTemplate::RPTScenario
Note This meta class provides the ability to describe a Rapid Prototyping Scenario. Such a Rapid Prototyping
Scenario consist out of two main aspects, the description of the byPassPoints and the relation to an rpt
Hook.
Tags:atp.recommendedPackage=RapidPrototypingScenarios
Base ARElement, ARObject, CollectableElement, Identifiable, MultilanguageReferrable, Packageable
Element, Referrable
Attribute Type Mult. Kind Note
hostSystem System 0..1 ref System which describes the software components of the
host ECU.
rptContainer RptContainer * aggr Top-level rptContainer definitions of this specific rapid
prototyping scenario.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=rptContainer.shortName, rpt
Container.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
rptProfile RptProfile * aggr Defiens the applicable Rapid Prototyping profils which are
especially defining the smbol of the service functions and
the valid id range. The order of the RptProfiles determines
the order of the service function invocation by RTE.
Stereotypes: atpSplitable
Tags:atp.Splitkey=rptProfile.shortName
rptSystem System 0..1 ref System which describes the rapid prototyping algorithm in
the format of AUTOSAR Software Components.
Stereotypes: atpSplitable
Tags:atp.Splitkey=rptSystem
4
Class ReceiverComSpec (abstract)
maxDelta PositiveInteger 0..1 attr Initial maximum allowed gap between two counter values
CounterInit of two consecutively received valid Data, i.e. how many
subsequent lost data is accepted. For example, if the
receiver gets Data with counter 1 and MaxDeltaCounter
Init is 1, then at the next reception the receiver can accept
Counters with values 2 and 3, but not 4.
Note that if the receiver does not receive new Data at a
consecutive read, then the receiver increments the
tolerance by 1.
Caveat: The E2E wrapper approach involves
technologies that are not subjected to the AUTOSAR
standard and is superseded by the superior E2E
transformer approach (which is fully standardized by
AUTOSAR). Hence, new projects (without legacy
constraints due to carry-over parts) shall use the fully
standardized E2E transformer approach.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
maxNoNewOr PositiveInteger 0..1 attr The maximum amount of missing or repeated Data which
RepeatedData the receiver does not expect to exceed under normal
communication conditions.
Caveat: The E2E wrapper approach involves
technologies that are not subjected to the AUTOSAR
standard and is superseded by the superior E2E
transformer approach (which is fully standardized by
AUTOSAR). Hence, new projects (without legacy
constraints due to carry-over parts) shall use the fully
standardized E2E transformer approach.
network SwDataDefProps 0..1 aggr A networkRepresentation is used to define how the data
Representation Element is mapped to a communication bus.
receptionProps ReceptionComSpec 0..1 aggr "This aggregation represents the definition transmission
Props props in the context of the enclosing ReceiverComSpec.
replaceWith VariableAccess 0..1 aggr This aggregation is used to identify the AutosarData
Prototype to be taken for sourcing an external
replacement in the out-of-range handling.
syncCounterInit PositiveInteger 0..1 attr Number of Data required for validating the consistency of
the counter that shall be received with a valid counter (i.e.
counter within the allowed lock-in range) after the
detection of an unexpected behavior of a received
counter.
Caveat: The E2E wrapper approach involves
technologies that are not subjected to the AUTOSAR
standard and is superseded by the superior E2E
transformer approach (which is fully standardized by
AUTOSAR). Hence, new projects (without legacy
constraints due to carry-over parts) shall use the fully
standardized E2E transformer approach.
transformation TransformationCom * aggr This references the TransformationComSpecProps which
ComSpecProps SpecProps define port-specific configuration for data transformation.
usesEndToEnd Boolean 0..1 attr This indicates whether the corresponding dataElement
Protection shall be transmitted using end-to-end protection.
Caveat: The E2E wrapper approach involves
technologies that are not subjected to the AUTOSAR
standard and is superseded by the superior E2E
transformer approach (which is fully standardized by
5
5
4
Class ReceiverComSpec (abstract)
4
AUTOSAR). Hence, new projects (without legacy
constraints due to carry-over parts) shall use the fully
standardized E2E transformer approach.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
Class ReferenceValueSpecification
Package M2::AUTOSARTemplates::CommonStructure::Constants
Note Specifies a reference to a data prototype to be used as an initial value for a pointer in the software.
Base ARObject, ValueSpecification
Attribute Type Mult. Kind Note
referenceValue DataPrototype 0..1 ref The referenced data prototype.
Primitive RevisionLabelString
Package M2::AUTOSARTemplates::GenericStructure::GeneralTemplateClasses::PrimitiveTypes
Note This primitive represents an internal AUTOSAR revision label which identifies an engineering object. It
represents a pattern which
• supports three integers representing from left to right MajorVersion, MinorVersion, PatchVersion.
• may add an application specific suffix separated by one of ".", "_", ";".
Legal patterns are for example:
5
5
4
Primitive RevisionLabelString
4
• 4.0.0
• 4.0.0.1234565
• 4.0.0_vendor specific;13
• 4.0.0;12
Tags:
xml.xsd.customType=REVISION-LABEL-STRING
xml.xsd.pattern=[0-9]+\.[0-9]+\.[0-9]+([\._;].*)?
xml.xsd.type=string
Class RoleBasedDataAssignment
Package M2::AUTOSARTemplates::CommonStructure::ServiceNeeds
Note This class specifies an assignment of a role to a particular data object in the SwcInternalBehavior of a
software component (or in the BswModuleBehavior of a module or cluster) in the context of an AUTOSAR
Service.
With this assignment, the role of the data can be mapped to a specific ServiceNeeds element, so that a
tool is able to create the correct access.
Base ARObject
Attribute Type Mult. Kind Note
role Identifier 0..1 attr This is the role of the assigned data in the given context,
for example for an NVRAM Block it is used to distinguish
between an mirror block and a ROM default block.
Possible values need to be specified on M1 level.
This also is intended to support the so called "Signal
based Approach" of the DCM. In this use case the name
of the involved data element is required. This name shall
be taken from the DataElement referenced by the
property usedDataElement.
The following values are standardized:
• ramBlock indicates data to be used as a mirror
for an NVRAM Block.
• defaultValue indicates constant data to be used
as default in the context of this ServiceNeeds,
e.g. for an NVRAM Block.
• signalBasedDiagnostics indicates the Role
BasedDataAssignment shall be used for signal
based diagnostics.
usedData AutosarVariableRef 0..1 aggr The VariableDataPrototype used in this role, e.g.
Element
• Permanent RAM Block of an NVRAM Block
which shall belong to the same SwcInternal
Behavior or BswInternalBehavior.
• In the role signalBasedDiagnostics it has to refer
to a VariableDataPrototype in a SenderReceiver
Interface or a NvDataInterface.
5
4
Class RoleBasedDataAssignment
usedParameter AutosarParameterRef 0..1 aggr The ParameterDataPrototype used in this role, e.g.
Element
• ROM Block of an NVRAM Block. It shall belong
to the same SwcInternalBehavior or Bsw
Internalbehavior.
• In the role signalBasedDiagnostics it has to refer
to a ParameterDataPrototype in a Parameter
Interface.
usedPim PerInstanceMemory 0..1 ref The (untyped) PerInstanceMemory used in this role (e.g.
as a Permanent RAM Block for an NVRAM Block).
Class RoleBasedPortAssignment
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::ServiceMapping
Note This class specifies an assignment of a role to a particular service port (RPortPrototype or PPort
Prototype) of an AtomicSwComponentType. With this assignment, the role of the service port can be
mapped to a specific ServiceNeeds element, so that a tool is able to create the correct connector.
Base ARObject
Attribute Type Mult. Kind Note
portPrototype PortPrototype 0..1 ref Service PortPrototype used in the assigned role. This
PortPrototype shall either belong to the same AtomicSw
ComponentType as the SwcInternalBehavior which owns
the ServiceDependency or to the same NvBlockSw
ComponentType as the NvBlockDescriptor.
role Identifier 0..1 attr This is the role of the assigned Port in the given context.
The value shall be a shortName of the Blueprint of a Port
Interface as standardized in the Software Specification of
the related AUTOSAR Service.
Class RootSwCompositionPrototype
Package M2::AUTOSARTemplates::SystemTemplate
Note The RootSwCompositionPrototype represents the top-level-composition of software components within a
given System.
According to the use case of the System, this may for example be a more or less complete VFB
description, the software of a System Extract or the software of a flat ECU Extract with only atomic SWCs.
Therefore the RootSwComposition will only occasionally contain all atomic software components that are
used in a complete VFB System. The OEM is primarily interested in the required functionality and the
interfaces defining the integration of the Software Component into the System. The internal structure of
such a component contains often substantial intellectual property of a supplier. Therefore a top-level
software composition will often contain empty compositions which represent subsystems.
The contained SwComponentPrototypes are fully specified by their SwComponentTypes (including Port
Prototypes, PortInterfaces, VariableDataPrototypes, SwcInternalBehavior etc.), and their ports are
interconnected using SwConnectorPrototypes.
Base ARObject, AtpFeature, AtpPrototype, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
calibration CalibrationParameter * ref Used CalibrationParameterValueSet for instance specific
ParameterValue ValueSet initialization of calibration parameters.
Set
Stereotypes: atpSplitable
Tags:atp.Splitkey=calibrationParameterValueSet
5
4
Class RootSwCompositionPrototype
flatMap FlatMap 0..1 ref The FlatMap used in the scope of this RootSw
CompositionPrototype.
Stereotypes: atpSplitable
Tags:atp.Splitkey=flatMap
software CompositionSw 1 tref We assume that there is exactly one top-level composition
Composition ComponentType that includes all Component instances of the system
Stereotypes: isOfType
Enumeration RptAccessEnum
Package M2::AUTOSARTemplates::CommonStructure::MeasurementCalibrationSupport::RptSupport
Note Determines the access rights to a data object with respect to rapid prototyping.
Literal Description
enabled The related data element is accessible by RP tool.
Tags:atp.EnumerationLiteralIndex=0
none The related data element is not accessible by RP tool.
Tags:atp.EnumerationLiteralIndex=1
protected The data element is known to the RP tool however its usage for RP can be restricted. Use case:
limitation based on access rights
Tags:atp.EnumerationLiteralIndex=2
Class RptContainer
Package M2::AUTOSARTemplates::SWComponentTemplate::RPTScenario
Note This meta class defines a byPassPoint and the relation to a rptHook.
Additionally it may contain further rptContainers if the byPassPoint is not atomic. For example a byPass
Point refereing to a RunnableEntity may contain rptContainers referring to the data access points of the
RunnableEntity.
The RptContainer structure on M1 shall follow the M1 structure of the Software Component Descriptions.
The category attribute denotes which level of the Software Component Description is annotated.
Base ARObject, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
byPassPoint AtpFeature * iref byPassPoint desribes the required preparation of the host
ECU. At a byPassPoint the host ECU shall be capable to
communicate with a RPT System in order to support the
execution of the rapid prototyping algorithms with the
original data calculated by the host system and to replace
dedicated results of the host system by the results of the
rapid prototyping algorithm.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=byPassPoint.contextElement, byPass
Point.target, byPassPoint.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
InstanceRef implemented by:AnyInstanceRef
5
4
Class RptContainer
explicitRpt RptProfile * ref This attribute defines the applicable RptProfiles for the
ProfileSelection specific RptContainer. If not any references to a specific
RptProfile is defined, all RptProfiles defined in the Rapid
PrototypingScenario are applicable.
Stereotypes: atpSplitable
Tags:atp.Splitkey=explicitRptProfileSelection
rptContainer RptContainer * aggr Sub-level rptContainer definitions of this specific rapid
prototyping scenario.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=rptContainer.shortName, rpt
Container.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
rptExecutable RptExecutableEntity 0..1 aggr Describes the required code preparation for rapid
EntityProperties Properties prototyping at ExecutableEntity invocation.
rptHook RptHook 0..1 aggr The rptHook describes the link between a byPassPoint
and the rapid prototyping algorithm.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=rptHook, rptHook.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
rptImplPolicy RptImplPolicy 0..1 aggr Describes the required code preparation for rapid
prototyping at data accesses.
rptSw RptSwPrototyping 0..1 aggr Describes the required accessibility of data and modes by
Prototyping Access the rapid prototyping tooling.
Access
Table D.229: RptContainer
Enumeration RptEnablerImplTypeEnum
Package M2::AUTOSARTemplates::CommonStructure::MeasurementCalibrationSupport::RptSupport
Note Describes the required / implemented usage of enabler flags for data access in the code.
Literal Description
none No "RP enabler" is implemented.
Tags:atp.EnumerationLiteralIndex=0
rptEnablerRam "RP enabler" is implemented as a RAM variable
Tags:atp.EnumerationLiteralIndex=1
rptEnablerRamAnd The RTE generator implements both the RAM and ROM "RP enabler".
Rom
Tags:atp.EnumerationLiteralIndex=3
rptEnablerRom "RP enabler" is implemented as a calibrateable ROM variable.
Tags:atp.EnumerationLiteralIndex=2
Class RptExecutableEntityEvent
Package M2::AUTOSARTemplates::CommonStructure::MeasurementCalibrationSupport::RptSupport
Note This describes an ExecutableEntity event instance which can be bypassed.
Base ARObject, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
5
4
Class RptExecutableEntityEvent
execution RptExecutionContext 1..* ref This describes the context in which the event of the
Context executable entity is executed.
mcData RoleBasedMcData * aggr Reference to related McDataElements describing the
Assignment Assignment implementation of "RP runnable disabler flag" and
"stimulation enabler flag"
The possible roles of the RoleBasedMcData
Assignment.role attribute are:
• RpRunnableDisablerFlag"
rptEventId PositiveInteger 1 attr RPT event id used for service points call.
rptExecutable RptExecutableEntity 1 aggr Describes the implemented code preparation for rapid
EntityProperties Properties prototyping at ExecutableEntity invocation.
rptImplPolicy RptImplPolicy 0..1 aggr Describes the RptImplPolicy of a RptExecutableEvent for
service based bypassing.
rptServicePoint RptServicePoint 1..* ref This describes the applicable Post Service Points for a
Post RTEEvent / BswEvent of a bypassed ExecutableEntity.
rptServicePoint RptServicePoint 1..* ref This describes the applicable Pre Service Points for a
Pre RTEEvent / BswEvent of a bypassed ExecutableEntity.
Class RptExecutableEntityProperties
Package M2::AUTOSARTemplates::SWComponentTemplate::RPTScenario
Note Describes the code preparation for rapid prototyping at ExecutableEntity invocation.
Base ARObject
Attribute Type Mult. Kind Note
maxRptEventId PositiveInteger 0..1 attr Highest RPT event id useable for RTE generated service
points. This attribute is relevant, if dedicated id range
shall be applied to the ExecutableEntitys of a software
component or specific ExecutableEntitys.
minRptEventId PositiveInteger 0..1 attr Lowest RPT event id useable for RTE generated service
points. This attribute is relevant, if dedicated id range
shall be applied to the ExecutableEntitys of a software
component or specific ExecutableEntitys.
rptExecution RptExecutionControl 0..1 attr This attribute specifies the rapid prototyping control of the
Control Enum executable
rptServicePoint RptServicePointEnum 0..1 attr Enables generation of service points by the RTE
generator.
Enumeration RptExecutionControlEnum
Package M2::AUTOSARTemplates::CommonStructure::MeasurementCalibrationSupport::RptSupport
Note Determines rapid prototyping preparation of an ExecutableEntity.
Literal Description
conditional The ExecutableEntity is only executed when the rapid prototyping disable flag is NOT set.
Tags:atp.EnumerationLiteralIndex=0
none The ExecutableEntity is executed without specific rapid prototyping condition.
Tags:atp.EnumerationLiteralIndex=1
Class RptImplPolicy
Package M2::AUTOSARTemplates::SWComponentTemplate::RPTScenario
Note Describes the code preparation for rapid prototyping at data accesses.
Base ARObject
Attribute Type Mult. Kind Note
rptEnablerImpl RptEnablerImplType 0..1 attr For Level 2 or Level3 this property determines how the
Type Enum RTE implements the additional "RP enabler" flag.
rptPreparation RptPreparationEnum 0..1 attr Mandates RP preparation level for access to VariableData
Level Prototype within generated RTE implementation.
Enumeration RptPreparationEnum
Package M2::AUTOSARTemplates::CommonStructure::MeasurementCalibrationSupport::RptSupport
Note Determines the RP preparation level for access to VariableDataPrototypes within the generated RTE
implementation.
Literal Description
none No RP preparation for VariableDataPrototype.
Tags:atp.EnumerationLiteralIndex=0
rptLevel1 The RTE implementation uses an "RP global buffer" for measurement and post-build hooking
purposes.
Tags:atp.EnumerationLiteralIndex=1
rptLevel2 As rpLevel1 but the RTE implementation also uses both "RP enabler flag" to permit RP overwrite at
run-time.
Tags:atp.EnumerationLiteralIndex=2
rptLevel3 As rpLevel2 but the RTE implementation also uses "RP global measurement buffer" to record the
original ECU-generated value in addition to the RP value.
Tags:atp.EnumerationLiteralIndex=3
Class RptProfile
Package M2::AUTOSARTemplates::SWComponentTemplate::RPTScenario
Note The RptProfile describes the common properties of a Rapid Prototyping method.
Base ARObject, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
maxService PositiveInteger 0..1 attr Highest service point id useable for RTE generated
PointId service points.
minServicePoint PositiveInteger 0..1 attr Lowest service point id useable for RTE generated
Id service points.
servicePoint CIdentifier 0..1 attr Complete symbol of the function implementing the post
SymbolPost service point. This symbol is used for post-build hooking
purposes.
servicePoint CIdentifier 0..1 attr Complete symbol of the function implementing the pre
SymbolPre service point. This symbol is used for post-build hooking
purposes.
5
4
Class RptProfile
stimEnabler RptEnablerImplType 0..1 attr Defines if the service points support the stimulation
Enum enabler. If RptProfile.stimEnabler is "none" then no
stimulation enabler is passed to the service function.
Otherwise the stimulation enabler will be passed as a
parameter.
Class RptSupportData
Package M2::AUTOSARTemplates::CommonStructure::MeasurementCalibrationSupport::RptSupport
Note Root element for rapid prototyping support data related to one Implementation artifact on an ECU, in
particular the RTE. The rapid prototyping support data may reference to elements provided for Mc
SupportData.
Base ARObject
Attribute Type Mult. Kind Note
execution RptExecutionContext 1..* aggr Defines an environment for the execution of Executable
Context Entites.
rptComponent RptComponent 1..* aggr Description of components for which rapid prototyping
support is implemented.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
rptServicePoint RptServicePoint 1..* aggr This aggregation represents the collection of service
points associated with the enclosing RptSuportData
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
Class RptSwPrototypingAccess
Package M2::AUTOSARTemplates::CommonStructure::MeasurementCalibrationSupport::RptSupport
Note Describes the accessibility of data and modes by the rapid prototyping tooling.
Base ARObject
Attribute Type Mult. Kind Note
rptHookAccess RptAccessEnum 0..1 attr The related data element can be modified using a
post-build hooking tool. An ENABLED VariableData
Prototype is implicitly READABLE/WRITABLE.
rptReadAccess RptAccessEnum 0..1 attr The related data element can be used as input for bypass
functionality by RP tool. If rptImplPolicy is not specified
then RTE generation shall ensure at least suitable MC
read points are created.
rptWriteAccess RptAccessEnum 0..1 attr The related data element can be used as output for
bypass functionality by RP tool. The data element shall
be prepared to rptLevel2 and related write service points
are present.
Enumeration RteApiReturnValueProvisionEnum
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::AccessCount
Note This meta-class provides values to control how return values from RTE APIs are provided.
Literal Description
5
4
Enumeration RteApiReturnValueProvisionEnum
noReturnValue The RTE API shall not provide a return value.
Provided
Tags:atp.EnumerationLiteralIndex=1
returnValue The RTE API shall provide a return value.
Provided
Tags:atp.EnumerationLiteralIndex=0
Class RtePluginProps
Package M2::AUTOSARTemplates::CommonStructure::FlatMap
Note The properties of a communication graph with respect to the utilization of RTE Implementation Plug-in.
Base ARObject
Attribute Type Mult. Kind Note
associated EcucContainerValue 0..1 ref This associates a communication graph to a specific RTE
CrossSwCluster Implementation Plug-in handling cross Software Cluster
ComRtePlugin communication.
associatedRte EcucContainerValue 0..1 ref This associates a communication graph to a specific RTE
Plugin Implementation Plug-in handling local Software Cluster
communication or communication in a non-cluster ECU.
Class RuleBasedValueSpecification
Package M2::AUTOSARTemplates::CommonStructure::Constants
Note This meta-class is used to support a rule-based initialization approach for data types with an array-nature
(ApplicationArrayDataType and ImplementationDataType of category ARRAY) or a compound Application
PrimitiveDataType (which also boils down to an array-nature).
Base ARObject
Attribute Type Mult. Kind Note
arguments RuleArguments 0..1 aggr This represents the arguments for the RuleBasedValue
Specification.
Stereotypes: atpVariation
Tags:
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=30
maxSizeToFill Integer 0..1 attr If a rule is chosen which does not fill until the end, this
determines until which size the rule shall fill the values.
Tags:xml.sequenceOffset=40
rule Identifier 0..1 attr This denotes the name of the rule of the RuleBasedValue
Specification. The rule determines the calculation
specification according which the arguments are used to
calculated the values.
Tags:xml.sequenceOffset=20
Class RunnableEntity
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior
Note A RunnableEntity represents the smallest code-fragment that is provided by an AtomicSwComponent
Type and are executed under control of the RTE. RunnableEntities are for instance set up to respond to
data reception or operation invocation on a server.
5
4
Class RunnableEntity
Base ARObject, AtpClassifier , AtpFeature, AtpStructureElement, ExecutableEntity , Identifiable, Multilanguage
Referrable, Referrable
Attribute Type Mult. Kind Note
argument RunnableEntity * aggr This represents the formal definition of a an argument to
(ordered) Argument a RunnableEntity.
asynchronous AsynchronousServer * aggr The server call result point admits a runnable to fetch the
ServerCall CallResultPoint result of an asynchronous server call.
ResultPoint
The aggregation of AsynchronousServerCallResultPoint
is subject to variability with the purpose to support the
conditional existence of client server PortPrototypes and
the variant existence of server call result points in the
implementation.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=asynchronousServerCallResultPoint.short
Name, asynchronousServerCallResultPoint.variation
Point.shortLabel
vh.latestBindingTime=preCompileTime
canBeInvoked Boolean 0..1 attr If the value of this attribute is set to "true" the enclosing
Concurrently RunnableEntity can be invoked concurrently (even for one
instance of the corresponding AtomicSwComponent
Type). This implies that it is the responsibility of the
implementation of the RunnableEntity to take care of this
form of concurrency. Note that the default value of this
attribute is set to "false".
dataRead VariableAccess * aggr RunnableEntity has implicit read access to dataElement
Access of a sender-receiver PortPrototype or nv data of a nv data
PortPrototype.
The aggregation of dataReadAccess is subject to
variability with the purpose to support the conditional
existence of sender receiver ports or the variant existence
of dataReadAccess in the implementation.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=dataReadAccess.shortName, dataRead
Access.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
dataReceive VariableAccess * aggr RunnableEntity has explicit read access to dataElement
PointBy of a sender-receiver PortPrototype or nv data of a nv data
Argument PortPrototype. The result is passed back to the
application by means of an argument in the function
signature.
The aggregation of dataReceivePointByArgument is
subject to variability with the purpose to support the
conditional existence of sender receiver PortPrototype or
the variant existence of data receive points in the
implementation.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=dataReceivePointByArgument.shortName,
dataReceivePointByArgument.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
5
4
Class RunnableEntity
dataReceive VariableAccess * aggr RunnableEntity has explicit read access to dataElement
PointByValue of a sender-receiver PortPrototype or nv data of a nv data
PortPrototype.
The result is passed back to the application by means of
the return value. The aggregation of dataReceivePointBy
Value is subject to variability with the purpose to support
the conditional existence of sender receiver ports or the
variant existence of data receive points in the
implementation.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=dataReceivePointByValue.shortName, data
ReceivePointByValue.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
dataSendPoint VariableAccess * aggr RunnableEntity has explicit write access to dataElement
of a sender-receiver PortPrototype or nv data of a nv data
PortPrototype.
The aggregation of dataSendPoint is subject to variability
with the purpose to support the conditional existence of
sender receiver PortPrototype or the variant existence of
data send points in the implementation.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=dataSendPoint.shortName, dataSend
Point.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
dataWrite VariableAccess * aggr RunnableEntity has implicit write access to dataElement
Access of a sender-receiver PortPrototype or nv data of a nv data
PortPrototype.
The aggregation of dataWriteAccess is subject to
variability with the purpose to support the conditional
existence of sender receiver ports or the variant existence
of dataWriteAccess in the implementation.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=dataWriteAccess.shortName, dataWrite
Access.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
external ExternalTriggeringPoint * aggr The aggregation of ExternalTriggeringPoint is subject to
TriggeringPoint variability with the purpose to support the conditional
existence of trigger ports or the variant existence of
external triggering points in the implementation.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=externalTriggeringPoint.ident.shortName,
externalTriggeringPoint.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
internal InternalTriggeringPoint * aggr The aggregation of InternalTriggeringPoint is subject to
TriggeringPoint variability with the purpose to support the variant
existence of internal triggering points in the
implementation.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=internalTriggeringPoint.shortName, internal
TriggeringPoint.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
5
4
Class RunnableEntity
modeAccess ModeAccessPoint * aggr The runnable has a mode access point. The aggregation
Point of ModeAccessPoint is subject to variability with the
purpose to support the conditional existence of mode
ports or the variant existence of mode access points in
the implementation.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=modeAccessPoint.ident.shortName, mode
AccessPoint.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
modeSwitch ModeSwitchPoint * aggr The runnable has a mode switch point. The aggregation
Point of ModeSwitchPoint is subject to variability with the
purpose to support the conditional existence of mode
ports or the variant existence of mode switch points in the
implementation.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=modeSwitchPoint.shortName, modeSwitch
Point.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
parameter ParameterAccess * aggr The presence of a ParameterAccess implies that a
Access RunnableEntity needs read only access to a Parameter
DataPrototype which may either be local or within a Port
Prototype.
The aggregation of ParameterAccess is subject to
variability with the purpose to support the conditional
existence of parameter ports and component local
parameters as well as the variant existence of Parameter
Access (points) in the implementation.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=parameterAccess.shortName, parameter
Access.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
readLocal VariableAccess * aggr The presence of a readLocalVariable implies that a
Variable RunnableEntity needs read access to a VariableData
Prototype in the role of implicitInterRunnableVariable or
explicitInterRunnableVariable.
The aggregation of readLocalVariable is subject to
variability with the purpose to support the conditional
existence of implicitInterRunnableVariable and explicit
InterRunnableVariable or the variant existence of read
LocalVariable (points) in the implementation.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=readLocalVariable.shortName, readLocal
Variable.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
serverCallPoint ServerCallPoint * aggr The RunnableEntity has a ServerCallPoint. The
aggregation of ServerCallPoint is subject to variability with
the purpose to support the conditional existence of client
server PortPrototypes or the variant existence of server
call points in the implementation.
5
5
4
Class RunnableEntity
4
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=serverCallPoint.shortName, serverCall
Point.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
symbol CIdentifier 0..1 attr The symbol describing this RunnableEntity’s entry point.
This is considered the API of the RunnableEntity and is
required during the RTE contract phase.
waitPoint WaitPoint * aggr The WaitPoint associated with the RunnableEntity.
writtenLocal VariableAccess * aggr The presence of a writtenLocalVariable implies that a
Variable RunnableEntity needs write access to a VariableData
Prototype in the role of implicitInterRunnableVariable or
explicitInterRunnableVariable.
The aggregation of writtenLocalVariable is subject to
variability with the purpose to support the conditional
existence of implicitInterRunnableVariable and explicit
InterRunnableVariable or the variant existence of written
LocalVariable (points) in the implementation.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=writtenLocalVariable.shortName, written
LocalVariable.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
Class RunnableEntityArgument
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::RunnableEntity
Note This meta-class represents the ability to provide specific information regarding the arguments to a
RunnableEntity.
Base ARObject
Attribute Type Mult. Kind Note
symbol CIdentifier 0..1 attr This represents the symbol to be generated into the
actual signature on the level of the C programming
language.
Class RunnableEntityGroup
Package M2::AUTOSARTemplates::SWComponentTemplate::ImplicitCommunicationBehavior
Note This meta-class represents the ability to define a collection of RunnableEntities. The collection can be
nested.
Base ARObject, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, MultilanguageReferrable,
Referrable
Attribute Type Mult. Kind Note
runnableEntity RunnableEntity * iref This represents a collection of RunnableEntitys that
belong to the enclosing RunnableEntityGroup.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
InstanceRef implemented by:RunnableEntityIn
CompositionInstanceRef
5
4
Class RunnableEntityGroup
runnableEntity RunnableEntityGroup * iref This represents the ability to define nested groups of
Group RunnableEntitys.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
InstanceRef implemented by:InnerRunnableEntity
GroupInCompositionInstanceRef
Class Sdg
Package M2::MSR::AsamHdo::SpecialData
Note Sdg (SpecialDataGroup) is a generic model which can be used to keep arbitrary information which is not
explicitly modeled in the meta-model.
Sdg can have various contents as defined by sdgContentsType. Special Data should only be used
moderately since all elements should be defined in the meta-model.
Thereby SDG should be considered as a temporary solution when no explicit model is available. If an sdg
Caption is available, it is possible to establish a reference to the sdg structure.
Base ARObject
Attribute Type Mult. Kind Note
gid NameToken 1 attr This attributes specifies an identifier. Gid comes from the
SGML/XML-Term "Generic Identifier" which is the
element name in XML. The role of this attribute is the
same as the name of an XML - element.
Tags:xml.attribute=true
sdgCaption SdgCaption 0..1 aggr This aggregation allows to assign the properties of
Identifiable to the sdg. By this, a shortName etc. can be
assigned to the Sdg.
Tags:xml.sequenceOffset=20
sdgContents SdgContents 0..1 aggr This is the content of the Sdg.
Type
Tags:
xml.roleElement=false
xml.roleWrapperElement=false
xml.sequenceOffset=30
xml.typeElement=false
xml.typeWrapperElement=false
Class ScaleConstr
Package M2::MSR::AsamHdo::Constraints::GlobalConstraints
Note This meta-class represents the ability to specify constraints as a list of intervals (called scales).
Base ARObject
Attribute Type Mult. Kind Note
desc MultiLanguageOverview 0..1 aggr <desc> represents a general but brief description of the
Paragraph object in question.
Tags:xml.sequenceOffset=30
lowerLimit Limit 0..1 attr This specifies the lower limit of the scale.
Stereotypes: atpVariation
Tags:
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=40
5
4
Class ScaleConstr
shortLabel Identifier 0..1 attr This element specifies a short name for the scaleConstr.
This can for example be used to create more specific
messages of a constraint checker. The constraints cannot
be associated in the meta-model, therefore shortLabel is
somehow a substitute for shortName.
Tags:xml.sequenceOffset=20
upperLimit Limit 0..1 attr This specifies the upper limit of a the scale.
Stereotypes: atpVariation
Tags:
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=50
validity ScaleConstrValidity 0..1 attr Specifies if the values defined by the scales are
Enum considered to be valid. If the attribute is missing then the
default value is "VALID".
Tags:xml.attribute=true
Class SectionNamePrefix
Package M2::AUTOSARTemplates::CommonStructure::ResourceConsumption::MemorySectionUsage
Note A prefix to be used for generated code artifacts defining a memory section name in the source code of
the using module or SWC.
Base ARObject, ImplementationProps, Referrable
Attribute Type Mult. Kind Note
implementedIn DependencyOnArtifact 0..1 ref Optional reference that allows to Indicate the code artifact
(header file) containing the preprocessor implementation
of memory sections with this prefix.
The usage of this link supersedes the usage of a memory
mapping header with the default name (derived from the
BswModuleDescription’s shortName).
Enumeration SendIndicationEnum
Package M2::AUTOSARTemplates::SystemTemplate::SoftwareCluster
Note This meta-class provides a way to specify in which way redundancy shall be applied on collection
level.
Tags:atp.Status=draft
Literal Description
anySendOperation This value represents the requirement that any send operation of the Software Cluster is indicated.
Tags:atp.EnumerationLiteralIndex=2
none This value represents the requirement that send operations of the Software Cluster are not indicated.
Tags:atp.EnumerationLiteralIndex=1
4
Class SenderComSpec (abstract)
Subclasses NonqueuedSenderComSpec, QueuedSenderComSpec
Attribute Type Mult. Kind Note
composite CompositeNetwork * aggr This represents a CompositeNetworkRepresentation
Network Representation defined in the context of a SenderComSpec.
Representation
dataElement AutosarDataPrototype 0..1 ref Data element these quality of service attributes apply to.
handleOutOf HandleOutOfRange 0..1 attr This attribute controls how out-of-range values shall be
Range Enum dealt with.
network SwDataDefProps 0..1 aggr A networkRepresentation is used to define how the data
Representation Element is mapped to a communication bus.
transmission Transmission 0..1 aggr Requested transmission acknowledgement for data
Acknowledge Acknowledgement element.
Request
transmission TransmissionComSpec 0..1 aggr This aggregation represents the definition transmission
Props Props props in the context of the enclosing SenderComSpec.
usesEndToEnd Boolean 0..1 attr This indicates whether the corresponding dataElement
Protection shall be transmitted using end-to-end protection.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
Class SenderReceiverInterface
Package M2::AUTOSARTemplates::SWComponentTemplate::PortInterface
Note A sender/receiver interface declares a number of data elements to be sent and received.
Tags:atp.recommendedPackage=PortInterfaces
Base ARElement, ARObject, AtpBlueprint, AtpBlueprintable, AtpClassifier , AtpType, CollectableElement,
DataInterface, Identifiable, MultilanguageReferrable, PackageableElement, PortInterface, Referrable
Attribute Type Mult. Kind Note
dataElement VariableDataPrototype * aggr The data elements of this SenderReceiverInterface.
invalidation InvalidationPolicy * aggr InvalidationPolicy for a particular dataElement
Policy
metaDataItem MetaDataItemSet * aggr This aggregation defines fixed sets of meta-data items
Set associated with dataElements of the enclosing Sender
ReceiverInterface
Table D.250: SenderReceiverInterface
Class SenderReceiverToSignalGroupMapping
Package M2::AUTOSARTemplates::SystemTemplate::DataMapping
Note Mapping of a sender receiver communication data element with a composite datatype to a signal group.
Base ARObject, DataMapping
Attribute Type Mult. Kind Note
dataElement VariableDataPrototype 1 iref Reference to a data element with a composite datatype
which is mapped to a signal group.
InstanceRef implemented by:VariableDataPrototypeIn
SystemInstanceRef
signalGroup SystemSignalGroup 1 ref Reference to the signal group, which contain all primitive
datatypes of the composite type
5
4
Class SenderReceiverToSignalGroupMapping
typeMapping SenderRecComposite 1 aggr The CompositeTypeMapping maps the ApplicationArray
TypeMapping Elements and ApplicationRecordElements to Signals of
the SignalGroup.
Class SenderReceiverToSignalMapping
Package M2::AUTOSARTemplates::SystemTemplate::DataMapping
Note Mapping of a sender receiver communication data element to a signal.
Base ARObject, DataMapping
Attribute Type Mult. Kind Note
dataElement VariableDataPrototype 1 iref Reference to the data element.
InstanceRef implemented by:VariableDataPrototypeIn
SystemInstanceRef
senderToSignal TextTableMapping 0..1 aggr This mapping allows for the text-table translation between
TextTable the sending DataPrototype that is defined in the Port
Mapping Prototype and the physicalProps defined for the System
Signal.
signalTo TextTableMapping 0..1 aggr This mapping allows for the text-table translation between
ReceiverText the physicalProps defined for the SystemSignal and a
TableMapping receiving DataPrototype that is defined in the Port
Prototype.
systemSignal SystemSignal 1 ref Reference to the system signal used to carry the data
element.
Table D.252: SenderReceiverToSignalMapping
Class SensorActuatorSwComponentType
Package M2::AUTOSARTemplates::SWComponentTemplate::Components
Note The SensorActuatorSwComponentType introduces the possibility to link from the software representation
of a sensor/actuator to its hardware description provided by the ECU Resource Template.
Tags:atp.recommendedPackage=SwComponentTypes
Base ARElement, ARObject, AtomicSwComponentType, AtpBlueprint, AtpBlueprintable, AtpClassifier , Atp
Type, CollectableElement, Identifiable, MultilanguageReferrable, PackageableElement, Referrable, Sw
ComponentType
Attribute Type Mult. Kind Note
sensorActuator HwDescriptionEntity 0..1 ref Reference from the Sensor Actuator Software Component
Type to the description of the actual hardware.
Enumeration ServerArgumentImplPolicyEnum
Package M2::AUTOSARTemplates::SWComponentTemplate::PortInterface
Note This defines how the argument type of the servers RunnableEntity is implemented.
Literal Description
useArgumentType The argument type of the RunnableEntity is derived from the AutosarDataType of the Argument
Prototype.
Tags:atp.EnumerationLiteralIndex=0
useVoid The argument type of the RunnableEntity is void.
Tags:atp.EnumerationLiteralIndex=2
Class ServerComSpec
Package M2::AUTOSARTemplates::SWComponentTemplate::Communication
Note Communication attributes for a server port (PPortPrototype and ClientServerInterface).
Base ARObject, PPortComSpec
Attribute Type Mult. Kind Note
operation ClientServerOperation 0..1 ref Operation these communication attributes apply to.
queueLength PositiveInteger 0..1 attr Length of call queue on the server side. The queue is
implemented by the RTE. The value shall be greater or
equal to 1. Setting the value of queueLength to 1 implies
that incoming requests are rejected while another request
that arrived earlier is being processed.
transformation TransformationCom * aggr This references the TransformationComSpecProps which
ComSpecProps SpecProps define port-specific configuration for data transformation.
Class ServiceProxySwComponentType
Package M2::AUTOSARTemplates::SWComponentTemplate::Components
Note This class provides the ability to express a software-component which provides access to an internal
service for remote ECUs. It acts as a proxy for the service providing access to the service.
An important use case is the request of vehicle mode switches: Such requests can be communicated via
sender-receiver interfaces across ECU boundaries, but the mode manager being responsible to perform
the mode switches is an AUTOSAR Service which is located in the Basic Software and is not visible in
the VFB view. To handle this situation, a ServiceProxySwComponentType will act as proxy for the mode
manager. It will have R-Ports to be connected with the mode requestors on VFB level and Service-Ports
to be connected with the local mode manager at ECU integration time.
Apart from the semantics, a ServiceProxySwComponentType has these specific properties:
• A prototype of it can be mapped to more than one ECUs in the system description.
• Exactly one additional instance of it will be created in the ECU-Extract per ECU to which the
prototype has been mapped.
• For remote communication, it can have only R-Ports with sender-receiver interfaces and 1:n
semantics.
• There shall be no connectors between two prototypes of any ServiceProxySwComponentType.
Tags:atp.recommendedPackage=SwComponentTypes
5
4
Class ServiceProxySwComponentType
Base ARElement, ARObject, AtomicSwComponentType, AtpBlueprint, AtpBlueprintable, AtpClassifier , Atp
Type, CollectableElement, Identifiable, MultilanguageReferrable, PackageableElement, Referrable, Sw
ComponentType
Attribute Type Mult. Kind Note
– – – – –
Table D.257: ServiceProxySwComponentType
Class ServiceSwComponentType
Package M2::AUTOSARTemplates::SWComponentTemplate::Components
Note ServiceSwComponentType is used for configuring services for a given ECU. Instances of this class are
only to be created in ECU Configuration phase for the specific purpose of the service configuration.
Tags:atp.recommendedPackage=SwComponentTypes
Base ARElement, ARObject, AtomicSwComponentType, AtpBlueprint, AtpBlueprintable, AtpClassifier , Atp
Type, CollectableElement, Identifiable, MultilanguageReferrable, PackageableElement, Referrable, Sw
ComponentType
Attribute Type Mult. Kind Note
– – – – –
Table D.258: ServiceSwComponentType
Class SubElementMapping
Package M2::AUTOSARTemplates::SWComponentTemplate::PortInterface
Note This meta-class allows for the definition of mappings of elements of a composite data type.
Base ARObject
Attribute Type Mult. Kind Note
firstElement SubElementRef 0..1 aggr This represents the first element referenced in the scope
of the mapping.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
secondElement SubElementRef 0..1 aggr This represents the second element referenced in the
scope of the mapping.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
textTable TextTableMapping 0..2 aggr This allows for the text-table translation of individual
Mapping elements of a composite data type.
Class SwAddrMethod
Package M2::MSR::DataDictionary::AuxillaryObjects
Note Used to assign a common addressing method, e.g. common memory section, to data or code objects.
These objects could actually live in different modules or components.
Tags:atp.recommendedPackage=SwAddrMethods
Base ARElement, ARObject, AtpBlueprint, AtpBlueprintable, CollectableElement, Identifiable, Multilanguage
Referrable, PackageableElement, Referrable
Attribute Type Mult. Kind Note
memory MemoryAllocation 0..1 attr Enumeration to specify the name pattern of the Memory
Allocation KeywordPolicyType Allocation Keyword.
KeywordPolicy
5
4
Class SwAddrMethod
option Identifier * attr This attribute introduces the ability to specify further
intended properties of the MemorySection in with the
related objects shall be placed.
These properties are handled as to be selected. The
intended options are mentioned in the list.
In the Memory Mapping configuration, this option list is
used to determine an appropriate MemMapAddressing
ModeSet.
section SectionInitialization 0..1 attr Specifies the expected initialization of the variables
Initialization PolicyType (inclusive those which are implementing VariableData
Policy Prototypes). Therefore this is an implementation
constraint for initialization code of BSW modules
(especially RTE) as well as the start-up code which
initializes the memory segment to which the AutosarData
Prototypes referring to the SwAddrMethod’s are later on
mapped.
If the attribute is not defined it has the identical semantic
as the attribute value "INIT"
sectionType MemorySectionType 0..1 attr Defines the type of memory sections which can be
associated with this addresssing method.
Class SwBaseType
Package M2::MSR::AsamHdo::BaseTypes
Note This meta-class represents a base type used within ECU software.
Tags:atp.recommendedPackage=BaseTypes
Base ARElement, ARObject, AtpBlueprint, AtpBlueprintable, BaseType, CollectableElement, Identifiable,
MultilanguageReferrable, PackageableElement, Referrable
Attribute Type Mult. Kind Note
– – – – –
Table D.261: SwBaseType
Enumeration SwCalibrationAccessEnum
Package M2::MSR::DataDictionary::DataDefProperties
Note Determines the access rights to a data object w.r.t. measurement and calibration.
Literal Description
notAccessible The element will not be accessible via MCD tools, i.e. will not appear in the ASAP file.
Tags:atp.EnumerationLiteralIndex=0
readOnly The element will only appear as read-only in an ASAP file.
Tags:atp.EnumerationLiteralIndex=1
readWrite The element will appear in the ASAP file with both read and write access.
Tags:atp.EnumerationLiteralIndex=2
Class SwComponentPrototype
Package M2::AUTOSARTemplates::SWComponentTemplate::Composition
Note Role of a software component within a composition.
Base ARObject, AtpFeature, AtpPrototype, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
type SwComponentType 0..1 tref Type of the instance.
Stereotypes: isOfType
4
Class <<atpVariation>> SwDataDefProps
annotation Annotation * aggr This aggregation allows to add annotations (yellow pads
...) related to the current data object.
Tags:
xml.roleElement=true
xml.roleWrapperElement=true
xml.sequenceOffset=20
xml.typeElement=false
xml.typeWrapperElement=false
baseType SwBaseType 0..1 ref Base type associated with the containing data object.
Tags:xml.sequenceOffset=50
compuMethod CompuMethod 0..1 ref Computation method associated with the semantics of
this data object.
Tags:xml.sequenceOffset=180
dataConstr DataConstr 0..1 ref Data constraint for this data object.
Tags:xml.sequenceOffset=190
displayFormat DisplayFormatString 0..1 attr This property describes how a number is to be rendered
e.g. in documents or in a measurement and calibration
system.
Tags:xml.sequenceOffset=210
display DisplayPresentation 0..1 attr This attribute controls the presentation of the related data
Presentation Enum for measurement and calibration tools.
implementation AbstractImplementation 0..1 ref This association denotes the ImplementationDataType of
DataType DataType a data declaration via its aggregated SwDataDefProps. It
is used whenever a data declaration is not directly
referring to a base type. Especially
• redefinition of an ImplementationDataType via a
"typedef" to another ImplementationDatatype
• the target type of a pointer (see SwPointerTarget
Props), if it does not refer to a base type directly
• the data type of an array or record element within
an ImplementationDataType, if it does not refer to
a base type directly
• the data type of an SwServiceArg, if it does not
refer to a base type directly
Tags:xml.sequenceOffset=215
invalidValue ValueSpecification 0..1 aggr Optional value to express invalidity of the actual data
element.
Tags:xml.sequenceOffset=255
stepSize Float 0..1 attr This attribute can be used to define a value which is
added to or subtracted from the value of a DataPrototype
when using up/down keys while calibrating.
swAddrMethod SwAddrMethod 0..1 ref Addressing method related to this data object. Via an
association to the same SwAddrMethod it can be
specified that several DataPrototypes shall be located in
the same memory without already specifying the memory
section itself.
Tags:xml.sequenceOffset=30
5
4
Class <<atpVariation>> SwDataDefProps
swAlignment AlignmentType 0..1 attr The attribute describes the intended alignment of the
DataPrototype. If the attribute is not defined the alignment
is determined by the swBaseType size and the memory
AllocationKeywordPolicy of the referenced SwAddr
Method.
Tags:xml.sequenceOffset=33
swBit SwBitRepresentation 0..1 aggr Description of the binary representation in case of a bit
Representation variable.
Tags:xml.sequenceOffset=60
swCalibration SwCalibrationAccess 0..1 attr Specifies the read or write access by MCD tools for this
Access Enum data object.
Tags:xml.sequenceOffset=70
swCalprmAxis SwCalprmAxisSet 0..1 aggr This specifies the properties of the axes in case of a
Set curve or map etc. This is mainly applicable to calibration
parameters.
Tags:xml.sequenceOffset=90
swComparison SwVariableRefProxy * aggr Variables used for comparison in an MCD process.
Variable
Tags:
xml.sequenceOffset=170
xml.typeElement=false
swData SwDataDependency 0..1 aggr Describes how the value of the data object has to be
Dependency calculated from the value of another data object (by the
MCD system).
Tags:xml.sequenceOffset=200
swHostVariable SwVariableRefProxy 0..1 aggr Contains a reference to a variable which serves as a
host-variable for a bit variable. Only applicable to bit
objects.
Tags:
xml.sequenceOffset=220
xml.typeElement=false
swImplPolicy SwImplPolicyEnum 0..1 attr Implementation policy for this data object.
Tags:xml.sequenceOffset=230
swIntended Numerical 0..1 attr The purpose of this element is to describe the requested
Resolution quantization of data objects early on in the design
process.
The resolution ultimately occurs via the conversion
formula present (compuMethod), which specifies the
transition from the physical world to the standardized
world (and vice-versa) (here, "the slope per bit" is present
implicitly in the conversion formula).
In the case of a development phase without a fixed
conversion formula, a pre-specification can occur through
swIntendedResolution.
The resolution is specified in the physical domain
according to the property "unit".
Tags:xml.sequenceOffset=240
swInterpolation Identifier 0..1 attr This is a keyword identifying the mathematical method to
Method be applied for interpolation. The keyword needs to be
related to the interpolation routine which needs to be
invoked.
Tags:xml.sequenceOffset=250
5
4
Class <<atpVariation>> SwDataDefProps
swIsVirtual Boolean 0..1 attr This element distinguishes virtual objects. Virtual objects
do not appear in the memory, their derivation is much
more dependent on other objects and hence they shall
have a swDataDependency .
Tags:xml.sequenceOffset=260
swPointerTarget SwPointerTargetProps 0..1 aggr Specifies that the containing data object is a pointer to
Props another data object.
Tags:xml.sequenceOffset=280
swRecord SwRecordLayout 0..1 ref Record layout for this data object.
Layout
Tags:xml.sequenceOffset=290
swRefresh MultidimensionalTime 0..1 aggr This element specifies the frequency in which the object
Timing involved shall be or is called or calculated. This timing
can be collected from the task in which write access
processes to the variable run. But this cannot be done by
the MCD system.
So this attribute can be used in an early phase to express
the desired refresh timing and later on to specify the real
refresh timing.
Tags:xml.sequenceOffset=300
swTextProps SwTextProps 0..1 aggr the specific properties if the data object is a text object.
Tags:xml.sequenceOffset=120
swValueBlock Numerical 0..1 attr This represents the size of a Value Block
Size
Stereotypes: atpVariation
Tags:
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=80
swValueBlock Numerical * attr This attribute is used to specify the dimensions of a value
SizeMult block (VAL_BLK) for the case that that value block has
(ordered) more than one dimension.
The dimensions given in this attribute are ordered such
that the first entry represents the first dimension, the
second entry represents the second dimension, and so
on.
For one-dimensional value blocks the attribute swValue
BlockSize shall be used and this attribute shall not exist.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
unit Unit 0..1 ref Physical unit associated with the semantics of this data
object. This attribute applies if no compuMethod is
specified. If both units (this as well as via compuMethod)
are specified the units shall be compatible.
Tags:xml.sequenceOffset=350
valueAxisData ApplicationPrimitive 0..1 ref The referenced ApplicationPrimitiveDataType represents
Type DataType the primitive data type of the value axis within a
compound primitive (e.g. curve, map). It supersedes
CompuMethod, Unit, and BaseType.
Tags:xml.sequenceOffset=355
Enumeration SwImplPolicyEnum
Package M2::MSR::DataDictionary::DataDefProperties
Note Specifies the implementation strategy with respect to consistency mechanisms of variables.
Literal Description
const forced implementation such that the running software within the ECU shall not modify it. For example
implemented with the "const" modifier in C. This can be applied for parameters (not for those in
NVRAM) as well as argument data prototypes.
Tags:atp.EnumerationLiteralIndex=0
fixed This data element is fixed. In particular this indicates, that it might also be implemented e.g. as in
place data, (#DEFINE).
Tags:atp.EnumerationLiteralIndex=1
measurementPoint The data element is created for measurement purposes only. The data element is never read directly
within the ECU software. In contrast to a "standard" data element in an unconnected provide port is,
this unconnection is guaranteed for measurementPoint data elements.
Tags:atp.EnumerationLiteralIndex=2
queued The content of the data element is queued and the data element has ’event’ semantics, i.e. data
elements are stored in a queue and all data elements are processed in ’first in first out’ order. The
queuing is intended to be implemented by RTE Generator. This value is not applicable for parameters.
Tags:atp.EnumerationLiteralIndex=3
standard This is applicable for all kinds of data elements. For variable data prototypes the ’last is best’
semantics applies. For parameter there is no specific implementation directive.
Tags:atp.EnumerationLiteralIndex=4
Class SwPointerTargetProps
Package M2::MSR::DataDictionary::DataDefProperties
Note This element defines, that the data object (which is specified by the aggregating element) contains a
reference to another data object or to a function in the CPU code. This corresponds to a pointer in the
C-language.
The attributes of this element describe the category and the detailed properties of the target which is
either a data description or a function signature.
Base ARObject
Attribute Type Mult. Kind Note
functionPointer BswModuleEntry 0..1 ref The referenced BswModuleEntry serves as the signature
Signature of a function pointer definition. Primary use case: function
pointer passed as argument to other function.
Tags:xml.sequenceOffset=40
swDataDef SwDataDefProps 0..1 aggr The properties of the target data type.
Props
Tags:xml.sequenceOffset=30
targetCategory Identifier 0..1 attr This specifies the category of the target:
• In case of a data pointer, it shall specify the
category of the referenced data.
• In case of a function pointer, it could be used to
denote the category of the referenced Bsw
ModuleEntry. Since currently no categories for
BswModuleEntry are defined it will be empty.
Tags:xml.sequenceOffset=5
Class SwRecordLayout
Package M2::MSR::DataDictionary::RecordLayout
Note Defines how the data objects (variables, calibration parameters etc.) are to be stored in the ECU
memory. As an example, this definition specifies the sequence of axis points in the ECU memory.
Iterations through axis values are stored within the sub-elements swRecordLayoutGroup.
Tags:atp.recommendedPackage=SwRecordLayouts
Base ARElement, ARObject, CollectableElement, Identifiable, MultilanguageReferrable, Packageable
Element, Referrable
Attribute Type Mult. Kind Note
swRecord SwRecordLayoutGroup 0..1 aggr This is the top level record layout group.
LayoutGroup
Tags:
xml.roleElement=true
xml.roleWrapperElement=false
xml.sequenceOffset=20
xml.typeElement=false
xml.typeWrapperElement=false
Class SwServiceArg
Package M2::MSR::DataDictionary::ServiceProcessTask
Note Specifies the properties of a data object exchanged during the call of an SwService, e.g. an argument or
a return value.
The SwServiceArg can also be used in the argument list of a C-macro. For this purpose the category
shall be set to "MACRO". A reference to implementationDataType can optional be added if the actual
argument has an implementationDataType.
Base ARObject, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
direction ArgumentDirection 0..1 attr Specifies the direction of the data transfer. The direction
Enum shall indicate the direction of the actual information that is
being consumed by the caller and/or the callee, not the
direction of formal arguments in C.
The attribute is optional for backwards compatibility
reasons. For example, if a pointer is used to pass a
memory address for the expected result, the direction
shall be "out". If a pointer is used to pass a memory
address with content to be read by the callee, its direction
shall be "in".
Tags:xml.sequenceOffset=10
swArraysize ValueList 0..1 aggr This turns the argument of the service to an array.
Tags:xml.sequenceOffset=20
swDataDef SwDataDefProps 0..1 aggr Data properties of this SwServiceArg.
Props
Tags:xml.sequenceOffset=30
Class SwSystemconst
Package M2::MSR::DataDictionary::SystemConstant
5
4
Class SwSystemconst
Note This element defines a system constant which serves an input to select a particular variation point. In
particular a system constant serves as an operand of the binding function (swSyscond) in a Variation
point.
Note that the binding process can only happen if a value was assigned to to the referenced system
constants.
Tags:atp.recommendedPackage=SwSystemconsts
Base ARElement, ARObject, AtpDefinition, CollectableElement, Identifiable, MultilanguageReferrable,
PackageableElement, Referrable
Attribute Type Mult. Kind Note
swDataDef SwDataDefProps 0..1 aggr This denotes the data defintion properties of the system
Props constant. This supports to express the limits and
optionally a conversion within the internal to physical
values by a compu method.
Tags:xml.sequenceOffset=40
Class SwSystemconstValue
Package M2::AUTOSARTemplates::GenericStructure::VariantHandling
Note This meta-class assigns a particular value to a system constant.
Base ARObject
Attribute Type Mult. Kind Note
annotation Annotation * aggr This provides the ability to add information why the value
is set like it is.
Tags:xml.sequenceOffset=30
swSystemconst SwSystemconst 1 ref This is the system constant to which the value applies.
Tags:xml.sequenceOffset=10
value Numerical 1 attr This is the particular value of a system constant. It is
specified as Numerical. Further restrictions may apply by
the definition of the system constant.
The value attribute defines the internal value of the Sw
Systemconst as it is processed in the Formula Language.
5
5
4
Class SwSystemconstValue
4
Stereotypes: atpVariation
Tags:
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=20
Class SwSystemconstantValueSet
Package M2::AUTOSARTemplates::GenericStructure::VariantHandling
Note This meta-class represents the ability to specify a set of system constant values.
Tags:atp.recommendedPackage=SwSystemconstantValueSets
Base ARElement, ARObject, CollectableElement, Identifiable, MultilanguageReferrable, Packageable
Element, Referrable
Attribute Type Mult. Kind Note
sw SwSystemconstValue * aggr This is one particular value of a system constant.
Systemconstant
Value
Table D.274: SwSystemconstantValueSet
4
Class <<atpMixed>> SwValues
vt VerbatimString 0..1 attr This represents the values of textual data elements
(Strings). Note that vt uses the | to separate the values for
the different bitfield masks in case that the semantics of
the related DataPrototype is described by means of a
BITFIELD_TEXTTABLE in the associated CompuMethod.
Tags:xml.sequenceOffset=30
vtf NumericalOrText 0..1 aggr Thias aggregation represents the ability to provide a value
that is either numerical or text which existence is subject
to variability.
From the formal point of view, the aggregation needs to
have the multiplicity 1 because SwValues is modelled with
stereotype <<atpMixed>>. Nevertheless, the existence of
vtf is optional and subject to constraints.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
Class SwcBswMapping
Package M2::AUTOSARTemplates::CommonStructure::SwcBswMapping
Note Maps an SwcInternalBehavior to an BswInternalBehavior. This is required to coordinate the API
generation and the scheduling for AUTOSAR Service Components, ECU Abstraction Components and
Complex Driver Components by the RTE and the BSW scheduling mechanisms.
Tags:atp.recommendedPackage=SwcBswMappings
Base ARElement, ARObject, AtpClassifier , AtpFeature, AtpStructureElement, CollectableElement,
Identifiable, MultilanguageReferrable, PackageableElement, Referrable
Attribute Type Mult. Kind Note
bswBehavior BswInternalBehavior 0..1 ref The mapped BswInternalBehavior
runnable SwcBswRunnable * aggr A mapping between a pair of SWC and BSW runnables.
Mapping Mapping
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
swcBehavior SwcInternalBehavior 0..1 ref The mapped SwcInternalBehavior.
synchronized SwcBswSynchronized * aggr A pair of SWC and BSW mode group prototypes to be
ModeGroup ModeGroupPrototype synchronized by the scheduler.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
synchronized SwcBswSynchronized * aggr A pair of SWC and BSW Triggers to be synchronized by
Trigger Trigger the scheduler.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
Class SwcBswRunnableMapping
Package M2::AUTOSARTemplates::CommonStructure::SwcBswMapping
Note Maps a BswModuleEntity to a RunnableEntity if it is implemented as part of a BSW module (in the case of
an AUTOSAR Service, a Complex Driver or an ECU Abstraction). The mapping can be used by a tool to
find relevant information on the behavior, e.g. whether the bswEntity shall be running in interrupt context.
Base ARObject
Attribute Type Mult. Kind Note
5
4
Class SwcBswRunnableMapping
bswEntity BswModuleEntity 1 ref The mapped BswModuleEntity
swcRunnable RunnableEntity 1 ref The mapped SWC runnable.
Class SwcBswSynchronizedTrigger
Package M2::AUTOSARTemplates::CommonStructure::SwcBswMapping
Note Synchronizes a Trigger provided by a component via a port with a Trigger provided by a BSW module or
cluster.
Base ARObject
Attribute Type Mult. Kind Note
bswTrigger Trigger 1 ref The BSW Trigger.
swcTrigger Trigger 1 iref The SWC Trigger provided by a particular port.
InstanceRef implemented by:PTriggerInAtomicSwcType
InstanceRef
Table D.278: SwcBswSynchronizedTrigger
Class SwcExclusiveAreaPolicy
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior
Note Options how to generate the ExclusiveArea related APIs. If no SwcExclusiveAreaPolicy is specified for
an ExclusiveArea the default values apply.
Base ARObject
Attribute Type Mult. Kind Note
apiPrinciple ApiPrincipleEnum 0..1 attr Specifies for this ExclusiveArea if either one common set
of Enter and Exit APIs for the whole software component
is requested from the Rte or if the set of Enter and Exit
APIs is expected per RunnableEntity. The default value is
"common".
exclusiveArea ExclusiveArea 0..1 ref This reference represents the ExclusiveArea for which the
policy applies.
Class SwcImplementation
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcImplementation
Note This meta-class represents a specialization of the general Implementation meta-class with respect to the
usage in application software.
Tags:atp.recommendedPackage=SwcImplementations
Base ARElement, ARObject, CollectableElement, Identifiable, Implementation, MultilanguageReferrable,
PackageableElement, Referrable
Attribute Type Mult. Kind Note
behavior SwcInternalBehavior 0..1 ref The internal behavior implemented by this
Implementation.
perInstance PerInstanceMemory * aggr Allows a definition of the size of the per-instance memory
MemorySize Size for this implementation. The aggregation of PerInstance
MemorySize is subject to variability with the purpose to
support variability in the software components
implementations. Typically different algorithms in the
5
5
4
Class SwcImplementation
4
implementation are requiring different number of memory
objects, in this case PerInstanceMemory.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
required String 0..1 attr Identify a specific RTE vendor. This information is
RTEVendor potentially important at the time of integrating (in
particular: linking) the application code with the RTE. The
semantics is that (if the association exists) the
corresponding code has been created to fit to the
vendor-mode RTE provided by this specific vendor.
Attempting to integrate the code with another RTE
generated in vendor mode is in general not possible.
Class SwcInternalBehavior
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior
Note The SwcInternalBehavior of an AtomicSwComponentType describes the relevant aspects of the
software-component with respect to the RTE, i.e. the RunnableEntities and the RTEEvents they respond
to.
Base ARObject, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, InternalBehavior , Multilanguage
Referrable, Referrable
Attribute Type Mult. Kind Note
arTypedPer VariableDataPrototype * aggr Defines an AUTOSAR typed memory-block that needs to
Instance be available for each instance of the SW-component.
Memory
This is typically only useful if supportsMultipleInstantiation
is set to "true" or if the component defines NVRAM
access via permanent blocks.
The aggregation of arTypedPerInstanceMemory is subject
to variability with the purpose to support variability in the
software component’s implementations. Typically different
algorithms in the implementation are requiring different
number of memory objects.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=arTypedPerInstanceMemory.shortName, ar
TypedPerInstanceMemory.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
event RTEEvent * aggr This is a RTEEvent specified for the particular Swc
InternalBehavior.
The aggregation of RTEEvent is subject to variability with
the purpose to support the conditional existence of RTE
events. Note: the number of RTE events might vary due
to the conditional existence of PortPrototypes using Data
ReceivedEvents or due to different scheduling needs of
algorithms.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=event.shortName, event.variationPoint.short
Label
vh.latestBindingTime=preCompileTime
5
4
Class SwcInternalBehavior
exclusiveArea SwcExclusiveArea * aggr Options how to generate the ExclusiveArea related APIs.
Policy Policy When no SwcExclusiveAreaPolicy is specified for an
ExclusiveArea the default values apply.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=exclusiveAreaPolicy, exclusiveArea
Policy.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
explicitInter VariableDataPrototype * aggr Implement state message semantics for establishing
Runnable communication among runnables of the same
Variable component. The aggregation of explicitInterRunnable
Variable is subject to variability with the purpose to
support variability in the software components
implementations. Typically different algorithms in the
implementation are requiring different number of memory
objects.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=explicitInterRunnableVariable.shortName,
explicitInterRunnableVariable.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
handle HandleTerminationAnd 0..1 attr This attribute controls the behavior with respect to
TerminationAnd RestartEnum stopping and restarting. The corresponding AtomicSw
Restart ComponentType may either not support stop and restart,
or support only stop, or support both stop and restart.
implicitInter VariableDataPrototype * aggr Implement state message semantics for establishing
Runnable communication among runnables of the same
Variable component. The aggregation of implicitInterRunnable
Variable is subject to variability with the purpose to
support variability in the software components
implementations. Typically different algorithms in the
implementation are requiring different number of memory
objects.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=implicitInterRunnableVariable.shortName,
implicitInterRunnableVariable.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
includedData IncludedDataTypeSet * aggr The includedDataTypeSet is used by a software
TypeSet component for its implementation.
Stereotypes: atpSplitable
Tags:atp.Splitkey=includedDataTypeSet
includedMode IncludedMode * aggr This aggregation represents the included Mode
Declaration DeclarationGroupSet DeclarationGroups
GroupSet
Stereotypes: atpSplitable
Tags:atp.Splitkey=includedModeDeclarationGroupSet
instantiation InstantiationDataDef * aggr The purpose of this is that within the context of a given
DataDefProps Props SwComponentType some data def properties of individual
instantiations can be modified. The aggregation of
InstantiationDataDefProps is subject to variability with the
purpose to support the conditional existence of Port
Prototypes and component local memories like "per
InstanceParameter" or "arTypedPerInstanceMemory".
5
5
4
Class SwcInternalBehavior
4
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=instantiationDataDefProps, instantiationData
DefProps.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
perInstance PerInstanceMemory * aggr Defines a per-instance memory object needed by this
Memory software component. The aggregation of PerInstance
Memory is subject to variability with the purpose to
support variability in the software components
implementations. Typically different algorithms in the
implementation are requiring different number of memory
objects.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=perInstanceMemory.shortName, perInstance
Memory.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
perInstance ParameterData * aggr Defines parameter(s) or characteristic value(s) that needs
Parameter Prototype to be available for each instance of the
software-component. This is typically only useful if
supportsMultipleInstantiation is set to "true". The
aggregation of perInstanceParameter is subject to
variability with the purpose to support variability in the
software components implementations. Typically different
algorithms in the implementation are requiring different
number of memory objects.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=perInstanceParameter.shortName, per
InstanceParameter.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
portAPIOption PortAPIOption * aggr Options for generating the signature of port-related calls
from a runnable to the RTE and vice versa. The
aggregation of PortPrototypes is subject to variability with
the purpose to support the conditional existence of ports.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=portAPIOption, portAPIOption.variation
Point.shortLabel
vh.latestBindingTime=preCompileTime
runnable RunnableEntity * aggr This is a RunnableEntity specified for the particular Swc
InternalBehavior.
The aggregation of RunnableEntity is subject to variability
with the purpose to support the conditional existence of
RunnableEntities. Note: the number of RunnableEntities
might vary due to the conditional existence of Port
Prototypes using DataReceivedEvents or due to different
scheduling needs of algorithms.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=runnable.shortName, runnable.variation
Point.shortLabel
vh.latestBindingTime=preCompileTime
5
4
Class SwcInternalBehavior
service SwcService * aggr Defines the requirements on AUTOSAR Services for a
Dependency Dependency particular item.
The aggregation of SwcServiceDependency is subject to
variability with the purpose to support the conditional
existence of ports as well as the conditional existence of
ServiceNeeds.
The SwcServiceDependency owned by an SwcInternal
Behavior can be located in a different physical file in order
to support that SwcServiceDependency might be
provided in later development steps or even by different
expert domain (e.g OBD expert for Obd related Service
Needs) tools. Therefore the aggregation is <<atp
Splitable>>.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=serviceDependency.shortName, service
Dependency.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
shared ParameterData * aggr Defines parameter(s) or characteristic value(s) shared
Parameter Prototype between SwComponentPrototypes of the same Sw
ComponentType The aggregation of sharedParameter is
subject to variability with the purpose to support variability
in the software components implementations. Typically
different algorithms in the implementation are requiring
different number of memory objects.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=sharedParameter.shortName, shared
Parameter.variationPoint.shortLabel
vh.latestBindingTime=preCompileTime
supports Boolean 0..1 attr Indicate whether the corresponding software-component
Multiple can be multiply instantiated on one ECU. In this case the
Instantiation attribute will result in an appropriate component API on
programming language level (with or without instance
handle).
variationPoint VariationPointProxy * aggr Proxy of a variation points in the C/C++ implementation.
Proxy
Stereotypes: atpSplitable
Tags:atp.Splitkey=variationPointProxy.shortName
Class SwcModeManagerErrorEvent
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::RTEEvents
Note This represents the ability to react on errors occurring during mode handling.
Base ARObject, AbstractEvent, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, Multilanguage
Referrable, RTEEvent, Referrable
Attribute Type Mult. Kind Note
modeGroup ModeDeclarationGroup 0..1 iref This represents the ModeDeclarationGroupPrototype for
Prototype which the error behavior of the mode manager applies.
InstanceRef implemented by:PModeGroupInAtomic
SwcInstanceRef
Class SwcModeSwitchEvent
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::RTEEvents
Note This event is raised upon a received mode change.
Base ARObject, AbstractEvent, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, Multilanguage
Referrable, RTEEvent, Referrable
Attribute Type Mult. Kind Note
activation ModeActivationKind 0..1 attr Specifies if the event is activated on entering or exiting
the referenced Mode.
mode (ordered) ModeDeclaration 0..2 iref Reference to one or two Modes that initiate the SwcMode
SwitchEvent.
InstanceRef implemented by:RModeInAtomicSwc
InstanceRef
Table D.283: SwcModeSwitchEvent
Class SwcServiceDependency
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::ServiceMapping
Note Specialization of ServiceDependency in the context of an SwcInternalBehavior. It allows to associate
ports, port groups and (in special cases) data defined for an atomic software component to a given
ServiceNeeds element.
Base ARObject, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, MultilanguageReferrable,
Referrable, ServiceDependency
Attribute Type Mult. Kind Note
assignedData RoleBasedData * aggr Defines the role of an associated data object of the same
Assignment component.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
assignedPort RoleBasedPort * aggr Defines the role of an associated port of the same
Assignment component.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=assignedPort, assignedPort.variation
Point.shortLabel
vh.latestBindingTime=preCompileTime
representedPort PortGroup 0..1 ref This reference specifies an association between the
Group ServiceNeeeds and a PortGroup, for example to request
a communication mode which applies for communication
via these ports. The referred PortGroup shall be local to
this atomic SWC, but via the links between the Port
Groups, a tool can evaluate this information such that all
the ports linked via this port group on the same ECU can
be found.
serviceNeeds ServiceNeeds 0..1 aggr The associated ServiceNeeds.
Class SymbolProps
Package M2::AUTOSARTemplates::SWComponentTemplate::Components
Note This meta-class represents the ability to attach with the symbol attribute a symbolic name that is conform
to C language requirements to another meta-class, e.g. AtomicSwComponentType, that is a potential
subject to a name clash on the level of RTE source code.
Base ARObject, ImplementationProps, Referrable
Attribute Type Mult. Kind Note
5
4
Class SymbolProps
– – – – –
Table D.285: SymbolProps
Class SynchronousServerCallPoint
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::ServerCall
Note This means that the RunnableEntity is supposed to perform a blocking wait for a response from the
server.
Base ARObject, AbstractAccessPoint, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable,
MultilanguageReferrable, Referrable, ServerCallPoint
Attribute Type Mult. Kind Note
calledFrom ExclusiveAreaNesting 0..1 ref This indicates that the call point is located at the deepest
WithinExclusive Order level inside one or more ExclusiveAreas that are nested
Area in the given order.
Class System
Package M2::AUTOSARTemplates::SystemTemplate
Note The top level element of the System Description. The System description defines five major elements:
Topology, Software, Communication, Mapping and Mapping Constraints.
The System element directly aggregates the elements describing the Software, Mapping and Mapping
Constraints; it contains a reference to an ASAM FIBEX description specifying Communication and
Topology.
Tags:atp.recommendedPackage=Systems
Base ARElement, ARObject, AtpClassifier , AtpFeature, AtpStructureElement, CollectableElement,
Identifiable, MultilanguageReferrable, PackageableElement, Referrable
Attribute Type Mult. Kind Note
clientId ClientIdDefinitionSet * ref Set of Client Identifiers that are used for inter-ECU
DefinitionSet client-server communication in the System.
containerIPdu ByteOrderEnum 0..1 attr Defines the byteOrder of the header in ContainerIPdus.
HeaderByte
Order
ecuExtract RevisionLabelString 0..1 attr Version number of the Ecu Extract.
Version
fibexElement FibexElement * ref Reference to ASAM FIBEX elements specifying
Communication and Topology.
All Fibex Elements used within a System Description shall
be referenced from the System Element.
atpVariation: In order to describe a product-line, all Fibex
Elements can be optional.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=postBuild
interpolation InterpolationRoutine * ref This reference identifies the InterpolationRoutineMapping
Routine MappingSet Sets that are relevant in the context of the enclosing
MappingSet System.
5
4
Class System
j1939Shared J1939SharedAddress * aggr Collection of J1939Clusters that share a common
AddressCluster Cluster address space for the routing of messages.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=j1939SharedAddressCluster.shortName,
j1939SharedAddressCluster.variationPoint.shortLabel
vh.latestBindingTime=postBuild
mapping SystemMapping * aggr Aggregation of all mapping aspects (mapping of SW
components to ECUs, mapping of data elements to
signals, and mapping constraints).
In order to support OEM / Tier 1 interaction and shared
development for one common System this aggregation is
atpSplitable and atpVariation. The content of System
Mapping can be provided by several parties using
different names for the SystemMapping.
This element is not required when the System description
is used for a network-only use-case.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=mapping.shortName, mapping.variation
Point.shortLabel
vh.latestBindingTime=postBuild
pncVector PositiveInteger 0..1 attr Length of the partial networking request release
Length information vector (in bytes).
pncVectorOffset PositiveInteger 0..1 attr Absolute offset (with respect to the NM-PDU) of the
partial networking request release information vector that
is defined in bytes as an index starting with 0.
rootSoftware RootSwComposition 0..1 aggr Aggregation of the root software composition, containing
Composition Prototype all software components in the System in a hierarchical
structure. This element is not required when the System
description is used for a network-only use-case.
atpVariation: The RootSwCompositionPrototype can vary.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=rootSoftwareComposition.shortName, root
SoftwareComposition.variationPoint.shortLabel
vh.latestBindingTime=systemDesignTime
swCluster CpSoftwareCluster * ref CP Software Clusters of this System
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=swCluster.cpSoftwareCluster, sw
Cluster.variationPoint.shortLabel
atp.Status=draft
vh.latestBindingTime=systemDesignTime
system Chapter * aggr Possibility to provide additional documentation while
Documentation defining the System. The System documentation can be
composed of several chapters.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=systemDocumentation.shortName, system
Documentation.variationPoint.shortLabel
vh.latestBindingTime=systemDesignTime
xml.sequenceOffset=-10
systemVersion RevisionLabelString 1 attr Version number of the System Description.
Class SystemMapping
Package M2::AUTOSARTemplates::SystemTemplate
Note The system mapping aggregates all mapping aspects (mapping of SW components to ECUs, mapping of
data elements to signals, and mapping constraints).
Base ARObject, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
application ApplicationPartitionTo * aggr Mapping of ApplicationPartitions to EcuPartitions
PartitionToEcu EcuPartitionMapping
Stereotypes: atpSplitable; atpVariation
Partition
Tags:
Mapping
atp.Splitkey=applicationPartitionToEcuPartition
Mapping.shortName, applicationPartitionToEcuPartition
Mapping.variationPoint.shortLabel
vh.latestBindingTime=postBuild
com ComManagement * aggr Mappings between Mode Management PortGroups and
Management Mapping communication channels.
Mapping
Stereotypes: atpVariation
Tags:vh.latestBindingTime=systemDesignTime
cryptoService CryptoServiceMapping * aggr This aggregation represents the collection of crypto
Mapping service mappings in the context of the enclosing System
Mapping.
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=cryptoServiceMapping.shortName, crypto
ServiceMapping.variationPoint.shortLabel
vh.latestBindingTime=postBuild
dataMapping DataMapping * aggr The data mappings defined.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=postBuild
ecuResource ECUMapping * aggr Mapping of hardware related topology elements onto their
Mapping counterpart definitions in the ECU Resource Template.
atpVariation: The ECU Resource type might be variable.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=systemDesignTime
j1939Controller J1939Controller * aggr Mapping of a J1939ControllerApplication to a J1939Nm
ApplicationTo ApplicationToJ1939Nm Node.
J1939NmNode NodeMapping
Mapping
mapping MappingConstraint * aggr Constraints that limit the mapping freedom for the
Constraint mapping of SW components to ECUs.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=systemDesignTime
pncMapping PncMapping * aggr Mappings between Virtual Function Clusters and Partial
Network Clusters.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=systemDesignTime
portElementTo PortElementTo * aggr maps a communication resource to CP Software Clusters
ComResource Communication
Stereotypes: atpSplitable; atpVariation
Mapping ResourceMapping
Tags:
atp.Splitkey=portElementToComResourceMapping.short
Name, portElementToComResourceMapping.variation
Point.shortLabel
atp.Status=draft
vh.latestBindingTime=postBuild
5
4
Class SystemMapping
resource EcuResourceEstimation * aggr Resource estimations for this set of mappings, zero or
Estimation one per ECU instance.
atpVariation: Used ECUs are variable.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=systemDesignTime
resourceTo CpSoftwareCluster * aggr Maps a Software Cluster resource to an Application
Application ResourceToApplication Partition to restrict the usage.
Partition PartitionMapping
Stereotypes: atpSplitable; atpVariation
Mapping
Tags:
atp.Splitkey=resourceToApplicationPartition
Mapping.shortName, resourceToApplicationPartition
Mapping.variationPoint.shortLabel
atp.Status=draft
vh.latestBindingTime=systemDesignTime
signalPath SignalPathConstraint * aggr Constraints that limit the mapping freedom for the
Constraint mapping of data elements to signals.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=systemDesignTime
softwareCluster CpSoftwareClusterTo * aggr maps a service resource to CP Software Clusters
ToResource ResourceMapping
Stereotypes: atpSplitable; atpVariation
Mapping
Tags:
atp.Splitkey=softwareClusterToResourceMapping.short
Name, softwareClusterToResourceMapping.variation
Point.shortLabel
atp.Status=draft
vh.latestBindingTime=preCompileTime
swCluster CpSoftwareClusterTo * aggr The mappings of SW cluster to ECUs.
Mapping EcuInstanceMapping
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=swClusterMapping.shortName, swCluster
Mapping.variationPoint.shortLabel
atp.Status=draft
vh.latestBindingTime=systemDesignTime
swcTo SwcToApplication * aggr Allows to map a given SwComponentPrototype to a
Application PartitionMapping formally defined partition at a point in time when the
Partition corresponding EcuInstance is not yet known or defined.
Mapping
Stereotypes: atpSplitable; atpVariation
Tags:
atp.Splitkey=swcToApplicationPartitionMapping.short
Name, swcToApplicationPartitionMapping.variation
Point.shortLabel
vh.latestBindingTime=postBuild
swImplMapping SwcToImplMapping * aggr The mappings of AtomicSoftwareComponent Instances to
Implementations.
atpVariation: Derived, because SwcToEcuMapping is
variable.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
swMapping SwcToEcuMapping * aggr The mappings of SW components to ECUs.
atpVariation: SWC shall be mapped to other ECUs.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
Class SystemSignal
Package M2::AUTOSARTemplates::SystemTemplate::Fibex::FibexCore::CoreCommunication
Note The system signal represents the communication system’s view of data exchanged between SW
components which reside on different ECUs. The system signals allow to represent this communication
in a flattened structure, with exactly one system signal defined for each data element prototype sent and
received by connected SW component instances.
Tags:atp.recommendedPackage=SystemSignals
Base ARElement, ARObject, CollectableElement, Identifiable, MultilanguageReferrable, Packageable
Element, Referrable
Attribute Type Mult. Kind Note
dynamicLength Boolean 1 attr The length of dynamic length signals is variable in
run-time. Only a maximum length of such a signal is
specified in the configuration (attribute length in ISignal
element).
physicalProps SwDataDefProps 0..1 aggr Specification of the physical representation.
Class SystemSignalGroup
Package M2::AUTOSARTemplates::SystemTemplate::Fibex::FibexCore::CoreCommunication
Note A signal group refers to a set of signals that shall always be kept together. A signal group is used to
guarantee the atomic transfer of AUTOSAR composite data types.
The SystemSignalGroup defines a signal grouping on VFB level. On cluster level the Signal grouping is
described by the ISignalGroup element.
Tags:atp.recommendedPackage=SystemSignalGroups
Base ARElement, ARObject, CollectableElement, Identifiable, MultilanguageReferrable, Packageable
Element, Referrable
Attribute Type Mult. Kind Note
systemSignal SystemSignal * ref Reference to a set of SystemSignals that shall always be
kept together.
transforming SystemSignal 0..1 ref Optional reference to the SystemSignal which shall
SystemSignal contain the transformed (linear) data.
Class TextTableMapping
Package M2::AUTOSARTemplates::SWComponentTemplate::PortInterface
Note Defines the mapping of two DataPrototypes typed by AutosarDataTypes that refer to CompuMethods of
category TEXTTABLE, SCALE_LINEAR_AND_TEXTTABLE or BITFIELD_TEXTTABLE.
Base ARObject
Attribute Type Mult. Kind Note
bitfieldTextTable PositiveInteger 0..1 attr This attribute can be used to support the mapping of bit
MaskFirst field to bit field, boolean values to bit fields, and vice
versa. The attribute defines the bit mask for the first
element of the TextTableMapping.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
5
4
Class TextTableMapping
bitfieldTextTable PositiveInteger 0..1 attr This attribute can be used to support the mapping of bit
MaskSecond field to bit field, boolean values to bit fields, and vice
versa. The attribute defines the bit mask for the second
element of the TextTableMapping.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
identical Boolean 0..1 attr If identicalMapping is set == true the values of the two
Mapping referenced DataPrototypes do not need any conversion of
the values.
mapping MappingDirectionEnum 0..1 attr Specifies the conversion direction for which the TextTable
Direction Mapping is applicable.
valuePair TextTableValuePair * aggr Defines a pair of values which are translated into each
other.
Table D.291: TextTableMapping
Class TextValueSpecification
Package M2::AUTOSARTemplates::CommonStructure::Constants
Note The purpose of TextValueSpecification is to define the labels that correspond to enumeration values.
Base ARObject, ValueSpecification
Attribute Type Mult. Kind Note
value VerbatimString 0..1 attr This is the value itself.
Note that vt uses the | operator to separate the values for
the different bitfield masks in case that the semantics of
the related DataPrototype is described by means of a
BITFIELD_TEXTTABLE in the associated CompuMethod.
Class TimingEvent
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::RTEEvents
Note TimingEvent references the RunnableEntity that need to be started in response to the TimingEvent
Base ARObject, AbstractEvent, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, Multilanguage
Referrable, RTEEvent, Referrable
Attribute Type Mult. Kind Note
offset TimeValue 0..1 attr The value makes an assumption about the time offset of
the first activation of the RunnableEntity triggered by the
mapped TimingEvent relative to the periodic activation of
the time base of this TimingEvent. Unit: second.
period TimeValue 0..1 attr Period of timing event in seconds. The value of this
attribute shall be greater than zero.
4
Class <<atpVariation>> TransformationISignalProps (abstract)
Subclasses EndToEndTransformationISignalProps, SOMEIPTransformationISignalProps, UserDefinedTransformation
ISignalProps
Attribute Type Mult. Kind Note
csErrorReaction CSTransformerError 0..1 attr Defines whether the transformer chain of client/server
ReactionEnum communication coordinates an autonomous error reaction
together with the RTE or whether any error reaction is the
responsibility of the application.
dataPrototype DataPrototype * aggr Fine granular modeling of TransfromationProps on the
Transformation TransformationProps level of DataPrototypes.
Props
transformer Transformation 1 ref Reference to the TransformationTechnology description
Technology that contains transformer specific and ISignal
independent configuration properties.
Class TransformationTechnology
Package M2::AUTOSARTemplates::SystemTemplate::Transformer
Note A TransformationTechnology is a transformer inside a transformer chain.
Tags:xml.namePlural=TRANSFORMATION-TECHNOLOGIES
Base ARObject, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
bufferProperties BufferProperties 1 aggr Aggregation of the mandatory BufferProperties.
hasInternal Boolean 0..1 attr This attribute defines whether the Transformer has an
State internal state or not.
needsOriginal Boolean 0..1 attr Specifies whether this transformer gets access to the
Data SWC’s original data.
protocol String 1 attr Specifies the protocol that is implemented by this
transformer.
transformation Transformation 0..1 aggr A transformer can be configured with transformer specific
Description Description parameters which are represented by the Transformer
Description.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=postBuild
transformer TransformerClassEnum 1 attr Specifies to which transformer class this transformer
Class belongs.
version String 1 attr Version of the implemented protocol.
Enumeration TransformerClassEnum
Package M2::AUTOSARTemplates::SystemTemplate::Transformer
Note Specifies the transformer class of a transformer.
Literal Description
custom The transformer is a custom transformer.
Tags:atp.EnumerationLiteralIndex=0
safety The transformer is a safety transformer.
Tags:atp.EnumerationLiteralIndex=1
5
4
Enumeration TransformerClassEnum
security The transformer is a security transformer.
Tags:atp.EnumerationLiteralIndex=2
serializer The transformer is a serializing transformer.
Tags:atp.EnumerationLiteralIndex=3
Class TransformerHardErrorEvent
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::RTEEvents
Note The event is raised when data are received which should trigger a Client/Server operation or an external
trigger but during transformation of the data a hard transformer error occurred.
Base ARObject, AbstractEvent, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, Multilanguage
Referrable, RTEEvent, Referrable
Attribute Type Mult. Kind Note
operation ClientServerOperation 0..1 iref This represents the ClientServerOperation to which the
TransformerHardErrorEvent refers to.
InstanceRef implemented by:POperationInAtomicSwc
InstanceRef
requiredTrigger Trigger 0..1 iref Trigger for which the transformer can trigger this
TransformerHardErrorEvent
InstanceRef implemented by:RTriggerInAtomicSwc
InstanceRef
Table D.297: TransformerHardErrorEvent
Class TransmissionAcknowledgementRequest
Package M2::AUTOSARTemplates::SWComponentTemplate::Communication
Note Requests transmission acknowledgement that data has been sent successfully. Success/failure is
reported via a SendPoint of a RunnableEntity.
Base ARObject
Attribute Type Mult. Kind Note
timeout TimeValue 0..1 attr Number of seconds before an error is reported or in case
of allowed redundancy, the value is sent again.
Class Trigger
Package M2::AUTOSARTemplates::CommonStructure::TriggerDeclaration
Note A trigger which is provided (i.e. released) or required (i.e. used to activate something) in the given
context.
Base ARObject, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable, MultilanguageReferrable,
Referrable
Attribute Type Mult. Kind Note
swImplPolicy SwImplPolicyEnum 0..1 attr This attribute, when set to value queued, allows for a
queued processing of Triggers.
triggerPeriod MultidimensionalTime 0..1 aggr Optional definition of a period in case of a periodically
(time or angle) driven external trigger.
Class TriggerInterface
Package M2::AUTOSARTemplates::SWComponentTemplate::PortInterface
Note A trigger interface declares a number of triggers that can be sent by an trigger source.
Tags:atp.recommendedPackage=PortInterfaces
Base ARElement, ARObject, AtpBlueprint, AtpBlueprintable, AtpClassifier , AtpType, CollectableElement,
Identifiable, MultilanguageReferrable, PackageableElement, PortInterface, Referrable
Attribute Type Mult. Kind Note
trigger Trigger * aggr The Trigger of this trigger interface.
Class TriggerInterfaceMapping
Package M2::AUTOSARTemplates::SWComponentTemplate::PortInterface
Note Defines the mapping of unequal named Triggers in context of two different TriggerInterfaces.
Base ARObject, AtpBlueprint, AtpBlueprintable, Identifiable, MultilanguageReferrable, PortInterfaceMapping,
Referrable
Attribute Type Mult. Kind Note
triggerMapping TriggerMapping * aggr Mapping of two Trigger in two different TriggerInterface
Class TriggerToSignalMapping
Package M2::AUTOSARTemplates::SystemTemplate::DataMapping
Note This meta-class represents the ability to map a trigger to a SystemSignal of size 0. The Trigger does not
transport any other information than its existence, therefore the limitation in terms of signal length.
Base ARObject, DataMapping
Attribute Type Mult. Kind Note
systemSignal SystemSignal 1 ref This is the SystemSignal taken to transport the Trigger
over the network.
Tags:xml.sequenceOffset=20
trigger Trigger 1 iref This represents the Trigger that shall be used to trigger
RunnableEntities deployed to a remote ECU.
Tags:xml.sequenceOffset=10
InstanceRef implemented by:TriggerInSystemInstance
Ref
Table D.302: TriggerToSignalMapping
Class Unit
Package M2::MSR::AsamHdo::Units
Note This is a physical measurement unit. All units that might be defined should stem from SI units. In order to
convert one unit into another factor and offset are defined.
For the calculation from SI-unit to the defined unit the factor (factorSiToUnit ) and the offset (offsetSiTo
Unit ) are applied as follows:
x [{unit}] := y * [{siUnit}] * factorSiToUnit [[unit]/{siUnit}] + offsetSiToUnit [{unit}]
For the calculation from a unit to SI-unit the reciprocal of the factor (factorSiToUnit ) and the negation of
the offset (offsetSiToUnit ) are applied.
y {siUnit} := (x*{unit} - offsetSiToUnit [{unit}]) / (factorSiToUnit [[unit]/{siUnit}]
Tags:atp.recommendedPackage=Units
5
4
Class Unit
Base ARElement, ARObject, CollectableElement, Identifiable, MultilanguageReferrable, Packageable
Element, Referrable
Attribute Type Mult. Kind Note
displayName SingleLanguageUnit 0..1 aggr This specifies how the unit shall be displayed in
Names documents or in user interfaces of tools.The displayName
corresponds to the Unit.Display in an ASAM MCD-2MC
file.
Tags:xml.sequenceOffset=20
factorSiToUnit Float 0..1 attr This is the factor for the conversion from SI Units to units.
The inverse is used for conversion from units to SI Units.
Tags:xml.sequenceOffset=30
offsetSiToUnit Float 0..1 attr This is the offset for the conversion from and to siUnits.
Tags:xml.sequenceOffset=40
physical PhysicalDimension 0..1 ref This association represents the physical dimension to
Dimension which the unit belongs to. Note that only values with units
of the same physical dimensions might be converted.
Tags:xml.sequenceOffset=50
Class VariableAccess
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::DataElements
Note The presence of a VariableAccess implies that a RunnableEntity needs access to a VariableData
Prototype.
The kind of access is specified by the role in which the class is used.
Base ARObject, AbstractAccessPoint, AtpClassifier , AtpFeature, AtpStructureElement, Identifiable,
MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
accessed AutosarVariableRef 0..1 aggr This denotes the accessed variable.
Variable
scope VariableAccessScope 0..1 attr This attribute allows for constraining the scope of the
Enum corresponding communication. For example, it possible to
express whether the communication is intended to cross
the boundary of an ECU or whether it is intended not to
cross the boundary of a single partition.
Class VariableAndParameterInterfaceMapping
Package M2::AUTOSARTemplates::SWComponentTemplate::PortInterface
Note Defines the mapping of VariableDataPrototypes or ParameterDataPrototypes in context of two different
SenderReceiverInterfaces, NvDataInterfaces or ParameterInterfaces.
Base ARObject, AtpBlueprint, AtpBlueprintable, Identifiable, MultilanguageReferrable, PortInterfaceMapping,
Referrable
Attribute Type Mult. Kind Note
dataMapping DataPrototypeMapping * aggr Defines the mapping of two particular VariableData
Prototypes or ParameterDataPrototypes with unequal
names and/or unequal semantic (resolution or range) in
context of two different SenderReceiverInterfaces, Nv
DataInterfaces or ParameterInterfaces
Table D.307: VariableAndParameterInterfaceMapping
Class VariableDataPrototype
Package M2::AUTOSARTemplates::SWComponentTemplate::Datatype::DataPrototypes
Note A VariableDataPrototype is used to contain values in an ECU application. This means that most likely a
VariableDataPrototype allocates "static" memory on the ECU. In some cases optimization strategies
might lead to a situation where the memory allocation can be avoided.
In particular, the value of a VariableDataPrototype is likely to change as the ECU on which it is used
executes.
Base ARObject, AtpFeature, AtpPrototype, AutosarDataPrototype, DataPrototype, Identifiable, Multilanguage
Referrable, Referrable
Attribute Type Mult. Kind Note
initValue ValueSpecification 0..1 aggr Specifies initial value(s) of the VariableDataPrototype
Class VariationPoint
Package M2::AUTOSARTemplates::GenericStructure::VariantHandling
Note This meta-class represents the ability to express a "structural variation point". The container of the
variation point is part of the selected variant if swSyscond evaluates to true and each postBuildVariant
Criterion is fulfilled.
Base ARObject
5
4
Class VariationPoint
Attribute Type Mult. Kind Note
blueprint DocumentationBlock 0..1 aggr This represents a description that documents how the
Condition variation point shall be resolved when deriving objects
from the blueprint.
Note that variationPoints are not allowed within a
blueprintCondition.
Tags:xml.sequenceOffset=28
desc MultiLanguageOverview 0..1 aggr This allows to describe shortly the purpose of the
Paragraph variation point.
Tags:xml.sequenceOffset=20
formalBlueprint BlueprintGenerator 0..1 aggr This represents a description that documents how the
Generator variation point shall be resolved when deriving objects
from the blueprint by using ARMQL.
Note that variationPoints are not allowed within a formal
BlueprintGenerator.
Tags:
atp.Status=draft
xml.sequenceOffset=30
postBuildVariant PostBuildVariant * aggr This is the set of post build variant conditions which all
Condition Condition shall be fulfilled in order to (postbuild) bind the variation
point.
Tags:xml.sequenceOffset=40
sdg Sdg 0..1 aggr An optional special data group is attached to every
variation point. These data can be used by external
software systems to attach application specific data. For
example, a variant management system might add an
identifier, an URL or a specific classifier.
Tags:xml.sequenceOffset=50
shortLabel Identifier 0..1 attr This provides a name to the particular variation point to
support the RTE generator. It is necessary for supporting
splitable aggregations and if binding time is later than
codeGenerationTime, as well as some RTE conditions. It
needs to be unique with in the enclosing Identifiables with
the same ShortName.
Stereotypes: atpIdentityContributor
Tags:xml.sequenceOffset=10
swSyscond ConditionByFormula 0..1 aggr This condition acts as Binding Function for the Variation
Point. Note that the mulitplicity is 0..1 in order to support
pure postBuild variants.
Tags:xml.sequenceOffset=30
Class VariationPointProxy
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::VariantHandling
Note The VariationPointProxy represents variation points of the C/C++ implementation. In case of bindingTime
= compileTime the RTE provides defines which can be used for Pre Processor directives to implement
compileTime variability.
Base ARObject, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
conditionAccess ConditionByFormula 0..1 aggr This condition acts as Binding Function for the Variation
Point.
5
4
Class VariationPointProxy
implementation ImplementationData 0..1 ref This association to ImplementationDataType shall be
DataType Type taken as an implementation hint by the RTE generator.
postBuildValue PostBuildVariant 0..1 ref This represents the applicable PostBuildVariantCriterion
Access Criterion in the context of a VariationPointProxy.
Note that the technical details how to access the
particular postBuildValueAccess are still considered
internal to the RTE and are consequently not
standardized.
postBuildVariant PostBuildVariant * aggr This represents that applicable PostBuoldVariant
Condition Condition Condition in the context of aVariationPointProxy.
valueAccess AttributeValueVariation 0..1 aggr This value acts as Binding Function for the VariationPoint.
Point
Table D.310: VariationPointProxy
Class WaitPoint
Package M2::AUTOSARTemplates::SWComponentTemplate::SwcInternalBehavior::RTEEvents
Note This defines a wait-point for which the RunnableEntity can wait.
Base ARObject, Identifiable, MultilanguageReferrable, Referrable
Attribute Type Mult. Kind Note
timeout TimeValue 0..1 attr Time in seconds before the WaitPoint times out and the
blocking wait call returns with an error indicating the
timeout.
trigger RTEEvent 0..1 ref This is the RTEEvent this WaitPoint is waiting for.
4
Class <<atpVariation>> SwDataDefProps
additionalNative NativeDeclarationString 0..1 attr This attribute is used to declare native qualifiers of the
TypeQualifier programming language which can neither be deduced
from the baseType (e.g. because the data object
describes a pointer) nor from other more abstract
attributes. Examples are qualifiers like "volatile", "strict" or
"enum" of the C-language. All such declarations have to
be put into one string.
Tags:xml.sequenceOffset=235
annotation Annotation * aggr This aggregation allows to add annotations (yellow pads
...) related to the current data object.
Tags:
xml.roleElement=true
xml.roleWrapperElement=true
xml.sequenceOffset=20
xml.typeElement=false
xml.typeWrapperElement=false
baseType SwBaseType 0..1 ref Base type associated with the containing data object.
Tags:xml.sequenceOffset=50
compuMethod CompuMethod 0..1 ref Computation method associated with the semantics of
this data object.
Tags:xml.sequenceOffset=180
dataConstr DataConstr 0..1 ref Data constraint for this data object.
Tags:xml.sequenceOffset=190
displayFormat DisplayFormatString 0..1 attr This property describes how a number is to be rendered
e.g. in documents or in a measurement and calibration
system.
Tags:xml.sequenceOffset=210
display DisplayPresentation 0..1 attr This attribute controls the presentation of the related data
Presentation Enum for measurement and calibration tools.
implementation AbstractImplementation 0..1 ref This association denotes the ImplementationDataType of
DataType DataType a data declaration via its aggregated SwDataDefProps. It
is used whenever a data declaration is not directly
referring to a base type. Especially
• redefinition of an ImplementationDataType via a
"typedef" to another ImplementationDatatype
• the target type of a pointer (see SwPointerTarget
Props), if it does not refer to a base type directly
• the data type of an array or record element within
an ImplementationDataType, if it does not refer to
a base type directly
• the data type of an SwServiceArg, if it does not
refer to a base type directly
Tags:xml.sequenceOffset=215
invalidValue ValueSpecification 0..1 aggr Optional value to express invalidity of the actual data
element.
Tags:xml.sequenceOffset=255
stepSize Float 0..1 attr This attribute can be used to define a value which is
added to or subtracted from the value of a DataPrototype
when using up/down keys while calibrating.
5
4
Class <<atpVariation>> SwDataDefProps
swAddrMethod SwAddrMethod 0..1 ref Addressing method related to this data object. Via an
association to the same SwAddrMethod it can be
specified that several DataPrototypes shall be located in
the same memory without already specifying the memory
section itself.
Tags:xml.sequenceOffset=30
swAlignment AlignmentType 0..1 attr The attribute describes the intended alignment of the
DataPrototype. If the attribute is not defined the alignment
is determined by the swBaseType size and the memory
AllocationKeywordPolicy of the referenced SwAddr
Method.
Tags:xml.sequenceOffset=33
swBit SwBitRepresentation 0..1 aggr Description of the binary representation in case of a bit
Representation variable.
Tags:xml.sequenceOffset=60
swCalibration SwCalibrationAccess 0..1 attr Specifies the read or write access by MCD tools for this
Access Enum data object.
Tags:xml.sequenceOffset=70
swCalprmAxis SwCalprmAxisSet 0..1 aggr This specifies the properties of the axes in case of a
Set curve or map etc. This is mainly applicable to calibration
parameters.
Tags:xml.sequenceOffset=90
swComparison SwVariableRefProxy * aggr Variables used for comparison in an MCD process.
Variable
Tags:
xml.sequenceOffset=170
xml.typeElement=false
swData SwDataDependency 0..1 aggr Describes how the value of the data object has to be
Dependency calculated from the value of another data object (by the
MCD system).
Tags:xml.sequenceOffset=200
swHostVariable SwVariableRefProxy 0..1 aggr Contains a reference to a variable which serves as a
host-variable for a bit variable. Only applicable to bit
objects.
Tags:
xml.sequenceOffset=220
xml.typeElement=false
swImplPolicy SwImplPolicyEnum 0..1 attr Implementation policy for this data object.
Tags:xml.sequenceOffset=230
swIntended Numerical 0..1 attr The purpose of this element is to describe the requested
Resolution quantization of data objects early on in the design
process.
The resolution ultimately occurs via the conversion
formula present (compuMethod), which specifies the
transition from the physical world to the standardized
world (and vice-versa) (here, "the slope per bit" is present
implicitly in the conversion formula).
In the case of a development phase without a fixed
conversion formula, a pre-specification can occur through
swIntendedResolution.
The resolution is specified in the physical domain
according to the property "unit".
Tags:xml.sequenceOffset=240
5
4
Class <<atpVariation>> SwDataDefProps
swInterpolation Identifier 0..1 attr This is a keyword identifying the mathematical method to
Method be applied for interpolation. The keyword needs to be
related to the interpolation routine which needs to be
invoked.
Tags:xml.sequenceOffset=250
swIsVirtual Boolean 0..1 attr This element distinguishes virtual objects. Virtual objects
do not appear in the memory, their derivation is much
more dependent on other objects and hence they shall
have a swDataDependency .
Tags:xml.sequenceOffset=260
swPointerTarget SwPointerTargetProps 0..1 aggr Specifies that the containing data object is a pointer to
Props another data object.
Tags:xml.sequenceOffset=280
swRecord SwRecordLayout 0..1 ref Record layout for this data object.
Layout
Tags:xml.sequenceOffset=290
swRefresh MultidimensionalTime 0..1 aggr This element specifies the frequency in which the object
Timing involved shall be or is called or calculated. This timing
can be collected from the task in which write access
processes to the variable run. But this cannot be done by
the MCD system.
So this attribute can be used in an early phase to express
the desired refresh timing and later on to specify the real
refresh timing.
Tags:xml.sequenceOffset=300
swTextProps SwTextProps 0..1 aggr the specific properties if the data object is a text object.
Tags:xml.sequenceOffset=120
swValueBlock Numerical 0..1 attr This represents the size of a Value Block
Size
Stereotypes: atpVariation
Tags:
vh.latestBindingTime=preCompileTime
xml.sequenceOffset=80
swValueBlock Numerical * attr This attribute is used to specify the dimensions of a value
SizeMult block (VAL_BLK) for the case that that value block has
(ordered) more than one dimension.
The dimensions given in this attribute are ordered such
that the first entry represents the first dimension, the
second entry represents the second dimension, and so
on.
For one-dimensional value blocks the attribute swValue
BlockSize shall be used and this attribute shall not exist.
Stereotypes: atpVariation
Tags:vh.latestBindingTime=preCompileTime
unit Unit 0..1 ref Physical unit associated with the semantics of this data
object. This attribute applies if no compuMethod is
specified. If both units (this as well as via compuMethod)
are specified the units shall be compatible.
Tags:xml.sequenceOffset=350
5
4
Class <<atpVariation>> SwDataDefProps
valueAxisData ApplicationPrimitive 0..1 ref The referenced ApplicationPrimitiveDataType represents
Type DataType the primitive data type of the value axis within a
compound primitive (e.g. curve, map). It supersedes
CompuMethod, Unit, and BaseType.
Tags:xml.sequenceOffset=355
E.1 Com
E.1.1 ComMainFunctionTx
No Included Containers
E.1.2 ComMainFunctionRx
No Included Containers
E.1.3 ComGroupSignal
This ID identifies signals and signal groups in the COM APIs using
Com_SignalIdType or Com_SignalGroupIdType parameter
respectively.
Multiplicity 0..1
Type EcucIntegerParamDef (Symbolic Name generated for this parameter)
Range 0 .. 65535
Default Value
Post-Build Variant false
Multiplicity
Post-Build Variant false
Value
Multiplicity Pre-compile time X All Variants
Configuration Class
Link time –
Post-build time –
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency scope: ECU
UINT8_DYN
UINT8_N
Post-Build Variant false
Value
Value Configuration Pre-compile time X VARIANT-PRE-COMPILE
Class
Link time X VARIANT-LINK-TIME,
VARIANT-POST-BUILD
Post-build time –
Scope / Dependency scope: local
Included Containers
Container Name Multiplicity Scope / Dependency
ComFilter 0..1 This container contains the configuration parameters of
the AUTOSAR COM module’s Filters.
E.1.4 ComIPdu
Included Containers
Container Name Multiplicity Scope / Dependency
ComIPduCounter 0..1 This optional container contains the configuration
parameters of PDU Counter.
E.1.5 ComSignal
Default Value
Post-Build Variant true
Multiplicity
Post-Build Variant true
Value
Multiplicity Pre-compile time X VARIANT-PRE-COMPILE
Configuration Class
Link time X VARIANT-LINK-TIME
Post-build time X VARIANT-POST-BUILD
Value Configuration Pre-compile time X VARIANT-PRE-COMPILE
Class
Link time X VARIANT-LINK-TIME
Post-build time X VARIANT-POST-BUILD
Scope / Dependency scope: local
Regular Expression
Post-Build Variant false
Multiplicity
Post-Build Variant false
Value
Multiplicity Pre-compile time X VARIANT-PRE-COMPILE
Configuration Class
Link time X VARIANT-LINK-TIME,
VARIANT-POST-BUILD
Post-build time –
Value Configuration Pre-compile time X VARIANT-PRE-COMPILE
Class
Link time X VARIANT-LINK-TIME,
VARIANT-POST-BUILD
Post-build time –
Scope / Dependency scope: local
This ID identifies signals and signal groups in the COM APIs using
Com_SignalIdType or Com_SignalGroupIdType parameter
respectively.
Multiplicity 0..1
Type EcucIntegerParamDef (Symbolic Name generated for this parameter)
Range 0 .. 65535
Default Value
Post-Build Variant false
Multiplicity
Post-Build Variant false
Value
Multiplicity Pre-compile time X All Variants
Configuration Class
Link time –
Post-build time –
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency scope: ECU
Regular Expression
Post-Build Variant false
Multiplicity
Post-Build Variant false
Value
Multiplicity Pre-compile time X VARIANT-PRE-COMPILE
Configuration Class
Link time X VARIANT-LINK-TIME,
VARIANT-POST-BUILD
Post-build time –
Value Configuration Pre-compile time X VARIANT-PRE-COMPILE
Class
Link time X VARIANT-LINK-TIME,
VARIANT-POST-BUILD
Post-build time –
Scope / Dependency scope: local
dependency: In case of UINT8_N the length of
ComSignalDataInvalidValue has to be the same as ComSignalLength.
UINT8_DYN
UINT8_N
Post-Build Variant false
Value
Value Configuration Pre-compile time X VARIANT-PRE-COMPILE
Class
Link time X VARIANT-LINK-TIME,
VARIANT-POST-BUILD
Post-build time –
Scope / Dependency scope: local
Range: 0..63 for CAN and LIN, 0..511 for CAN FD, 0..2031 for FlexRay,
0..4294967295 for TP.
Multiplicity 0..1
Type EcucIntegerParamDef
Range 0 .. 4294967295
Default Value
Post-Build Variant true
Multiplicity
Post-Build Variant true
Value
Multiplicity Pre-compile time X VARIANT-PRE-COMPILE
Configuration Class
Link time X VARIANT-LINK-TIME
Post-build time X VARIANT-POST-BUILD
Value Configuration Pre-compile time X VARIANT-PRE-COMPILE
Class
Link time X VARIANT-LINK-TIME
Post-build time X VARIANT-POST-BUILD
Scope / Dependency scope: local
Included Containers
Container Name Multiplicity Scope / Dependency
ComFilter 0..1 This container contains the configuration parameters of
the AUTOSAR COM module’s Filters.
E.1.6 ComSignalGroup
This ID identifies signals and signal groups in the COM APIs using
Com_SignalIdType or Com_SignalGroupIdType parameter
respectively.
Multiplicity 0..1
Type EcucIntegerParamDef (Symbolic Name generated for this parameter)
Range 0 .. 65535
Default Value
Post-Build Variant false
Multiplicity
Post-Build Variant false
Value
Multiplicity Pre-compile time X All Variants
Configuration Class
Link time –
Post-build time –
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency scope: ECU
Range: 0..63 for CAN and LIN, 0..511 for CAN FD, 0..2031 for FlexRay,
0..4294967295 for TP.
Multiplicity 0..1
Type EcucIntegerParamDef
Range 0 .. 4294967295
Default Value
Post-Build Variant true
Multiplicity
Post-Build Variant true
Value
Multiplicity Pre-compile time X VARIANT-PRE-COMPILE
Configuration Class
Link time X VARIANT-LINK-TIME
Post-build time X VARIANT-POST-BUILD
Value Configuration Pre-compile time X VARIANT-PRE-COMPILE
Class
Link time X VARIANT-LINK-TIME
Post-build time X VARIANT-POST-BUILD
Scope / Dependency scope: local
Included Containers
Container Name Multiplicity Scope / Dependency
ComGroupSignal 0..* This container contains the configuration parameters of
group signals. I.e. signals that are included within a
signal group.
E.2 LdCom
E.2.1 LdComConfig
Included Containers
Container Name Multiplicity Scope / Dependency
LdComIPdu 0..* Contains the configuration parameters of the IPdu inside
LdCom.
E.2.2 LdComIPdu
No Included Containers
E.3 EcuC
E.3.1 EcucPartition
Configuration Parameters
For partitions other than the default BSW partition this parameter can
be omitted.
Multiplicity 0..1
Type EcucBooleanParamDef
Default Value
Post-Build Variant false
Multiplicity
Post-Build Variant false
Value
Multiplicity Pre-compile time X All Variants
Configuration Class
Link time –
Post-build time –
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency
Tags:
atp.Status=draft
Multiplicity 0..1
Type Foreign reference to ECU-PARTITION
Multiplicity Pre-compile time X All Variants
Configuration Class
Link time –
Post-build time –
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency scope: ECU
No Included Containers
E.3.2 EcucPdu
Included Containers
Container Name Multiplicity Scope / Dependency
EcucPduDedicated 0..* Module specific container for Pdu to partition
Partition assignment.
E.3.3 EcucPduDedicatedPartition
No Included Containers
E.4 NvM
E.4.1 NvMBlockDescriptor
Tags:
atp.Status=draft
Multiplicity 1
Type EcucBooleanParamDef
Default Value false
Post-Build Variant false
Value
Value Configuration Pre-compile time X VARIANT-PRE-COMPILE
Class
Link time X VARIANT-LINK-TIME
Post-build time –
Scope / Dependency scope: local
true: CRC will be used for this NVRAM block. false: CRC will not be
used for this NVRAM block.
Multiplicity 1
Type EcucBooleanParamDef
Default Value
Post-Build Variant false
Value
Multiplicity 1
Type EcucBooleanParamDef
Default Value
Multiplicity Pre-compile time X VARIANT-PRE-COMPILE
Configuration Class
Link time X VARIANT-LINK-TIME
Post-build time –
true: calling of NvMSetRamBlockStatus for this RAM block shall set the
status of the RAM block.
true: Initial block write protection is enabled. false: Initial block write
protection is disabled.
Multiplicity 1
Type EcucBooleanParamDef
Default Value
Post-Build Variant false
Value
Value Configuration Pre-compile time X VARIANT-PRE-COMPILE
Class
Link time X VARIANT-LINK-TIME
Post-build time –
Scope / Dependency scope: local
true: CRC will be (re)calculated for this permanent RAM block. false:
CRC will not be (re)calculated for this permanent RAM block.
Multiplicity 0..1
Type EcucBooleanParamDef
Default Value
Post-Build Variant false
Multiplicity
Post-Build Variant false
Value
Reserved NVRAM block IDs: 0 -> to derive multi block request results
via NvM_GetErrorStatus 1 -> redundant NVRAM block which holds the
configuration ID (generation tool should check that this block is
correctly configured from type,CRC and size point of view)
Multiplicity 1
Type EcucIntegerParamDef (Symbolic Name generated for this parameter)
Range 2 .. 65535
Default Value
Post-Build Variant false
Value
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency scope: local
dependency: NVM_DATASET_SELECTION_BITS
If configured, NvM encrypt the data before storage and decrypt the
data after restoring. If empty, the NvM stores and restore the original
user data.
Tags:
atp.Status=draft
Multiplicity 0..1
Type Reference to NvMBlockCiphering
Post-Build Variant false
Multiplicity
Post-Build Variant false
Value
Included Containers
Container Name Multiplicity Scope / Dependency
NvMInitBlockCallback 0..1 The presence of this container indicates, that a block
specific callback routine is called if no ROM data is
available for initialization of the NVRAM block. If the
container is not present, no callback routine is called for
initialization of the NVRAM block with default data.
E.5 Os
E.5.1 OsAlarm
Included Containers
Container Name Multiplicity Scope / Dependency
OsAlarmAction 1 This container defines which type of notification is used
when the alarm expires.
OsAlarmAutostart 0..1 If present this container defines if an alarm is started
automatically at system start-up depending on the
application mode.
E.5.2 OsApplication
Included Containers
Container Name Multiplicity Scope / Dependency
OsApplicationHooks 1 Container to structure the OS-Application-specific hooks
OsApplicationTrusted 0..* Container to structure the configuration parameters of
Function trusted functions
E.5.3 OsCounter
Included Containers
Container Name Multiplicity Scope / Dependency
OsDriver 0..1 This Container contains the information who will drive
the counter. This configuration is only valid if the counter
has OsCounterType set to HARDWARE.
E.5.4 OsEvent
No Included Containers
E.5.5 OsScheduleTable
false: the schedule table processing stops when the final expiry point is
processed.
Multiplicity 1
Type EcucBooleanParamDef
Default Value
Post-Build Variant false
Value
Included Containers
Container Name Multiplicity Scope / Dependency
OsScheduleTable 0..1 This container specifies if and how the schedule table is
Autostart started on startup of the Operating System. The options
to start a schedule table correspond to the API calls to
start schedule tables during runtime.
OsScheduleTableExpiry 1..* The point on a Schedule Table at which the OS activates
Point tasks and/or sets events
E.5.6 OsScheduleTableExpiryPoint
Included Containers
Container Name Multiplicity Scope / Dependency
OsScheduleTableEvent 0..* Event that is triggered by that schedule table.
Setting
OsScheduleTableTask 0..* Task that is triggered by that schedule table.
Activation
OsScheduleTbl 0..1 Adjustable expiry point
AdjustableExpPoint
E.5.7 OsTask
This value is information, e.g. for time base calculations in the RTE in
case TimingEvents are mapped onto this OsTask.Be aware, that this
parameter is not supposed to be relevant for the OS! This information
is given as part of the OS configuration to support configuration work
flows using a fixed set of OsTasks.
Multiplicity 0..1
Type EcucFloatParamDef
Range [-INF .. INF]
Default Value
Post-Build Variant false
Multiplicity
Post-Build Variant false
Value
Multiplicity Pre-compile time X All Variants
Configuration Class
Link time –
Post-build time –
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency scope: ECU
ISO 17356-3 defines the lowest priority as zero (0); larger values
correspond to higher priorities.
Multiplicity 1
Type EcucIntegerParamDef
Range 0 .. 4294967295
Default Value
Post-Build Variant false
Value
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency scope: local
Included Containers
Container Name Multiplicity Scope / Dependency
OsTaskAutostart 0..1 This container determines whether the task is activated
during the system start-up procedure or not for some
specific application modes.
E.5.8 OsIsr
This value is information, e.g. for time base calculations in the RTE in
case TimingEvents are mapped onto this OsIsr. Be aware, that this
parameter is not supposed to be relevant for the OS! It’s the
responsibility of the integrator to ensure the activation of the ISR
according the configured period. This information is given as part of
the OS configuration to support configuration work flows using a fixed
set of OsIsrs.
Multiplicity 0..1
Type EcucFloatParamDef
Range [-INF .. INF]
Default Value
Post-Build Variant false
Multiplicity
Post-Build Variant false
Value
Multiplicity Pre-compile time X All Variants
Configuration Class
Link time –
Post-build time –
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency scope: ECU
Included Containers
Container Name Multiplicity Scope / Dependency
OsIsrTimingProtection 0..1 This container contains all parameters which are related
to timing protection
E.6 Xfrm
E.6.1 XfrmImplementationMapping
Name XfrmTransformerClassExtractProtocolHeaderFields
[ECUC_Xfrm_00022]
Parent Container XfrmImplementationMapping
Description Defines the transformerClass of the TransformationTechnology
containing information in its protocol header that is required to
distinguish between requests vs. responses and normal vs. error
responses in C/S communication. Usually this shall be the
TransformationTechnology with transformerClass equal to "serializer".
Setting this parameter basically instructs the RTE to pass a pointer to
the Mip_ExtractProtocolHeaderFields() function of the respective
transformer as an additional argument to the called transformer
function. E.g., if the serializing transformer in the transformer chain is
SomeIpXf and this parameter is set to SERIALIZER, then
SomeIpXf_ExtractProtocolHeaderFields() will be passed as additional
argument.
Multiplicity 0..1
Type EcucEnumerationParamDef
Range SAFETY The Mip_ExtractProtocolHeaderFields
function of the safety transformer in the
chain shall be called.
SECURITY The Mip_ExtractProtocolHeaderFields
function of the security transformer in
the chain shall be called.
SERIALIZER The Mip_ExtractProtocolHeaderFields
function of the serializing transformer
in the chain shall be called
Post-Build Variant false
Multiplicity
Post-Build Variant false
Value
Multiplicity Pre-compile time X All Variants
Configuration Class
Link time –
Post-build time –
Value Configuration Pre-compile time X All Variants
Class
Link time –
Post-build time –
Scope / Dependency scope: local
Name XfrmCSTansactionHandleImplementationDataTypeRef
[ECUC_Xfrm_00021]
Parent Container XfrmImplementationMapping
Description Reference to the ImplementationDataType with category STRUCTURE
which defines the type of the C/S transaction handle. Setting this
parameter basically instructs the RTE to pass a reference to a variable
of exactly this ImplementationDataType as an additional argument to
the called transformer function.
Multiplicity 0..1
Type Foreign reference to IMPLEMENTATION-DATA-TYPE
Post-Build Variant false
Multiplicity
Included Containers
Container Name Multiplicity Scope / Dependency
XfrmDemEvent 0..1 Container for the references to DemEventParameter
ParameterRefs elements which shall be invoked using the API
Dem_SetEventStatus in case the corresponding error
occurs. The EventId is taken from the referenced
DemEventParameter’s DemEventId symbolic value. The
standardized errors are provided in this container and
can be extended by vendor-specific error references.
F Examples
This chapter contains more detailed information for examples which were shown inside
the preceding chapters of the specification.
F.1 ModeDeclarationGroupMapping
The example for Mapping of ModeDeclarations in chapter 4.4.10 is based on the
following ARXML:
<?xml version="1.0" encoding="UTF-8"?>
<AUTOSAR xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="
http://autosar.org/schema/r4.0" xsi:schemaLocation="http://autosar.
org/schema/r4.0 AUTOSAR_4-2-1.xsd">
<AR-PACKAGES>
<AR-PACKAGE>
<SHORT-NAME>Demo</SHORT-NAME>
<DESC>
<L-2 L="EN">Example about Connection of Mode Managers and Mode
Users with different number of ModeDeclarations</L-2>
</DESC>
<CATEGORY>EXAMPLE</CATEGORY>
<AR-PACKAGES>
<AR-PACKAGE>
<SHORT-NAME>SwComponentTypes</SHORT-NAME>
<ELEMENTS>
<APPLICATION-SW-COMPONENT-TYPE>
<SHORT-NAME>ModeManager</SHORT-NAME>
<PORTS>
<P-PORT-PROTOTYPE>
<SHORT-NAME>EcuState</SHORT-NAME>
<PROVIDED-COM-SPECS>
<MODE-SWITCH-SENDER-COM-SPEC>
<ENHANCED-MODE-API>true</ENHANCED-MODE-API>
<MODE-GROUP-REF DEST="MODE-DECLARATION-GROUP-
PROTOTYPE">/Demo/PortInterfaces/
EcuStatesExtended/EcuStatesExtended</MODE-
GROUP-REF>
<QUEUE-LENGTH>1</QUEUE-LENGTH>
</MODE-SWITCH-SENDER-COM-SPEC>
</PROVIDED-COM-SPECS>
<PROVIDED-INTERFACE-TREF DEST="MODE-SWITCH-INTERFACE"
>/Demo/PortInterfaces/EcuStatesExtended</PROVIDED
-INTERFACE-TREF>
</P-PORT-PROTOTYPE>
</PORTS>
</APPLICATION-SW-COMPONENT-TYPE>
<APPLICATION-SW-COMPONENT-TYPE>
<SHORT-NAME>ModeUser</SHORT-NAME>
<PORTS>
<R-PORT-PROTOTYPE>
<SHORT-NAME>EcuState</SHORT-NAME>
<REQUIRED-COM-SPECS>
<MODE-SWITCH-RECEIVER-COM-SPEC>
<ENHANCED-MODE-API>1</ENHANCED-MODE-API>
<SUPPORTS-ASYNCHRONOUS-MODE-SWITCH>false</
SUPPORTS-ASYNCHRONOUS-MODE-SWITCH>
</MODE-SWITCH-RECEIVER-COM-SPEC>
</REQUIRED-COM-SPECS>
<REQUIRED-INTERFACE-TREF DEST="MODE-SWITCH-INTERFACE"
>/Demo/PortInterfaces/EcuStatesBasic</REQUIRED-
INTERFACE-TREF>
</R-PORT-PROTOTYPE>
</PORTS>
</APPLICATION-SW-COMPONENT-TYPE>
<COMPOSITION-SW-COMPONENT-TYPE>
<SHORT-NAME>DemoEcu</SHORT-NAME>
<COMPONENTS>
<SW-COMPONENT-PROTOTYPE>
<SHORT-NAME>ModeManager</SHORT-NAME>
<TYPE-TREF DEST="APPLICATION-SW-COMPONENT-TYPE">/Demo
/SwComponentTypes/ModeManager</TYPE-TREF>
</SW-COMPONENT-PROTOTYPE>
<SW-COMPONENT-PROTOTYPE>
<SHORT-NAME>ModeUser</SHORT-NAME>
<TYPE-TREF DEST="APPLICATION-SW-COMPONENT-TYPE">/Demo
/SwComponentTypes/ModeUser</TYPE-TREF>
</SW-COMPONENT-PROTOTYPE>
</COMPONENTS>
<CONNECTORS>
<ASSEMBLY-SW-CONNECTOR>
<SHORT-NAME>ModeManager_EcuState_ModeUser_EcuState</
SHORT-NAME>
<MAPPING-REF DEST="MODE-INTERFACE-MAPPING">/Demo/
PortInterfaceMappingSets/
ModeSwitchInterfaceMapping/
EcuStatesExtended_2_EcuStatesBasic</MAPPING-REF>
<PROVIDER-IREF>
<CONTEXT-COMPONENT-REF DEST="SW-COMPONENT-PROTOTYPE
">/Demo/SwComponentTypes/DemoEcu/ModeManager</
CONTEXT-COMPONENT-REF>
<TARGET-P-PORT-REF DEST="P-PORT-PROTOTYPE">/Demo/
SwComponentTypes/ModeManager/EcuState</TARGET-P
-PORT-REF>
</PROVIDER-IREF>
<REQUESTER-IREF>
<CONTEXT-COMPONENT-REF DEST="SW-COMPONENT-PROTOTYPE
">/Demo/SwComponentTypes/DemoEcu/ModeUser</
CONTEXT-COMPONENT-REF>
<TARGET-R-PORT-REF DEST="R-PORT-PROTOTYPE">/Demo/
SwComponentTypes/ModeUser/EcuState</TARGET-R-
PORT-REF>
</REQUESTER-IREF>
</ASSEMBLY-SW-CONNECTOR>
</CONNECTORS>
</COMPOSITION-SW-COMPONENT-TYPE>
</ELEMENTS>
</AR-PACKAGE>
<AR-PACKAGE>
<SHORT-NAME>PortInterfaces</SHORT-NAME>
<ELEMENTS>
<MODE-SWITCH-INTERFACE>
<SHORT-NAME>EcuStatesBasic</SHORT-NAME>
<MODE-GROUP>
<SHORT-NAME>EcuStatesBasic</SHORT-NAME>
<SW-CALIBRATION-ACCESS>READ-ONLY</SW-CALIBRATION-ACCESS
>
<TYPE-TREF DEST="MODE-DECLARATION-GROUP">/Demo/
ModeDeclarationGroups/EcuStatesBasic</TYPE-TREF>
</MODE-GROUP>
</MODE-SWITCH-INTERFACE>
<MODE-SWITCH-INTERFACE>
<SHORT-NAME>EcuStatesExtended</SHORT-NAME>
<MODE-GROUP>
<SHORT-NAME>EcuStatesExtended</SHORT-NAME>
<SW-CALIBRATION-ACCESS>READ-ONLY</SW-CALIBRATION-ACCESS
>
<TYPE-TREF DEST="MODE-DECLARATION-GROUP">/Demo/
ModeDeclarationGroups/EcuStatesExtended</TYPE-TREF>
</MODE-GROUP>
</MODE-SWITCH-INTERFACE>
</ELEMENTS>
</AR-PACKAGE>
<AR-PACKAGE>
<SHORT-NAME>ModeDeclarationGroups</SHORT-NAME>
<ELEMENTS>
<MODE-DECLARATION-GROUP>
<SHORT-NAME>EcuStatesBasic</SHORT-NAME>
<CATEGORY>EXPLICIT_ORDER</CATEGORY>
<INITIAL-MODE-REF DEST="MODE-DECLARATION">/Demo/
ModeDeclarationGroups/EcuStatesBasic/STARTUP</INITIAL
-MODE-REF>
<MODE-DECLARATIONS>
<MODE-DECLARATION>
<SHORT-NAME>STARTUP</SHORT-NAME>
<DESC>
<L-2 L="EN">Startup phase of the Ecu</L-2>
</DESC>
<VALUE>1</VALUE>
</MODE-DECLARATION>
<MODE-DECLARATION>
<SHORT-NAME>RUN</SHORT-NAME>
<DESC>
<L-2 L="EN">Run phase of the Ecu</L-2>
</DESC>
<VALUE>2</VALUE>
</MODE-DECLARATION>
<MODE-DECLARATION>
<SHORT-NAME>POST_RUN</SHORT-NAME>
<DESC>
<L-2 L="EN">post run phase of the Ecu</L-2>
</DESC>
<VALUE>3</VALUE>
</MODE-DECLARATION>
<MODE-DECLARATION>
<SHORT-NAME>SHUTDOWN</SHORT-NAME>
<DESC>
<L-2 L="EN">shutdown phase of the Ecu</L-2>
</DESC>
<VALUE>4</VALUE>
</MODE-DECLARATION>
</MODE-DECLARATIONS>
<MODE-TRANSITIONS>
<MODE-TRANSITION>
<SHORT-NAME>STARTUP_RUN</SHORT-NAME>
<ENTERED-MODE-REF DEST="MODE-DECLARATION">/Demo/
ModeDeclarationGroups/EcuStatesBasic/RUN</ENTERED-
MODE-REF>
<EXITED-MODE-REF DEST="MODE-DECLARATION">/Demo/
ModeDeclarationGroups/EcuStatesBasic/STARTUP</
EXITED-MODE-REF>
</MODE-TRANSITION>
<MODE-TRANSITION>
<SHORT-NAME>STARTUP_POST_RUN</SHORT-NAME>
<ENTERED-MODE-REF DEST="MODE-DECLARATION">/Demo/
ModeDeclarationGroups/EcuStatesBasic/POST_RUN</
ENTERED-MODE-REF>
<EXITED-MODE-REF DEST="MODE-DECLARATION">/Demo/
ModeDeclarationGroups/EcuStatesBasic/STARTUP</
EXITED-MODE-REF>
</MODE-TRANSITION>
<MODE-TRANSITION>
<SHORT-NAME>RUN_POST_RUN</SHORT-NAME>
<ENTERED-MODE-REF DEST="MODE-DECLARATION">/Demo/
ModeDeclarationGroups/EcuStatesBasic/POST_RUN</
ENTERED-MODE-REF>
<EXITED-MODE-REF DEST="MODE-DECLARATION">/Demo/
ModeDeclarationGroups/EcuStatesBasic/RUN</EXITED-
MODE-REF>
</MODE-TRANSITION>
<MODE-TRANSITION>
<SHORT-NAME>POST_RUN_SHUTDOWN</SHORT-NAME>
<ENTERED-MODE-REF DEST="MODE-DECLARATION">/Demo/
ModeDeclarationGroups/EcuStatesBasic/SHUTDOWN</
ENTERED-MODE-REF>
<EXITED-MODE-REF DEST="MODE-DECLARATION">/Demo/
ModeDeclarationGroups/EcuStatesBasic/POST_RUN</
EXITED-MODE-REF>
</MODE-TRANSITION>
</MODE-TRANSITIONS>
<ON-TRANSITION-VALUE>0</ON-TRANSITION-VALUE>
</MODE-DECLARATION-GROUP>
<MODE-DECLARATION-GROUP>
<SHORT-NAME>EcuStatesExtended</SHORT-NAME>
<CATEGORY>ALPHABETIC_ORDER</CATEGORY>
<INITIAL-MODE-REF DEST="MODE-DECLARATION">/Demo/
ModeDeclarationGroups/EcuStatesExtended/StartUp</
INITIAL-MODE-REF>
<MODE-DECLARATIONS>
<MODE-DECLARATION>
<SHORT-NAME>StartUp</SHORT-NAME>
<DESC>
<L-2 L="EN">Start up phase of the Ecu</L-2>
</DESC>
</MODE-DECLARATION>
<MODE-DECLARATION>
<SHORT-NAME>Run</SHORT-NAME>
<DESC>
<L-2 L="EN">Run phase of the Ecu</L-2>
</DESC>
</MODE-DECLARATION>
<MODE-DECLARATION>
<SHORT-NAME>PostRun1</SHORT-NAME>
<DESC>
<L-2 L="EN">First post run phase of the Ecu</L-2>
</DESC>
</MODE-DECLARATION>
<MODE-DECLARATION>
<SHORT-NAME>PostRun2</SHORT-NAME>
<DESC>
<L-2 L="EN">Second post run phase of the Ecu</L-2>
</DESC>
</MODE-DECLARATION>
<MODE-DECLARATION>
<SHORT-NAME>ShutDown</SHORT-NAME>
<DESC>
<L-2 L="EN">Shut down phase of the Ecu</L-2>
</DESC>
</MODE-DECLARATION>
<MODE-DECLARATION>
<SHORT-NAME>Sleep</SHORT-NAME>
<DESC>
<L-2 L="EN">Sleep mode of the Ecu with reduced
functionality</L-2>
</DESC>
</MODE-DECLARATION>
<MODE-DECLARATION>
<SHORT-NAME>Hibernate</SHORT-NAME>
<DESC>
<L-2 L="EN">Hibernate mode of the Ecu with extreme
reduced functionality</L-2>
</DESC>
</MODE-DECLARATION>
</MODE-DECLARATIONS>
</MODE-DECLARATION-GROUP>
</ELEMENTS>
</AR-PACKAGE>
<AR-PACKAGE>
<SHORT-NAME>PortInterfaceMappingSets</SHORT-NAME>
<ELEMENTS>
<MODE-DECLARATION-MAPPING-SET>
<SHORT-NAME>EcuStateMapping</SHORT-NAME>
<MODE-DECLARATION-MAPPINGS>
<MODE-DECLARATION-MAPPING>
<SHORT-NAME>StartUp_2_STARTUP_</SHORT-NAME>
<FIRST-MODE-REFS>
<FIRST-MODE-REF DEST="MODE-DECLARATION">/Demo/
ModeDeclarationGroups/EcuStatesExtended/StartUp
</FIRST-MODE-REF>
</FIRST-MODE-REFS>
<SECOND-MODE-REF DEST="MODE-DECLARATION">/Demo/
ModeDeclarationGroups/EcuStatesBasic/STARTUP</
SECOND-MODE-REF>
</MODE-DECLARATION-MAPPING>
<MODE-DECLARATION-MAPPING>
<SHORT-NAME>Run_2_RUN</SHORT-NAME>
<FIRST-MODE-REFS>
<FIRST-MODE-REF DEST="MODE-DECLARATION">/Demo/
ModeDeclarationGroups/EcuStatesExtended/Run</
FIRST-MODE-REF>
</FIRST-MODE-REFS>
<SECOND-MODE-REF DEST="MODE-DECLARATION">/Demo/
ModeDeclarationGroups/EcuStatesBasic/RUN</SECOND-
MODE-REF>
</MODE-DECLARATION-MAPPING>
<MODE-DECLARATION-MAPPING>
<SHORT-NAME>PostRunX_2_POST_RUN</SHORT-NAME>
<FIRST-MODE-REFS>
<FIRST-MODE-REF DEST="MODE-DECLARATION">/Demo/
ModeDeclarationGroups/EcuStatesExtended/
PostRun1</FIRST-MODE-REF>
<FIRST-MODE-REF DEST="MODE-DECLARATION">/Demo/
ModeDeclarationGroups/EcuStatesExtended/
PostRun2</FIRST-MODE-REF>
</FIRST-MODE-REFS>
<SECOND-MODE-REF DEST="MODE-DECLARATION">/Demo/
ModeDeclarationGroups/EcuStatesBasic/POST_RUN</
SECOND-MODE-REF>
</MODE-DECLARATION-MAPPING>
<MODE-DECLARATION-MAPPING>
<SHORT-NAME>ShutDown_2_SHUTDOWN</SHORT-NAME>
<FIRST-MODE-REFS>
<FIRST-MODE-REF DEST="MODE-DECLARATION">/Demo/
ModeDeclarationGroups/EcuStatesExtended/
ShutDown</FIRST-MODE-REF>
</FIRST-MODE-REFS>
<SECOND-MODE-REF DEST="MODE-DECLARATION">/Demo/
ModeDeclarationGroups/EcuStatesBasic/SHUTDOWN</
SECOND-MODE-REF>
</MODE-DECLARATION-MAPPING>
<MODE-DECLARATION-MAPPING>
<SHORT-NAME>Sleep_Hibernate_2_SHUTDOWN</SHORT-NAME>
<FIRST-MODE-REFS>
<FIRST-MODE-REF DEST="MODE-DECLARATION">/Demo/
ModeDeclarationGroups/EcuStatesExtended/Sleep</
FIRST-MODE-REF>
<FIRST-MODE-REF DEST="MODE-DECLARATION">/Demo/
ModeDeclarationGroups/EcuStatesExtended/
Hibernate</FIRST-MODE-REF>
</FIRST-MODE-REFS>
<SECOND-MODE-REF DEST="MODE-DECLARATION">/Demo/
ModeDeclarationGroups/EcuStatesBasic/SHUTDOWN</
SECOND-MODE-REF>
</MODE-DECLARATION-MAPPING>
</MODE-DECLARATION-MAPPINGS>
</MODE-DECLARATION-MAPPING-SET>
<PORT-INTERFACE-MAPPING-SET>
<SHORT-NAME>ModeSwitchInterfaceMapping</SHORT-NAME>
<PORT-INTERFACE-MAPPINGS>
<MODE-INTERFACE-MAPPING>
<SHORT-NAME>EcuStatesExtended_2_EcuStatesBasic</SHORT
-NAME>
<MODE-MAPPING>
<FIRST-MODE-GROUP-REF DEST="MODE-DECLARATION-GROUP-
PROTOTYPE">/Demo/PortInterfaces/
EcuStatesExtended/EcuStatesExtended</FIRST-MODE
-GROUP-REF>
<MODE-DECLARATION-MAPPING-SET-REF DEST="MODE-
DECLARATION-MAPPING-SET">/Demo/
PortInterfaceMappingSets/EcuStateMapping</MODE-
DECLARATION-MAPPING-SET-REF>
<SECOND-MODE-GROUP-REF DEST="MODE-DECLARATION-GROUP
-PROTOTYPE">/Demo/PortInterfaces/EcuStatesBasic
/EcuStatesBasic</SECOND-MODE-GROUP-REF>
</MODE-MAPPING>
</MODE-INTERFACE-MAPPING>
</PORT-INTERFACE-MAPPINGS>
</PORT-INTERFACE-MAPPING-SET>
</ELEMENTS>
</AR-PACKAGE>
</AR-PACKAGES>
</AR-PACKAGE>
</AR-PACKAGES>
</AUTOSAR>
<SHORT-NAME>COMP_1</SHORT-NAME>
<DESC><L-2 L="EN">Stability need for received data (see
SWS RTE)</L-2></DESC>
<CONSISTENCY-NEEDSS>
<CONSISTENCY-NEEDS>
<SHORT-NAME>CN_BC</SHORT-NAME>
<DPG-DOES-NOT-REQUIRE-COHERENCYS>
<DATA-PROTOTYPE-GROUP>
<SHORT-NAME>CN_BC_DG1</SHORT-NAME>
<IMPLICIT-DATA-ACCESS-IREFS>
<IMPLICIT-DATA-ACCESS-IREF>
<CONTEXT-SW-COMPONENT-PROTOTYPE-REF DEST="SW-
COMPONENT-PROTOTYPE">/Demo/SwComponentTypes/
COMP_1/ASWC_B</CONTEXT-SW-COMPONENT-PROTOTYPE-REF
>
<CONTEXT-PORT-PROTOTYPE-REF DEST="R-PORT-PROTOTYPE">/
Demo/SwComponentTypes/ASWC_B/A</CONTEXT-PORT-
PROTOTYPE-REF>
<TARGET-VARIABLE-DATA-PROTOTYPE-REF DEST="VARIABLE-
DATA-PROTOTYPE">/Demo/PortInterfaces/A/A</TARGET-
VARIABLE-DATA-PROTOTYPE-REF>
</IMPLICIT-DATA-ACCESS-IREF>
<IMPLICIT-DATA-ACCESS-IREF>
<CONTEXT-SW-COMPONENT-PROTOTYPE-REF DEST="SW-
COMPONENT-PROTOTYPE">/Demo/SwComponentTypes/
COMP_1/ASWC_C</CONTEXT-SW-COMPONENT-PROTOTYPE-REF
>
<CONTEXT-PORT-PROTOTYPE-REF DEST="R-PORT-PROTOTYPE">/
Demo/SwComponentTypes/ASWC_C/A</CONTEXT-PORT-
PROTOTYPE-REF>
<TARGET-VARIABLE-DATA-PROTOTYPE-REF DEST="VARIABLE-
DATA-PROTOTYPE">/Demo/PortInterfaces/A/A</TARGET-
VARIABLE-DATA-PROTOTYPE-REF>
</IMPLICIT-DATA-ACCESS-IREF>
<IMPLICIT-DATA-ACCESS-IREF>
<CONTEXT-SW-COMPONENT-PROTOTYPE-REF DEST="SW-
COMPONENT-PROTOTYPE">/Demo/SwComponentTypes/
COMP_1/ASWC_B</CONTEXT-SW-COMPONENT-PROTOTYPE-REF
>
<CONTEXT-PORT-PROTOTYPE-REF DEST="R-PORT-PROTOTYPE">/
Demo/SwComponentTypes/ASWC_B/B</CONTEXT-PORT-
PROTOTYPE-REF>
<TARGET-VARIABLE-DATA-PROTOTYPE-REF DEST="VARIABLE-
DATA-PROTOTYPE">/Demo/PortInterfaces/B/B</TARGET-
VARIABLE-DATA-PROTOTYPE-REF>
</IMPLICIT-DATA-ACCESS-IREF>
<IMPLICIT-DATA-ACCESS-IREF>
<CONTEXT-SW-COMPONENT-PROTOTYPE-REF DEST="SW-
COMPONENT-PROTOTYPE">/Demo/SwComponentTypes/
COMP_1/ASWC_C</CONTEXT-SW-COMPONENT-PROTOTYPE-REF
>
<CONTEXT-PORT-PROTOTYPE-REF DEST="R-PORT-PROTOTYPE">/
Demo/SwComponentTypes/ASWC_C/B</CONTEXT-PORT-
PROTOTYPE-REF>
<TARGET-VARIABLE-DATA-PROTOTYPE-REF DEST="VARIABLE-
DATA-PROTOTYPE">/Demo/PortInterfaces/B/B</TARGET-
VARIABLE-DATA-PROTOTYPE-REF>
</IMPLICIT-DATA-ACCESS-IREF>
</IMPLICIT-DATA-ACCESS-IREFS>
</DATA-PROTOTYPE-GROUP>
</DPG-DOES-NOT-REQUIRE-COHERENCYS>
<REG-REQUIRES-STABILITYS>
<RUNNABLE-ENTITY-GROUP>
<SHORT-NAME>CN_BC_RG1</SHORT-NAME>
<RUNNABLE-ENTITY-IREFS>
<RUNNABLE-ENTITY-IREF>
<CONTEXT-SW-COMPONENT-PROTOTYPE-REF DEST="SW-
COMPONENT-PROTOTYPE">/Demo/SwComponentTypes/
COMP_1/ASWC_B</CONTEXT-SW-COMPONENT-PROTOTYPE-REF
>
<TARGET-RUNNABLE-ENTITY-REF DEST="RUNNABLE-ENTITY">/
Demo/SwComponentTypes/ASWC_B/IB_ASWC_B/
ASWC_B_RUN1</TARGET-RUNNABLE-ENTITY-REF>
</RUNNABLE-ENTITY-IREF>
<RUNNABLE-ENTITY-IREF>
<CONTEXT-SW-COMPONENT-PROTOTYPE-REF DEST="SW-
COMPONENT-PROTOTYPE">/Demo/SwComponentTypes/
COMP_1/ASWC_C</CONTEXT-SW-COMPONENT-PROTOTYPE-REF
>
<TARGET-RUNNABLE-ENTITY-REF DEST="RUNNABLE-ENTITY">/
Demo/SwComponentTypes/ASWC_C/IB_ASWC_C/
ASWC_C_RUN1</TARGET-RUNNABLE-ENTITY-REF>
</RUNNABLE-ENTITY-IREF>
</RUNNABLE-ENTITY-IREFS>
</RUNNABLE-ENTITY-GROUP>
</REG-REQUIRES-STABILITYS>
</CONSISTENCY-NEEDS>
</CONSISTENCY-NEEDSS>
<COMPONENTS>
<SW-COMPONENT-PROTOTYPE>
<SHORT-NAME>ASWC_A</SHORT-NAME>
<TYPE-TREF DEST="APPLICATION-SW-COMPONENT-TYPE">/Demo
/SwComponentTypes/ASWC_A</TYPE-TREF>
</SW-COMPONENT-PROTOTYPE>
<SW-COMPONENT-PROTOTYPE>
<SHORT-NAME>ASWC_B</SHORT-NAME>
<TYPE-TREF DEST="APPLICATION-SW-COMPONENT-TYPE">/Demo
/SwComponentTypes/ASWC_B</TYPE-TREF>
</SW-COMPONENT-PROTOTYPE>
<SW-COMPONENT-PROTOTYPE>
<SHORT-NAME>ASWC_C</SHORT-NAME>
<TYPE-TREF DEST="APPLICATION-SW-COMPONENT-TYPE">/Demo
/SwComponentTypes/ASWC_C</TYPE-TREF>
</SW-COMPONENT-PROTOTYPE>
</COMPONENTS>
</COMPOSITION-SW-COMPONENT-TYPE>
<APPLICATION-SW-COMPONENT-TYPE>
<SHORT-NAME>ASWC_A</SHORT-NAME>
<PORTS>
<P-PORT-PROTOTYPE>
<SHORT-NAME>A</SHORT-NAME>
<PROVIDED-INTERFACE-TREF DEST="SENDER-RECEIVER-
INTERFACE">/Demo/PortInterfaces/A</PROVIDED-
INTERFACE-TREF>
</P-PORT-PROTOTYPE>
<P-PORT-PROTOTYPE>
<SHORT-NAME>B</SHORT-NAME>
<PROVIDED-INTERFACE-TREF DEST="SENDER-RECEIVER-
INTERFACE">/Demo/PortInterfaces/B</PROVIDED-
INTERFACE-TREF>
</P-PORT-PROTOTYPE>
</PORTS>
<INTERNAL-BEHAVIORS>
<SWC-INTERNAL-BEHAVIOR>
<SHORT-NAME>IB_ASWC_A</SHORT-NAME>
<RUNNABLES>
<RUNNABLE-ENTITY>
<SHORT-NAME>ASWC_A_RUN1</SHORT-NAME>
<DATA-WRITE-ACCESSS>
<VARIABLE-ACCESS>
<SHORT-NAME>DWP_ASWC_A_RUN1_A_A</SHORT-NAME>
<ACCESSED-VARIABLE>
<AUTOSAR-VARIABLE-IREF>
<PORT-PROTOTYPE-REF DEST="P-PORT-
PROTOTYPE">/Demo/SwComponentTypes/
ASWC_A/A</PORT-PROTOTYPE-REF>
<TARGET-DATA-PROTOTYPE-REF DEST="VARIABLE
-DATA-PROTOTYPE">/Demo/PortInterfaces
/A/A</TARGET-DATA-PROTOTYPE-REF>
</AUTOSAR-VARIABLE-IREF>
</ACCESSED-VARIABLE>
</VARIABLE-ACCESS>
<VARIABLE-ACCESS>
<SHORT-NAME>DWP_ASWC_A_RUN1_B_B</SHORT-NAME>
<ACCESSED-VARIABLE>
<AUTOSAR-VARIABLE-IREF>
<PORT-PROTOTYPE-REF DEST="P-PORT-
PROTOTYPE">/Demo/SwComponentTypes/
ASWC_A/B</PORT-PROTOTYPE-REF>
<TARGET-DATA-PROTOTYPE-REF DEST="VARIABLE
-DATA-PROTOTYPE">/Demo/PortInterfaces
/B/B</TARGET-DATA-PROTOTYPE-REF>
</AUTOSAR-VARIABLE-IREF>
</ACCESSED-VARIABLE>
</VARIABLE-ACCESS>
</DATA-WRITE-ACCESSS>
</RUNNABLE-ENTITY>
</RUNNABLES>
</SWC-INTERNAL-BEHAVIOR>
</INTERNAL-BEHAVIORS>
</APPLICATION-SW-COMPONENT-TYPE>
<APPLICATION-SW-COMPONENT-TYPE>
<SHORT-NAME>ASWC_B</SHORT-NAME>
<PORTS>
<R-PORT-PROTOTYPE>
<SHORT-NAME>A</SHORT-NAME>
<REQUIRED-INTERFACE-TREF DEST="SENDER-RECEIVER-
INTERFACE">/Demo/PortInterfaces/A</REQUIRED-
INTERFACE-TREF>
</R-PORT-PROTOTYPE>
<R-PORT-PROTOTYPE>
<SHORT-NAME>B</SHORT-NAME>
<REQUIRED-INTERFACE-TREF DEST="SENDER-RECEIVER-
INTERFACE">/Demo/PortInterfaces/B</REQUIRED-
INTERFACE-TREF>
</R-PORT-PROTOTYPE>
</PORTS>
<INTERNAL-BEHAVIORS>
<SWC-INTERNAL-BEHAVIOR>
<SHORT-NAME>IB_ASWC_B</SHORT-NAME>
<RUNNABLES>
<RUNNABLE-ENTITY>
<SHORT-NAME>ASWC_B_RUN1</SHORT-NAME>
<DATA-READ-ACCESSS>
<VARIABLE-ACCESS>
<SHORT-NAME>DWP_ASWC_B_RUN1_A_A</SHORT-NAME>
<ACCESSED-VARIABLE>
<AUTOSAR-VARIABLE-IREF>
<PORT-PROTOTYPE-REF DEST="R-PORT-
PROTOTYPE">/Demo/SwComponentTypes/
ASWC_B/A</PORT-PROTOTYPE-REF>
<TARGET-DATA-PROTOTYPE-REF DEST="VARIABLE
-DATA-PROTOTYPE">/Demo/PortInterfaces
/A/A</TARGET-DATA-PROTOTYPE-REF>
</AUTOSAR-VARIABLE-IREF>
</ACCESSED-VARIABLE>
</VARIABLE-ACCESS>
<VARIABLE-ACCESS>
<SHORT-NAME>DWP_ASWC_B_RUN1_B_B</SHORT-NAME>
<ACCESSED-VARIABLE>
<AUTOSAR-VARIABLE-IREF>
<PORT-PROTOTYPE-REF DEST="R-PORT-
PROTOTYPE">/Demo/SwComponentTypes/
ASWC_B/B</PORT-PROTOTYPE-REF>
<TARGET-DATA-PROTOTYPE-REF DEST="VARIABLE
-DATA-PROTOTYPE">/Demo/PortInterfaces
/B/B</TARGET-DATA-PROTOTYPE-REF>
</AUTOSAR-VARIABLE-IREF>
</ACCESSED-VARIABLE>
</VARIABLE-ACCESS>
</DATA-READ-ACCESSS>
</RUNNABLE-ENTITY>
</RUNNABLES>
</SWC-INTERNAL-BEHAVIOR>
</INTERNAL-BEHAVIORS>
</APPLICATION-SW-COMPONENT-TYPE>
<APPLICATION-SW-COMPONENT-TYPE>
<SHORT-NAME>ASWC_C</SHORT-NAME>
<PORTS>
<R-PORT-PROTOTYPE>
<SHORT-NAME>A</SHORT-NAME>
<REQUIRED-INTERFACE-TREF DEST="SENDER-RECEIVER-
INTERFACE">/Demo/PortInterfaces/A</REQUIRED-
INTERFACE-TREF>
</R-PORT-PROTOTYPE>
<R-PORT-PROTOTYPE>
<SHORT-NAME>B</SHORT-NAME>
<REQUIRED-INTERFACE-TREF DEST="SENDER-RECEIVER-
INTERFACE">/Demo/PortInterfaces/B</REQUIRED-
INTERFACE-TREF>
</R-PORT-PROTOTYPE>
</PORTS>
<INTERNAL-BEHAVIORS>
<SWC-INTERNAL-BEHAVIOR>
<SHORT-NAME>IB_ASWC_C</SHORT-NAME>
<RUNNABLES>
<RUNNABLE-ENTITY>
<SHORT-NAME>ASWC_C_RUN1</SHORT-NAME>
<DATA-READ-ACCESSS>
<VARIABLE-ACCESS>
<SHORT-NAME>DWP_ASWC_C_RUN1_A_A</SHORT-NAME>
<ACCESSED-VARIABLE>
<AUTOSAR-VARIABLE-IREF>
<PORT-PROTOTYPE-REF DEST="R-PORT-
PROTOTYPE">/Demo/SwComponentTypes/
ASWC_C/A</PORT-PROTOTYPE-REF>
<TARGET-DATA-PROTOTYPE-REF DEST="VARIABLE
-DATA-PROTOTYPE">/Demo/PortInterfaces
/A/A</TARGET-DATA-PROTOTYPE-REF>
</AUTOSAR-VARIABLE-IREF>
</ACCESSED-VARIABLE>
</VARIABLE-ACCESS>
<VARIABLE-ACCESS>
<SHORT-NAME>DWP_ASWC_C_RUN1_B_B</SHORT-NAME>
<ACCESSED-VARIABLE>
<AUTOSAR-VARIABLE-IREF>
<PORT-PROTOTYPE-REF DEST="R-PORT-
PROTOTYPE">/Demo/SwComponentTypes/
ASWC_C/B</PORT-PROTOTYPE-REF>
<TARGET-DATA-PROTOTYPE-REF DEST="VARIABLE
-DATA-PROTOTYPE">/Demo/PortInterfaces
/B/B</TARGET-DATA-PROTOTYPE-REF>
</AUTOSAR-VARIABLE-IREF>
</ACCESSED-VARIABLE>
</VARIABLE-ACCESS>
</DATA-READ-ACCESSS>
</RUNNABLE-ENTITY>
</RUNNABLES>
</SWC-INTERNAL-BEHAVIOR>
</INTERNAL-BEHAVIORS>
</APPLICATION-SW-COMPONENT-TYPE>
</ELEMENTS>
</AR-PACKAGE>
<AR-PACKAGE>
<SHORT-NAME>PortInterfaces</SHORT-NAME>
<ELEMENTS>
<SENDER-RECEIVER-INTERFACE>
<SHORT-NAME>A</SHORT-NAME>
<DATA-ELEMENTS>
<VARIABLE-DATA-PROTOTYPE>
<SHORT-NAME>A</SHORT-NAME>
</VARIABLE-DATA-PROTOTYPE>
</DATA-ELEMENTS>
</SENDER-RECEIVER-INTERFACE>
<SENDER-RECEIVER-INTERFACE>
<SHORT-NAME>B</SHORT-NAME>
<DATA-ELEMENTS>
<VARIABLE-DATA-PROTOTYPE>
<SHORT-NAME>B</SHORT-NAME>
</VARIABLE-DATA-PROTOTYPE>
</DATA-ELEMENTS>
</SENDER-RECEIVER-INTERFACE>
</ELEMENTS>
</AR-PACKAGE>
</AR-PACKAGES>
</AR-PACKAGE>
</AR-PACKAGES>
</AUTOSAR>
24 <VT>low pressure</VT>
25 </COMPU-CONST>
26 </COMPU-SCALE>
27 <COMPU-SCALE>
28 <SHORT-LABEL>problem</SHORT-LABEL>
29 <SYMBOL>problem_unbalanced</SYMBOL>
30 <MASK>0b11110000</MASK>
31 <LOWER-LIMIT INTERVAL-TYPE="CLOSED">0b00100000</LOWER-LIMIT>
32 <UPPER-LIMIT INTERVAL-TYPE="CLOSED">0b00100000</UPPER-LIMIT>
33 <COMPU-CONST>
34 <VT>unbalanced</VT>
35 </COMPU-CONST>
36 </COMPU-SCALE>
37 <COMPU-SCALE>
38 <SHORT-LABEL>problem</SHORT-LABEL>
39 <SYMBOL>problem_unknown</SYMBOL>
40 <MASK>0b11110000</MASK>
41 <LOWER-LIMIT INTERVAL-TYPE="CLOSED">0b00110000</LOWER-LIMIT>
42 <UPPER-LIMIT INTERVAL-TYPE="CLOSED">0b00110000</UPPER-LIMIT>
43 <COMPU-CONST>
44 <VT>unknown</VT>
45 </COMPU-CONST>
46 </COMPU-SCALE>
47 <COMPU-SCALE>
48 <SHORT-LABEL>problem</SHORT-LABEL>
49 <SYMBOL>problem_invalid</SYMBOL>
50 <MASK>0b11110000</MASK>
51 <LOWER-LIMIT INTERVAL-TYPE="CLOSED">0b11110000</LOWER-LIMIT>
52 <UPPER-LIMIT INTERVAL-TYPE="CLOSED">0b11110000</UPPER-LIMIT>
53 <COMPU-CONST>
54 <VT>invalid</VT>
55 </COMPU-CONST>
56 </COMPU-SCALE>
57 <!-- rear right -->
58 <COMPU-SCALE>
59 <SHORT-LABEL>rearRight</SHORT-LABEL>
60 <SYMBOL>rearRight_no</SYMBOL>
61 <MASK>0b11001000</MASK>
62 <LOWER-LIMIT INTERVAL-TYPE="CLOSED">0b00000000</LOWER-LIMIT>
63 <UPPER-LIMIT INTERVAL-TYPE="CLOSED">0b00000000</UPPER-LIMIT>
64 <COMPU-CONST>
65 <VT>no</VT>
66 </COMPU-CONST>
67 </COMPU-SCALE>
68 <COMPU-SCALE>
69 <SHORT-LABEL>rearRight</SHORT-LABEL>
70 <SYMBOL>rearRight_yes</SYMBOL>
71 <MASK>0b11001000</MASK>
72 <LOWER-LIMIT INTERVAL-TYPE="CLOSED">0b00001000</LOWER-LIMIT>
73 <UPPER-LIMIT INTERVAL-TYPE="CLOSED">0b00001000</UPPER-LIMIT>
74 <COMPU-CONST>
75 <VT>yes</VT>
76 </COMPU-CONST>
77 </COMPU-SCALE>
78 <!-- rear left -->
79 <COMPU-SCALE>
80 <SHORT-LABEL>rearLeft</SHORT-LABEL>
81 <SYMBOL>rearLeft_no</SYMBOL>
82 <MASK>0b11000100</MASK>
83 <LOWER-LIMIT INTERVAL-TYPE="CLOSED">0b00000000</LOWER-LIMIT>
84 <UPPER-LIMIT INTERVAL-TYPE="CLOSED">0b00000000</UPPER-LIMIT>
85 <COMPU-CONST>
86 <VT>no</VT>
87 </COMPU-CONST>
88 </COMPU-SCALE>
89 <COMPU-SCALE>
90 <SHORT-LABEL>rearLeft</SHORT-LABEL>
91 <SYMBOL>rearLeft_yes</SYMBOL>
92 <MASK>0b11000100</MASK>
93 <LOWER-LIMIT INTERVAL-TYPE="CLOSED">0b00000100</LOWER-LIMIT>
94 <UPPER-LIMIT INTERVAL-TYPE="CLOSED">0b00000100</UPPER-LIMIT>
95 <COMPU-CONST>
96 <VT>yes</VT>
97 </COMPU-CONST>
98 </COMPU-SCALE>
99 <!-- front right -->
100 <COMPU-SCALE>
101 <SHORT-LABEL>frontRight</SHORT-LABEL>
102 <SYMBOL>frontRight_no</SYMBOL>
103 <MASK>0b11000010</MASK>
104 <LOWER-LIMIT INTERVAL-TYPE="CLOSED">0b00000000</LOWER-LIMIT>
105 <UPPER-LIMIT INTERVAL-TYPE="CLOSED">0b00000000</UPPER-LIMIT>
106 <COMPU-CONST>
107 <VT>no</VT>
108 </COMPU-CONST>
109 </COMPU-SCALE>
110 <COMPU-SCALE>
111 <SHORT-LABEL>frontRight</SHORT-LABEL>
112 <SYMBOL>frontRight_yes</SYMBOL>
113 <MASK>0b11000010</MASK>
114 <LOWER-LIMIT INTERVAL-TYPE="CLOSED">0b00000010</LOWER-LIMIT>
115 <UPPER-LIMIT INTERVAL-TYPE="CLOSED">0b00000010</UPPER-LIMIT>
116 <COMPU-CONST>
117 <VT>yes</VT>
118 </COMPU-CONST>
119 </COMPU-SCALE>
120 <!-- front left -->
121 <COMPU-SCALE>
122 <SHORT-LABEL>frontLeft</SHORT-LABEL>
123 <SYMBOL>frontLeft_no</SYMBOL>
124 <MASK>0b11000001</MASK>
125 <LOWER-LIMIT INTERVAL-TYPE="CLOSED">0b00000000</LOWER-LIMIT>
126 <UPPER-LIMIT INTERVAL-TYPE="CLOSED">0b00000000</UPPER-LIMIT>
127 <COMPU-CONST>
128 <VT>no</VT>
129 </COMPU-CONST>
130 </COMPU-SCALE>
131 <COMPU-SCALE>
132 <SHORT-LABEL>frontLeft</SHORT-LABEL>
133 <SYMBOL>frontLeft_yes</SYMBOL>
134 <MASK>0b11000001</MASK>
135 <LOWER-LIMIT INTERVAL-TYPE="CLOSED">0b00000001</LOWER-LIMIT>
80 #ifndef frontRight_BflMask
81 #define frontRight_BflMask 194U
82 #endif /* frontRight_BflMask */
83
84 /* [SWS_Rte_07411] unique "shortLabel" / "mask" pair "frontRight" / 0
b11000010 but not a single contiguous bit field*/
85
86 /* [SWS_Rte_07412] unique "shortLabel" / "mask" pair "frontRight" / 0
b11000010 bot not a single contiguous bit field*/
87
88 /* [SWS_Rte_03810] CompuScale with point range "0b00000000", symbol
attribute "frontRight_no"*/
89 #ifndef frontRight_no
90 #define frontRight_no 0U
91 #endif /* frontRight_no */
92
93 /* [SWS_Rte_03810] CompuScale with point range "0b00000010", symbol
attribute "frontRight_yes"*/
94 #ifndef frontRight_yes
95 #define frontRight_yes 2U
96 #endif /* frontRight_yes */
97
98 /* [SWS_Rte_07410] unique "shortLabel" / "mask" pair "frontLeft" / 0
b11000001 */
99 #ifndef frontLeft_BflMask
100 #define frontLeft_BflMask 193U
101 #endif /* frontLeft_BflMask */
102
103 /* [SWS_Rte_07411] unique "shortLabel" / "mask" pair "frontLeft" / 0
b11000001 but not a single contiguous bit field*/
104
105 /* [SWS_Rte_07412] unique "shortLabel" / "mask" pair "frontLeft" / 0
b11000001 bot not a single contiguous bit field*/
106
<SW-DATA-DEF-PROPS>
<SW-DATA-DEF-PROPS-VARIANTS>
<SW-DATA-DEF-PROPS-CONDITIONAL>
<IMPLEMENTATION-DATA-TYPE-REF DEST="
IMPLEMENTATION-DATA-TYPE">/Demo/
ImplementationDataTypes/DataSet</
IMPLEMENTATION-DATA-TYPE-REF>
</SW-DATA-DEF-PROPS-CONDITIONAL>
</SW-DATA-DEF-PROPS-VARIANTS>
</SW-DATA-DEF-PROPS>
</SW-POINTER-TARGET-PROPS>
</SW-DATA-DEF-PROPS-CONDITIONAL>
</SW-DATA-DEF-PROPS-VARIANTS>
</SW-DATA-DEF-PROPS>
</IMPLEMENTATION-DATA-TYPE-ELEMENT>
<IMPLEMENTATION-DATA-TYPE-ELEMENT>
<SHORT-NAME>substruct</SHORT-NAME>
<CATEGORY>STRUCTURE</CATEGORY>
<SUB-ELEMENTS>
<IMPLEMENTATION-DATA-TYPE-ELEMENT>
<SHORT-NAME>sub1</SHORT-NAME>
<CATEGORY>TYPE_REFERENCE</CATEGORY>
<SW-DATA-DEF-PROPS>
<SW-DATA-DEF-PROPS-VARIANTS>
<SW-DATA-DEF-PROPS-CONDITIONAL>
<IMPLEMENTATION-DATA-TYPE-REF DEST="
IMPLEMENTATION-DATA-TYPE">/
AUTOSAR_Platform/
ImplementationDataTypes/uint8</
IMPLEMENTATION-DATA-TYPE-REF>
</SW-DATA-DEF-PROPS-CONDITIONAL>
</SW-DATA-DEF-PROPS-VARIANTS>
</SW-DATA-DEF-PROPS>
</IMPLEMENTATION-DATA-TYPE-ELEMENT>
<IMPLEMENTATION-DATA-TYPE-ELEMENT>
<SHORT-NAME>sub2</SHORT-NAME>
<CATEGORY>TYPE_REFERENCE</CATEGORY>
<SW-DATA-DEF-PROPS>
<SW-DATA-DEF-PROPS-VARIANTS>
<SW-DATA-DEF-PROPS-CONDITIONAL>
<IMPLEMENTATION-DATA-TYPE-REF DEST="
IMPLEMENTATION-DATA-TYPE">/
AUTOSAR_Platform/
ImplementationDataTypes/uint8</
IMPLEMENTATION-DATA-TYPE-REF>
</SW-DATA-DEF-PROPS-CONDITIONAL>
</SW-DATA-DEF-PROPS-VARIANTS>
</SW-DATA-DEF-PROPS>
</IMPLEMENTATION-DATA-TYPE-ELEMENT>
</SUB-ELEMENTS>
</IMPLEMENTATION-DATA-TYPE-ELEMENT>
</SUB-ELEMENTS>
<TYPE-EMITTER>RTE</TYPE-EMITTER>
</IMPLEMENTATION-DATA-TYPE>
</ELEMENTS>
</AR-PACKAGE>
</AR-PACKAGES>
</AR-PACKAGE>
</AR-PACKAGES>
</AUTOSAR>
<SHORT-NAME>EP</SHORT-NAME>
<PARAMETERS>
<PARAMETER-DATA-PROTOTYPE>
<SHORT-NAME>Prm1</SHORT-NAME>
<SW-DATA-DEF-PROPS>
<SW-DATA-DEF-PROPS-VARIANTS>
<SW-DATA-DEF-PROPS-CONDITIONAL>
<SW-ADDR-METHOD-REF DEST="SW-ADDR-METHOD">/
AUTOSAR_MemMap/SwAddrMethods/CALIB_QM</SW-
ADDR-METHOD-REF>
<SW-CALIBRATION-ACCESS>READ-WRITE</SW-
CALIBRATION-ACCESS>
<SW-IMPL-POLICY>STANDARD</SW-IMPL-POLICY>
</SW-DATA-DEF-PROPS-CONDITIONAL>
</SW-DATA-DEF-PROPS-VARIANTS>
</SW-DATA-DEF-PROPS>
<TYPE-TREF DEST="APPLICATION-PRIMITIVE-DATA-TYPE">/
AUTOSAR_AISpecification/ApplicationDataTypes/Flg1
</TYPE-TREF>
</PARAMETER-DATA-PROTOTYPE>
</PARAMETERS>
</PARAMETER-INTERFACE>
</ELEMENTS>
</AR-PACKAGE>
<AR-PACKAGE>
<SHORT-NAME>SwComponentTypes</SHORT-NAME>
<ELEMENTS>
<PARAMETER-SW-COMPONENT-TYPE>
<SHORT-NAME>PSWC</SHORT-NAME>
<PORTS>
<P-PORT-PROTOTYPE>
<SHORT-NAME>EP</SHORT-NAME>
<PROVIDED-COM-SPECS>
<PARAMETER-PROVIDE-COM-SPEC>
<INIT-VALUE>
<APPLICATION-VALUE-SPECIFICATION>
<SW-VALUE-CONT>
<UNIT-REF DEST="UNIT">/AUTOSAR/
AISpecification/Units/NoUnit</UNIT-REF>
<SW-VALUES-PHYS>
<VT>Rst</VT>
</SW-VALUES-PHYS>
</SW-VALUE-CONT>
</APPLICATION-VALUE-SPECIFICATION>
</INIT-VALUE>
<PARAMETER-REF DEST="PARAMETER-DATA-PROTOTYPE">/
Demo/PortInterfaces/EP/Prm1</PARAMETER-REF>
</PARAMETER-PROVIDE-COM-SPEC>
</PROVIDED-COM-SPECS>
<PROVIDED-INTERFACE-TREF DEST="PARAMETER-INTERFACE">/
Demo/PortInterfaces/EP</PROVIDED-INTERFACE-TREF>
</P-PORT-PROTOTYPE>
</PORTS>
</PARAMETER-SW-COMPONENT-TYPE>
<APPLICATION-SW-COMPONENT-TYPE>
<SHORT-NAME>ASWC</SHORT-NAME>
<PORTS>
<R-PORT-PROTOTYPE>
<SHORT-NAME>EP</SHORT-NAME>
<REQUIRED-INTERFACE-TREF DEST="PARAMETER-INTERFACE">/
Demo/PortInterfaces/EP</REQUIRED-INTERFACE-TREF>
</R-PORT-PROTOTYPE>
</PORTS>
<INTERNAL-BEHAVIORS>
<SWC-INTERNAL-BEHAVIOR>
<SHORT-NAME>ASWC</SHORT-NAME>
<PER-INSTANCE-PARAMETERS>
<PARAMETER-DATA-PROTOTYPE>
<SHORT-NAME>PIP</SHORT-NAME>
<SW-DATA-DEF-PROPS>
<SW-DATA-DEF-PROPS-VARIANTS>
<SW-DATA-DEF-PROPS-CONDITIONAL>
<SW-ADDR-METHOD-REF DEST="SW-ADDR-METHOD">/
AUTOSAR_MemMap/SwAddrMethods/CALIB_QM</
SW-ADDR-METHOD-REF>
<SW-CALIBRATION-ACCESS>READ-WRITE</SW-
CALIBRATION-ACCESS>
<SW-IMPL-POLICY>STANDARD</SW-IMPL-POLICY>
</SW-DATA-DEF-PROPS-CONDITIONAL>
</SW-DATA-DEF-PROPS-VARIANTS>
</SW-DATA-DEF-PROPS>
<TYPE-TREF DEST="APPLICATION-PRIMITIVE-DATA-TYPE"
>/AUTOSAR_AISpecification/
ApplicationDataTypes/Flg1</TYPE-TREF>
<INIT-VALUE>
<APPLICATION-VALUE-SPECIFICATION>
<SW-VALUE-CONT>
<UNIT-REF DEST="UNIT">/AUTOSAR/
AISpecification/Units/NoUnit</UNIT-REF>
<SW-VALUES-PHYS>
<VT>Rst</VT>
</SW-VALUES-PHYS>
</SW-VALUE-CONT>
</APPLICATION-VALUE-SPECIFICATION>
</INIT-VALUE>
</PARAMETER-DATA-PROTOTYPE>
</PER-INSTANCE-PARAMETERS>
<SHARED-PARAMETERS>
<PARAMETER-DATA-PROTOTYPE>
<SHORT-NAME>SP</SHORT-NAME>
<SW-DATA-DEF-PROPS>
<SW-DATA-DEF-PROPS-VARIANTS>
<SW-DATA-DEF-PROPS-CONDITIONAL>
<SW-ADDR-METHOD-REF DEST="SW-ADDR-METHOD">/
AUTOSAR_MemMap/SwAddrMethods/CALIB_QM</
SW-ADDR-METHOD-REF>
<SW-CALIBRATION-ACCESS>READ-WRITE</SW-
CALIBRATION-ACCESS>
<SW-IMPL-POLICY>STANDARD</SW-IMPL-POLICY>
</SW-DATA-DEF-PROPS-CONDITIONAL>
</SW-DATA-DEF-PROPS-VARIANTS>
</SW-DATA-DEF-PROPS>
<TYPE-TREF DEST="APPLICATION-PRIMITIVE-DATA-TYPE"
>/AUTOSAR_AISpecification/
ApplicationDataTypes/Flg1</TYPE-TREF>
<INIT-VALUE>
<APPLICATION-VALUE-SPECIFICATION>
<SW-VALUE-CONT>
<UNIT-REF DEST="UNIT">/AUTOSAR/
AISpecification/Units/NoUnit</UNIT-REF>
<SW-VALUES-PHYS>
<VT>Set</VT>
</SW-VALUES-PHYS>
</SW-VALUE-CONT>
</APPLICATION-VALUE-SPECIFICATION>
</INIT-VALUE>
</PARAMETER-DATA-PROTOTYPE>
</SHARED-PARAMETERS>
</SWC-INTERNAL-BEHAVIOR>
</INTERNAL-BEHAVIORS>
</APPLICATION-SW-COMPONENT-TYPE>
<COMPOSITION-SW-COMPONENT-TYPE>
<SHORT-NAME>RootComp</SHORT-NAME>
<COMPONENTS>
<SW-COMPONENT-PROTOTYPE>
<SHORT-NAME>SWC_A</SHORT-NAME>
<TYPE-TREF DEST="APPLICATION-SW-COMPONENT-TYPE">/Demo
/SwComponentTypes/ASWC</TYPE-TREF>
</SW-COMPONENT-PROTOTYPE>
<SW-COMPONENT-PROTOTYPE>
<SHORT-NAME>SWC_B</SHORT-NAME>
<TYPE-TREF DEST="APPLICATION-SW-COMPONENT-TYPE">/Demo
/SwComponentTypes/ASWC</TYPE-TREF>
</SW-COMPONENT-PROTOTYPE>
<SW-COMPONENT-PROTOTYPE>
<SHORT-NAME>SWC_PA</SHORT-NAME>
<TYPE-TREF DEST="APPLICATION-SW-COMPONENT-TYPE">/Demo
/SwComponentTypes/PSWC</TYPE-TREF>
</SW-COMPONENT-PROTOTYPE>
<SW-COMPONENT-PROTOTYPE>
<SHORT-NAME>SWC_PB</SHORT-NAME>
<TYPE-TREF DEST="APPLICATION-SW-COMPONENT-TYPE">/Demo
/SwComponentTypes/PSWC</TYPE-TREF>
</SW-COMPONENT-PROTOTYPE>
</COMPONENTS>
<CONNECTORS>
<ASSEMBLY-SW-CONNECTOR>
<SHORT-NAME>SWC_PA_EP_SWC_A_EP</SHORT-NAME>
<PROVIDER-IREF>
<CONTEXT-COMPONENT-REF DEST="SW-COMPONENT-PROTOTYPE
">/Demo/SwComponentTypes/RootComp/SWC_PA</
CONTEXT-COMPONENT-REF>
<TARGET-P-PORT-REF DEST="P-PORT-PROTOTYPE">/Demo/
SwComponentTypes/PSWC/EP</TARGET-P-PORT-REF>
</PROVIDER-IREF>
<REQUESTER-IREF>
<CONTEXT-COMPONENT-REF DEST="SW-COMPONENT-PROTOTYPE
">/Demo/SwComponentTypes/RootComp/SWC_A</
CONTEXT-COMPONENT-REF>
<TARGET-R-PORT-REF DEST="R-PORT-PROTOTYPE">/Demo/
SwComponentTypes/ASWC/EP</TARGET-R-PORT-REF>
</REQUESTER-IREF>
</ASSEMBLY-SW-CONNECTOR>
<ASSEMBLY-SW-CONNECTOR>
<SHORT-NAME>SWC_PB_EP_SWC_B_EP</SHORT-NAME>
<PROVIDER-IREF>
<CONTEXT-COMPONENT-REF DEST="SW-COMPONENT-PROTOTYPE
">/Demo/SwComponentTypes/RootComp/SWC_PB</
CONTEXT-COMPONENT-REF>
<TARGET-P-PORT-REF DEST="P-PORT-PROTOTYPE">/Demo/
SwComponentTypes/PSWC/EP</TARGET-P-PORT-REF>
</PROVIDER-IREF>
<REQUESTER-IREF>
<CONTEXT-COMPONENT-REF DEST="SW-COMPONENT-PROTOTYPE
">/Demo/SwComponentTypes/RootComp/SWC_B</
CONTEXT-COMPONENT-REF>
<TARGET-R-PORT-REF DEST="R-PORT-PROTOTYPE">/Demo/
SwComponentTypes/ASWC/EP</TARGET-R-PORT-REF>
</REQUESTER-IREF>
</ASSEMBLY-SW-CONNECTOR>
</CONNECTORS>
</COMPOSITION-SW-COMPONENT-TYPE>
</ELEMENTS>
</AR-PACKAGE>
<AR-PACKAGE>
<SHORT-NAME>Systems</SHORT-NAME>
<ELEMENTS>
<SYSTEM>
<SHORT-NAME>Sys</SHORT-NAME>
<CATEGORY>ECU_EXTRACT</CATEGORY>
<ROOT-SOFTWARE-COMPOSITIONS>
<ROOT-SW-COMPOSITION-PROTOTYPE>
<SHORT-NAME>RootSwComp</SHORT-NAME>
<FLAT-MAP-REF DEST="FLAT-MAP">/Demo/FlatMaps/
SysFlatMap</FLAT-MAP-REF>
<SOFTWARE-COMPOSITION-TREF DEST="COMPOSITION-SW-
COMPONENT-TYPE">/Demo/SwComponentTypes/RootComp</
SOFTWARE-COMPOSITION-TREF>
</ROOT-SW-COMPOSITION-PROTOTYPE>
</ROOT-SOFTWARE-COMPOSITIONS>
</SYSTEM>
</ELEMENTS>
</AR-PACKAGE>
<AR-PACKAGE>
<SHORT-NAME>FlatMaps</SHORT-NAME>
<ELEMENTS>
<FLAT-MAP>
<SHORT-NAME>SysFlatMap</SHORT-NAME>
<INSTANCES>
<FLAT-INSTANCE-DESCRIPTOR>
<SHORT-NAME>SWC_A_PIP_Z0</SHORT-NAME>
<ECU-EXTRACT-REFERENCE-IREF>
<CONTEXT-ELEMENT-REF DEST="ROOT-SW-COMPOSITION-
PROTOTYPE">/Demo/Systems/Sys/RootSwComp</
CONTEXT-ELEMENT-REF>
<CONTEXT-ELEMENT-REF DEST="SW-COMPONENT-PROTOTYPE">
/Demo/SwComponentTypes/RootComp/SWC_A</CONTEXT-
ELEMENT-REF>
<TARGET-REF DEST="PARAMETER-DATA-PROTOTYPE">/Demo/
SwComponentTypes/ASWC/ASWC/PIP</TARGET-REF>
</ECU-EXTRACT-REFERENCE-IREF>
<VARIATION-POINT>
<POST-BUILD-VARIANT-CONDITIONS>
<POST-BUILD-VARIANT-CONDITION>
<MATCHING-CRITERION-REF DEST="POST-BUILD-
VARIANT-CRITERION">/Demo/
PostBuildVariantCriterions/Z</MATCHING-
CRITERION-REF>
<VALUE>0</VALUE>
</POST-BUILD-VARIANT-CONDITION>
</POST-BUILD-VARIANT-CONDITIONS>
</VARIATION-POINT>
</FLAT-INSTANCE-DESCRIPTOR>
<FLAT-INSTANCE-DESCRIPTOR>
<SHORT-NAME>SWC_A_PIP_Z1</SHORT-NAME>
<ECU-EXTRACT-REFERENCE-IREF>
<CONTEXT-ELEMENT-REF DEST="ROOT-SW-COMPOSITION-
PROTOTYPE">/Demo/Systems/Sys/RootSwComp</
CONTEXT-ELEMENT-REF>
<CONTEXT-ELEMENT-REF DEST="SW-COMPONENT-PROTOTYPE">
/Demo/SwComponentTypes/RootComp/SWC_A</CONTEXT-
ELEMENT-REF>
<TARGET-REF DEST="PARAMETER-DATA-PROTOTYPE">/Demo/
SwComponentTypes/ASWC/ASWC/PIP</TARGET-REF>
</ECU-EXTRACT-REFERENCE-IREF>
<VARIATION-POINT>
<POST-BUILD-VARIANT-CONDITIONS>
<POST-BUILD-VARIANT-CONDITION>
<MATCHING-CRITERION-REF DEST="POST-BUILD-
VARIANT-CRITERION">/Demo/
PostBuildVariantCriterions/Z</MATCHING-
CRITERION-REF>
<VALUE>1</VALUE>
</POST-BUILD-VARIANT-CONDITION>
</POST-BUILD-VARIANT-CONDITIONS>
</VARIATION-POINT>
</FLAT-INSTANCE-DESCRIPTOR>
<FLAT-INSTANCE-DESCRIPTOR>
<SHORT-NAME>SWC_B_PIP</SHORT-NAME>
<ECU-EXTRACT-REFERENCE-IREF>
<CONTEXT-ELEMENT-REF DEST="ROOT-SW-COMPOSITION-
PROTOTYPE">/Demo/Systems/Sys/RootSwComp</
CONTEXT-ELEMENT-REF>
<CONTEXT-ELEMENT-REF DEST="SW-COMPONENT-PROTOTYPE">
/Demo/SwComponentTypes/RootComp/SWC_B</CONTEXT-
ELEMENT-REF>
<TARGET-REF DEST="PARAMETER-DATA-PROTOTYPE">/Demo/
SwComponentTypes/ASWC/ASWC/PIP</TARGET-REF>
</ECU-EXTRACT-REFERENCE-IREF>
</FLAT-INSTANCE-DESCRIPTOR>
<FLAT-INSTANCE-DESCRIPTOR>
<SHORT-NAME>SWC_A_SWC_B_SP_Z0</SHORT-NAME>
<ECU-EXTRACT-REFERENCE-IREF>
<CONTEXT-ELEMENT-REF DEST="ROOT-SW-COMPOSITION-
PROTOTYPE">/Demo/Systems/Sys/RootSwComp</
CONTEXT-ELEMENT-REF>
<!-- points to SWC_A but applies also for SWC_B due
to sharedParameter behavior -->
<CONTEXT-ELEMENT-REF DEST="SW-COMPONENT-PROTOTYPE">
/Demo/SwComponentTypes/RootComp/SWC_A</CONTEXT-
ELEMENT-REF>
<TARGET-REF DEST="PARAMETER-DATA-PROTOTYPE">/Demo/
SwComponentTypes/ASWC/ASWC/SP</TARGET-REF>
</ECU-EXTRACT-REFERENCE-IREF>
<VARIATION-POINT>
<POST-BUILD-VARIANT-CONDITIONS>
<POST-BUILD-VARIANT-CONDITION>
<MATCHING-CRITERION-REF DEST="POST-BUILD-
VARIANT-CRITERION">/Demo/
PostBuildVariantCriterions/Z</MATCHING-
CRITERION-REF>
<VALUE>0</VALUE>
</POST-BUILD-VARIANT-CONDITION>
</POST-BUILD-VARIANT-CONDITIONS>
</VARIATION-POINT>
</FLAT-INSTANCE-DESCRIPTOR>
<FLAT-INSTANCE-DESCRIPTOR>
<SHORT-NAME>SWC_A_SWC_B_SP_Z1</SHORT-NAME>
<ECU-EXTRACT-REFERENCE-IREF>
<CONTEXT-ELEMENT-REF DEST="ROOT-SW-COMPOSITION-
PROTOTYPE">/Demo/Systems/Sys/RootSwComp</
CONTEXT-ELEMENT-REF>
<!-- points to SWC_A but applies also for SWC_B due
to sharedParameter behavior -->
<CONTEXT-ELEMENT-REF DEST="SW-COMPONENT-PROTOTYPE">
/Demo/SwComponentTypes/RootComp/SWC_A</CONTEXT-
ELEMENT-REF>
<TARGET-REF DEST="PARAMETER-DATA-PROTOTYPE">/Demo/
SwComponentTypes/ASWC/ASWC/SP</TARGET-REF>
</ECU-EXTRACT-REFERENCE-IREF>
<VARIATION-POINT>
<POST-BUILD-VARIANT-CONDITIONS>
<POST-BUILD-VARIANT-CONDITION>
<MATCHING-CRITERION-REF DEST="POST-BUILD-
VARIANT-CRITERION">/Demo/
PostBuildVariantCriterions/Z</MATCHING-
CRITERION-REF>
<VALUE>1</VALUE>
</POST-BUILD-VARIANT-CONDITION>
</POST-BUILD-VARIANT-CONDITIONS>
</VARIATION-POINT>
</FLAT-INSTANCE-DESCRIPTOR>
<FLAT-INSTANCE-DESCRIPTOR>
<SHORT-NAME>SWC_PA_EP_Prm1_Z0</SHORT-NAME>
<ECU-EXTRACT-REFERENCE-IREF>
<CONTEXT-ELEMENT-REF DEST="ROOT-SW-COMPOSITION-
PROTOTYPE">/Demo/Systems/Sys/RootSwComp</
CONTEXT-ELEMENT-REF>
<CONTEXT-ELEMENT-REF DEST="SW-COMPONENT-PROTOTYPE">
/Demo/SwComponentTypes/RootComp/SWC_PA</CONTEXT
-ELEMENT-REF>
<CONTEXT-ELEMENT-REF DEST="P-PORT-PROTOTYPE">/Demo/
SwComponentTypes/PSWC/EP</CONTEXT-ELEMENT-REF>
<TARGET-REF DEST="PARAMETER-DATA-PROTOTYPE">/Demo/
PortInterfaces/EP/Prm1</TARGET-REF>
</ECU-EXTRACT-REFERENCE-IREF>
<VARIATION-POINT>
<POST-BUILD-VARIANT-CONDITIONS>
<POST-BUILD-VARIANT-CONDITION>
<MATCHING-CRITERION-REF DEST="POST-BUILD-
VARIANT-CRITERION">/Demo/
PostBuildVariantCriterions/Z</MATCHING-
CRITERION-REF>
<VALUE>0</VALUE>
</POST-BUILD-VARIANT-CONDITION>
</POST-BUILD-VARIANT-CONDITIONS>
</VARIATION-POINT>
</FLAT-INSTANCE-DESCRIPTOR>
<FLAT-INSTANCE-DESCRIPTOR>
<SHORT-NAME>SWC_PA_EP_Prm1_Z1</SHORT-NAME>
<ECU-EXTRACT-REFERENCE-IREF>
<CONTEXT-ELEMENT-REF DEST="ROOT-SW-COMPOSITION-
PROTOTYPE">/Demo/Systems/Sys/RootSwComp</
CONTEXT-ELEMENT-REF>
<CONTEXT-ELEMENT-REF DEST="SW-COMPONENT-PROTOTYPE">
/Demo/SwComponentTypes/RootComp/SWC_PA</CONTEXT
-ELEMENT-REF>
<CONTEXT-ELEMENT-REF DEST="P-PORT-PROTOTYPE">/Demo/
SwComponentTypes/PSWC/EP</CONTEXT-ELEMENT-REF>
<TARGET-REF DEST="PARAMETER-DATA-PROTOTYPE">/Demo/
PortInterfaces/EP/Prm1</TARGET-REF>
</ECU-EXTRACT-REFERENCE-IREF>
<VARIATION-POINT>
<POST-BUILD-VARIANT-CONDITIONS>
<POST-BUILD-VARIANT-CONDITION>
<MATCHING-CRITERION-REF DEST="POST-BUILD-
VARIANT-CRITERION">/Demo/
PostBuildVariantCriterions/Z</MATCHING-
CRITERION-REF>
<VALUE>1</VALUE>
</POST-BUILD-VARIANT-CONDITION>
</POST-BUILD-VARIANT-CONDITIONS>
</VARIATION-POINT>
</FLAT-INSTANCE-DESCRIPTOR>
<FLAT-INSTANCE-DESCRIPTOR>
<SHORT-NAME>SWC_PB_EP_Prm1</SHORT-NAME>
<ECU-EXTRACT-REFERENCE-IREF>
<CONTEXT-ELEMENT-REF DEST="ROOT-SW-COMPOSITION-
PROTOTYPE">/Demo/Systems/Sys/RootSwComp</
CONTEXT-ELEMENT-REF>
<CONTEXT-ELEMENT-REF DEST="SW-COMPONENT-PROTOTYPE">
/Demo/SwComponentTypes/RootComp/SWC_PB</CONTEXT
-ELEMENT-REF>
<CONTEXT-ELEMENT-REF DEST="P-PORT-PROTOTYPE">/Demo/
SwComponentTypes/PSWC/EP</CONTEXT-ELEMENT-REF>
<TARGET-REF DEST="PARAMETER-DATA-PROTOTYPE">/Demo/
PortInterfaces/EP/Prm1</TARGET-REF>
</ECU-EXTRACT-REFERENCE-IREF>
</FLAT-INSTANCE-DESCRIPTOR>
</INSTANCES>
</FLAT-MAP>
</ELEMENTS>
</AR-PACKAGE>
<AR-PACKAGE>
<SHORT-NAME>PostBuildVariantCriterions</SHORT-NAME>
<ELEMENTS>
<POST-BUILD-VARIANT-CRITERION>
<SHORT-NAME>Z</SHORT-NAME>
<COMPU-METHOD-REF DEST="COMPU-METHOD">/
AUTOSAR_AISpecification/CompuMethods/TrsmTyp1</COMPU-
METHOD-REF>
</POST-BUILD-VARIANT-CRITERION>
</ELEMENTS>
</AR-PACKAGE>
</AR-PACKAGES>
</AR-PACKAGE>
</AR-PACKAGES>
</AUTOSAR>
G Changes History
Id Heading
[constr_9080] The shortNames of PortInterfaces shall be unique within a software component if it
supports multiple instantiation or indirectAPI attribute is set to ’true’
[constr_9081] Mapping to partition vs the value of VariableAccess.scope
Id Heading
[constr_9020] The blocking Rte_SwitchAck API may only be used by the runnable that describes
its usage.
none
Id Heading
[constr_9082] RtePositionInTask and RteBswPositionInTask values shall be unique in a
particular context
none
Id Heading
[constr_9004] Usage of WaitPoints is restricted depending on ExclusiveAreaImplMechanism
Id Heading
[constr_9083] Rte_IRead API may only be used by the runnable that describe its usage
[constr_9084] Rte_IWrite API may only be used by the runnable that describe its usage
[constr_9085] Rte_IWriteRef API may only be used by the runnable that describe its usage
[constr_9086] Rte_IInvalidate API may only be used by the runnable that is describing an write
access to the data
[constr_9087] Rte_IrvIRead API may only be used by the runnable that describe its usage
[constr_9088] Rte_IrvIWrite API may only be used by the runnable that describe its usage
[constr_9089] Rte_IrvRead API may only be used by the runnable that describe its usage
[constr_9090] Rte_IrvWrite API may only be used by the runnable that describe its usage
[constr_9091] RteSwNvRamMappingRef and RteSwNvBlockDescriptorRef are excluding
each other
Id Heading
[constr_9011] NvMBlockDescriptor related to a RAM Block of a NvBlockSwComponentType
shall use NvmBlockUseSyncMechanism
[constr_9027] Rte_IStatus API shall only be used by a RunnableEntity describing an read
access to the related data
Id Heading
[constr_9044] Union Implementation Data Type shall include at least two elements
[constr_9065] Signature of Serializer
[constr_9066] A BswModuleEntry representing a serializer shall comply to a serializer’s signature
[constr_9068] Return value for successful serialization
[constr_9069] Return value for a serialization error
[constr_9071] Signature of Deserializer
[constr_9072] A BswModuleEntry representing a deserializer shall comply to a deserializer’s signa-
ture
[constr_9073] Return value for successful deserialization
[constr_9074] Return value for a deserialization error
Id Heading
[constr_9092] Rte_IrvIWriteRef API may only be used by the runnable that describe its usage
[constr_9093] Rte_IrvIWriteRef may not return values written in previous executions
none
none
none
none
none
[SWS_Rte_CONSTR_03870]
none
none
[SWS_Rte_CONSTR_09058] [SWS_Rte_CONSTR_09082]
none