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

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 otherwise (if DET is disabled) return E_NOT_OK.

⌋()

[SWS_EthIf_00058]

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

ETHIF_E_INV_TRCV_IDX otherwise (if DET is disabled) return E_NOT_OK.

⌋()

[SWS_EthIf_00059]

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

TrcvModePtr for being valid. If the check fails, the function shall raise the default error ETHIF_E_PARAM_POINTER otherwise (if DET is disabled) return E_NOT_OK.

⌋()

[SWS_EthIf_00060]

Caveat: The function requires previous initialization (EthIf_Init).

⌋()

8.3.6 EthIf_ SetTransceiverWakeupMode

[SWS_EthIf_00233]

Service name:

Syntax:

EthIf_SetTransceiverWakeupMode

Std_ReturnType EthIf_SetTransceiverWakeupMode( uint8 TrcvIdx,

EthTrcv_WakeupModeType TrcvWakeupMode

)

Service ID[hex]:

0x2e

Sync/Async:

Synchronous

Reentrancy:

Parameters (in):

Non Reentrant

TrcvIdx Index of the transceiver within the context of the Ethernet

Interface

TrcvWakeupMode ETHTRCV_WUM_DISABLE: disable transceiver wake up

ETHTRCV_WUM_ENABLE: enable transceiver wake up

ETHTRCV_WUM_CLEAR: clears transceiver wake up reason

Parameters

(inout):

None

Parameters (out):

None

Return value:

Std_ReturnType E_OK: success

E_NOT_OK: transceiver wake up could not be changed or wake-up reason could not be cleared

Description:

Enables / disables the wake up mode or clear the wake-up reason of the indexed transceiver

⌋()

[SWS_EthIf_00234]

The function EthIf_SetTransceiverWakeupMode shall forward the call to function

EthTrcv_SetTransceiverWakeupMode of the respective Ethernet Transceiver Driver.

⌋()

[SWS_EthIf_00235]

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 otherwise (if DET is disabled) return E_NOT_OK.

⌋()

32 of 77 Document ID 417: AUTOSAR_SWS_EthernetInterface

- AUTOSAR confidential -

advertisement

Related manuals

Download PDF

advertisement

Table of contents