Figure 7: Frame Transmission in Polling Mode [SWS_EthIf_00115] In each call of EthIf_MainFunctionTx the component shall call Eth_TxConfirmation for all Ethernet Controller Drivers. Note: The Ethernet Interface expects that each Ethernet Controller Driver issues confirmations for all transmitted frames using the call-back function EthIf_TxConfirmation. [SWS_EthIf_00125] EthIf_ TxConfirmation shall forward the confirmation to the registered call-back functions <User>_TxConfirmation.
5941c70928c07c0729dd88949d67d5d2e4ca9e2af4def7e2cccc2664f8fe09ac
1. Diagrammtyp & Architektur-Kontext
UML-Sequenzdiagramm zur Darstellung des synchronen Sendeablaufs sowie der asynchronen Sendebestätigung im Polling-Betrieb innerhalb des AUTOSAR Classic Platform Ethernet-Stacks (Schichtenarchitektur zwischen Upper Layer, Ethernet Interface und Ethernet Driver).
2. Komponenten, Entitäten & Schnittstellen
Beteiligte Komponenten (Lifelines):
UL: Upper Layer (z. B. TCP/IP, DoIP oder PduR):EthIf: AUTOSAR Ethernet Interface («module»):Eth: AUTOSAR Ethernet Driver («module»)
Schnittstellen und Funktionsaufrufe:
ProvideTxBuffer(BufReq_ReturnType, uint8, Eth_FrameType, uint8, Eth_BufIdxType*, uint8**, uint16*)(UL -> EthIf)Eth_ProvideTxBuffer(BufReq_ReturnType, uint8, uint8, Eth_BufIdxType*, uint8**, uint16*)(EthIf -> Eth)EthIf_Transmit(Std_ReturnType, uint8, Eth_BufIdxType, Eth_FrameType, boolean, uint16, const uint8*)(UL -> EthIf)Transmit(Std_ReturnType, uint8, Eth_BufIdxType, Eth_FrameType , boolean, uint16, const uint8*)(EthIf -> Eth)EthIf_MainFunctionTx()(zyklische Entität / Eigenaufruf von EthIf)TxConfirmation(void, uint8)(EthIf -> Eth)EthIf_TxConfirmation(uint8, Eth_BufIdxType, Std_ReturnType)(Eth -> EthIf Callback)UL_TxConfirmation(CtrlIdx, Bufidx)(EthIf -> UL Callback)
3. Dynamisches Verhalten & Sequenzablauf
- Pufferanforderung: Die Upper Layer (
UL) ruft synchronProvideTxBufferan:EthIfauf. Das:EthIfdelegiert die Pufferallokation viaEth_ProvideTxBufferan den Treiber:Eth. Die Antworten werden synchron über die Schichten zurückgereicht. - Sendeanforderung:
ULinitiiert die Übertragung überEthIf_Transmit.:EthIfruft daraufhin synchronTransmitauf:Ethauf; beide Rückgabewerte kehren synchron zum jeweiligen Aufrufer zurück. - Polling und Bestätigung: Im zyklischen Taskkontext führt
:EthIfEthIf_MainFunctionTx()aus. Darin triggert:EthIfaktiv das Polling überTxConfirmation(void, uint8)an:Eth. - Der Treiber bestätigt den Versand über den Rückruf
EthIf_TxConfirmationan:EthIf. :EthIfleitet die Bestätigung mittelsUL_TxConfirmation(CtrlIdx, Bufidx)an die obere Schicht (UL) weiter.- Schließlich kehrt der Kontrollfluss zum Polling-Aufruf und der
EthIf_MainFunctionTx()zurück.
4. Normative Relevanz & Entwickler-Hinweise
Das Diagramm illustriert [SWS_EthIf_00115] und [SWS_EthIf_00125]. Es legt fest, dass im Polling-Modus die Übertragungsbestätigung treiberseitig nicht interruptgetrieben, sondern durch expliziten Polling-Aufruf aus EthIf_MainFunctionTx ausgelöst wird. Treiber müssen Bestätigungen über EthIf_TxConfirmation melden, welche von EthIf an die registrierten Callbacks der oberen Schicht (<User>_TxConfirmation) weitergeleitet werden müssen.
Zugeordnete Anforderungen
Diese Angaben zeigt der Versions-Explorer.