MCUSW
Loading...
Searching...
No Matches

Introduction

This files defines ADC MCAL configuration structures

This files defines ADC MCAL configuration structures

Data Structures

struct  Adc_ChannelConfigType
 Structure containing parameters for ADC MCAL channel configuration. In term of ADC hardware, this represents the step configuration. There are ADC_NUM_CHANNEL steps in the ADC hardware and each step could be mapped to an actual hardware input channel. More...
 
struct  Adc_GroupConfigType
 ADC Group configuration structure. More...
 
struct  Adc_HwUnitConfigType
 ADC Hardware unit configuration structure. More...
 
struct  Adc_ConfigType
 ADC config structure. More...
 
struct  Adc_RegisterReadbackType
 ADC register readback structure. More...
 

Variables

uint32 Adc_ChannelConfigType::hwChannelId
 
uint32 Adc_ChannelConfigType::openDelay
 
uint32 Adc_ChannelConfigType::sampleDelay
 
uint32 Adc_ChannelConfigType::rangeCheckEnable
 
Adc_AveragingMode Adc_ChannelConfigType::averagingMode
 
Adc_GroupType Adc_GroupConfigType::groupId
 
Adc_GroupPriorityType Adc_GroupConfigType::groupPriority
 
Adc_HWUnitType Adc_GroupConfigType::hwUnitId
 
Adc_GroupEndNotifyType Adc_GroupConfigType::Adc_GroupEndNotification
 
Adc_StreamNumSampleType Adc_GroupConfigType::streamNumSamples
 
Adc_ResolutionType Adc_GroupConfigType::resolution
 
Adc_GroupConvModeType Adc_GroupConfigType::convMode
 
Adc_TriggerSourceType Adc_GroupConfigType::triggSrc
 
Adc_GroupAccessModeType Adc_GroupConfigType::accessMode
 
Adc_StreamBufferModeType Adc_GroupConfigType::streamBufMode
 
Adc_HwTriggerSignalType Adc_GroupConfigType::hwTrigSignal
 
Adc_HwTriggerTimerType Adc_GroupConfigType::hwTrigTimer
 
Adc_GroupReplacementType Adc_GroupConfigType::groupReplacement
 
uint32 Adc_GroupConfigType::highRange
 
uint32 Adc_GroupConfigType::lowRange
 
uint32 Adc_GroupConfigType::numChannels
 
Adc_ChannelConfigType Adc_GroupConfigType::channelConfig [ADC_NUM_CHANNEL]
 
Adc_HWUnitType Adc_HwUnitConfigType::hwUnitId
 
uint32 Adc_HwUnitConfigType::baseAddr
 
uint8 Adc_ConfigType::maxGroup
 
uint8 Adc_ConfigType::maxHwUnit
 
Adc_GroupConfigType Adc_ConfigType::groupCfg [ADC_MAX_GROUP]
 
Adc_HwUnitConfigType Adc_ConfigType::hwUnitCfg [ADC_MAX_HW_UNIT]
 
uint32 Adc_RegisterReadbackType::adcRev
 
uint32 Adc_RegisterReadbackType::adcCtrl
 
uint32 Adc_RegisterReadbackType::adcMisc
 

Macros

#define ADC_VARIANT_POST_BUILD   (STD_ON)
 ADC Build Variant. Build variants.(i.e Pre Compile,Post Build)
 
#define ADC_VARIANT_POST_BUILD   (STD_ON)
 ADC Build Variant. Build variants.(i.e Pre Compile,Post Build)
 

ADC Service Ids

The Service Id is one of the argument to Det_ReportError function and is used to identify the source of the error

enum  Adc_StatusType { ADC_IDLE , ADC_BUSY , ADC_COMPLETED , ADC_STREAM_COMPLETED }
 Current status of the conversion of the requested ADC Channel group. More...
 
enum  Adc_TriggerSourceType { ADC_TRIGG_SRC_SW , ADC_TRIGG_SRC_HW }
 Type for configuring the trigger source for an ADC Channel group. More...
 
enum  Adc_GroupConvModeType { ADC_CONV_MODE_ONESHOT , ADC_CONV_MODE_CONTINUOUS }
 Type for configuring the conversion mode of an ADC Channel group. More...
 
enum  Adc_StreamBufferModeType { ADC_STREAM_BUFFER_LINEAR , ADC_STREAM_BUFFER_CIRCULAR }
 Type for configuring the streaming access mode buffer type. More...
 
enum  Adc_GroupAccessModeType { ADC_ACCESS_MODE_SINGLE , ADC_ACCESS_MODE_STREAMING }
 Type for configuring the access mode to group conversion results. More...
 
enum  Adc_HwTriggerSignalType { ADC_HW_TRIG_RISING_EDGE , ADC_HW_TRIG_FALLING_EDGE , ADC_HW_TRIG_BOTH_EDGES }
 Type for configuring on which edge of the hardware trigger signal the driver should react, i.e. start the conversion. More...
 
enum  Adc_PriorityImplementationType { ADC_PRIORITY_NONE , ADC_PRIORITY_HW , ADC_PRIORITY_HW_SW }
 Type for configuring the prioritization mechanism. More...
 
enum  Adc_GroupReplacementType { ADC_GROUP_REPL_ABORT_RESTART , ADC_GROUP_REPL_SUSPEND_RESUME }
 Replacement mechanism, which is used on ADC group level, if a group conversion is interrupted by a group which has a higher priority. More...
 
enum  Adc_ChannelRangeSelectType {
  ADC_RANGE_UNDER_LOW , ADC_RANGE_BETWEEN , ADC_RANGE_OVER_HIGH , ADC_RANGE_ALWAYS ,
  ADC_RANGE_NOT_UNDER_LOW , ADC_RANGE_NOT_BETWEEN , ADC_RANGE_NOT_OVER_HIGH
}
 In case of active limit checking: defines which conversion values are taken into account related to the boardes defined with AdcChannelLowLimit and AdcChannelHighLimit. More...
 
enum  Adc_ResultAlignmentType { ADC_ALIGN_LEFT , ADC_ALIGN_RIGHT }
 Type for alignment of ADC raw results in ADC result buffer (left/right alignment). More...
 
enum  Adc_PowerStateType { ADC_FULL_POWER , ADC_ZERO_POWER }
 Power state currently active or set as target power state. More...
 
enum  Adc_PowerStateRequestResultType {
  ADC_SERVICE_ACCEPTED , ADC_NOT_INIT , ADC_SEQUENCE_ERROR , ADC_HW_FAILURE ,
  ADC_POWER_STATE_NOT_SUPP , ADC_TRANS_NOT_POSSIBLE
}
 Result of the requests related to power state transitions. More...
 
enum  Adc_AveragingMode {
  ADC_AVERAGING_MODE_NONE , ADC_AVERAGING_MODE_2_SAMPLES , ADC_AVERAGING_MODE_4_SAMPLES , ADC_AVERAGING_MODE_8_SAMPLES ,
  ADC_AVERAGING_MODE_16_SAMPLES
}
 Enum to number of samplings to average. ADC allows user to program the number of samplings to average. More...
 
typedef void(* Adc_GroupEndNotifyType) (void)
 Typedef for group end notification function pointer.
 
void Adc_Init (const Adc_ConfigType *CfgPtr)
 Service for ADC initialization.
 
void Adc_DeInit (void)
 This service sets all ADC HW Units to a state comparable to their power on reset state.
 
Std_ReturnType Adc_SetupResultBuffer (Adc_GroupType Group, const Adc_ValueGroupType *DataBufferPtr)
 This service initializes ADC driver with the group specific result buffer start address where the conversion results will be stored.
 
