wiki:spec/Pwm
PWM Driver


概要

  • API一覧
API ID
[Dec]
ID
[Hex]
R4.0.3 R4.2.2
Pwm_Init 0 0x00
Pwm_DeInit 1 0x01
Pwm_SetDutyCycle 2 0x02
Pwm_SetPeriodAndDuty 3 0x03
Pwm_SetOutputToIdle 4 0x04
Pwm_GetOutputState 5 0x05
Pwm_DisableNotification 6 0x06
Pwm_EnableNotification 7 0x07
Pwm_SetPowerState 9 0x09 -
Pwm_GetCurrentPowerState 10 0x0A -
Pwm_GetTargetPowerState 11 0x0B -
Pwm_PreparePowerState 12 0x0C -
Pwm_GetVersionInfo 8 0x08
Pwm_Main_PowerTransitionManager 13 0x0D -
Pwm_Notification_<#Channel> -- -- -
IoHwAb_Pwm_NotifyReadyForPowerState<#Mode> 96 0x60 -
  • エラーコード一覧
エラーコード Dec Hex R4.0.3 R4.2.2
PWM_E_PARAM_CONFIG 16 0x10 -
PWM_E_INIT_FAILED 16 0x10 -
PWM_E_UNINIT 17 0x11
PWM_E_PARAM_CHANNEL 18 0x12
PWM_E_PERIOD_UNCHANGEABLE 19 0x13
PWM_E_ALREADY_INITIALIZED 20 0x14
PWM_E_PARAM_POINTER 21 0x15
PWM_E_NOT_DISENGAGED 22 0x16 -
PWM_E_POWER_STATE_NOT_SUPPORTED 23 0x17 -
PWM_E_TRANSITION_NOT POSSIBLE 24 0x18 -
PWM_E_PERIPHERAL_NOT_PREPARED 25 0x19 -
<MA>_E_NET_START_IND 1 0x01 -
<MA>_E_SPURIOUS_INT 1 0x01 -

API仕様

Pwm_Init

void Pwm_Init(const Pwm_ConfigType* ConfigPtr)

Pwm_DeInit

void Pwm_DeInit(void)

Pwm_SetDutyCycle

void Pwm_SetDutyCycle(Pwm_ChannelType ChannelNumber, uint16 DutyCycle)

Pwm_SetPeriodAndDuty

void Pwm_SetPeriodAndDuty(Pwm_ChannelType ChannelNumber, Pwm_PeriodType Period, uint16 DutyCycle)

Pwm_SetOutputToIdle

void Pwm_SetOutputToIdle(Pwm_ChannelType ChannelNumber)

Pwm_GetOutputState

Pwm_OutputStateType Pwm_GetOutputState(Pwm_ChannelType ChannelNumber)

Pwm_DisableNotification

void Pwm_DisableNotification(Pwm_ChannelType ChannelNumber)

Pwm_EnableNotification

void Pwm_EnableNotification(Pwm_ChannelType ChannelNumber, Pwm_EdgeNotificationType Notification)

Pwm_SetPowerState

Std_ReturnType Pwm_SetPowerState(Pwm_PowerStateRequestResultType* Result)

Pwm_GetCurrentPowerState

Std_ReturnType Pwm_GetCurrentPowerState(Pwm_PowerStateType* CurrentPowerState, Pwm_PowerStateRequestResultType* Result)

Pwm_GetTargetPowerState

Std_ReturnType Pwm_GetTargetPowerState(Pwm_PowerStateType* TargetPowerState, Pwm_PowerStateRequestResultType* Result)

Pwm_PreparePowerState

Std_ReturnType Pwm_PreparePowerState(Pwm_PowerStateType PowerState, Pwm_PowerStateRequestResultType* Result)

Pwm_GetVersionInfo

void Pwm_GetVersionInfo(Std_VersionInfoType* versioninfo)

Pwm_Main_PowerTransitionManager

void Pwm_Main_PowerTransitionManager(void)

Pwm_Notification_<#Channel>

void Pwm_Notification_<#Channel>(void)

IoHwAb_Pwm_NotifyReadyForPowerState<#Mode>

void IoHwAb_Pwm_NotifyReadyForPowerState<#Mode>(void)

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

PwmChannelConfigSet

/AUTOSAR/EcucDefs/Pwm/PwmChannelConfigSet
  • 型:Container
  • 多重度:1

PwmChannel

/AUTOSAR/EcucDefs/Pwm/PwmChannelConfigSet/PwmChannel
  • 型:Container
  • 多重度:1..*

PwmChannelClass

/AUTOSAR/EcucDefs/Pwm/PwmChannelConfigSet/PwmChannel/PwmChannelClass
  • 型:EnumerationParam
  • 多重度:0..1
  • 選択肢:
    • PWM_FIXED_PERIOD
    • PWM_FIXED_PERIOD_SHIFTED
    • PWM_VARIABLE_PERIOD

PwmChannelId

/AUTOSAR/EcucDefs/Pwm/PwmChannelConfigSet/PwmChannel/PwmChannelId
  • 型:IntegerParam
  • 多重度:1
  • 上限値:4294967295
  • 下限値:0

PwmDutycycleDefault

/AUTOSAR/EcucDefs/Pwm/PwmChannelConfigSet/PwmChannel/PwmDutycycleDefault
  • 型:IntegerParam
  • 多重度:1
  • 上限値:32768
  • 下限値:0

