Rte_Send and Rte_Receive

AUTOSAR R4.* provides two special macros named Rte_Send and Rte_Receive to access SenderReceiver interface elements that use the <SW-IMPL-POLICY> setting QUEUED. Rte_Send and Rte_Receive are also used to access messages mapped to QUEUED elements of a SenderReceiver interface.

Rte_Send implements explicit data write access on a QUEUED element of a SenderReceiver Pport.

Rte_Receive implements explicit data read access on a QUEUED element of a SenderReceiver Rport.

The <SW-IMPL-POLICY> is set in the implementation editor of the SenderReceiver interface element.

In the ESDL editor for software components, explicit read/write access to a QUEUED element of a SenderReceiver interface can be specified as follows:

cont = SRI_Require.cont_queued;

SRI_Require.log_queued.explicitRead(IRV_log);

In the block diagram editor for software components, explicit read/write access to a QUEUED element of a SenderReceiver interface can be specified as follows:

You do not have to add an explicit RTE Access operator; both ways in the above screenshot work equally well.

See also

Implementation Editor – AUTOSAR Tab

Queued Communication