Post Page Advertisement [Top]


ADC Driver configuration: Many configuration items are available as per AUTOSAR spec to configure the ADC driver. These items are grouped together as containers. Important containers and their configuration items are listed below.
  • Adcgeneral
  • Adcconfigset
  • AdcHWunit
  • Adcchannel
  • Adcgroup
Adcgeneral: This container contains the general configuration of the ADC Driver

  • AdcDevErrorDetect:  Switches the Development Error Detection and Notification ON or OFF. Possible values TRUE or FALSE
  • AdcDeinitApi: Enable/disable Adc_DeInit() API. Possible values TRUE or FALSE
  • AdcEnableLimitCheck:  Enable / disable the Limit checking feature from the driver.
  • AdcEnableQueuing: Determines, the queuing mechanism is enabled or disabled. This parameter is editable only if AdcNonAutosarDmaResultHandling is set to false and AdcPriorityImplementation is set to ADC_PRIORITY_NONE
  • AdcEnableStartStopGroupApi: Enable disable Adc_StartGroupConversion() and Adc_StopGroupConversion() APIs
  • AdcHwTriggerApi: Adds / removes the service Adc_EnableHardwareTrigger() and Adc_DisableHardwareTrigger() from the code
  • AdcPriorityImplementation: Determines the type of prioritization mechanism. The hardware prioritization mechanism (ADC_PRIORITY_HW) uses the ADC hardware features for prioritization of the ADC Groups with Software and Hardware conversion requests. The mixed hardware and software prioritization mechanism (ADC_PRIORITY_HW_SW) uses the ADC hardware features for prioritization of ADC Groups with trigger source hardware and a software-implemented prioritization mechanism for ADC Groups with trigger source software.
  • AdcReadGroupApi: Adds / removes the service Adc_ReadGroup() from the code.
  • AdcUseEmux:  Adds / removes the EMUX configuration settings from the code. With the help of External multiplexers, the number of analog channels can be increased.
  • AdcNonAutosarDmaResultHandling: Switches the ADC Group result handing between AUTOSAR specific and Non AUTOSAR specific
  • AdcResultAccumulation: ADC_RES_ACCUMULATION_NONE: No accumulation of the result. The result register will have only one conversion value. ADC_RES_ACCUMULATION_TWO: Accumulation of the results up to two conversions. ADC_RES_ACCUMULATION_THREE: Accumulation of the results up to three conversions. ADC_RES_ACCUMULATION_FOUR: Accumulation of the results up to four conversions.
AdcConfigSet:
  • This container contains the Driver configuration (parameters) depending on the grouping of channels This container could contain HW specific parameters which are not defined in the Standardized Module Definition. They must be added in the Vendor-Specific Module Definition.
AdcHWUnit:
  • AdcPostCal: Enable/Disable Post calibration 
AdcChannel:
  • AdcChannelConvTime: Configuration of conversion time, including sample time for each channel, if supported by hardware
  • AdcChannelHighLimit: High Limit value used for limit checking
  • AdcChannelId: numeric id of the channel
  • AdcChannelLowLimit: Low Limit value used for limit checking.
  • AdcChannelRangeSelect: This parameter defines which conversion values are taken into account related to the boarders defined with AdcChannelLowLimit and AdcChannelHighLimit.(ADC_RANGE_ALWAYS,ADC_RANGE_BETWEEN,ADC_RANGE_NOT_BETWEEN,ADC_RANGE_OVER_HIGH,ADC_RANGE_UNDER_LOW.ADC_RANGE_NOT_OVER_HIGH,ADC_RANGE_NOT_UNDER_LOW)
To be continued...

No comments:

Post a Comment

Bottom Ad [Post Page]