Adc_StatusType Adc_GetGroupStatus (Adc_GroupType Group)
 Returns the conversion status of the requested ADC Channel group.
 
Adc_StreamNumSampleType Adc_GetStreamLastPointer (Adc_GroupType Group, Adc_ValueGroupType **PtrToSamplePtr)
 Returns the number of valid samples per channel, stored in the result buffer.
 
void Adc_StartGroupConversion (Adc_GroupType Group)
 Starts the conversion of all channels of the requested ADC Channel group.
 
void Adc_StopGroupConversion (Adc_GroupType Group)
 Stops the conversion of the requested ADC Channel group.
 
Std_ReturnType Adc_ReadGroup (Adc_GroupType Group, Adc_ValueGroupType *DataBufferPtr)
 Reads the group conversion result of the last completed conversion round of the requested group and stores the channel values starting at the DataBufferPtr address.
 
void Adc_EnableGroupNotification (Adc_GroupType Group)
 Enables the notification mechanism for the requested ADC Channel group.
 
void Adc_DisableGroupNotification (Adc_GroupType Group)
 Disables the notification mechanism for the requested ADC Channel group.
 
void Adc_GetVersionInfo (Std_VersionInfoType *versioninfo)
 This service returns the version information of this module.
 
Std_ReturnType Adc_RegisterReadback (Adc_HWUnitType HWUnit, Adc_RegisterReadbackType *RegRbPtr)
 This function reads the important registers of the hardware unit and returns the value in the structure.
 
Std_ReturnType Adc_EnableInternalDiagnostic (Adc_GroupType Group, Adc_RefSelType RefSelect)
 This function enables the Functional Internal Diagnostic Debug mode and selects a known voltage source(REFP or VMID) that connects to the AFE.
 
Std_ReturnType Adc_DisableInternalDiagnostic (Adc_GroupType Group)
 This function disables the Functional Internal Diagnostic Debug mode.
 

ADC HW unit Info

const struct Adc_ConfigType_s AdcConfigSet
 ADC Configuration struct declaration.
 
void Adc_IrqUnit0 (void)
 
void Adc_IrqUnit1 (void)
 
#define ADC_UNIT_1   ((Adc_HWUnitType) 1U)
 ADC2 instance.
 

ADC HW unit Info

const struct Adc_ConfigType_s AdcConfigSet
 ADC Configuration struct declaration.
 
 ISR (Adc_IrqUnit0)
 
#define ADC_UNIT_0   ((Adc_HWUnitType) 0U)
 ADC1 instance.
 
#define ADC_HW_UNIT_CNT   (2U)
 Total HW units - used for array allocation. This should be +1 of the max unit number.
 
#define ADC_UNIT_0   ((Adc_HWUnitType) 0U)
 ADC1 instance.
 
#define ADC_HW_UNIT_CNT   (1U)
 Total HW units - used for array allocation. This should be +1 of the max unit number.
 

ADC Driver ISR category level

Definitions for ADC Driver ISR ISR category level.

#define ADC_ISR_VOID   (0x00U)
 void ISR type
 
#define ADC_ISR_CAT1   (0x01U)
 Category 1 ISR type.
 
#define ADC_ISR_CAT2   (0x02U)
 Category 2 ISR type.
 
#define ADC_DEV_ERROR_DETECT   (STD_ON)
 Pre Compile config macro name.
 
#define ADC_GROUP_LOG   (STD_OFF)
 Enable/disable ADC group log.
 
#define ADC_MAX_GROUP_LOG   (100U)
 Maximum group log entries when logging is ON.
 
#define ADC_FIFO_ERR_LOG   (STD_OFF)
 Enable/disable ADC FIFO error log.
 
#define ADC_MAX_FIFO_ERR_LOG   (100U)
 Maximum FIFO error log entries when logging is ON.
 
#define ADC_VERSION_INFO_API   (STD_ON)
 Enable/disable ADC get version info API.
 
#define ADC_READ_GROUP_API   (STD_ON)
 Read group API.
 
#define ADC_GRP_NOTIF_CAPABILITY_API   (STD_ON)
 Enable/disable ADC enable/disable group notify API.
 
#define ADC_ENABLE_START_STOP_GROUP_API   (STD_ON)
 Enable/disable ADC start/stop group notify API.
 
#define ADC_DEINIT_API   (STD_ON)
 Enable/disable ADC deinit API.
 
#define ADC_INTERNAL_DIAGNOSTIC_DEBUG_MODE_API   (STD_ON)
 Enable/disable Internal Diagnostic Debug Mode API.
 
#define ADC_PRIORITY_IMPLEMENTATION   (ADC_PRIORITY_HW_SW)
 Determines whether a priority mechanism is available for prioritization of the conversion requests and if available, the type of prioritization mechanism.
 
#define ADC_ENABLE_QUEUING   (STD_ON)
 Determines, if the queuing mechanism is active in case of priority mechanism disabled.
 
#define ADC_RESULT_ALIGNMENT   (ADC_ALIGN_RIGHT)
 Alignment of ADC raw results in ADC result buffer (left/right alignment)
 
#define ADC_MAX_GROUP   ((uint8)2U)
 Maximum group across all hwunit.
 
#define ADC_MAX_HW_UNIT   ((uint8)2U)
 Maximum HW unit - This should match the sum for the below units ISR which are ON.
 
#define ADC_INSTANCE_0
 
#define ADC_ISR_TYPE   (ADC_ISR_CAT1)
 ISR type.
 
#define ADC_OS_COUNTER_ID   ((CounterType)0U)
 Counter ID for counter used to count wait ticks.
 
#define ADC_TIMEOUT_DURATION   (15000U)
 ADC timeout - used in ADC AFE busy wait and FSM busy wait.
 
#define ADC_REGISTER_READBACK_API   (STD_ON)
 Enable/disable ADC register read back API.
 
#define ADC_ISR_VOID   (0x00U)
 void ISR type
 
#define ADC_ISR_CAT1   (0x01U)
 Category 1 ISR type.
 
#define ADC_ISR_CAT2   (0x02U)
 Category 2 ISR type.
 
#define ADC_DEV_ERROR_DETECT   (STD_ON)
 Pre Compile config macro name.
 
#define ADC_GROUP_LOG   (STD_OFF)
 Enable/disable ADC group log.
 
#define ADC_MAX_GROUP_LOG   (100U)
 Maximum group log entries when logging is ON.
 
#define ADC_FIFO_ERR_LOG   (STD_OFF)
 Enable/disable ADC FIFO error log.
 
#define ADC_MAX_FIFO_ERR_LOG   (100U)
 Maximum FIFO error log entries when logging is ON.
 
#define ADC_VERSION_INFO_API   (STD_ON)
 Enable/disable ADC get version info API.
 
#define ADC_READ_GROUP_API   (STD_ON)
 Read group API.
 
#define ADC_GRP_NOTIF_CAPABILITY_API   (STD_ON)
 Enable/disable ADC enable/disable group notify API.
 
#define ADC_ENABLE_START_STOP_GROUP_API   (STD_ON)
 Enable/disable ADC start/stop group notify API.
 
#define ADC_DEINIT_API   (STD_ON)
 Enable/disable ADC deinit API.
 
#define ADC_INTERNAL_DIAGNOSTIC_DEBUG_MODE_API   (STD_OFF)
 Enable/disable Internal Diagnostic Debug Mode API.
 
#define ADC_PRIORITY_IMPLEMENTATION   (ADC_PRIORITY_HW_SW)
 Determines whether a priority mechanism is available for prioritization of the conversion requests and if available, the type of prioritization mechanism.
 
#define ADC_ENABLE_QUEUING   (STD_ON)
 Determines, if the queuing mechanism is active in case of priority mechanism disabled.
 
