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

Syntax:

void

) uint8 uint8*

EthIf_GetPhysAddr(

CtrlIdx,

PhysAddrPtr

Service ID[hex]:

0x08

Sync/Async:

Reentrancy:

Synchronous

Non Reentrant

Parameters (in):

CtrlIdx Index of the Ethernet controller within the context of the Ethernet

Interface

Parameters

(inout):

None

Parameters (out):

PhysAddrPtr Physical source address (MAC address) in network byte order.

Return value:

None

Description:

Obtains the physical source address used by the indexed controller

⌋()

[SWS_EthIf_00062]

The function EthIf_GetPhysAddr shall forward the call to the respective Ethernet

Controller Driver.

⌋()

[SWS_EthIf_00063]

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

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

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

Caveat: The function requires previous initialization (EthIf_Init).

⌋()

8.3.10 EthIf_SetPhysAddr

[SWS_EthIf_00132]

Service name:

Syntax:

EthIf_SetPhysAddr void

) const uint8 uint8*

EthIf_SetPhysAddr(

CtrlIdx,

PhysAddrPtr

Service ID[hex]:

0x0d

Sync/Async:

Reentrancy:

Synchronous

Non Reentrant for the same CtrlIdx, reentrant for different

Parameters (in):

CtrlIdx Index of the Ethernet controller within the context of the Ethernet

Driver.

PhysAddrPtr Pointer to memory containing the physical source address (MAC address) in network byte order.

35 of 77 Document ID 417: AUTOSAR_SWS_EthernetInterface

- AUTOSAR confidential -

advertisement

Related manuals

Download PDF

advertisement

Table of contents