Rte_Mode

Rte_Mode is used to access the current mode of a mode-switch interface in an SWC.

In ASCET, a mode-switch interface is realized by a SenderReceiver interface that contains a mode group (see Modes and Mode Groups).

AUTOSAR provides a mode concept:

  1. Entry into or exit from a mode can trigger the execution of a runnable entity.
  2. Runnable entities can be generally disabled for certain modes, i.e. the defined trigger events for the runnable entity do not cause its execution if the RTE is in the respective mode (see Setting Up an Event).

Precondition for using this mechanisms is the presence of an Rport of a mode-switch interface. The current mode of the RTE can be explicitly queried by a software component by reading this mode group.

Note

The main use case of mode groups in software components is the specification of ModeSwitch events (see Enabling/Disabling Modes).

In the ESDL editor for software components, reading a mode group can be specified as follows:

log_mode = ModeInterface.OnOffMode == off;

In the block diagram editor for software components, reading a mode group can be specified as follows:

See also

Modes and Mode Groups

Setting Up an Event

Enabling/Disabling Modes