wiki:spec_ADCDriver
ADC Driver


概要

  • API一覧
API ID
[Dec]
ID
[Hex]
Adc_Init 0 0x00
Adc_SetupResultBuffer 12 0x0C
Adc_DeInit 1 0x01
Adc_StartGroupConversion 2 0x02
Adc_StopGroupConversion 3 0x03
Adc_ReadGroup 4 0x04
Adc_EnableHardwareTrigger 5 0x05
Adc_DisableHardwareTrigger 6 0x06
Adc_EnableGroupNotification 7 0x07
Adc_DisableGroupNotification 8 0x08
Adc_GetGroupStatus 9 0x09
Adc_GetStreamLastPointer 11 0x0B
Adc_GetVersionInfo 10 0x0A
  • エラーコード一覧
エラーコード Dec Hex
ADC_E_UNINIT 10 0x0A
ADC_E_BUSY 11 0x0B
ADC_E_IDLE 12 0x0C
ADC_E_ALREADY_INITIALIZED 13 0x0D
ADC_E_PARAM_CONFIG 14 0x0E
ADC_E_PARAM_POINTER 20 0x14
ADC_E_PARAM_GROUP 21 0x15
ADC_E_WRONG_CONV_MODE 22 0x16
ADC_E_WRONG_TRIGG_SRC 23 0x17
ADC_E_NOTIF_CAPABILITY 24 0x18
ADC_E_BUFFER_UNINIT 25 0x19

API仕様

Adc_Init

void Adc_Init(const Adc_ConfigType* ConfigPtr)

Adc_SetupResultBuffer

Std_ReturnType Adc_SetupResultBuffer(Adc_GroupType Group, Adc_ValueGroupType* DataBufferPtr  )

Adc_DeInit

void Adc_DeInit(void)

Adc_StartGroupConversion

void Adc_StartGroupConversion(Adc_GroupType Group)

Adc_StopGroupConversion

void Adc_StopGroupConversion(Adc_GroupType Group)

Adc_ReadGroup

Std_ReturnType Adc_ReadGroup(Adc_GroupType Group, Adc_ValueGroupType* DataBufferPtr)

Adc_EnableHardwareTrigger

void Adc_EnableHardwareTrigger(Adc_GroupType Group)

Adc_DisableHardwareTrigger

void Adc_DisableHardwareTrigger(Adc_GroupType Group)

Adc_EnableGroupNotification

void Adc_EnableGroupNotification(Adc_GroupType Group)

Adc_DisableGroupNotification

void Adc_DisableGroupNotification(Adc_GroupType Group)

Adc_GetGroupStatus

Adc_StatusType Adc_GetGroupStatus(Adc_GroupType Group)

Adc_GetStreamLastPointer

Adc_StreamNumSampleType Adc_GetStreamLastPointer(Adc_GroupType Group, Adc_ValueGroupType** PtrToSamplePtr)

Adc_GetVersionInfo

void Adc_GetVersionInfo(Std_VersionInfoType* versioninfo)

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

AdcConfigSet

/AUTOSAR/EcucDefs/Adc/AdcConfigSet
  • 型:Container
  • 多重度:1

AdcHwUnit

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit
  • 型:Container
  • 多重度:1..*

AdcClockSource

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcClockSource
  • 型:EnumerationParam
  • 多重度:0..1

AdcHwUnitId

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcHwUnitId
  • 型:EnumerationParam
  • 多重度:1

AdcPrescale

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcPrescale
  • 型:IntegerParam
  • 多重度:0..1

AdcChannel

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcChannel
  • 型:Container
  • 多重度:1..*

AdcChannelConvTime

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcChannel/AdcChannelConvTime
  • 型:IntegerParam
  • 多重度:0..1

AdcChannelHighLimit

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcChannel/AdcChannelHighLimit
  • 型:IntegerParam
  • 多重度:0..1

AdcChannelId

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcChannel/AdcChannelId
  • 型:IntegerParam
  • 多重度:1

AdcChannelLimitCheck

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcChannel/AdcChannelLimitCheck
  • 型:BooleanParam
  • 多重度:0..1

AdcChannelLowLimit

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcChannel/AdcChannelLowLimit
  • 型:IntegerParam
  • 多重度:0..1

AdcChannelRangeSelect

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcChannel/AdcChannelRangeSelect
  • 型:EnumerationParam
  • 多重度:0..1

AdcChannelRefVoltsrcHigh

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcChannel/AdcChannelRefVoltsrcHigh
  • 型:EnumerationParam
  • 多重度:0..1

AdcChannelRefVoltsrcLow

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcChannel/AdcChannelRefVoltsrcLow
  • 型:EnumerationParam
  • 多重度:0..1

AdcChannelResolution

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcChannel/AdcChannelResolution
  • 型:IntegerParam
  • 多重度:0..1

