advertisement
Specification of Ethernet Interface
AUTOSAR Release 4.2.2
[SWS_EthIf_00192]
⌈
The function EthIf_GetPortMacAddr shall be pre compile time configurable On/Off by the configuration parameter: EthIfGetPortMacAddrApi.
⌋()
[SWS_EthIf_00193]
⌈
If default error detection is enabled: the function shall check that the service EthIf_Init was previously called. If the check fails, the function shall raise the default error
ETHIF_E_NOT_INITIALIZED.
⌋()
[SWS_EthIf_00194]
⌈
If default error detection is enabled: the function shall check the parameter
MacAddrPtr, SwitchIdxPtr and PortIdxPtr for being valid. If the check fails, the function shall raise the default error ETHIF_E_PARAM_POINTER.
⌋()
[SWS_EthIf_00195]
⌈
Caveat: The function requires previous initialization (EthIf_Init).
⌋()
8.3.13 EthIf_GetArlTable
[SWS_EthIf_00196]
⌈
Service name:
Syntax:
EthIf_GetArlTable
Std_ReturnType
) uint8
EthSwt_MacVlanType[]*
EthIf_GetArlTable(
SwitchIdx,
ArlTable
Service ID[hex]:
0x29
Sync/Async:
Synchronous /Asynchronous
Reentrancy:
Parameters (in):
Non Reentrant
SwitchIdx Index of the switch within the context of the Ethernet Switch
Driver
Parameters
(inout):
None
Parameters (out):
ArlTable Returns the ARL table of the switch consisting of a list of structs with MAC-address, VLAN-ID and port.
Return value:
Std_ReturnType E_OK:
E_NOT_OK: switch port could not be initialized success
Description:
Obtains the address resolution table of a switch
⌋()
[SWS_EthIf_00197]
⌈
The function EthIf_GetArlTable shall return a list of structs with MAC-address, VLAN-
ID and port for the indexed switch.
⌋()
[SWS_EthIf_00198]
⌈
The function EthIf_GetArlTable shall be pre compile time configurable On/Off by the configuration parameter: EthIfGetArlTable.
⌋()
[SWS_EthIf_00199]
⌈
If default error detection is enabled: the function shall check that the service EthIf_Init was previously called. If the check fails, the function shall raise the default error
ETHIF_E_NOT_INITIALIZED.
⌋()
38 of 77 Document ID 417: AUTOSAR_SWS_EthernetInterface
- AUTOSAR confidential -
advertisement
Related manuals
advertisement
Table of contents
- 2 AUTOSAR Release
- 8 Introduction and functional overview
- 10 Acronyms and abbreviations
- 11 Related documentation
- 11 Input documents
- 12 Related standards and norms
- 12 Related specification
- 13 Constraints and assumptions
- 13 Limitations
- 13 Applicability to car domains
- 14 Dependencies to other modules
- 14 File structure
- 14 Header file structure
- 16 Requirements traceability
- 22 Functional specification
- 22 Ethernet BSW stack
- 22 Indexing scheme for Ethernet controller
- 23 Indexing scheme for Ethernet switches
- 24 Ethernet Interface main function
- 24 Requirements
- 24 Configuration description
- 25 VLAN support
- 26 Wake up support
- 26 Error classification
- 26 Default Errors
- 26 Runtime Errors
- 26 Transient Faults
- 26 Production Errors
- 26 Extended Production Errors
- 27 API specification
- 27 Imported types
- 27 Type definitions
- 27 EthIf_ConfigType
- 28 EthIf_StateType
- 28 Function definitions
- 28 EthIf_Init
- 29 EthIf_SetControllerMode
- 29 EthIf_GetControllerMode
- 30 EthIf_SetTransceiverMode
- 31 EthIf_GetTransceiverMode
- 32 EthIf_ SetTransceiverWakeupMode
- 33 EthIf_ GetTransceiverWakeupMode
- 2 AUTOSAR Release
- 34 EthIf_ CheckWakeup
- 34 EthIf_GetPhysAddr
- 35 EthIf_SetPhysAddr
- 36 EthIf_UpdatePhysAddrFilter
- 37 EthIf_GetPortMacAddr
- 38 EthIf_GetArlTable
- 39 EthIf_GetBufferLevel
- 40 EthIf_GetDropCount
- 40 EthIf_StoreConfiguration
- 41 EthIf_ResetConfiguration
- 42 EthIf_GetCurrentTime
- 43 EthIf_EnableEgressTimeStamp
- 43 EthIf_GetEgressTimeStamp
- 44 EthIf_GetIngressTimeStamp
- 45 EthIf_SetCorrectionTime
- 46 EthIf_SetGlobalTime
- 47 EthIf_ProvideTxBuffer
- 49 EthIf_Transmit
- 50 EthIf_GetVersionInfo
- 50 Callback notifications
- 50 EthIf_RxIndication
- 51 EthIf_TxConfirmation
- 52 EthIf_CtrlModeIndication
- 53 EthIf_TrcvModeIndication
- 53 Scheduled functions
- 53 EthIf_MainFunctionRx
- 54 EthIf_MainFunctionTx
- 54 Expected Interfaces
- 54 Mandatory Interfaces
- 55 Optional Interfaces
- 55 Configurable interfaces
- 58 Sequence diagrams
- 58 Initialization
- 59 Communication Initialization
- 60 Data Transmission
- 61 Data Reception
- 62 Link State Change
- 63 Configuration specification
- 63 Containers and configuration parameters
- 66 Variants
- 66 EthIf
- 66 EthIfGeneral
- 71 EthIfConfigSet
- 71 EthIfController
- 73 EthIfFrameOwnerConfig
- 74 EthIfRxIndicationConfig
- 74 EthIfSwitch
- 75 EthIfTrcvLinkStateChgConfig
- 75 EthIfTxConfirmationConfig