#define ADC_RESULT_ALIGNMENT   (ADC_ALIGN_RIGHT)
 Alignment of ADC raw results in ADC result buffer (left/right alignment)
 
#define ADC_MAX_GROUP   ((uint8)1U)
 Maximum group across all hwunit.
 
#define ADC_MAX_HW_UNIT   ((uint8)1U)
 Maximum HW unit - This should match the sum for the below units ISR which are ON.
 
#define ADC_INSTANCE_0
 
#define ADC_ISR_TYPE   (ADC_ISR_CAT2)
 ISR type.
 
#define ADC_OS_COUNTER_ID   ((CounterType)0U)
 Counter ID for counter used to count wait ticks.
 
#define ADC_TIMEOUT_DURATION   (15000U)
 ADC timeout - used in ADC AFE busy wait and FSM busy wait.
 
#define ADC_REGISTER_READBACK_API   (STD_ON)
 Enable/disable ADC register read back API.
 

ADC Driver ISR category level

Definitions for ADC Driver ISR ISR category level.

#define ADC_INSTANCE_1
 
#define ADC_DIFFERENTIAL_INPUT_ENABLE   (STD_OFF)
 Enable/disable ADC differential input support.
 

Adc Group Id names

Defines for symbolic names for the AdcGroupId

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0   (0U)
 
#define ADC_GROUP_ID_0   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0
 
#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0   (0U)
 
#define ADC_GROUP_ID_0   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0
 

Adc Group Id names

Defines for symbolic names for the AdcGroupId

#define AdcConf_AdcHwUnit_AdcHwUnit_1_AdcGroup_AdcGroup_0   (1U)
 
#define ADC_GROUP_ID_1   AdcConf_AdcHwUnit_AdcHwUnit_1_AdcGroup_AdcGroup_0
 

Adc Hw Unit Id names

Defines for symbolic names for the AdcHwUnitId

#define AdcConf_AdcHwUnit_AdcHwUnit_0   (ADC_UNIT_0)
 
#define ADC_HW_UNIT_ID_0   AdcConf_AdcHwUnit_AdcHwUnit_0
 
#define AdcConf_AdcHwUnit_AdcHwUnit_0   (ADC_UNIT_0)
 
#define ADC_HW_UNIT_ID_0   AdcConf_AdcHwUnit_AdcHwUnit_0
 

Adc Hw Unit Id names

Defines for symbolic names for the AdcHwUnitId

#define AdcConf_AdcHwUnit_AdcHwUnit_1   (ADC_UNIT_1)
 
#define ADC_HW_UNIT_ID_1   AdcConf_AdcHwUnit_AdcHwUnit_1
 

Adc Group Channel Id names

Defines for symbolic names for the Adc Group Channel Id

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_0   (0U)
 Channel Ids for each group.
 
#define ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_0   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_0
 
#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_0   (0U)
 Channel Ids for each group.
 
#define ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_0   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_0
 
#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_1   (1U)
 
#define ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_1   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_1
 
#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_2   (2U)
 
#define ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_2   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_2
 
#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_3   (3U)
 
#define ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_3   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_3
 
#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_4   (4U)
 
#define ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_4   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_4
 
#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_5   (5U)
 
#define ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_5   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_5
 
#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_6   (6U)
 
#define ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_6   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_6
 
#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_7   (7U)
 
#define ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_7   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_7
 

Adc Group Channel Id names

Defines for symbolic names for the Adc Group Channel Id

#define AdcConf_AdcHwUnit_AdcHwUnit_1_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_0   (0U)
 
#define ADC_HW_UNIT_ID_ADCHWUNIT_1_GROUP_ID_CHANNEL_ID_ADCCHANNEL_0   AdcConf_AdcHwUnit_AdcHwUnit_1_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_0
 

Adc Channel Id names

Defines for symbolic names for the Adc Channel Id

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_0   (0U)
 Channel Ids for all channels.
 
#define ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_0   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_0
 
#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_0   (0U)
 Channel Ids for all channels.
 
#define ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_0   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_0
 
#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_1   (1U)
 
#define ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_1   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_1
 
#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_2   (2U)
 
#define ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_2   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_2
 
#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_3   (3U)
 
#define ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_3   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_3
 
#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_4   (4U)
 
#define ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_4   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_4
 
#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_5   (5U)
 
#define ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_5   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_5
 
#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_6   (6U)
 
#define ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_6   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_6
 
#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_7   (7U)
 
#define ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_7   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_7
 

Adc Channel Id names

Defines for symbolic names for the Adc Channel Id

#define AdcConf_AdcHwUnit_AdcHwUnit_1_AdcChannel_AdcChannel_0   (0U)
 
#define ADC_HW_UNIT_ID_ADCHWUNIT_1_CHANNEL_ID_ADCCHANNEL_0   AdcConf_AdcHwUnit_AdcHwUnit_1_AdcChannel_AdcChannel_0
 

ADC DEM Error codes to report

Pre-compile switches for enabling/disabling DEM events

#define ADC_E_HARDWARE_ERROR   (DemConf_DemEventParameter_ADC_E_HARDWARE_ERROR)
 Hardware failed.
 
#define ADC_E_HARDWARE_ERROR   (DemConf_DemEventParameter_ADC_E_HARDWARE_ERROR)
 Hardware failed.
 

Macro Definition Documentation

◆ ADC_VARIANT_POST_BUILD [1/2]

#define ADC_VARIANT_POST_BUILD   (STD_ON)

ADC Build Variant. Build variants.(i.e Pre Compile,Post Build)

◆ ADC_ISR_VOID [1/2]

#define ADC_ISR_VOID   (0x00U)

void ISR type

◆ ADC_ISR_CAT1 [1/2]

#define ADC_ISR_CAT1   (0x01U)

Category 1 ISR type.

◆ ADC_ISR_CAT2 [1/2]

#define ADC_ISR_CAT2   (0x02U)

Category 2 ISR type.

◆ ADC_DEV_ERROR_DETECT [1/2]

#define ADC_DEV_ERROR_DETECT   (STD_ON)

Pre Compile config macro name.

Enable/disable ADC dev detect error

◆ ADC_GROUP_LOG [1/2]

#define ADC_GROUP_LOG   (STD_OFF)

Enable/disable ADC group log.

◆ ADC_MAX_GROUP_LOG [1/2]

#define ADC_MAX_GROUP_LOG   (100U)

Maximum group log entries when logging is ON.

◆ ADC_FIFO_ERR_LOG [1/2]

#define ADC_FIFO_ERR_LOG   (STD_OFF)

Enable/disable ADC FIFO error log.

◆ ADC_MAX_FIFO_ERR_LOG [1/2]

#define ADC_MAX_FIFO_ERR_LOG   (100U)

Maximum FIFO error log entries when logging is ON.

◆ ADC_VERSION_INFO_API [1/2]

#define ADC_VERSION_INFO_API   (STD_ON)

Enable/disable ADC get version info API.

◆ ADC_READ_GROUP_API [1/2]

#define ADC_READ_GROUP_API   (STD_ON)

Read group API.

◆ ADC_GRP_NOTIF_CAPABILITY_API [1/2]

#define ADC_GRP_NOTIF_CAPABILITY_API   (STD_ON)

Enable/disable ADC enable/disable group notify API.

◆ ADC_ENABLE_START_STOP_GROUP_API [1/2]

#define ADC_ENABLE_START_STOP_GROUP_API   (STD_ON)

Enable/disable ADC start/stop group notify API.

◆ ADC_DEINIT_API [1/2]

#define ADC_DEINIT_API   (STD_ON)

Enable/disable ADC deinit API.

◆ ADC_INTERNAL_DIAGNOSTIC_DEBUG_MODE_API [1/2]

