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

8.3.25 EthIf_Transmit

[SWS_EthIf_00075]

Service name:

Syntax:

EthIf_Transmit

Std_ReturnType uint8 const

Eth_BufIdxType

Eth_FrameType boolean uint16 uint8*

)

EthIf_Transmit(

CtrlIdx,

BufIdx,

FrameType,

TxConfirmation,

LenByte,

PhysAddrPtr

Service ID[hex]:

0x0a

Sync/Async:

Synchronous

Reentrancy:

Non Reentrant

Parameters (in):

Parameters

(inout):

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

Interface

FrameType Ethernet frame type

TxConfirmation Activates transmission confirmation

PhysAddrPtr Physical target address (MAC address) in network byte order

LenByte Data length in byte

Parameters (out):

BufIdx

Return value:

Index of the buffer resource

Std_ReturnType E_OK:

E_NOT_OK: transmission failed success

Description:

Triggers transmission of a previously filled transmit buffer

⌋()

[SWS_EthIf_00250]

If CtrlIdx refers to an EthIfCtrl where an EthIfVlanID is configured, the parameters

FrameType is not used, and 0x8100 is provided to Eth_Transmit instead.

⌋()

[SWS_EthIf_00076]

The function EthIf_Transmit shall forward the call to the respective Ethernet

Controller Driver.

⌋()

[SWS_EthIf_00077]

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

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

⌋()

[SWS_EthIf_00079]

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

ETHIF_E_INV_PARAM otherwise (if DET is disabled) return E_NOT_OK.

⌋()

49 of 77 Document ID 417: AUTOSAR_SWS_EthernetInterface

- AUTOSAR confidential -

advertisement

Related manuals

Download PDF

advertisement

Table of contents