wiki:spec_EthernetDriver
Ethernet Driver


概要

  • API一覧
API ID
[Dec]
ID
[Hex]
Eth_Init 1 0x01
Eth_ControllerInit 2 0x02
Eth_SetControllerMode 3 0x03
Eth_GetControllerMode 4 0x04
Eth_GetPhysAddr 8 0x08
Eth_WriteMii 5 0x05
Eth_ReadMii 6 0x06
Eth_GetCounterState 7 0x07
Eth_ProvideTxBuffer 9 0x09
Eth_Transmit 10 0x0A
Eth_Receive 11 0x0B
Eth_TxConfirmation 12 0x0C
Eth_GetVersionInfo 13 0x0D
Eth_RxIrqHdlr_<CtrlIdx> 16 0x10
Eth_TxIrqHdlr_<CtrlIdx> 17 0x11
  • エラーコード一覧
    • "--"はDemにより決定される
エラーコード Dec Hex
ETH_E_INV_CTRL_IDX 1 0x01
ETH_E_NOT_INITIALIZED 2 0x02
ETH_E_INV_POINTER 3 0x03
ETH_E_INV_PARAM 4 0x04
ETH_E_INV_CONFIG 5 0x05
ETH_E_INV_MODE 6 0x06
ETH_E_ACCESS -- --

API仕様

Eth_Init

void Eth_Init(const Eth_ConfigType* CfgPtr)

Eth_ControllerInit

Std_ReturnType Eth_ControllerInit(uint8 CtrlIdx, uint8 CfgIdx)

Eth_SetControllerMode

Std_ReturnType Eth_SetControllerMode(uint8 CtrlIdx, Eth_ModeType CtrlMode)

Eth_GetControllerMode

Std_ReturnType Eth_GetControllerMode(uint8 CtrlIdx, Eth_ModeType* CtrlModePtr)

Eth_GetPhysAddr

void Eth_GetPhysAddr(uint8 CtrlIdx, uint8* PhysAddrPtr)

Eth_WriteMii

void Eth_WriteMii(uint8 CtrlIdx, uint8 TrcvIdx, uint8 RegIdx, uint16 RegVal)

Eth_ReadMii

void Eth_ReadMii(uint8 CtrlIdx, uint8 TrcvIdx, uint8 RegIdx, uint16* RegValPtr)

Eth_GetCounterState

void Eth_GetCounterState(uint8 CtrlIdx, uint16 CtrOffs, uint32* CtrValPtr)

Eth_ProvideTxBuffer

BufReq_ReturnType Eth_ProvideTxBuffer(uint8 CtrlIdx, uint8* BufIdxPtr, Eth_DataType** BufPtr, uint16* LenBytePtr)

Eth_Transmit

Std_ReturnType Eth_Transmit(uint8 CtrlIdx, uint8 BufIdx, Eth_FrameType FrameType, boolean TxConfirmation, uint16 LenByte, uint8* PhysAddrPtr)

Eth_Receive

void Eth_Receive(uint8 CtrlIdx)

Eth_TxConfirmation

void Eth_TxConfirmation(uint8 CtrlIdx)

Eth_GetVersionInfo

void Eth_GetVersionInfo(Std_VersionInfoType* VersionInfoPtr)

Eth_RxIrqHdlr_<CtrlIdx>

void Eth_RxIrqHdlr_<CtrlIdx>(void)

Eth_TxIrqHdlr_<CtrlIdx>

void Eth_TxIrqHdlr_<CtrlIdx>(void)

コンフィギュレーション仕様

EthConfigSet

/AUTOSAR/EcucDefs/Eth/EthConfigSet
  • 型:Container
  • 多重度:1

EthCtrlConfig

/AUTOSAR/EcucDefs/Eth/EthConfigSet/EthCtrlConfig
  • 型:Container
  • 多重度:1..*

EthCtrlEnableMii

/AUTOSAR/EcucDefs/Eth/EthConfigSet/EthCtrlConfig/EthCtrlEnableMii
  • 型:BooleanParam
  • 多重度:1

EthCtrlEnableRxInterrupt

/AUTOSAR/EcucDefs/Eth/EthConfigSet/EthCtrlConfig/EthCtrlEnableRxInterrupt
  • 型:BooleanParam
  • 多重度:1

EthCtrlEnableTxInterrupt

/AUTOSAR/EcucDefs/Eth/EthConfigSet/EthCtrlConfig/EthCtrlEnableTxInterrupt
  • 型:BooleanParam
  • 多重度:1

EthCtrlIdx

/AUTOSAR/EcucDefs/Eth/EthConfigSet/EthCtrlConfig/EthCtrlIdx
  • 型:IntegerParam
  • 多重度:1

EthCtrlRxBufLenByte

/AUTOSAR/EcucDefs/Eth/EthConfigSet/EthCtrlConfig/EthCtrlRxBufLenByte
  • 型:IntegerParam
  • 多重度:1

EthCtrlTxBufLenByte

/AUTOSAR/EcucDefs/Eth/EthConfigSet/EthCtrlConfig/EthCtrlTxBufLenByte
  • 型:IntegerParam
  • 多重度:1

EthRxBufTotal

/AUTOSAR/EcucDefs/Eth/EthConfigSet/EthCtrlConfig/EthRxBufTotal
  • 型:IntegerParam
  • 多重度:1

EthTxBufTotal

/AUTOSAR/EcucDefs/Eth/EthConfigSet/EthCtrlConfig/EthTxBufTotal
  • 型:IntegerParam
  • 多重度:1

EthDemEventParameterRefs

/AUTOSAR/EcucDefs/Eth/EthConfigSet/EthCtrlConfig/EthDemEventParameterRefs
  • 型:Container
  • 多重度:0..1

ETH_E_ACCESS

/AUTOSAR/EcucDefs/Eth/EthConfigSet/EthCtrlConfig/EthDemEventParameterRefs/ETH_E_ACCESS
  • 型:Reference
  • 多重度:0..1

EthGeneral

/AUTOSAR/EcucDefs/Eth/EthGeneral
  • 型:Container
  • 多重度:1

EthDevErrorDetect

/AUTOSAR/EcucDefs/Eth/EthGeneral/EthDevErrorDetect
  • 型:BooleanParam
  • 多重度:1

EthIndex

/AUTOSAR/EcucDefs/Eth/EthGeneral/EthIndex
  • 型:IntegerParam
  • 多重度:1

EthMaxCtrlsSupported

/AUTOSAR/EcucDefs/Eth/EthGeneral/EthMaxCtrlsSupported
  • 型:IntegerParam
  • 多重度:1

EthVersionInfoApi

/AUTOSAR/EcucDefs/Eth/EthGeneral/EthVersionInfoApi
  • 型:BooleanParam
  • 多重度:1

EthVersionInfoApiMacro

/AUTOSAR/EcucDefs/Eth/EthGeneral/EthVersionInfoApiMacro
  • 型:BooleanParam
  • 多重度:1
Last modified 2 years ago Last modified on 09/01/15 16:38:47