#define ADC_INTERNAL_DIAGNOSTIC_DEBUG_MODE_API   (STD_ON)

Enable/disable Internal Diagnostic Debug Mode API.

◆ ADC_PRIORITY_IMPLEMENTATION [1/2]

#define ADC_PRIORITY_IMPLEMENTATION   (ADC_PRIORITY_HW_SW)

Determines whether a priority mechanism is available for prioritization of the conversion requests and if available, the type of prioritization mechanism.

◆ ADC_ENABLE_QUEUING [1/2]

#define ADC_ENABLE_QUEUING   (STD_ON)

Determines, if the queuing mechanism is active in case of priority mechanism disabled.

◆ ADC_RESULT_ALIGNMENT [1/2]

#define ADC_RESULT_ALIGNMENT   (ADC_ALIGN_RIGHT)

Alignment of ADC raw results in ADC result buffer (left/right alignment)

◆ ADC_MAX_GROUP [1/2]

#define ADC_MAX_GROUP   ((uint8)2U)

Maximum group across all hwunit.

◆ ADC_MAX_HW_UNIT [1/2]

#define ADC_MAX_HW_UNIT   ((uint8)2U)

Maximum HW unit - This should match the sum for the below units ISR which are ON.

◆ ADC_INSTANCE_0 [1/2]

#define ADC_INSTANCE_0

< ADC UNIT 0 INSTANCE ADC UNIT 1 INSTANCE

< ADC UNIT 0 INSTANCE

◆ ADC_INSTANCE_1

#define ADC_INSTANCE_1

◆ ADC_ISR_TYPE [1/2]

#define ADC_ISR_TYPE   (ADC_ISR_CAT1)

ISR type.

◆ ADC_OS_COUNTER_ID [1/2]

#define ADC_OS_COUNTER_ID   ((CounterType)0U)

Counter ID for counter used to count wait ticks.

◆ ADC_TIMEOUT_DURATION [1/2]

#define ADC_TIMEOUT_DURATION   (15000U)

ADC timeout - used in ADC AFE busy wait and FSM busy wait.

◆ ADC_REGISTER_READBACK_API [1/2]

#define ADC_REGISTER_READBACK_API   (STD_ON)

Enable/disable ADC register read back API.

◆ ADC_DIFFERENTIAL_INPUT_ENABLE

#define ADC_DIFFERENTIAL_INPUT_ENABLE   (STD_OFF)

Enable/disable ADC differential input support.

◆ AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0 [1/2]

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0   (0U)

◆ ADC_GROUP_ID_0 [1/2]

◆ AdcConf_AdcHwUnit_AdcHwUnit_1_AdcGroup_AdcGroup_0

#define AdcConf_AdcHwUnit_AdcHwUnit_1_AdcGroup_AdcGroup_0   (1U)

◆ ADC_GROUP_ID_1

◆ AdcConf_AdcHwUnit_AdcHwUnit_0 [1/2]

#define AdcConf_AdcHwUnit_AdcHwUnit_0   (ADC_UNIT_0)

◆ ADC_HW_UNIT_ID_0 [1/2]

#define ADC_HW_UNIT_ID_0   AdcConf_AdcHwUnit_AdcHwUnit_0

◆ AdcConf_AdcHwUnit_AdcHwUnit_1

#define AdcConf_AdcHwUnit_AdcHwUnit_1   (ADC_UNIT_1)

◆ ADC_HW_UNIT_ID_1

#define ADC_HW_UNIT_ID_1   AdcConf_AdcHwUnit_AdcHwUnit_1

◆ AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_0 [1/2]

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_0   (0U)

Channel Ids for each group.

◆ ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_0 [1/2]

#define ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_0   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_0

◆ AdcConf_AdcHwUnit_AdcHwUnit_1_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_0

#define AdcConf_AdcHwUnit_AdcHwUnit_1_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_0   (0U)

◆ ADC_HW_UNIT_ID_ADCHWUNIT_1_GROUP_ID_CHANNEL_ID_ADCCHANNEL_0

#define ADC_HW_UNIT_ID_ADCHWUNIT_1_GROUP_ID_CHANNEL_ID_ADCCHANNEL_0   AdcConf_AdcHwUnit_AdcHwUnit_1_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_0

◆ AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_0 [1/2]

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_0   (0U)

Channel Ids for all channels.

◆ ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_0 [1/2]

#define ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_0   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_0

◆ AdcConf_AdcHwUnit_AdcHwUnit_1_AdcChannel_AdcChannel_0

#define AdcConf_AdcHwUnit_AdcHwUnit_1_AdcChannel_AdcChannel_0   (0U)

◆ ADC_HW_UNIT_ID_ADCHWUNIT_1_CHANNEL_ID_ADCCHANNEL_0

#define ADC_HW_UNIT_ID_ADCHWUNIT_1_CHANNEL_ID_ADCCHANNEL_0   AdcConf_AdcHwUnit_AdcHwUnit_1_AdcChannel_AdcChannel_0

◆ ADC_E_HARDWARE_ERROR [1/2]

#define ADC_E_HARDWARE_ERROR   (DemConf_DemEventParameter_ADC_E_HARDWARE_ERROR)

Hardware failed.

◆ ADC_UNIT_0 [1/2]

#define ADC_UNIT_0   ((Adc_HWUnitType) 0U)

ADC1 instance.

◆ ADC_UNIT_1

#define ADC_UNIT_1   ((Adc_HWUnitType) 1U)

ADC2 instance.

◆ ADC_HW_UNIT_CNT [1/2]

#define ADC_HW_UNIT_CNT   (2U)

Total HW units - used for array allocation. This should be +1 of the max unit number.

◆ ADC_VARIANT_POST_BUILD [2/2]

#define ADC_VARIANT_POST_BUILD   (STD_ON)

ADC Build Variant. Build variants.(i.e Pre Compile,Post Build)

◆ ADC_ISR_VOID [2/2]

#define ADC_ISR_VOID   (0x00U)

void ISR type

◆ ADC_ISR_CAT1 [2/2]

#define ADC_ISR_CAT1   (0x01U)

Category 1 ISR type.

◆ ADC_ISR_CAT2 [2/2]

#define ADC_ISR_CAT2   (0x02U)

Category 2 ISR type.

◆ ADC_DEV_ERROR_DETECT [2/2]

#define ADC_DEV_ERROR_DETECT   (STD_ON)

Pre Compile config macro name.

Enable/disable ADC dev detect error

◆ ADC_GROUP_LOG [2/2]

#define ADC_GROUP_LOG   (STD_OFF)

Enable/disable ADC group log.

◆ ADC_MAX_GROUP_LOG [2/2]

#define ADC_MAX_GROUP_LOG   (100U)

Maximum group log entries when logging is ON.

◆ ADC_FIFO_ERR_LOG [2/2]

#define ADC_FIFO_ERR_LOG   (STD_OFF)

Enable/disable ADC FIFO error log.

◆ ADC_MAX_FIFO_ERR_LOG [2/2]

#define ADC_MAX_FIFO_ERR_LOG   (100U)

Maximum FIFO error log entries when logging is ON.

◆ ADC_VERSION_INFO_API [2/2]

#define ADC_VERSION_INFO_API   (STD_ON)

Enable/disable ADC get version info API.

◆ ADC_READ_GROUP_API [2/2]

#define ADC_READ_GROUP_API   (STD_ON)

Read group API.

◆ ADC_GRP_NOTIF_CAPABILITY_API [2/2]

#define ADC_GRP_NOTIF_CAPABILITY_API   (STD_ON)

Enable/disable ADC enable/disable group notify API.

◆ ADC_ENABLE_START_STOP_GROUP_API [2/2]

#define ADC_ENABLE_START_STOP_GROUP_API   (STD_ON)