AdcChannelSampTime

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcChannel/AdcChannelSampTime
  • 型:IntegerParam
  • 多重度:0..1

AdcGroup

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcGroup
  • 型:Container
  • 多重度:1..*

AdcGroupAccessMode

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcGroup/AdcGroupAccessMode
  • 型:EnumerationParam
  • 多重度:1

AdcGroupConversionMode

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcGroup/AdcGroupConversionMode
  • 型:EnumerationParam
  • 多重度:1

AdcGroupId

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcGroup/AdcGroupId
  • 型:IntegerParam
  • 多重度:1

AdcGroupPriority

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcGroup/AdcGroupPriority
  • 型:IntegerParam
  • 多重度:0..1

AdcGroupReplacement

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcGroup/AdcGroupReplacement
  • 型:EnumerationParam
  • 多重度:0..1

AdcGroupTriggSrc

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcGroup/AdcGroupTriggSrc
  • 型:EnumerationParam
  • 多重度:1

AdcHwTrigSignal

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcGroup/AdcHwTrigSignal
  • 型:EnumerationParam
  • 多重度:0..1

AdcHwTrigTimer

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcGroup/AdcHwTrigTimer
  • 型:IntegerParam
  • 多重度:0..1

AdcNotification

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcGroup/AdcNotification
  • 型:FunctionName
  • 多重度:0..1

AdcStreamingBufferMode

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcGroup/AdcStreamingBufferMode
  • 型:EnumerationParam
  • 多重度:1

AdcStreamingNumSamples

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcGroup/AdcStreamingNumSamples
  • 型:IntegerParam
  • 多重度:1

AdcGroupDefinition

/AUTOSAR/EcucDefs/Adc/AdcConfigSet/AdcHwUnit/AdcGroup/AdcGroupDefinition
  • 型:Reference
  • 多重度:1..*

AdcGeneral

/AUTOSAR/EcucDefs/Adc/AdcGeneral
  • 型:Container
  • 多重度:1

AdcDeInitApi

/AUTOSAR/EcucDefs/Adc/AdcGeneral/AdcDeInitApi
  • 型:BooleanParam
  • 多重度:1

AdcDevErrorDetect

/AUTOSAR/EcucDefs/Adc/AdcGeneral/AdcDevErrorDetect
  • 型:BooleanParam
  • 多重度:1

AdcEnableLimitCheck

/AUTOSAR/EcucDefs/Adc/AdcGeneral/AdcEnableLimitCheck
  • 型:BooleanParam
  • 多重度:1

AdcEnableQueuing

/AUTOSAR/EcucDefs/Adc/AdcGeneral/AdcEnableQueuing
  • 型:BooleanParam
  • 多重度:1

AdcEnableStartStopGroupApi

/AUTOSAR/EcucDefs/Adc/AdcGeneral/AdcEnableStartStopGroupApi
  • 型:BooleanParam
  • 多重度:1

AdcGrpNotifCapability

/AUTOSAR/EcucDefs/Adc/AdcGeneral/AdcGrpNotifCapability
  • 型:BooleanParam
  • 多重度:1

AdcHwTriggerApi

/AUTOSAR/EcucDefs/Adc/AdcGeneral/AdcHwTriggerApi
  • 型:BooleanParam
  • 多重度:1

AdcPriorityImplementation

/AUTOSAR/EcucDefs/Adc/AdcGeneral/AdcPriorityImplementation
  • 型:EnumerationParam
  • 多重度:1

AdcReadGroupApi

/AUTOSAR/EcucDefs/Adc/AdcGeneral/AdcReadGroupApi
  • 型:BooleanParam
  • 多重度:1

AdcResultAlignment

/AUTOSAR/EcucDefs/Adc/AdcGeneral/AdcResultAlignment
  • 型:EnumerationParam
  • 多重度:1

AdcVersionInfoApi

/AUTOSAR/EcucDefs/Adc/AdcGeneral/AdcVersionInfoApi
  • 型:BooleanParam
  • 多重度:1

AdcPublishedInformation

/AUTOSAR/EcucDefs/Adc/AdcPublishedInformation
  • 型:Container
  • 多重度:1

AdcChannelValueSigned

/AUTOSAR/EcucDefs/Adc/AdcPublishedInformation/AdcChannelValueSigned
  • 型:BooleanParam
  • 多重度:1

AdcGroupFirstChannelFixed

/AUTOSAR/EcucDefs/Adc/AdcPublishedInformation/AdcGroupFirstChannelFixed
  • 型:BooleanParam
  • 多重度:1

AdcMaxChannelResolution

/AUTOSAR/EcucDefs/Adc/AdcPublishedInformation/AdcMaxChannelResolution
  • 型:IntegerParam
  • 多重度:1
Last modified 2 years ago Last modified on 09/01/15 17:10:57