CLASSIC
Modul: linif
Rolle: heuristic
Konfidenz: 85%
SNIP_CLASSIC_LINIF_SECTION_7_6_3_5_LIN_TP_reception
Wortlaut
7.6.3.5 LIN TP reception
The LIN Interface shall be prepared to receive TP messages anytime. The LIN master node receives the TP message from the slaves in one or several SRFs. The first SRF in the TP message will always be a FF or a SF. The LIN slave node receives the TP message from the master in in one or several MRFs. The first MRF in the TP message will always be a FF or a SF. Since the LIN Interface does not know when an external node is starting a TP message that the LIN Interface shall receive, it must have the possibility to store part of the TP message.
[SWS_LinIf_00075] ⌈The LIN Interface shall call the function PduR_LinTpStartOfReception with an info pointer and TpSduLength when the start of a TP message reception is indicated by the reception of a FF or a SF. info is pointer to the buffer containing the received data (SduDataPtr) and data length (SduLength). The data length (including SID) is 5 bytes for FF and up to 6 bytes for SF. TpSduLength is the total length of the Sdu.⌋ The output pointer parameter provides the LIN Interface with currently available receive buffer size.
[SWS_LinIf_00076] ⌈The LIN Interface shall convert the received NAD from the transmitting LIN node to an N-SDU Id that the upper layer understands.⌋
[SWS_LinIf_00674] ⌈After reception of each frame of a TP message (SF, FF and CF), the LIN Interface shall call the function PduR_LinTpCopyRxData with an info pointer containing received data (SduDataPtr) and data length (SduLength). The data length is 5 bytes (including SID) for FF, up to 6 bytes for SF and 6 bytes for CF (or less in case of the last CF).⌋ The output pointer parameter provides the LIN Interface with available receive buffer size after data have been copied.
[SWS_LinIf_00078] Upstream requirements: SRS_Lin_01564
⌈When the LIN Interface has received the SF or the last CF of a TP message successfully, it shall request a schedule table change to the applicative schedule by calling the function BswM_LinTp_RequestMode with the parameter LINTP_APPLICATIVE_SCHEDULE (see [SWS_LinIf_00646]). After successful completion or failure (e.g., since some other schedule table change is currently going on) of the schedule table switch, the LIN Interface shall notify the upper layer by calling the function PduR_LinTpRxIndication with the result E_OK.⌋
Versionen & Provenienz · Zugeordnete Anforderungen
Diese Angaben zeigt der Versions-Explorer.
Begründung & Zuweisungs-Evidenz
Defines PduR lower layer CopyRxData service
Dokumenten-Herkunft & Rückverfolgbarkeit
| Spezifikations-Dokument | SWS_LINInterface.pdf |
|---|---|
| Dokumentseite | Seite 67 |
| Ziel-Modul | linif (classic) |
| Ziel-Anforderung | SWS_PduR_00512 |
| Semantische Rolle | heuristic |
| Automatisierungs-Konfidenz | 0.85 |