Enable/disable ADC start/stop group notify API.

◆ ADC_DEINIT_API [2/2]

#define ADC_DEINIT_API   (STD_ON)

Enable/disable ADC deinit API.

◆ ADC_INTERNAL_DIAGNOSTIC_DEBUG_MODE_API [2/2]

#define ADC_INTERNAL_DIAGNOSTIC_DEBUG_MODE_API   (STD_OFF)

Enable/disable Internal Diagnostic Debug Mode API.

◆ ADC_PRIORITY_IMPLEMENTATION [2/2]

#define ADC_PRIORITY_IMPLEMENTATION   (ADC_PRIORITY_HW_SW)

Determines whether a priority mechanism is available for prioritization of the conversion requests and if available, the type of prioritization mechanism.

◆ ADC_ENABLE_QUEUING [2/2]

#define ADC_ENABLE_QUEUING   (STD_ON)

Determines, if the queuing mechanism is active in case of priority mechanism disabled.

◆ ADC_RESULT_ALIGNMENT [2/2]

#define ADC_RESULT_ALIGNMENT   (ADC_ALIGN_RIGHT)

Alignment of ADC raw results in ADC result buffer (left/right alignment)

◆ ADC_MAX_GROUP [2/2]

#define ADC_MAX_GROUP   ((uint8)1U)

Maximum group across all hwunit.

◆ ADC_MAX_HW_UNIT [2/2]

#define ADC_MAX_HW_UNIT   ((uint8)1U)

Maximum HW unit - This should match the sum for the below units ISR which are ON.

◆ ADC_INSTANCE_0 [2/2]

#define ADC_INSTANCE_0

< ADC UNIT 0 INSTANCE

◆ ADC_ISR_TYPE [2/2]

#define ADC_ISR_TYPE   (ADC_ISR_CAT2)

ISR type.

◆ ADC_OS_COUNTER_ID [2/2]

#define ADC_OS_COUNTER_ID   ((CounterType)0U)

Counter ID for counter used to count wait ticks.

◆ ADC_TIMEOUT_DURATION [2/2]

#define ADC_TIMEOUT_DURATION   (15000U)

ADC timeout - used in ADC AFE busy wait and FSM busy wait.

◆ ADC_REGISTER_READBACK_API [2/2]

#define ADC_REGISTER_READBACK_API   (STD_ON)

Enable/disable ADC register read back API.

◆ AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0 [2/2]

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0   (0U)

◆ ADC_GROUP_ID_0 [2/2]

◆ AdcConf_AdcHwUnit_AdcHwUnit_0 [2/2]

#define AdcConf_AdcHwUnit_AdcHwUnit_0   (ADC_UNIT_0)

◆ ADC_HW_UNIT_ID_0 [2/2]

#define ADC_HW_UNIT_ID_0   AdcConf_AdcHwUnit_AdcHwUnit_0

◆ AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_0 [2/2]

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_0   (0U)

Channel Ids for each group.

◆ ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_0 [2/2]

#define ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_0   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_0

◆ AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_1

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_1   (1U)

◆ ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_1

#define ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_1   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_1

◆ AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_2

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_2   (2U)

◆ ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_2

#define ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_2   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_2

◆ AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_3

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_3   (3U)

◆ ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_3

#define ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_3   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_3

◆ AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_4

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_4   (4U)

◆ ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_4

#define ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_4   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_4

◆ AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_5

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_5   (5U)

◆ ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_5

#define ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_5   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_5

◆ AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_6

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_6   (6U)

◆ ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_6

#define ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_6   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_6

◆ AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_7

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_7   (7U)

◆ ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_7

#define ADC_HW_UNIT_ID_ADCHWUNIT_0_GROUP_ID_CHANNEL_ID_ADCCHANNEL_7   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_0_AdcChannel_AdcChannel_7

◆ AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_0 [2/2]

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_0   (0U)

Channel Ids for all channels.

◆ ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_0 [2/2]

#define ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_0   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_0

◆ AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_1

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_1   (1U)

◆ ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_1

#define ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_1   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_1

◆ AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_2

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_2   (2U)

◆ ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_2

#define ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_2   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_2

◆ AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_3

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_3   (3U)

◆ ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_3

#define ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_3   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_3

◆ AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_4

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_4   (4U)

◆ ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_4

#define ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_4   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_4

◆ AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_5

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_5   (5U)

◆ ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_5

#define ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_5   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_5

◆ AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_6

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_6   (6U)

◆ ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_6

#define ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_6   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_6

◆ AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_7

#define AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_7   (7U)

◆ ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_7

#define ADC_HW_UNIT_ID_ADCHWUNIT_0_CHANNEL_ID_ADCCHANNEL_7   AdcConf_AdcHwUnit_AdcHwUnit_0_AdcChannel_AdcChannel_7

◆ ADC_E_HARDWARE_ERROR [2/2]

#define ADC_E_HARDWARE_ERROR   (DemConf_DemEventParameter_ADC_E_HARDWARE_ERROR)

Hardware failed.

◆ ADC_UNIT_0 [2/2]

#define ADC_UNIT_0   ((Adc_HWUnitType) 0U)

ADC1 instance.

◆ ADC_HW_UNIT_CNT [2/2]

#define ADC_HW_UNIT_CNT   (1U)

Total HW units - used for array allocation. This should be +1 of the max unit number.

Typedef Documentation

◆ Adc_GroupEndNotifyType

typedef void(* Adc_GroupEndNotifyType) (void)

Typedef for group end notification function pointer.

Enumeration Type Documentation

◆ Adc_StatusType

Current status of the conversion of the requested ADC Channel group.

Enumerator
ADC_IDLE 

The conversion of the specified group has not been started. No result is available

ADC_BUSY 

The conversion of the specified group has been started and is still going on. So far no result is available

ADC_COMPLETED 

A conversion round (which is not the final one) of the specified group has been finished. A result is available for all channels of the group

ADC_STREAM_COMPLETED 

The result buffer is completely filled. For each channel of the selected group the number of samples to be acquired is available

◆ Adc_TriggerSourceType

Type for configuring the trigger source for an ADC Channel group.

Enumerator
ADC_TRIGG_SRC_SW 

Group is triggered by a software API call

ADC_TRIGG_SRC_HW 

Group is triggered by a hardware event Note: This feature is not supported in this driver

◆ Adc_GroupConvModeType

Type for configuring the conversion mode of an ADC Channel group.

Enumerator
ADC_CONV_MODE_ONESHOT 

Exactly one conversion of each channel in an ADC channel group is performed after the configured trigger event

ADC_CONV_MODE_CONTINUOUS 

Repeated conversions of each ADC channel in an ADC channel group are performed

◆ Adc_StreamBufferModeType

Type for configuring the streaming access mode buffer type.

Enumerator
ADC_STREAM_BUFFER_LINEAR 

The ADC Driver stops the conversion as soon as the stream buffer is full (number of samples reached)

ADC_STREAM_BUFFER_CIRCULAR 

The ADC Driver continues the conversion even if the stream buffer is full (number of samples reached) by wrapping around the stream buffer itself

◆ Adc_GroupAccessModeType

Type for configuring the access mode to group conversion results.

Enumerator
ADC_ACCESS_MODE_SINGLE 

Single value access mode

ADC_ACCESS_MODE_STREAMING 

Streaming access mode

◆ Adc_HwTriggerSignalType

Type for configuring on which edge of the hardware trigger signal the driver should react, i.e. start the conversion.

Note: This feature is not supported in this driver

Enumerator
ADC_HW_TRIG_RISING_EDGE 

React on the rising edge of the hardware trigger signal

ADC_HW_TRIG_FALLING_EDGE 

React on the falling edge of the hardware trigger signal

