Specification of Ethernet Interface

Add to My manuals
77 Pages

advertisement

Specification of Ethernet Interface | Manualzz

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

Download PDF

advertisement

Table of contents