Changes between Version 5 and Version 6 of spec/Pwm


Ignore:
Timestamp:
Jan 9, 2015, 5:06:53 PM (9 years ago)
Author:
fujisft-shigihara
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • spec/Pwm

    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  || [#Pwm_Init Pwm_Init]                               ||  0|| 0x00||
     15  || [#Pwm_DeInit Pwm_DeInit]                           ||  1|| 0x01||
     16  || [#Pwm_SetDutyCycle Pwm_SetDutyCycle]               ||  2|| 0x02||
     17  || [#Pwm_SetPeriodAndDuty Pwm_SetPeriodAndDuty]       ||  3|| 0x03||
     18  || [#Pwm_SetOutputToIdle Pwm_SetOutputToIdle]         ||  4|| 0x04||
     19  || [#Pwm_GetOutputState Pwm_GetOutputState]           ||  5|| 0x05||
     20  || [#Pwm_DisableNotification Pwm_DisableNotification] ||  6|| 0x06||
     21  || [#Pwm_EnableNotification Pwm_EnableNotification]   ||  7|| 0x07||
     22  || [#Pwm_GetVersionInfo Pwm_GetVersionInfo]           ||  8|| 0x08||
     23
     24* コンフィギュレーション一覧
     25  * [#PwmChannelConfigSet PwmChannelConfigSet]
     26    * [#PwmChannel PwmChannel]
     27      * [#PwmChannelClass PwmChannelClass]
     28      * [#PwmChannelId PwmChannelId]
     29      * [#PwmDutycycleDefault PwmDutycycleDefault]
     30      * [#PwmIdleState PwmIdleState]
     31      * [#PwmNotification PwmNotification]
     32      * [#PwmPeriodDefault PwmPeriodDefault]
     33      * [#PwmPolarity PwmPolarity]
     34  * [#PwmConfigurationOfOptApiServices PwmConfigurationOfOptApiServices]
     35    * [#PwmDeInitApi PwmDeInitApi]
     36    * [#PwmGetOutputState PwmGetOutputState]
     37    * [#PwmSetDutyCycle PwmSetDutyCycle]
     38    * [#PwmSetOutputToIdle PwmSetOutputToIdle]
     39    * [#PwmSetPeriodAndDuty PwmSetPeriodAndDuty]
     40    * [#PwmVersionInfoApi PwmVersionInfoApi]
     41  * [#PwmGeneral PwmGeneral]
     42    * [#PwmDevErorDetect PwmDevErorDetect]
     43    * [#PwmDutycycleUpdatedEndperiod PwmDutycycleUpdatedEndperiod]
     44    * [#PwmIndex PwmIndex]
     45    * [#PwmNotificationSupported PwmNotificationSupported]
     46    * [#PwmPeriodUpdatedEndperiod PwmPeriodUpdatedEndperiod]
     47
     48* エラーコード一覧
     49
     50  ||= エラーコード =||= Dec =||= Hex =||
     51  || PWM_E_PARAM_CONFIG        || 16|| 0x10||
     52  || PWM_E_UNINIT              || 17|| 0x11||
     53  || PWM_E_PARAM_CHANNEL       || 18|| 0x12||
     54  || PWM_E_PERIOD_UNCHANGEABLE || 19|| 0x13||
     55  || PWM_E_ALREADY_INITIALIZED || 20|| 0x14||
     56  || PWM_E_PARAM_POINTER       || 21|| 0x15||
     57
    1658----
    17 {{{#!comment
    18 [執筆開始時削除エリア]ここまで
    19 ※コメントごと削除してください
    20 }}}
    21 
    22 = 概要 =
     59
     60= API仕様 =
     61
     62== Pwm_Init ==
     63{{{
     64void Pwm_Init(const Pwm_ConfigType* ConfigPtr)
     65}}}
     66
     67== Pwm_DeInit ==
     68{{{
     69void Pwm_DeInit(void)
     70}}}
     71
     72== Pwm_SetDutyCycle ==
     73{{{
     74void Pwm_SetDutyCycle(Pwm_ChannelType ChannelNumber, uint16 DutyCycle)
     75}}}
     76
     77== Pwm_SetPeriodAndDuty ==
     78{{{
     79void Pwm_SetPeriodAndDuty(Pwm_ChannelType ChannelNumber, Pwm_PeriodType Period, uint16 DutyCycle)
     80}}}
     81
     82== Pwm_SetOutputToIdle ==
     83{{{
     84void Pwm_SetOutputToIdle(Pwm_ChannelType ChannelNumber)
     85}}}
     86
     87== Pwm_GetOutputState ==
     88{{{
     89Pwm_OutputStateType Pwm_GetOutputState(Pwm_ChannelType ChannelNumber
     90)
     91}}}
     92
     93== Pwm_DisableNotification ==
     94{{{
     95void Pwm_DisableNotification(Pwm_ChannelType ChannelNumber)
     96}}}
     97
     98== Pwm_EnableNotification ==
     99{{{
     100void Pwm_EnableNotification(Pwm_ChannelType ChannelNumber, Pwm_EdgeNotificationType Notification)
     101}}}
     102
     103== Pwm_GetVersionInfo ==
     104{{{
     105void Pwm_GetVersionInfo(Std_VersionInfoType* versioninfo)
     106}}}
    23107
    24108----
    25109
    26 = API仕様 =
    27 
    28 ----
    29 
    30110= コンフィギュレーション仕様 =
     111
     112== PwmChannelConfigSet ==
     113{{{
     114/AUTOSAR/EcucDefs/Pwm/PwmChannelConfigSet
     115}}}
     116* 型:Container
     117* 多重度:1
     118
     119== PwmChannel ==
     120{{{
     121/AUTOSAR/EcucDefs/Pwm/PwmChannelConfigSet/PwmChannel
     122}}}
     123* 型:Container
     124* 多重度:1..*
     125
     126== PwmChannelClass ==
     127{{{
     128/AUTOSAR/EcucDefs/Pwm/PwmChannelConfigSet/PwmChannel/PwmChannelClass
     129}}}
     130* 型:EnumerationParam
     131* 多重度:0..1
     132
     133== PwmChannelId ==
     134{{{
     135/AUTOSAR/EcucDefs/Pwm/PwmChannelConfigSet/PwmChannel/PwmChannelId
     136}}}
     137* 型:IntegerParam
     138* 多重度:1
     139
     140== PwmDutycycleDefault ==
     141{{{
     142/AUTOSAR/EcucDefs/Pwm/PwmChannelConfigSet/PwmChannel/PwmDutycycleDefault
     143}}}
     144* 型:IntegerParam
     145* 多重度:1
     146
     147== PwmIdleState ==
     148{{{
     149/AUTOSAR/EcucDefs/Pwm/PwmChannelConfigSet/PwmChannel/PwmIdleState
     150}}}
     151* 型:EnumerationParam
     152* 多重度:1
     153
     154== PwmNotification ==
     155{{{
     156/AUTOSAR/EcucDefs/Pwm/PwmChannelConfigSet/PwmChannel/PwmNotification
     157}}}
     158* 型:FunctionName
     159* 多重度:0..1
     160
     161== PwmPeriodDefault ==
     162{{{
     163/AUTOSAR/EcucDefs/Pwm/PwmChannelConfigSet/PwmChannel/PwmPeriodDefault
     164}}}
     165* 型:FloatParam
     166* 多重度:1
     167
     168== PwmPolarity ==
     169{{{
     170/AUTOSAR/EcucDefs/Pwm/PwmChannelConfigSet/PwmChannel/PwmPolarity
     171}}}
     172* 型:EnumerationParam
     173* 多重度:1
     174
     175== PwmConfigurationOfOptApiServices ==
     176{{{
     177/AUTOSAR/EcucDefs/Pwm/PwmConfigurationOfOptApiServices
     178}}}
     179* 型:Container
     180* 多重度:1
     181
     182== PwmDeInitApi ==
     183{{{
     184/AUTOSAR/EcucDefs/Pwm/PwmConfigurationOfOptApiServices/PwmDeInitApi
     185}}}
     186* 型:BooleanParam
     187* 多重度:1
     188
     189== PwmGetOutputState ==
     190{{{
     191/AUTOSAR/EcucDefs/Pwm/PwmConfigurationOfOptApiServices/PwmGetOutputState
     192}}}
     193* 型:BooleanParam
     194* 多重度:1
     195
     196== PwmSetDutyCycle ==
     197{{{
     198/AUTOSAR/EcucDefs/Pwm/PwmConfigurationOfOptApiServices/PwmSetDutyCycle
     199}}}
     200* 型:BooleanParam
     201* 多重度:1
     202
     203== PwmSetOutputToIdle ==
     204{{{
     205/AUTOSAR/EcucDefs/Pwm/PwmConfigurationOfOptApiServices/PwmSetOutputToIdle
     206}}}
     207* 型:BooleanParam
     208* 多重度:1
     209
     210== PwmSetPeriodAndDuty ==
     211{{{
     212/AUTOSAR/EcucDefs/Pwm/PwmConfigurationOfOptApiServices/PwmSetPeriodAndDuty
     213}}}
     214* 型:BooleanParam
     215* 多重度:1
     216
     217== PwmVersionInfoApi ==
     218{{{
     219/AUTOSAR/EcucDefs/Pwm/PwmConfigurationOfOptApiServices/PwmVersionInfoApi
     220}}}
     221* 型:BooleanParam
     222* 多重度:1
     223
     224== PwmGeneral ==
     225{{{
     226/AUTOSAR/EcucDefs/Pwm/PwmGeneral
     227}}}
     228* 型:Container
     229* 多重度:1
     230
     231== PwmDevErorDetect ==
     232{{{
     233/AUTOSAR/EcucDefs/Pwm/PwmGeneral/PwmDevErorDetect
     234}}}
     235* 型:BooleanParam
     236* 多重度:1
     237
     238== PwmDutycycleUpdatedEndperiod ==
     239{{{
     240/AUTOSAR/EcucDefs/Pwm/PwmGeneral/PwmDutycycleUpdatedEndperiod
     241}}}
     242* 型:BooleanParam
     243* 多重度:1
     244
     245== PwmIndex ==
     246{{{
     247/AUTOSAR/EcucDefs/Pwm/PwmGeneral/PwmIndex
     248}}}
     249* 型:IntegerParam
     250* 多重度:1
     251
     252== PwmNotificationSupported ==
     253{{{
     254/AUTOSAR/EcucDefs/Pwm/PwmGeneral/PwmNotificationSupported
     255}}}
     256* 型:BooleanParam
     257* 多重度:1
     258
     259== PwmPeriodUpdatedEndperiod ==
     260{{{
     261/AUTOSAR/EcucDefs/Pwm/PwmGeneral/PwmPeriodUpdatedEndperiod
     262}}}
     263* 型:BooleanParam
     264* 多重度:1