ADC_HW_TRIG_BOTH_EDGES 

React on both edges of the hardware trigger signal

◆ Adc_PriorityImplementationType

Type for configuring the prioritization mechanism.

Enumerator
ADC_PRIORITY_NONE 

Priority mechanism is not available

ADC_PRIORITY_HW 

Hardware priority mechanism is available only

ADC_PRIORITY_HW_SW 

Hardware and software priority mechanism is available

◆ Adc_GroupReplacementType

Replacement mechanism, which is used on ADC group level, if a group conversion is interrupted by a group which has a higher priority.

Enumerator
ADC_GROUP_REPL_ABORT_RESTART 

Abort/Restart mechanism is used on group level, if a group is interrupted by a higher priority group

ADC_GROUP_REPL_SUSPEND_RESUME 

Suspend/Resume mechanism is used on group level, if a group is interrupted by a higher priority group. Note: The implementation is same as abort/restart i.e. when a group is started again, previous intermediate results are discarded and the driver always starts from first channel of the group

◆ Adc_ChannelRangeSelectType

In case of active limit checking: defines which conversion values are taken into account related to the boardes defined with AdcChannelLowLimit and AdcChannelHighLimit.

Note: This feature is not supported yet.

Enumerator
ADC_RANGE_UNDER_LOW 

Range below low limit - low limit value included

ADC_RANGE_BETWEEN 

Range between low limit and high limit - high limit value included

ADC_RANGE_OVER_HIGH 

Range above high limit

ADC_RANGE_ALWAYS 

Complete range - independent from channel limit settings

ADC_RANGE_NOT_UNDER_LOW 

Range above low limit

ADC_RANGE_NOT_BETWEEN 

Range above high limit or below low limit - low limit value included

ADC_RANGE_NOT_OVER_HIGH 

Range below high limit - high limit value included

◆ Adc_ResultAlignmentType

Type for alignment of ADC raw results in ADC result buffer (left/right alignment).

Enumerator
ADC_ALIGN_LEFT 

Left alignment. Note: This feature is not supported in the ADC hardware

ADC_ALIGN_RIGHT 

Right alignment

◆ Adc_PowerStateType

Power state currently active or set as target power state.

Enumerator
ADC_FULL_POWER 

Full Power (0)

ADC_ZERO_POWER 

Power modes with decreasing power consumptions

◆ Adc_PowerStateRequestResultType

Result of the requests related to power state transitions.

Enumerator
ADC_SERVICE_ACCEPTED 

Power state change executed

ADC_NOT_INIT 

ADC Module not initialized

ADC_SEQUENCE_ERROR 

Wrong API call sequence

ADC_HW_FAILURE 

The HW module has a failure which prevents it to enter the required power state

ADC_POWER_STATE_NOT_SUPP 

ADC Module does not support the requested power state

ADC_TRANS_NOT_POSSIBLE 

ADC Module cannot transition directly from the current power state to the requested power state or the HW peripheral is still busy

◆ Adc_AveragingMode

Enum to number of samplings to average. ADC allows user to program the number of samplings to average.

Enumerator
ADC_AVERAGING_MODE_NONE 

Disable averaging

ADC_AVERAGING_MODE_2_SAMPLES 

Set number of samplings to average to 2

ADC_AVERAGING_MODE_4_SAMPLES 

Set number of samplings to average to 4

ADC_AVERAGING_MODE_8_SAMPLES 

Set number of samplings to average to 8

ADC_AVERAGING_MODE_16_SAMPLES 

Set number of samplings to average to 16

Function Documentation

◆ Adc_Init()

void Adc_Init ( const Adc_ConfigType * CfgPtr)

Service for ADC initialization.

*  Service name        : Adc_Init
*  Syntax              : void Adc_Init( const Adc_ConfigType* CfgPtr )
*  Mode                : Supervisor Mode (Privileged Mode)
*  Service ID[hex]     : 0x00
*  Sync/Async          : Synchronous
*  Reentrancy          : Non Reentrant
*  Parameters (in)     : Pointer to configuration set in Variant PB
*                        (Variant PC requires a NULL_PTR).
*  Parameters (inout)  : None
*  Parameters (out)    : None
*  Return value        : None
*  Description         : Initializes the ADC hardware units and driver
*  

◆ Adc_DeInit()

void Adc_DeInit ( void )

This service sets all ADC HW Units to a state comparable to their power on reset state.

*  Service name        : Adc_DeInit
*  Syntax              : void Adc_DeInit(void)
*  Mode                : Supervisor Mode (Privileged Mode)
*  Service ID[hex]     : 0x01
*  Sync/Async          : Synchronous
*  Reentrancy          : Non Reentrant
*  Parameters (in)     : None
*  Parameters (inout)  : None
*  Parameters (out)    : None
*  Return value        : None
*  Description         : Returns all ADC HW Units to a state comparable to
*                        their power on reset state
*  

◆ Adc_SetupResultBuffer()

Std_ReturnType Adc_SetupResultBuffer ( Adc_GroupType Group,
const Adc_ValueGroupType * DataBufferPtr )

This service initializes ADC driver with the group specific result buffer start address where the conversion results will be stored.

*  Service name        : Adc_SetupResultBuffer
*  Syntax              : Std_ReturnType Adc_SetupResultBuffer(
*                                          Adc_GroupType Group,
*                                          Adc_ValueGroupType* DataBufferPtr)
*  Mode                : User Mode (Non-Privileged Mode)
*  Service ID[hex]     : 0x0C
*  Sync/Async          : Synchronous
*  Reentrancy          : Reentrant
*  Parameters (in)     : Group - Numeric ID of requested ADC channel group.
*                        DataBufferPtr - pointer to result data buffer
*  Parameters (inout)  : None
*  Parameters (out)    : None
*  Return value        : Std_ReturnType
*                        E_OK: result buffer pointer initialized correctly
*                        E_NOT_OK: operation failed or development error occured
*  Description         : Initializes ADC driver with the group specific result
*                        buffer start address where the conversion results
*                        will be stored. The application has to ensure that
*                        the application buffer, where DataBufferPtr points
*                        to, can hold all the conversion results of the
*                        specified group. The initialization with
*                        Adc_SetupResultBuffer is required after reset,
*                        before a group conversion can be started.
*  

◆ Adc_GetGroupStatus()

Adc_StatusType Adc_GetGroupStatus ( Adc_GroupType Group)

Returns the conversion status of the requested ADC Channel group.

*  Service name        : Adc_GetGroupStatus
*  Syntax              : Adc_StatusType Adc_GetGroupStatus( Adc_GroupType Group )
*  Mode                : User Mode (Non-Privileged Mode)
*  Service ID[hex]     : 0x09
*  Sync/Async          : Synchronous
*  Reentrancy          : Reentrant
*  Parameters (in)     : Group - Numeric ID of requested ADC channel group.
*  Parameters (inout)  : None
*  Parameters (out)    : None
*  Return value        : Adc_StatusType - Conversion status for the requested
*                        group
*  Description         : Returns the conversion status of the requested ADC
*                        Channel group.
*  

◆ Adc_GetStreamLastPointer()

Adc_StreamNumSampleType Adc_GetStreamLastPointer ( Adc_GroupType Group,
Adc_ValueGroupType ** PtrToSamplePtr )

Returns the number of valid samples per channel, stored in the result buffer.

