Rte_DRead

For explicit read with status, AUTOSAR R4 provides another macro named Rte_Read.

Rte_DRead implements explicit data read access on a primitive (cont, limitInt, wrapInt, sdisc, udisc, log, enum) data element prototype of an Rport of a SenderReceiver or NVData interface. The return value of Rte_DRead represents the status of the operation, whereas the value of the read element is assigned to a variable passed as argument with direction out to Rte_DRead.

In the ESDL editor for software components, explicit read access without status information can be specified as follows:

Rport.t_mot.explicitRead(t_mot);

In the block diagram editor for software components, explicit read access without status information can be specified as follows:

Rte_DRead is non-blocking even if no data is present to be read. If no data is present, the return value from the call is RTE_E_NO_DATA.

See also

Rte_Read

Sending to a Port – Block Diagram Editor for SWC

Sending to a Port – ESDL Editor for SWC