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

Ethernet Controller is not capable to do the filtering, the software has to do this.

⌋()

[SWS_EthIf_00140]

The function EthIf_SetPhysAddrFilter shall forward the call to the respective Ethernet

Controller Driver.

⌋()

[SWS_EthIf_00141]

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_00142]

If default error detection is enabled: the function shall check the parameter CtrlIdx for being valid. If the check fails, the function shall raise the default error

ETHIF_E_INV_CTRL_IDX.

⌋()

[SWS_EthIf_00143]

If default error detection is enabled: the function shall check the parameter

PhysAddrPtr for being valid. If the check fails, the function shall raise the default error

ETHIF_E_PARAM_POINTER.

⌋()

[SWS_EthIf_00144]

Caveat: The function requires previous initialization (EthIf_Init).

⌋()

8.3.12 EthIf_GetPortMacAddr

[SWS_EthIf_00190]

Service name:

Syntax:

EthIf_GetPortMacAddr

Std_ReturnType const

) uint8* uint8* uint8*

EthIf_GetPortMacAddr(

MacAddrPtr,

SwitchIdxPtr,

PortIdxPtr

Service ID[hex]:

0x28

Sync/Async:

Synchronous

Reentrancy:

Parameters (in):

Non Reentrant

MacAddrPtr MAC-address for which a switch port is searched over which the node with this MAC-address can be reached.

Parameters

(inout):

None

Parameters (out):

Return value:

SwitchIdxPtr Pointer to the switch index

PortIdxPtr Pointer to the port index

Std_ReturnType E_OK:

E_NOT_OK: switch port could not be initialized success

Description:

Obtains the port over which this MAC-address can be reached

⌋()

[SWS_EthIf_00191]

The function EthIf_GetPortMacAddr shall return the switch and port index over which the given MAC-address is reachable. If multiple or no ports are possible, this API call will return an error value. The API call will be forwarded to the Ethernet Switch Driver which shall have a corresponding API call.

⌋()

37 of 77 Document ID 417: AUTOSAR_SWS_EthernetInterface

- AUTOSAR confidential -

advertisement

Related manuals

Download PDF

advertisement

Table of contents