wiki:spec_LINDriver
LIN Driver


概要

API ID
[Dec]
ID
[Hex]
Lin_Init 0 0x00
Lin_CheckWakeup 10 0x0A
Lin_GetVersionInfo 1 0x01
Lin_SendFrame 4 0x04
Lin_GoToSleep 6 0x06
Lin_GoToSleepInternal 9 0x09
Lin_Wakeup 7 0x07
Lin_GetStatus 8 0x08
  • エラーコード一覧
    • "--"はDemにより決定される
エラーコード Dec Hex
LIN_E_UNINIT 0 0x00
LIN_E_INVALID_CHANNEL 2 0x02
LIN_E_INVALID_POINTER 3 0x03
LIN_E_STATE_TRANSITION 4 0x04
LIN_E_PARAM_POINTER 5 0x05
LIN_E_TIMEOUT -- --

API仕様

Lin_Init

void Lin_Init(const Lin_ConfigType* Config)

Lin_CheckWakeup

Std_ReturnType Lin_CheckWakeup(uint8 Channel)

Lin_GetVersionInfo

void Lin_GetVersionInfo(Std_VersionInfoType* versioninfo)

Lin_SendFrame

Std_ReturnType Lin_SendFrame(uint8 Channel, Lin_PduType* PduInfoPtr)

Lin_GoToSleep

Std_ReturnType Lin_GoToSleep(uint8 Channel)

Lin_GoToSleepInternal

Std_ReturnType Lin_GoToSleepInternal(uint8 Channel)

Lin_Wakeup

Std_ReturnType Lin_Wakeup(uint8 Channel)

Lin_GetStatus

Lin_StatusType Lin_GetStatus(uint8 Channel, uint8** Lin_SduPtr)

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

LinGeneral

/AUTOSAR/EcucDefs/Lin/LinGeneral
  • 型:Container
  • 多重度:1

LinDevErrorDetect

/AUTOSAR/EcucDefs/Lin/LinGeneral/LinDevErrorDetect
  • 型:BooleanParam
  • 多重度:1

LinIndex

/AUTOSAR/EcucDefs/Lin/LinGeneral/LinIndex
  • 型:IntegerParam
  • 多重度:1

LinTimeoutDuration

/AUTOSAR/EcucDefs/Lin/LinGeneral/LinTimeoutDuration
  • 型:IntegerParam
  • 多重度:1

LinVersionInfoApi

/AUTOSAR/EcucDefs/Lin/LinGeneral/LinVersionInfoApi
  • 型:BooleanParam
  • 多重度:1

LinGlobalConfig

/AUTOSAR/EcucDefs/Lin/LinGlobalConfig
  • 型:Container
  • 多重度:1

LinChannel

/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinChannel
  • 型:Container
  • 多重度:1..*

LinChannelBaudRate

/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinChannel/LinChannelBaudRate
  • 型:IntegerParam
  • 多重度:1

LinChannelId

/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinChannel/LinChannelId
  • 型:IntegerParam
  • 多重度:1

LinChannelWakeupSupport

/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinChannel/LinChannelWakeupSupport
  • 型:BooleanParam
  • 多重度:1

LinClockRef

/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinChannel/LinClockRef
  • 型:Reference
  • 多重度:1

LinChannelEcuMWakeupSource

/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinChannel/LinChannelEcuMWakeupSource
  • 型:Reference
  • 多重度:0..1

LinDemEventParameterRefs

/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinDemEventParameterRefs
  • 型:Container
  • 多重度:0..1

LIN_E_TIMEOUT

/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinDemEventParameterRefs/LIN_E_TIMEOUT
  • 型:Reference
  • 多重度:0..1
Last modified 3 years ago Last modified on 08/01/15 18:25:06