Changes between Version 5 and Version 6 of spec/J1939Tp


Ignore:
Timestamp:
Jan 8, 2015, 6:07:52 PM (9 years ago)
Author:
fujisft-shigihara
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • spec/J1939Tp

    v5 v6  
    77[[BR]]
    88
    9 {{{#!comment
    10 [執筆開始時削除エリア]ここから
    11 ※コメントごと削除してください
    12 }}}
    13 * '''本項目は、まだ執筆されていません'''
    14 * '''執筆して頂ける方は、本注意書きを削除の上、執筆をお願いします(詳しくは本Wikiのソースコードをご参照ください)'''
    15 * '''質問事項等がございましたら、[http://dev.toppers.jp/trac_user/ap/wiki/ Wikiトップページ]にあります[http://dev.toppers.jp/trac_user/ap/wiki/WikiStart#%E5%95%8F%E3%81%84%E5%90%88%E3%82%8F%E3%81%9B%E5%85%88 問い合わせ先]までお願いします'''
     9= 概要 =
     10
     11* API一覧
     12
     13  ||= API =||= ID[[BR]][Dec] =||= ID[[BR]][Hex] =||
     14  || [#J1939Tp_Init J1939Tp_Init]                       ||  1|| 0x01||
     15  || [#J1939Tp_Shutdown J1939Tp_Shutdown]               ||  2|| 0x02||
     16  || [#J1939Tp_GetVersionInfo J1939Tp_GetVersionInfo]   ||  3|| 0x03||
     17  || [#J1939Tp_Transmit J1939Tp_Transmit]               ||  5|| 0x05||
     18  || [#J1939Tp_CancelTransmit J1939Tp_CancelTransmit]   ||  9|| 0x09||
     19  || [#J1939Tp_CancelReceive J1939Tp_CancelReceive]     || 10|| 0x0A||
     20  || [#J1939Tp_ChangeParameter J1939Tp_ChangeParameter] ||  8|| 0x08||
     21  || [#J1939Tp_RxIndication J1939Tp_RxIndication]       || 66|| 0x42||
     22  || [#J1939Tp_TxConfirmation J1939Tp_TxConfirmation]   || 64|| 0x40||
     23  || [#J1939Tp_MainFunction J1939Tp_MainFunction]       ||  4|| 0x04||
     24
     25* コンフィギュレーション一覧
     26  * [#J1939TpConfiguration J1939TpConfiguration]
     27    * [#J1939TpDemEventParameterRefs J1939TpDemEventParameterRefs]
     28      * [#J1939TP_E_COMMUNICATION J1939TP_E_COMMUNICATION]
     29    * [#J1939TpRxChannel J1939TpRxChannel]
     30      * [#J1939TpRxProtocolType J1939TpRxProtocolType]
     31      * [#J1939TpRxCmNPdu J1939TpRxCmNPdu]
     32        * [#J1939TpRxCmNPduId J1939TpRxCmNPduId]
     33        * [#J1939TpRxCmNPduRef J1939TpRxCmNPduRef]
     34      * [#J1939TpRxDtNPdu J1939TpRxDtNPdu]
     35        * [#J1939TpRxDtNPduId J1939TpRxDtNPduId]
     36        * [#J1939TpRxDtNPduRef J1939TpRxDtNPduRef]
     37      * [#J1939TpRxPg J1939TpRxPg]
     38        * [#J1939TpRxPgDynLength J1939TpRxPgDynLength]
     39        * [#J1939TpRxPgPGN J1939TpRxPgPGN]
     40        * [#J1939TpRxDirectNPdu J1939TpRxDirectNPdu]
     41          * [#J1939TpRxDirectNPduId J1939TpRxDirectNPduId]
     42          * [#J1939TpRxDirectNPduRef J1939TpRxDirectNPduRef]
     43        * [#J1939TpRxNSdu J1939TpRxNSdu]
     44          * [#J1939TpRxNSduRef J1939TpRxNSduRef]
     45      * [#J1939TpTxFcNPdu J1939TpTxFcNPdu]
     46        * [#J1939TpTxFcNPduTxConfId J1939TpTxFcNPduTxConfId]
     47        * [#J1939TpTxFcNPduRef J1939TpTxFcNPduRef]
     48    * [#J1939TpTxChannel J1939TpTxChannel]
     49      * [#J1939TpTxProtocolType J1939TpTxProtocolType]
     50      * [#J1939TpRxFcNPdu J1939TpRxFcNPdu]
     51        * [#J1939TpRxFcNPduId J1939TpRxFcNPduId]
     52        * [#J1939TpRxFcNPduRef J1939TpRxFcNPduRef]
     53      * [#J1939TpTxCmNPdu J1939TpTxCmNPdu]
     54        * [#J1939TpTxCmNPduTxConfId J1939TpTxCmNPduTxConfId]
     55        * [#J1939TpTxCmNPduRef J1939TpTxCmNPduRef]
     56      * [#J1939TpTxDtNPdu J1939TpTxDtNPdu]
     57        * [#J1939TpTxDtNPduTxConfId J1939TpTxDtNPduTxConfId]
     58        * [#J1939TpTxDtNPduRef J1939TpTxDtNPduRef]
     59      * [#J1939TpTxPg J1939TpTxPg]
     60        * [#J1939TpTxPgDynLength J1939TpTxPgDynLength]
     61        * [#J1939TpTxPgPGN J1939TpTxPgPGN]
     62        * [#J1939TpTxDirectNPdu J1939TpTxDirectNPdu]
     63          * [#J1939TpTxDirectNPduTxConfId J1939TpTxDirectNPduTxConfId]
     64          * [#J1939TpTxDirectNPduRef J1939TpTxDirectNPduRef]
     65        * [#J1939TpTxNSdu J1939TpTxNSdu]
     66          * [#J1939TpTxNSduId J1939TpTxNSduId]
     67          * [#J1939TpTxNSduRef J1939TpTxNSduRef]
     68  * [#J1939TpGeneral J1939TpGeneral]
     69    * [#J1939TpDevErrorDetect J1939TpDevErrorDetect]
     70    * [#J1939TpMainFunctionPeriod J1939TpMainFunctionPeriod]
     71    * [#J1939TpMaxPacketsPerBlock J1939TpMaxPacketsPerBlock]
     72    * [#J1939TpPacketsPerBlock J1939TpPacketsPerBlock]
     73    * [#J1939TpTxConfTimeout J1939TpTxConfTimeout]
     74    * [#J1939TpVersionInfoApi J1939TpVersionInfoApi]
     75
     76* エラーコード一覧
     77  * "--"は[wiki:spec_DiagnosticEventManager Dem]により決定される
     78
     79  ||= エラーコード =||= Dec =||= Hex =||
     80  || J1939TP_E_PARAM_ID             ||  1|| 0x01||
     81  || J1939TP_E_PARAM_ADDRESS        ||  2|| 0x02||
     82  || J1939TP_E_UNINIT               || 32|| 0x20||
     83  || J1939TP_E_REINIT               || 33|| 0x21||
     84  || J1939TP_E_RECEPTION_ABORTED    || 48|| 0x30||
     85  || J1939TP_E_TRANSMISSION_ABORTED || 49|| 0x31||
     86  || J1939TP_E_COMMUNICATION        || --||   --||
     87
    1688----
    17 {{{#!comment
    18 [執筆開始時削除エリア]ここまで
    19 ※コメントごと削除してください
    20 }}}
    21 
    22 = 概要 =
     89
     90= API仕様 =
     91
     92== J1939Tp_Init ==
     93{{{
     94void J1939Tp_Init(const J1939Tp_ConfigType* ConfigPtr)
     95}}}
     96
     97== J1939Tp_Shutdown ==
     98{{{
     99void J1939Tp_Shutdown(void)
     100}}}
     101
     102== J1939Tp_GetVersionInfo ==
     103{{{
     104void J1939Tp_GetVersionInfo(Std_VersionInfoType* VersionInfo)
     105}}}
     106
     107== J1939Tp_Transmit ==
     108{{{
     109Std_ReturnType J1939Tp_Transmit(PduIdType TxSduId, const PduInfoType* TxInfoPtr)
     110}}}
     111
     112== J1939Tp_CancelTransmit ==
     113{{{
     114Std_ReturnType J1939Tp_CancelTransmit(PduIdType TxSduId)
     115}}}
     116
     117== J1939Tp_CancelReceive ==
     118{{{
     119Std_ReturnType J1939Tp_CancelReceive(PduIdType RxSduId)
     120}}}
     121
     122== J1939Tp_ChangeParameter ==
     123{{{
     124Std_ReturnType J1939Tp_ChangeParameter(PduIdType SduId, TPParameterType Parameter, uint16 Value)
     125}}}
     126
     127== J1939Tp_RxIndication ==
     128{{{
     129void J1939Tp_RxIndication(PduIdType RxPduId, PduInfoType* PduInfoPtr)
     130}}}
     131
     132== J1939Tp_TxConfirmation ==
     133{{{
     134void J1939Tp_TxConfirmation(PduIdType TxPduId)
     135}}}
     136
     137== J1939Tp_MainFunction ==
     138{{{
     139void J1939Tp_MainFunction(void)
     140}}}
    23141
    24142----
    25143
    26 = API仕様 =
    27 
    28 ----
    29 
    30144= コンフィギュレーション仕様 =
     145
     146== J1939TpConfiguration ==
     147{{{
     148/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration
     149}}}
     150* 型:Container
     151* 多重度:1
     152
     153== J1939TpDemEventParameterRefs ==
     154{{{
     155/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpDemEventParameterRefs
     156}}}
     157* 型:Container
     158* 多重度:0..1
     159
     160== J1939TP_E_COMMUNICATION ==
     161{{{
     162/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpDemEventParameterRefs/J1939TP_E_COMMUNICATION
     163}}}
     164* 型:Reference
     165* 多重度:0..1
     166
     167== J1939TpRxChannel ==
     168{{{
     169/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpRxChannel
     170}}}
     171* 型:Container
     172* 多重度:0..*
     173
     174== J1939TpRxProtocolType ==
     175{{{
     176/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpRxChannel/J1939TpRxProtocolType
     177}}}
     178* 型:EnumerationParam
     179* 多重度:1
     180
     181== J1939TpRxCmNPdu ==
     182{{{
     183/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpRxChannel/J1939TpRxCmNPdu
     184}}}
     185* 型:Container
     186* 多重度:1
     187
     188== J1939TpRxCmNPduId ==
     189{{{
     190/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpRxChannel/J1939TpRxCmNPdu/J1939TpRxCmNPduId
     191}}}
     192* 型:IntegerParam
     193* 多重度:1
     194
     195== J1939TpRxCmNPduRef ==
     196{{{
     197/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpRxChannel/J1939TpRxCmNPdu/J1939TpRxCmNPduRef
     198}}}
     199* 型:Reference
     200* 多重度:1
     201
     202== J1939TpRxDtNPdu ==
     203{{{
     204/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpRxChannel/J1939TpRxDtNPdu
     205}}}
     206* 型:Container
     207* 多重度:1
     208
     209== J1939TpRxDtNPduId ==
     210{{{
     211/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpRxChannel/J1939TpRxDtNPdu/J1939TpRxDtNPduId
     212}}}
     213* 型:IntegerParam
     214* 多重度:1
     215
     216== J1939TpRxDtNPduRef ==
     217{{{
     218/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpRxChannel/J1939TpRxDtNPdu/J1939TpRxDtNPduRef
     219}}}
     220* 型:Reference
     221* 多重度:1
     222
     223== J1939TpRxPg ==
     224{{{
     225/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpRxChannel/J1939TpRxPg
     226}}}
     227* 型:Container
     228* 多重度:1..*
     229
     230== J1939TpRxPgDynLength ==
     231{{{
     232/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpRxChannel/J1939TpRxPg/J1939TpRxPgDynLength
     233}}}
     234* 型:BooleanParam
     235* 多重度:1
     236
     237== J1939TpRxPgPGN ==
     238{{{
     239/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpRxChannel/J1939TpRxPg/J1939TpRxPgPGN
     240}}}
     241* 型:IntegerParam
     242* 多重度:1
     243
     244== J1939TpRxDirectNPdu ==
     245{{{
     246/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpRxChannel/J1939TpRxPg/J1939TpRxDirectNPdu
     247}}}
     248* 型:Container
     249* 多重度:0..1
     250
     251== J1939TpRxDirectNPduId ==
     252{{{
     253/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpRxChannel/J1939TpRxPg/J1939TpRxDirectNPdu/J1939TpRxDirectNPduId
     254}}}
     255* 型:IntegerParam
     256* 多重度:1
     257
     258== J1939TpRxDirectNPduRef ==
     259{{{
     260/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpRxChannel/J1939TpRxPg/J1939TpRxDirectNPdu/J1939TpRxDirectNPduRef
     261}}}
     262* 型:Reference
     263* 多重度:1
     264
     265== J1939TpRxNSdu ==
     266{{{
     267/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpRxChannel/J1939TpRxPg/J1939TpRxNSdu
     268}}}
     269* 型:Container
     270* 多重度:1
     271
     272== J1939TpRxNSduRef ==
     273{{{
     274/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpRxChannel/J1939TpRxPg/J1939TpRxNSdu/J1939TpRxNSduRef
     275}}}
     276* 型:Reference
     277* 多重度:1
     278
     279== J1939TpTxFcNPdu ==
     280{{{
     281/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpRxChannel/J1939TpTxFcNPdu
     282}}}
     283* 型:Container
     284* 多重度:0..1
     285
     286== J1939TpTxFcNPduTxConfId ==
     287{{{
     288/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpRxChannel/J1939TpTxFcNPdu/J1939TpTxFcNPduTxConfId
     289}}}
     290* 型:IntegerParam
     291* 多重度:1
     292
     293== J1939TpTxFcNPduRef ==
     294{{{
     295/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpRxChannel/J1939TpTxFcNPdu/J1939TpTxFcNPduRef
     296}}}
     297* 型:Reference
     298* 多重度:1
     299
     300== J1939TpTxChannel ==
     301{{{
     302/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpTxChannel
     303}}}
     304* 型:Container
     305* 多重度:0..*
     306
     307== J1939TpTxProtocolType ==
     308{{{
     309/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpTxChannel/J1939TpTxProtocolType
     310}}}
     311* 型:EnumerationParam
     312* 多重度:1
     313
     314== J1939TpRxFcNPdu ==
     315{{{
     316/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpTxChannel/J1939TpRxFcNPdu
     317}}}
     318* 型:Container
     319* 多重度:0..1
     320
     321== J1939TpRxFcNPduId ==
     322{{{
     323/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpTxChannel/J1939TpRxFcNPdu/J1939TpRxFcNPduId
     324}}}
     325* 型:IntegerParam
     326* 多重度:1
     327
     328== J1939TpRxFcNPduRef ==
     329{{{
     330/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpTxChannel/J1939TpRxFcNPdu/J1939TpRxFcNPduRef
     331}}}
     332* 型:Reference
     333* 多重度:1
     334
     335== J1939TpTxCmNPdu ==
     336{{{
     337/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpTxChannel/J1939TpTxCmNPdu
     338}}}
     339* 型:Container
     340* 多重度:1
     341
     342== J1939TpTxCmNPduTxConfId ==
     343{{{
     344/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpTxChannel/J1939TpTxCmNPdu/J1939TpTxCmNPduTxConfId
     345}}}
     346* 型:IntegerParam
     347* 多重度:1
     348
     349== J1939TpTxCmNPduRef ==
     350{{{
     351/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpTxChannel/J1939TpTxCmNPdu/J1939TpTxCmNPduRef
     352}}}
     353* 型:Reference
     354* 多重度:1
     355
     356== J1939TpTxDtNPdu ==
     357{{{
     358/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpTxChannel/J1939TpTxDtNPdu
     359}}}
     360* 型:Container
     361* 多重度:1
     362
     363== J1939TpTxDtNPduTxConfId ==
     364{{{
     365/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpTxChannel/J1939TpTxDtNPdu/J1939TpTxDtNPduTxConfId
     366}}}
     367* 型:IntegerParam
     368* 多重度:1
     369
     370== J1939TpTxDtNPduRef ==
     371{{{
     372/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpTxChannel/J1939TpTxDtNPdu/J1939TpTxDtNPduRef
     373}}}
     374* 型:Reference
     375* 多重度:1
     376
     377== J1939TpTxPg ==
     378{{{
     379/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpTxChannel/J1939TpTxPg
     380}}}
     381* 型:Container
     382* 多重度:1..*
     383
     384== J1939TpTxPgDynLength ==
     385{{{
     386/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpTxChannel/J1939TpTxPg/J1939TpTxPgDynLength
     387}}}
     388* 型:BooleanParam
     389* 多重度:1
     390
     391== J1939TpTxPgPGN ==
     392{{{
     393/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpTxChannel/J1939TpTxPg/J1939TpTxPgPGN
     394}}}
     395* 型:IntegerParam
     396* 多重度:1
     397
     398== J1939TpTxDirectNPdu ==
     399{{{
     400/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpTxChannel/J1939TpTxPg/J1939TpTxDirectNPdu
     401}}}
     402* 型:Container
     403* 多重度:0..1
     404
     405== J1939TpTxDirectNPduTxConfId ==
     406{{{
     407/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpTxChannel/J1939TpTxPg/J1939TpTxDirectNPdu/J1939TpTxDirectNPduTxConfId
     408}}}
     409* 型:IntegerParam
     410* 多重度:1
     411
     412== J1939TpTxDirectNPduRef ==
     413{{{
     414/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpTxChannel/J1939TpTxPg/J1939TpTxDirectNPdu/J1939TpTxDirectNPduRef
     415}}}
     416* 型:Reference
     417* 多重度:1
     418
     419== J1939TpTxNSdu ==
     420{{{
     421/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpTxChannel/J1939TpTxPg/J1939TpTxNSdu
     422}}}
     423* 型:Container
     424* 多重度:1
     425
     426== J1939TpTxNSduId ==
     427{{{
     428/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpTxChannel/J1939TpTxPg/J1939TpTxNSdu/J1939TpTxNSduId
     429}}}
     430* 型:IntegerParam
     431* 多重度:1
     432
     433== J1939TpTxNSduRef ==
     434{{{
     435/AUTOSAR/EcucDefs/J1939Tp/J1939TpConfiguration/J1939TpTxChannel/J1939TpTxPg/J1939TpTxNSdu/J1939TpTxNSduRef
     436}}}
     437* 型:Reference
     438* 多重度:1
     439
     440== J1939TpGeneral ==
     441{{{
     442/AUTOSAR/EcucDefs/J1939Tp/J1939TpGeneral
     443}}}
     444* 型:Container
     445* 多重度:1
     446
     447== J1939TpDevErrorDetect ==
     448{{{
     449/AUTOSAR/EcucDefs/J1939Tp/J1939TpGeneral/J1939TpDevErrorDetect
     450}}}
     451* 型:BooleanParam
     452* 多重度:1
     453
     454== J1939TpMainFunctionPeriod ==
     455{{{
     456/AUTOSAR/EcucDefs/J1939Tp/J1939TpGeneral/J1939TpMainFunctionPeriod
     457}}}
     458* 型:FloatParam
     459* 多重度:1
     460
     461== J1939TpMaxPacketsPerBlock ==
     462{{{
     463/AUTOSAR/EcucDefs/J1939Tp/J1939TpGeneral/J1939TpMaxPacketsPerBlock
     464}}}
     465* 型:IntegerParam
     466* 多重度:1
     467
     468== J1939TpPacketsPerBlock ==
     469{{{
     470/AUTOSAR/EcucDefs/J1939Tp/J1939TpGeneral/J1939TpPacketsPerBlock
     471}}}
     472* 型:IntegerParam
     473* 多重度:1
     474
     475== J1939TpTxConfTimeout ==
     476{{{
     477/AUTOSAR/EcucDefs/J1939Tp/J1939TpGeneral/J1939TpTxConfTimeout
     478}}}
     479* 型:FloatParam
     480* 多重度:1
     481
     482== J1939TpVersionInfoApi ==
     483{{{
     484/AUTOSAR/EcucDefs/J1939Tp/J1939TpGeneral/J1939TpVersionInfoApi
     485}}}
     486* 型:BooleanParam
     487* 多重度:1