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

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

ETHIF_E_PARAM_POINTER.

⌋()

[SWS_EthIf_00201]

Caveat: The function requires previous initialization (EthIf_Init).

⌋()

8.3.14 EthIf_GetBufferLevel

[SWS_EthIf_00202]

Service name:

Syntax:

EthIf_GetBufferLevel

Std_ReturnType

) uint8 uint32*

EthIf_GetBufferLevel(

SwitchIdx,

SwitchBufferLevelPtr

Service ID[hex]:

0x2a

Sync/Async:

Reentrancy:

Synchronous /Asynchronous

Non Reentrant

Parameters (in):

SwitchIdx Index of the switch within the context of the Ethernet

Switch Driver

Parameters

(inout):

None

Parameters (out):

SwitchBufferLevelPtr

Return value:

Std_ReturnType

The interpretation of this value is switch dependent

E_OK: success

E_NOT_OK: switch port could not be initialized

Description:

Reads the buffer level of the corresponding switch. Whether this buffer level is one value for the entire switch (shared memory) or one value for each port at a switch is technology dependent.

⌋()

[SWS_EthIf_00203]

The function EthIf_GetBufferLevel shall read the buffer level of the currently used buffer of the switch.

⌋()

[SWS_EthIf_00204]

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

⌋()

[SWS_EthIf_00205]

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

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

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

⌋()

[SWS_EthIf_00207]

Caveat: The function requires previous initialization (EthIf_Init).

⌋()

39 of 77 Document ID 417: AUTOSAR_SWS_EthernetInterface

- AUTOSAR confidential -

advertisement

Related manuals

Download PDF

advertisement

Table of contents