{{{ #!html
LIN Driver
}}} [[BR]] = 概要 = * LINに関する解説サイト * [https://vector.com/vj_beginners-lin_jp.html はじめてのLIN(ベクター・ジャパン株式会社)] * API一覧 ||= API =||= ID[[BR]][Dec] =||= ID[[BR]][Hex] =||= R4.0.3 =||= R4.2.2 =|| || [#Lin_Init Lin_Init] || 0|| 0x00|| ○ || ○ || || [#Lin_CheckWakeup Lin_CheckWakeup] || 10|| 0x0A|| ○ || ○ || || [#Lin_GetVersionInfo Lin_GetVersionInfo] || 1|| 0x01|| ○ || ○ || || [#Lin_SendFrame Lin_SendFrame] || 4|| 0x04|| ○ || ○ || || [#Lin_GoToSleep Lin_GoToSleep] || 6|| 0x06|| ○ || ○ || || [#Lin_GoToSleepInternal Lin_GoToSleepInternal] || 9|| 0x09|| ○ || ○ || || [#Lin_Wakeup Lin_Wakeup] || 7|| 0x07|| ○ || ○ || || [#Lin_WakeupInternal Lin_WakeupInternal] || 11|| 0x0B|| - || ○ || || [#Lin_GetStatus Lin_GetStatus] || 8|| 0x08|| ○ || ○ || * コンフィギュレーション一覧(R4.0.3 / R4.2.2) * [#LinDemEventParameterRefs LinDemEventParameterRefs] (-/○) * [#LIN_E_TIMEOUT LIN_E_TIMEOUT] (-/○) * [#LinGeneral LinGeneral] (○/○) * [#LinDevErrorDetect LinDevErrorDetect] (○/○) * [#LinIndex LinIndex] (○/○) * [#LinTimeoutDuration LinTimeoutDuration] (○/○) * [#LinVersionInfoApi LinVersionInfoApi] (○/○) * [#LinGlobalConfig LinGlobalConfig] (○/○) * [#LinChannel LinChannel] (○/○) * [#LinChannelBaudRate LinChannelBaudRate] (○/○) * [#LinChannelId LinChannelId] (○/○) * [#LinChannelWakeupSupport LinChannelWakeupSupport] (○/○) * [#LinClockRef LinClockRef] (○/○) * [#LinChannelEcuMWakeupSource LinChannelEcuMWakeupSource] (○/○) * [#LinDemEventParameterRefs2 LinDemEventParameterRefs] (○/-) * [#LIN_E_TIMEOUT2 LIN_E_TIMEOUT] (○/-) * エラーコード一覧 * "--"は[wiki:spec/Dem 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}}}