*  Service name        : Adc_GetStreamLastPointer
*  Syntax              : Adc_StreamNumSampleType Adc_GetStreamLastPointer(
*                              Adc_GroupType Group,
*                              Adc_ValueGroupType** PtrToSamplePtr )
*  Mode                : User Mode (Non-Privileged Mode)
*  Service ID[hex]     : 0x0B
*  Sync/Async          : Synchronous
*  Reentrancy          : Reentrant
*  Parameters (in)     : Group - Numeric ID of requested ADC channel group.
*  Parameters (inout)  : None
*  Parameters (out)    : PtrToSamplePtr - Pointer to result buffer pointer.
*  Return value        : Adc_StreamNumSampleType - Number of valid samples
*                        per channel
*  Description         : Returns the number of valid samples per channel,
*                        stored in the result buffer. Reads a pointer,
*                        pointing to a position in the group result buffer.
*                        With the pointer position, the results of all group
*                        channels of the last completed conversion round can
*                        be accessed. With the pointer and the return value,
*                        all valid group conversion results can be accessed
*                        (the user has to take the layout of the result buffer
*                        into account).
*  

◆ Adc_StartGroupConversion()

void Adc_StartGroupConversion ( Adc_GroupType Group)

Starts the conversion of all channels of the requested ADC Channel group.

*  Service name        : Adc_StartGroupConversion
*  Syntax              : void Adc_StartGroupConversion( Adc_GroupType Group )
*  Mode                : Supervisor Mode (Privileged Mode)
*  Service ID[hex]     : 0x02
*  Sync/Async          : Asynchronous
*  Reentrancy          : Reentrant
*  Parameters (in)     : Group - Numeric ID of requested ADC Channel group.
*  Parameters (inout)  : None
*  Parameters (out)    : None
*  Return value        : None
*  Description         : Starts the conversion of all channels of the
*                        requested ADC Channel group.
*  

◆ Adc_StopGroupConversion()

void Adc_StopGroupConversion ( Adc_GroupType Group)

Stops the conversion of the requested ADC Channel group.

*  Service name        : Adc_StopGroupConversion
*  Syntax              : void Adc_StopGroupConversion( Adc_GroupType Group )
*  Mode                : Supervisor Mode (Privileged Mode)
*  Service ID[hex]     : 0x03
*  Sync/Async          : Synchronous
*  Reentrancy          : Reentrant
*  Parameters (in)     : Group - Numeric ID of requested ADC Channel group.
*  Parameters (inout)  : None
*  Parameters (out)    : None
*  Return value        : None
*  Description         : Stops the conversion of the requested ADC Channel
*                        group.
*  

◆ Adc_ReadGroup()

Std_ReturnType Adc_ReadGroup ( Adc_GroupType Group,
Adc_ValueGroupType * DataBufferPtr )

Reads the group conversion result of the last completed conversion round of the requested group and stores the channel values starting at the DataBufferPtr address.

*  Service name        : Adc_ReadGroup
*  Syntax              : Std_ReturnType Adc_ReadGroup(
*                              Adc_GroupType Group,
*                              Adc_ValueGroupType* DataBufferPtr )
*  Mode                : User Mode (Non-Privileged Mode)
*  Service ID[hex]     : 0x04
*  Sync/Async          : Synchronous
*  Reentrancy          : Reentrant
*  Parameters (in)     : Group - Numeric ID of requested ADC channel group.
*                        DataBufferPtr - ADC results of all channels of the
*                        selected group are stored in the data buffer
*                        addressed with the pointer
*  Parameters (inout)  : None
*  Parameters (out)    : None
*  Return value        : Std_ReturnType
*                        E_OK: results are available and written to the data buffer
*                        E_NOT_OK: no results are available or development error occured
*  Description         : Reads the group conversion result of the last
*                        completed conversion round of the requested group
*                        and stores the channel values starting at the
*                        DataBufferPtr address. The group channel values are
*                        stored in ascending channel number order (in contrast
*                        to the storage layout of the result buffer if
*                        streaming access is configured).
*  

◆ Adc_EnableGroupNotification()

void Adc_EnableGroupNotification ( Adc_GroupType Group)

Enables the notification mechanism for the requested ADC Channel group.

*  Service name        : Adc_EnableGroupNotification
*  Syntax              : void Adc_EnableGroupNotification( Adc_GroupType Group )
*  Mode                : User Mode (Non-Privileged Mode)
*  Service ID[hex]     : 0x07
*  Sync/Async          : Synchronous
*  Reentrancy          : Reentrant
*  Parameters (in)     : Group - Numeric ID of requested ADC channel group.
*  Parameters (inout)  : None
*  Parameters (out)    : None
*  Return value        : None
*  Description         : Enables the notification mechanism for the requested
*                        ADC Channel group.
*  

◆ Adc_DisableGroupNotification()

void Adc_DisableGroupNotification ( Adc_GroupType Group)

Disables the notification mechanism for the requested ADC Channel group.

*  Service name        : Adc_DisableGroupNotification
*  Syntax              : void Adc_DisableGroupNotification( Adc_GroupType Group )
*  Mode                : User Mode (Non-Privileged Mode)
*  Service ID[hex]     : 0x08
*  Sync/Async          : Synchronous
*  Reentrancy          : Reentrant
*  Parameters (in)     : Group - Numeric ID of requested ADC channel group.
*  Parameters (inout)  : None
*  Parameters (out)    : None
*  Return value        : None
*  Description         : Disables the notification mechanism for the requested
*                        ADC Channel group.
*  

◆ Adc_GetVersionInfo()

void Adc_GetVersionInfo ( Std_VersionInfoType * versioninfo)

This service returns the version information of this module.

*  Service name        : Adc_GetVersionInfo
*  Syntax              : void Adc_GetVersionInfo( Std_VersionInfoType* versioninfo )
*  Mode                : User Mode (Non-Privileged Mode)
*  Service ID[hex]     : 0x0A
*  Sync/Async          : Synchronous
*  Reentrancy          : Reentrant
*  Parameters (in)     : None
*  Parameters (inout)  : None
*  Parameters (out)    : versioninfo - Pointer to where to store the version
*                        information of this module
*  Return value        : None
*  Description         : Returns the version information of this module
*  

◆ Adc_RegisterReadback()

Std_ReturnType Adc_RegisterReadback ( Adc_HWUnitType HWUnit,
Adc_RegisterReadbackType * RegRbPtr )

This function reads the important registers of the hardware unit and returns the value in the structure.

This API should be called after Adc_Init is called. Otherwise this API will return E_NOT_OK.

This API could be used to readback the register contents after Adc_Init and then the readback value could be compared during ADC execution to check the correctness of the HW unit. Since this API is used for this purpose, the register returned are the ones which doesn't change after init based on conv or channel config.

*  Service name        : Adc_RegisterReadback
*  Mode                : Supervisor Mode (Privileged Mode)
*  Sync/Async          : Synchronous
*  Reentrancy          : Reentrant
*  Parameters (in)     : HWUnit - ADC Hardware microcontroller peripheral
*                        unit ID. If this is invalid, then the API will
*                        return E_NOT_OK.
*  Parameters (inout)  : RegRbPtr - Pointer to where to store the readback
*                        values. If this pointer is NULL_PTR, then the API
*                        will return E_NOT_OK.
*  Return value        : Std_ReturnType
*                        E_OK: Register read back has been done
*                        E_NOT_OK: Register read back failed
*  

◆ Adc_EnableInternalDiagnostic()

Std_ReturnType Adc_EnableInternalDiagnostic ( Adc_GroupType Group,
Adc_RefSelType RefSelect )

This function enables the Functional Internal Diagnostic Debug mode and selects a known voltage source(REFP or VMID) that connects to the AFE.