PwmIdleState

/AUTOSAR/EcucDefs/Pwm/PwmChannelConfigSet/PwmChannel/PwmIdleState
  • 型:EnumerationParam
  • 多重度:1
  • 選択肢:
    • PWM_HIGH
    • PWM_LOW

PwmNotification

/AUTOSAR/EcucDefs/Pwm/PwmChannelConfigSet/PwmChannel/PwmNotification
  • 型:FunctionName
  • 多重度:0..1

PwmPeriodDefault

/AUTOSAR/EcucDefs/Pwm/PwmChannelConfigSet/PwmChannel/PwmPeriodDefault
  • 型:FloatParam
  • 多重度:1
  • 上限値:Inf
  • 下限値:0

PwmPolarity

/AUTOSAR/EcucDefs/Pwm/PwmChannelConfigSet/PwmChannel/PwmPolarity
  • 型:EnumerationParam
  • 多重度:1
  • 選択肢:
    • PWM_HIGH
    • PWM_LOW

PwmMcuClockReferencePoint

/AUTOSAR/EcucDefs/Pwm/PwmChannelConfigSet/PwmChannel/PwmMcuClockReferencePoint
  • 型:Reference
  • 多重度:1
  • 参照先:/AUTOSAR/EcucDefs/Mcu/McuModuleConfiguration/McuClockSettingConfig/McuClockReferencePoint

PwmConfigurationOfOptApiServices

/AUTOSAR/EcucDefs/Pwm/PwmConfigurationOfOptApiServices
  • 型:Container
  • 多重度:1

PwmDeInitApi

/AUTOSAR/EcucDefs/Pwm/PwmConfigurationOfOptApiServices/PwmDeInitApi
  • 型:BooleanParam
  • 多重度:1

PwmGetOutputState

/AUTOSAR/EcucDefs/Pwm/PwmConfigurationOfOptApiServices/PwmGetOutputState
  • 型:BooleanParam
  • 多重度:1

PwmSetDutyCycle

/AUTOSAR/EcucDefs/Pwm/PwmConfigurationOfOptApiServices/PwmSetDutyCycle
  • 型:BooleanParam
  • 多重度:1

PwmSetOutputToIdle

/AUTOSAR/EcucDefs/Pwm/PwmConfigurationOfOptApiServices/PwmSetOutputToIdle
  • 型:BooleanParam
  • 多重度:1

PwmSetPeriodAndDuty

/AUTOSAR/EcucDefs/Pwm/PwmConfigurationOfOptApiServices/PwmSetPeriodAndDuty
  • 型:BooleanParam
  • 多重度:1

PwmVersionInfoApi

/AUTOSAR/EcucDefs/Pwm/PwmConfigurationOfOptApiServices/PwmVersionInfoApi
  • 型:BooleanParam
  • 多重度:1

PwmGeneral

/AUTOSAR/EcucDefs/Pwm/PwmGeneral
  • 型:Container
  • 多重度:1

PwmDevErorDetect

/AUTOSAR/EcucDefs/Pwm/PwmGeneral/PwmDevErorDetect
  • 型:BooleanParam
  • 多重度:1

PwmDevErrorDetect

/AUTOSAR/EcucDefs/Pwm/PwmGeneral/PwmDevErrorDetect
  • 型:BooleanParam
  • 多重度:1

PwmDutycycleUpdatedEndperiod

/AUTOSAR/EcucDefs/Pwm/PwmGeneral/PwmDutycycleUpdatedEndperiod
  • 型:BooleanParam
  • 多重度:1

PwmIndex

/AUTOSAR/EcucDefs/Pwm/PwmGeneral/PwmIndex
  • 型:IntegerParam
  • 多重度:1
  • 上限値:4294967295
  • 下限値:0

PwmLowPowerStatesSupport

/AUTOSAR/EcucDefs/Pwm/PwmGeneral/PwmLowPowerStatesSupport
  • 型:BooleanParam
  • 多重度:0..1
  • デフォルト値:false

PwmNotificationSupported

/AUTOSAR/EcucDefs/Pwm/PwmGeneral/PwmNotificationSupported
  • 型:BooleanParam
  • 多重度:1

PwmPeriodUpdatedEndperiod

/AUTOSAR/EcucDefs/Pwm/PwmGeneral/PwmPeriodUpdatedEndperiod
  • 型:BooleanParam
  • 多重度:1

PwmPowerStateAsynchTransitionMode

/AUTOSAR/EcucDefs/Pwm/PwmGeneral/PwmPowerStateAsynchTransitionMode
  • 型:BooleanParam
  • 多重度:0..1
  • デフォルト値:false

PwmPowerStateConfig

/AUTOSAR/EcucDefs/Pwm/PwmGeneral/PwmPowerStateConfig
  • 型:Container
  • 多重度:0..*

PwmPowerState

/AUTOSAR/EcucDefs/Pwm/PwmGeneral/PwmPowerStateConfig/PwmPowerState
  • 型:IntegerParam
  • 多重度:1
  • 上限値:18446744073709551615
  • 下限値:0

PwmPowerStateReadyCbkRef

/AUTOSAR/EcucDefs/Pwm/PwmGeneral/PwmPowerStateConfig/PwmPowerStateReadyCbkRef
  • 型:FunctionName
  • 多重度:1
Last modified 14 months ago Last modified on Oct 8, 2020, 10:56:57 AM
Note: See TracWiki for help on using the wiki.