Interrunnable Variables

AUTOSAR allows the configuration of interrunnable variables that provide a way for runnable entities of one SWC to communicate between themselves.

While inter-runnable communication is possible through user code and shared variable access (protected by exclusive areas), this can be inefficient when handling primitive data types since the exclusive area API calls are typically mapped onto the underlying Operating System’s resource control mechanism.

Interrunnable variables can be used as lightweight mechanisms for inter-runnable communication. They can be of scalar (i.e. cont, limitInt, wrapInt, sdisc, udisc, log), enum, composite (i.e. array or matrix) or complex (i.e. record) type. The main purpose of complex interrunnable variables is to guarantee data consistency over the values grouped in the record.

Interrunnable variables are declared by the RTE; they use similar communication mechanisms as sender-receiver communication, i.e. implicit and explicit communication. See the rules below for details.

Depending on the communication mode, interrunnable variables are displayed as shown in the table.

communication mode

type

in Outline tab

in block diagram SWC

Explicit

Scalar

Array

Matrix

Record

Implicit

Scalar

Array

Matrix

Record

Rules for non-scalar interrunnable variables:

See also

Creating a Scalar Interrunnable Variable

Creating a Non-Scalar Interrunnable Variable

Rte_IrvIRead and Rte_IrvIWrite

Rte_IrvRead and Rte_IrvWrite

Exclusive Areas

Sender-Receiver Communication

Runnable Entities and Events

Records