Changes between Version 9 and Version 10 of spec/Lin


Ignore:
Timestamp:
Dec 6, 2022, 1:33:18 PM (17 months ago)
Author:
fujisft-kaji
Comment:

R21-11反映

Legend:

Unmodified
Added
Removed
Modified
  • spec/Lin

    v9 v10  
    99= 概要 =
    1010* LINに関する解説サイト
    11   * [https://vector.com/vj_beginners-lin_jp.html はじめてのLIN(ベクター・ジャパン株式会社)]
     11  * [https://cdn.vector.com/cms/content/know-how/VJ/PDF/For_Beginners_LIN.pdf はじめてのLIN(ベクター・ジャパン株式会社)]
    1212* API一覧
    1313
    14   ||= API =||= ID[[BR]][Dec] =||= ID[[BR]][Hex] =||= R4.0.3 =||= R4.2.2 =||
    15   || [#Lin_Init Lin_Init]                           ||  0|| 0x00||  ○  ||  ○  ||
    16   || [#Lin_CheckWakeup Lin_CheckWakeup]             || 10|| 0x0A||  ○  ||  ○  ||
    17   || [#Lin_GetVersionInfo Lin_GetVersionInfo]       ||  1|| 0x01||  ○  ||  ○  ||
    18   || [#Lin_SendFrame Lin_SendFrame]                 ||  4|| 0x04||  ○  ||  ○  ||
    19   || [#Lin_GoToSleep Lin_GoToSleep]                 ||  6|| 0x06||  ○  ||  ○  ||
    20   || [#Lin_GoToSleepInternal Lin_GoToSleepInternal] ||  9|| 0x09||  ○  ||  ○  ||
    21   || [#Lin_Wakeup Lin_Wakeup]                       ||  7|| 0x07||  ○  ||  ○  ||
    22   || [#Lin_WakeupInternal Lin_WakeupInternal]       || 11|| 0x0B||  -   ||  ○  ||
    23   || [#Lin_GetStatus Lin_GetStatus]                 ||  8|| 0x08||  ○  ||  ○  ||
    24 
    25 * コンフィギュレーション一覧(R4.0.3 / R4.2.2)
    26   * [#LinDemEventParameterRefs LinDemEventParameterRefs] (-/○)
    27     * [#LIN_E_TIMEOUT LIN_E_TIMEOUT] (-/○)
    28   * [#LinGeneral LinGeneral] (○/○)
    29     * [#LinDevErrorDetect LinDevErrorDetect] (○/○)
    30     * [#LinIndex LinIndex] (○/○)
    31     * [#LinTimeoutDuration LinTimeoutDuration] (○/○)
    32     * [#LinVersionInfoApi LinVersionInfoApi] (○/○)
    33   * [#LinGlobalConfig LinGlobalConfig] (○/○)
    34     * [#LinChannel LinChannel] (○/○)
    35       * [#LinChannelBaudRate LinChannelBaudRate] (○/○)
    36       * [#LinChannelId LinChannelId] (○/○)
    37       * [#LinChannelWakeupSupport LinChannelWakeupSupport] (○/○)
    38       * [#LinClockRef LinClockRef] (○/○)
    39       * [#LinChannelEcuMWakeupSource LinChannelEcuMWakeupSource] (○/○)
    40     * [#LinDemEventParameterRefs2 LinDemEventParameterRefs] (○/-)
    41       * [#LIN_E_TIMEOUT2 LIN_E_TIMEOUT] (○/-)
     14  ||= API =||= ID[[BR]][Dec] =||= ID[[BR]][Hex] =||= R4.0.3 =||= R4.2.2 =||= R21-11 =||
     15  || [#Lin_Init Lin_Init]                           ||  0|| 0x00||  ○  ||  ○  ||  ○  ||
     16  || [#Lin_CheckWakeup Lin_CheckWakeup]             || 10|| 0x0A||  ○  ||  ○  ||  ○  ||
     17  || [#Lin_GetVersionInfo Lin_GetVersionInfo]       ||  1|| 0x01||  ○  ||  ○  ||  ○  ||
     18  || [#Lin_SendFrame Lin_SendFrame]                 ||  4|| 0x04||  ○  ||  ○  ||  ○  ||
     19  || [#Lin_GoToSleep Lin_GoToSleep]                 ||  6|| 0x06||  ○  ||  ○  ||  ○  ||
     20  || [#Lin_GoToSleepInternal Lin_GoToSleepInternal] ||  9|| 0x09||  ○  ||  ○  ||  ○  ||
     21  || [#Lin_Wakeup Lin_Wakeup]                       ||  7|| 0x07||  ○  ||  ○  ||  ○  ||
     22  || [#Lin_WakeupInternal Lin_WakeupInternal]       || 11|| 0x0B||  -   ||  ○  ||  ○  ||
     23  || [#Lin_GetStatus Lin_GetStatus]                 ||  8|| 0x08||  ○  ||  ○  ||  ○  ||
     24
     25* コンフィギュレーション一覧 (R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11)
     26  * [#LinDemEventParameterRefs LinDemEventParameterRefs] (-/○/○/○/○/○/○/○)
     27    * [#LIN_E_TIMEOUT LIN_E_TIMEOUT] (-/○/○/○/○/○/○/○)
     28  * [#LinGeneral LinGeneral] (○/○/○/○/○/○/○/○)
     29    * [#LinDevErrorDetect LinDevErrorDetect] (○/○/○/○/○/○/○/○)
     30    * [#LinEcucPartitionRef LinEcucPartitionRef] (-/-/-/-/○/○/○/○)
     31    * [#LinIndex LinIndex] (○/○/○/○/○/○/○/○)
     32    * [#LinTimeoutDuration LinTimeoutDuration] (○/○/○/○/○/○/○/○)
     33    * [#LinVersionInfoApi LinVersionInfoApi] (○/○/○/○/○/○/○/○)
     34  * [#LinGlobalConfig LinGlobalConfig] (○/○/○/○/○/○/○/○)
     35    * [#LinChannel LinChannel] (○/○/○/○/○/○/○/○)
     36      * [#LinChannelBaudRate LinChannelBaudRate] (○/○/○/○/○/○/○/○)
     37      * [#LinChannelEcuMWakeupSource LinChannelEcuMWakeupSource] (○/○/○/○/○/○/○/○)
     38      * [#LinChannelEcucPartitionRef LinChannelEcucPartitionRef] (-/-/-/-/○/○/○/○)
     39      * [#LinChannelId LinChannelId] (○/○/○/○/○/○/○/○)
     40      * [#LinChannelWakeupSupport LinChannelWakeupSupport] (○/○/○/○/○/○/○/○)
     41      * [#LinClockRef LinClockRef] (○/○/○/○/○/○/○/○)
     42      * [#LinNodeType LinNodeType] (-/-/-/-/○/○/○/○)
     43    * [#LinDemEventParameterRefs2 LinDemEventParameterRefs] (○/-/-/-/-/-/-/-)
     44      * [#LIN_E_TIMEOUT2 LIN_E_TIMEOUT] (○/-/-/-/-/-/-/-)
    4245
    4346* エラーコード一覧
    4447  * "--"は[wiki:spec/Dem Dem]により決定される
    4548
    46   ||= エラーコード =||= Dec =||= Hex =||= R4.0.3 =||= R4.2.2 =||
    47   || LIN_E_UNINIT           ||  0|| 0x00||  ○  ||  ○  ||
    48   || LIN_E_INVALID_CHANNEL  ||  2|| 0x02||  ○  ||  ○  ||
    49   || LIN_E_INVALID_POINTER  ||  3|| 0x03||  ○  ||  ○  ||
    50   || LIN_E_STATE_TRANSITION ||  4|| 0x04||  ○  ||  ○  ||
    51   || LIN_E_PARAM_POINTER    ||  5|| 0x05||  ○  ||  ○  ||
    52   || LIN_E_TIMEOUT          || --||   --||  ○  ||  ○  ||
     49  ||= エラーコード =||= Dec =||= Hex =||= R4.0.3 =||= R4.2.2 =||= R21-11 =||
     50  || LIN_E_UNINIT           ||  0|| 0x00||  ○  ||  ○  ||  ○  ||
     51  || LIN_E_INVALID_CHANNEL  ||  2|| 0x02||  ○  ||  ○  ||  ○  ||
     52  || LIN_E_INVALID_POINTER  ||  3|| 0x03||  ○  ||  ○  ||  ○  ||
     53  || LIN_E_STATE_TRANSITION ||  4|| 0x04||  ○  ||  ○  ||  ○  ||
     54  || LIN_E_PARAM_POINTER    ||  5|| 0x05||  ○  ||  ○  ||  ○  ||
     55  || LIN_E_TIMEOUT          || --||   --||  ○  ||  ○  ||  ○  ||
    5356
    5457----
     
    7275
    7376== Lin_SendFrame ==
     77* R4.0.3 / R4.2.2
    7478{{{
    7579Std_ReturnType Lin_SendFrame(uint8 Channel, Lin_PduType* PduInfoPtr)
    7680}}}
     81* R21-11
     82{{{
     83Std_ReturnType Lin_SendFrame (uint8 Channel, const Lin_PduType* PduInfoPtr)
     84}}}
    7785
    7886== Lin_GoToSleep ==
     
    97105
    98106== Lin_GetStatus ==
     107* R4.0.3 / R4.2.2
    99108{{{
    100109Lin_StatusType Lin_GetStatus(uint8 Channel, uint8** Lin_SduPtr)
    101110}}}
    102 
     111* R21-11
     112{{{
     113Lin_StatusType Lin_GetStatus (uint8 Channel, const uint8** Lin_SduPtr)
     114}}}
    103115----
    104 
    105116= コンフィギュレーション仕様 =
    106117
     
    109120/AUTOSAR/EcucDefs/Lin/LinDemEventParameterRefs
    110121}}}
    111 * 型:Container
    112 * 多重度:0..1
     122* 対象リビジョン: R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
     123* SWSタグ: ECUC_Lin_00188
     124* タイプ: PARAM-CONF-CONTAINER
     125* 多重度: 0..1
    113126
    114127== LIN_E_TIMEOUT ==
     
    116129/AUTOSAR/EcucDefs/Lin/LinDemEventParameterRefs/LIN_E_TIMEOUT
    117130}}}
    118 * 型:Reference
    119 * 多重度:0..1
    120 * 参照先:{{{/AUTOSAR/EcucDefs/Dem/DemConfigSet/DemEventParameter}}}
     131* 対象リビジョン: R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
     132* SWSタグ: ECUC_Lin_00189
     133* タイプ:
     134  * R4.1.3/R4.2.2/R4.3.1: SYMBOLIC-NAME-REFERENCE
     135  * R4.4.0/R19-11/R20-11/R21-11: REFERENCE
     136* 多重度: 0..1
     137* 参照先: [wiki:spec/Dem#DemEventParameter /AUTOSAR/EcucDefs/Dem/DemConfigSet/DemEventParameter]
    121138
    122139== LinGeneral ==
     
    124141/AUTOSAR/EcucDefs/Lin/LinGeneral
    125142}}}
    126 * 型:Container
    127 * 多重度:1
     143* 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
     144* SWSタグ: ECUC_Lin_00183
     145* タイプ: PARAM-CONF-CONTAINER
     146* 多重度: 1
    128147
    129148== LinDevErrorDetect ==
     
    131150/AUTOSAR/EcucDefs/Lin/LinGeneral/LinDevErrorDetect
    132151}}}
    133 * 型:BooleanParam
    134 * 多重度:1
     152* 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
     153* SWSタグ: ECUC_Lin_00066
     154* タイプ: BOOLEAN-PARAM
     155* 多重度: 1
     156* デフォルト値:
     157  * R4.3.1/R4.4.0/R19-11/R20-11/R21-11: false
     158
     159== LinEcucPartitionRef ==
     160{{{
     161/AUTOSAR/EcucDefs/Lin/LinGeneral/LinEcucPartitionRef
     162}}}
     163* 対象リビジョン: R4.4.0/R19-11/R20-11/R21-11
     164* SWSタグ: ECUC_Lin_00192
     165* タイプ: REFERENCE
     166* 多重度: 0..*
     167* 参照先: [wiki:spec/EcuC#EcucPartition /AUTOSAR/EcucDefs/EcuC/EcucPartitionCollection/EcucPartition]
    135168
    136169== LinIndex ==
     
    138171/AUTOSAR/EcucDefs/Lin/LinGeneral/LinIndex
    139172}}}
    140 * 型:IntegerParam
    141 * 多重度:1
    142 * 上限値:255
    143 * 下限値:0
     173* 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
     174* SWSタグ: ECUC_Lin_00179
     175* タイプ: INTEGER-PARAM
     176* 多重度: 1
     177* 上限値: 255
     178* 下限値: 0
    144179
    145180== LinTimeoutDuration ==
     
    147182/AUTOSAR/EcucDefs/Lin/LinGeneral/LinTimeoutDuration
    148183}}}
    149 * 型:IntegerParam
    150 * 多重度:1
    151 * 上限値:65535
    152 * 下限値:0
     184* 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
     185* SWSタグ: ECUC_Lin_00093
     186* タイプ: INTEGER-PARAM
     187* 多重度: 1
     188* 上限値: 65535
     189* 下限値: 0
    153190
    154191== LinVersionInfoApi ==
     
    156193/AUTOSAR/EcucDefs/Lin/LinGeneral/LinVersionInfoApi
    157194}}}
    158 * 型:BooleanParam
    159 * 多重度:1
     195* 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
     196* SWSタグ: ECUC_Lin_00067
     197* タイプ: BOOLEAN-PARAM
     198* 多重度: 1
     199* デフォルト値:
     200  * R4.3.1/R4.4.0/R19-11/R20-11/R21-11: false
    160201
    161202== LinGlobalConfig ==
     
    163204/AUTOSAR/EcucDefs/Lin/LinGlobalConfig
    164205}}}
    165 * 型:Container
    166 * 多重度:1
     206* 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
     207* SWSタグ: ECUC_Lin_00184
     208* タイプ: PARAM-CONF-CONTAINER
     209* 多重度: 1
    167210
    168211== LinChannel ==
     
    170213/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinChannel
    171214}}}
    172 * 型:Container
    173 * 多重度:1..*
     215* 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
     216* SWSタグ: ECUC_Lin_00069
     217* タイプ: PARAM-CONF-CONTAINER
     218* 多重度: 1..*
    174219
    175220== LinChannelBaudRate ==
     
    177222/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinChannel/LinChannelBaudRate
    178223}}}
    179 * 型:IntegerParam
    180 * 多重度:1
    181 * 上限値:20000
    182 * 下限値:1000
     224* 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
     225* SWSタグ: ECUC_Lin_00180
     226* タイプ: INTEGER-PARAM
     227* 多重度: 1
     228* 上限値: 20000
     229* 下限値: 1000
     230
     231== LinChannelEcuMWakeupSource ==
     232{{{
     233/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinChannel/LinChannelEcuMWakeupSource
     234}}}
     235* 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
     236* SWSタグ: ECUC_Lin_00185
     237* タイプ:
     238  * R4.0.3/R4.1.3/R4.2.2/R4.3.1: SYMBOLIC-NAME-REFERENCE
     239  * R4.4.0/R19-11/R20-11/R21-11: REFERENCE
     240* 多重度: 0..1
     241* 参照先: [wiki:spec/EcuM#EcuMWakeupSource /AUTOSAR/EcucDefs/EcuM/EcuMConfiguration/EcuMCommonConfiguration/EcuMWakeupSource]
     242
     243== LinChannelEcucPartitionRef ==
     244{{{
     245/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinChannel/LinChannelEcucPartitionRef
     246}}}
     247* 対象リビジョン: R4.4.0/R19-11/R20-11/R21-11
     248* SWSタグ: ECUC_Lin_00193
     249* タイプ: REFERENCE
     250* 多重度: 0..1
     251* 参照先: [wiki:spec/EcuC#EcucPartition /AUTOSAR/EcucDefs/EcuC/EcucPartitionCollection/EcucPartition]
    183252
    184253== LinChannelId ==
     
    186255/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinChannel/LinChannelId
    187256}}}
    188 * 型:IntegerParam
    189 * 多重度:1
    190 * 上限値:65535
    191 * 下限値:0
     257* 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
     258* SWSタグ: ECUC_Lin_00181
     259* タイプ: INTEGER-PARAM
     260* 多重度: 1
     261* 上限値: 65535
     262* 下限値: 0
    192263
    193264== LinChannelWakeupSupport ==
     
    195266/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinChannel/LinChannelWakeupSupport
    196267}}}
    197 * 型:BooleanParam
    198 * 多重度:1
     268* 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
     269* SWSタグ: ECUC_Lin_00182
     270* タイプ: BOOLEAN-PARAM
     271* 多重度: 1
    199272
    200273== LinClockRef ==
     
    202275/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinChannel/LinClockRef
    203276}}}
    204 * 型:Reference
    205 * 多重度:1
    206 * 参照先:{{{/AUTOSAR/EcucDefs/Mcu/McuModuleConfiguration/McuClockSettingConfig/McuClockReferencePoint}}}
    207 
    208 == LinChannelEcuMWakeupSource ==
    209 {{{
    210 /AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinChannel/LinChannelEcuMWakeupSource
    211 }}}
    212 * 型:Reference
    213 * 多重度:0..1
    214 * 参照先:{{{/AUTOSAR/EcucDefs/EcuM/EcuMConfiguration/EcuMCommonConfiguration/EcuMWakeupSource}}}
     277* 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
     278* SWSタグ: ECUC_Lin_00094
     279* タイプ: REFERENCE
     280* 多重度: 1
     281* 参照先: [wiki:spec/Mcu#McuClockReferencePoint /AUTOSAR/EcucDefs/Mcu/McuModuleConfiguration/McuClockSettingConfig/McuClockReferencePoint]
     282
     283== LinNodeType ==
     284{{{
     285/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinChannel/LinNodeType
     286}}}
     287* 対象リビジョン: R4.4.0/R19-11/R20-11/R21-11
     288* SWSタグ: ECUC_Lin_00191
     289* タイプ: ENUMERATION-PARAM
     290* 多重度: 1
     291* 選択肢:
     292  * MASTER
     293  * SLAVE
    215294
    216295== LinDemEventParameterRefs(2) ==
     
    218297/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinDemEventParameterRefs
    219298}}}
    220 * 型:Container
    221 * 多重度:0..1
     299* 対象リビジョン: R4.0.3
     300* タイプ: PARAM-CONF-CONTAINER
     301* 多重度: 0..1
    222302
    223303== LIN_E_TIMEOUT(2) ==
     
    225305/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinDemEventParameterRefs/LIN_E_TIMEOUT
    226306}}}
    227 * 型:Reference
    228 * 多重度:0..1
    229 * 参照先:{{{/AUTOSAR/EcucDefs/Dem/DemConfigSet/DemEventParameter}}}
     307* 対象リビジョン: R4.0.3
     308* タイプ: SYMBOLIC-NAME-REFERENCE
     309* 多重度: 0..1
     310* 参照先: [wiki:spec/Dem#DemEventParameter /AUTOSAR/EcucDefs/Dem/DemConfigSet/DemEventParameter]
     311