*  Service name        : Adc_EnableInternalDiagnostic
*  Mode                : Supervisor Mode (Privileged Mode)
*  Sync/Async          : Synchronous
*  Reentrancy          : Reentrant
*  Parameters (in)     : Group - Numeric ID of requested ADC channel group.
*                        If this is invalid, then the API will return E_NOT_OK.
*                        RefSelect - Reference select for functional internal
*                        diagnostic debug mode.
*                        0 = VMID
*                        1 = REFP
*  Parameters (inout)  : None
*  Return value        : Std_ReturnType
*                        E_OK: Functional Internal Diagnostic Debug Mode
*                        has been enabled Successfully.
*                        E_NOT_OK: Functional Internal Diagnostic Debug Mode
*                        enable failed.
*  

◆ Adc_DisableInternalDiagnostic()

Std_ReturnType Adc_DisableInternalDiagnostic ( Adc_GroupType Group)

This function disables the Functional Internal Diagnostic Debug mode.

*  Service name        : Adc_DisableInternalDiagnostic
*  Mode                : Supervisor Mode (Privileged Mode)
*  Sync/Async          : Synchronous
*  Reentrancy          : Reentrant
*  Parameters (in)     : Group - Numeric ID of requested ADC channel group.
*                        If this is invalid, then the API will return E_NOT_OK.
*  Parameters (inout)  : None
*  Return value        : Std_ReturnType
*                        E_OK: Functional Internal Diagnostic Debug Mode
*                        has been disabled Successfully.
*                        E_NOT_OK: Functional Internal Diagnostic Debug Mode
*                        disable failed.
*  

◆ Adc_IrqUnit0()

void Adc_IrqUnit0 ( void )

< ADC UNIT 0 ISR ADC UNIT 1 ISR

◆ Adc_IrqUnit1()

void Adc_IrqUnit1 ( void )

◆ ISR()

ISR ( Adc_IrqUnit0 )

Variable Documentation

◆ hwChannelId

uint32 Adc_ChannelConfigType::hwChannelId

The hardware channel number from which input is given. Valid values: ADC_MIN_HW_CHANNEL_ID to ADC_MAX_HW_CHANNEL_ID 0x0 = Channel 1 0x1 = Channel 2 0x2 = Channel 3 0x3 = Channel 4 0x4 = Channel 5 0x5 = Channel 6 0x6 = Channel 7 0x7 = Channel 8 0x8 = VREFP 0x9 = VREFN

◆ openDelay

uint32 Adc_ChannelConfigType::openDelay

Number of ADC clock cycles to wait after applying the step configuration registers and before sending the start of ADC conversion. Valid values: ADC_MIN_OPEN_DELAY to ADC_MAX_OPEN_DELAY

◆ sampleDelay

uint32 Adc_ChannelConfigType::sampleDelay

Number of ADC clock cycles to hold SOC high. The actual delay is +1 of this value. Valid values: ADC_MIN_SAMPLE_DELAY to ADC_MAX_SAMPLE_DELAY

◆ rangeCheckEnable

uint32 Adc_ChannelConfigType::rangeCheckEnable

Option to enable range check per channel. Enabled if it is TRUE Disabled if it is FALSE

Note: Since there are no standard MCAL API for this feature, this is not supported by the ADC driver. So set this to FALSE

◆ averagingMode

Adc_AveragingMode Adc_ChannelConfigType::averagingMode

Option for averaging the sampled data. Refer enum Adc_AveragingMode

◆ groupId

Adc_GroupType Adc_GroupConfigType::groupId

Group ID - This should be same as that of the index in to the groupCfg[] array

◆ groupPriority

Adc_GroupPriorityType Adc_GroupConfigType::groupPriority

Group priority

◆ hwUnitId [1/2]

Adc_HWUnitType Adc_GroupConfigType::hwUnitId

HWUnit associated with this group

◆ Adc_GroupEndNotification

Adc_GroupEndNotifyType Adc_GroupConfigType::Adc_GroupEndNotification

Group end notification callback fxn pointer

◆ streamNumSamples

Adc_StreamNumSampleType Adc_GroupConfigType::streamNumSamples

Contains how many samples fit into result buffer

◆ resolution

Adc_ResolutionType Adc_GroupConfigType::resolution

Group resolution - This is not configurable and should be set to ADC_DEF_CHANNEL_RESOLUTION

◆ convMode

Adc_GroupConvModeType Adc_GroupConfigType::convMode

Operation mode of the group

◆ triggSrc

Adc_TriggerSourceType Adc_GroupConfigType::triggSrc

Determines the trigger source (hw or sw trigger). Note: Only SW trigger is supported

◆ accessMode

Adc_GroupAccessModeType Adc_GroupConfigType::accessMode

Defines the type of the groups buffer

◆ streamBufMode

Adc_StreamBufferModeType Adc_GroupConfigType::streamBufMode

Use linear or circular stream buffer

◆ hwTrigSignal

Adc_HwTriggerSignalType Adc_GroupConfigType::hwTrigSignal

Use rising or falling edge for event pin trigger. Note: Since HW trigger is not supported, this parameter is not used

◆ hwTrigTimer

Adc_HwTriggerTimerType Adc_GroupConfigType::hwTrigTimer

Hardware trigger event. Note: Since HW trigger is not supported, this parameter is not used. Set it to 0.

◆ groupReplacement

Adc_GroupReplacementType Adc_GroupConfigType::groupReplacement

Group replacement logic when priority mechanism is ON - i.e prioritySupport is not ADC_PRIORITY_NONE.

◆ highRange

uint32 Adc_GroupConfigType::highRange

Sampled ADC data is compared to this value. If the sampled data is greater than this value, then interrupt is generated. Valid values: ADC_MIN_RANGE to ADC_MAX_RANGE.

This check can be enabled/disabled individually for each of the channel (step) using rangeCheckEnable parameter.

Note: Since there are no standard MCAL API for this feature, this is not supported by the ADC driver

◆ lowRange

uint32 Adc_GroupConfigType::lowRange

Sampled ADC data is compared to this value. If the sampled data is lesser than this value, then interrupt is generated. Valid values: ADC_MIN_RANGE to ADC_MAX_RANGE.

This check can be enabled/disabled individually for each of the channel (step) using rangeCheckEnable parameter.

Note: Since there are no standard MCAL API for this feature, this is not supported by the ADC driver

◆ numChannels

uint32 Adc_GroupConfigType::numChannels

Number of channels in this group

◆ channelConfig

Adc_ChannelConfigType Adc_GroupConfigType::channelConfig[ADC_NUM_CHANNEL]

Channel (HW step) configuration. numChannels elements should be initialized

◆ hwUnitId [2/2]

Adc_HWUnitType Adc_HwUnitConfigType::hwUnitId

ADC HW unit to use

◆ baseAddr

uint32 Adc_HwUnitConfigType::baseAddr

◆ maxGroup

uint8 Adc_ConfigType::maxGroup

Maximum number of group Should not be more than ADC_MAX_GROUP

◆ maxHwUnit

uint8 Adc_ConfigType::maxHwUnit

Maximum number of HW unit Should not be more than ADC_MAX_HW_UNIT

◆ groupCfg

Adc_GroupConfigType Adc_ConfigType::groupCfg[ADC_MAX_GROUP]

Group configurations

◆ hwUnitCfg

Adc_HwUnitConfigType Adc_ConfigType::hwUnitCfg[ADC_MAX_HW_UNIT]

HW Unit configurations

◆ adcRev

uint32 Adc_RegisterReadbackType::adcRev

IP revision identifier

◆ adcCtrl

uint32 Adc_RegisterReadbackType::adcCtrl

Control Register

◆ adcMisc

uint32 Adc_RegisterReadbackType::adcMisc

Internal Calibration

◆ AdcConfigSet [1/2]

const struct Adc_ConfigType_s AdcConfigSet
extern

ADC Configuration struct declaration.

◆ AdcConfigSet [2/2]

const struct Adc_ConfigType_s AdcConfigSet
extern

ADC Configuration struct declaration.