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

The function EthIf_ResetConfiguration shall be pre compile time configurable On/Off by the configuration parameter: EthIfResetConfigurationApi.

⌋()

[SWS_EthIf_00222]

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

Caveat: The function requires previous initialization (EthIf_Init).

⌋()

8.3.18 EthIf_GetCurrentTime

[SWS_EthIf_00154]

Service name:

Syntax:

EthIf_GetCurrentTime

Std_ReturnType uint8

Eth_TimeStampQualType*

Eth_TimeStampType*

)

EthIf_GetCurrentTime(

CtrlIdx, timeQualPtr, timeStampPtr

Service ID[hex]:

0x22

Sync/Async:

Reentrancy:

Synchronous

Non Reentrant

Parameters (in):

CtrlIdx

Parameters

(inout):

None

Parameters (out):

Return value:

timeQualPtr timeStampPtr

Std_ReturnType

Index of the addresses ETH controller. quality of HW time stamp, e.g. based on current drift current time stamp

E_OK:

E_NOT_OK: failed successful

Description:

Returns a time value out of the HW registers according to the capability of the HW.

Is the HW resolution is lower than the Eth_TimeStampType resolution resp. range, than an the remaining bits will be filled with 0.

⌋()

[SWS_EthIf_00155]

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

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

If default error detection is enabled: the function shall check the parameter timeQualPtr and timeStampPtr for being valid. If the check fails, the function shall raise the default error ETHIF_E_PARAM_POINTER.

⌋()

[SWS_EthIf_00158]

42 of 77 Document ID 417: AUTOSAR_SWS_EthernetInterface

- AUTOSAR confidential -

advertisement

Related manuals

Download PDF

advertisement

Table of contents