wiki:spec/Lin
LIN Driver


概要

API ID
[Dec]
ID
[Hex]
R4.0.3 R4.2.2
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_WakeupInternal 11 0x0B -
Lin_GetStatus 8 0x08
  • エラーコード一覧
    • "--"はDemにより決定される
エラーコード Dec Hex R4.0.3 R4.2.2
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_WakeupInternal

Std_ReturnType Lin_WakeupInternal(uint8 Channel)

Lin_GetStatus

Lin_StatusType Lin_GetStatus(uint8 Channel, uint8** Lin_SduPtr)

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

LinDemEventParameterRefs

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

LIN_E_TIMEOUT

/AUTOSAR/EcucDefs/Lin/LinDemEventParameterRefs/LIN_E_TIMEOUT
  • 型:Reference
  • 多重度:0..1
  • 参照先:/AUTOSAR/EcucDefs/Dem/DemConfigSet/DemEventParameter

LinGeneral

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

LinDevErrorDetect

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

LinIndex

/AUTOSAR/EcucDefs/Lin/LinGeneral/LinIndex
  • 型:IntegerParam
  • 多重度:1
  • 上限値:255
  • 下限値:0

LinTimeoutDuration

/AUTOSAR/EcucDefs/Lin/LinGeneral/LinTimeoutDuration
  • 型:IntegerParam
  • 多重度:1
  • 上限値:65535
  • 下限値:0

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
  • 上限値:20000
  • 下限値:1000

LinChannelId

/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinChannel/LinChannelId
  • 型:IntegerParam
  • 多重度:1
  • 上限値:65535
  • 下限値:0

LinChannelWakeupSupport

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

LinClockRef

/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinChannel/LinClockRef
  • 型:Reference
  • 多重度:1
  • 参照先:/AUTOSAR/EcucDefs/Mcu/McuModuleConfiguration/McuClockSettingConfig/McuClockReferencePoint

LinChannelEcuMWakeupSource

/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinChannel/LinChannelEcuMWakeupSource
  • 型:Reference
  • 多重度:0..1
  • 参照先:/AUTOSAR/EcucDefs/EcuM/EcuMConfiguration/EcuMCommonConfiguration/EcuMWakeupSource

LinDemEventParameterRefs(2)

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

LIN_E_TIMEOUT(2)

/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinDemEventParameterRefs/LIN_E_TIMEOUT
  • 型:Reference
  • 多重度:0..1
  • 参照先:/AUTOSAR/EcucDefs/Dem/DemConfigSet/DemEventParameter
Last modified 13 months ago Last modified on Oct 8, 2020, 11:09:36 AM
Note: See TracWiki for help on using the wiki.