![]() |
MCUSW
|
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... | |
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_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_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. | |
#define ADC_VARIANT_POST_BUILD (STD_ON) |
ADC Build Variant. Build variants.(i.e Pre Compile,Post Build)
#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.
Enable/disable ADC dev detect error
#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 |
< ADC UNIT 0 INSTANCE ADC UNIT 1 INSTANCE
< ADC UNIT 0 INSTANCE
#define ADC_INSTANCE_1 |
#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_DIFFERENTIAL_INPUT_ENABLE (STD_OFF) |
Enable/disable ADC differential input support.
#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_1_AdcGroup_AdcGroup_0 (1U) |
#define ADC_GROUP_ID_1 AdcConf_AdcHwUnit_AdcHwUnit_1_AdcGroup_AdcGroup_0 |
#define AdcConf_AdcHwUnit_AdcHwUnit_0 (ADC_UNIT_0) |
#define ADC_HW_UNIT_ID_0 AdcConf_AdcHwUnit_AdcHwUnit_0 |
#define AdcConf_AdcHwUnit_AdcHwUnit_1 (ADC_UNIT_1) |
#define ADC_HW_UNIT_ID_1 AdcConf_AdcHwUnit_AdcHwUnit_1 |
#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_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 |
#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_1_AdcChannel_AdcChannel_0 (0U) |
#define ADC_HW_UNIT_ID_ADCHWUNIT_1_CHANNEL_ID_ADCCHANNEL_0 AdcConf_AdcHwUnit_AdcHwUnit_1_AdcChannel_AdcChannel_0 |
#define ADC_E_HARDWARE_ERROR (DemConf_DemEventParameter_ADC_E_HARDWARE_ERROR) |
Hardware failed.
#define ADC_UNIT_0 ((Adc_HWUnitType) 0U) |
ADC1 instance.
#define ADC_UNIT_1 ((Adc_HWUnitType) 1U) |
ADC2 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_VARIANT_POST_BUILD (STD_ON) |
ADC Build Variant. Build variants.(i.e Pre Compile,Post Build)
#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.
Enable/disable ADC dev detect error
#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 |
< ADC UNIT 0 INSTANCE
#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.
#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 (ADC_UNIT_0) |
#define ADC_HW_UNIT_ID_0 AdcConf_AdcHwUnit_AdcHwUnit_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 |
#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 |
#define ADC_E_HARDWARE_ERROR (DemConf_DemEventParameter_ADC_E_HARDWARE_ERROR) |
Hardware failed.
#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.
typedef void(* Adc_GroupEndNotifyType) (void) |
Typedef for group end notification function pointer.
enum Adc_StatusType |
Current status of the conversion of the requested ADC Channel group.
Type for configuring the conversion mode of an ADC Channel group.
Type for configuring the streaming access mode buffer type.
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
Replacement mechanism, which is used on ADC group level, if a group conversion is interrupted by a group which has a higher priority.
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.
enum Adc_PowerStateType |
Result of the requests related to power state transitions.
enum Adc_AveragingMode |
Enum to number of samplings to average. ADC allows user to program the number of samplings to average.
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 *
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 *
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_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_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). *
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. *
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. *
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). *
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. *
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. *
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 *
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 *
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. *
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. *
void Adc_IrqUnit0 | ( | void | ) |
< ADC UNIT 0 ISR ADC UNIT 1 ISR
void Adc_IrqUnit1 | ( | void | ) |
ISR | ( | Adc_IrqUnit0 | ) |
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
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
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
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
Adc_AveragingMode Adc_ChannelConfigType::averagingMode |
Option for averaging the sampled data. Refer enum Adc_AveragingMode
Adc_GroupType Adc_GroupConfigType::groupId |
Group ID - This should be same as that of the index in to the groupCfg[] array
Adc_GroupPriorityType Adc_GroupConfigType::groupPriority |
Group priority
Adc_HWUnitType Adc_GroupConfigType::hwUnitId |
HWUnit associated with this group
Adc_GroupEndNotifyType Adc_GroupConfigType::Adc_GroupEndNotification |
Group end notification callback fxn pointer
Adc_StreamNumSampleType Adc_GroupConfigType::streamNumSamples |
Contains how many samples fit into result buffer
Adc_ResolutionType Adc_GroupConfigType::resolution |
Group resolution - This is not configurable and should be set to ADC_DEF_CHANNEL_RESOLUTION
Adc_GroupConvModeType Adc_GroupConfigType::convMode |
Operation mode of the group
Adc_TriggerSourceType Adc_GroupConfigType::triggSrc |
Determines the trigger source (hw or sw trigger). Note: Only SW trigger is supported
Adc_GroupAccessModeType Adc_GroupConfigType::accessMode |
Defines the type of the groups buffer
Adc_StreamBufferModeType Adc_GroupConfigType::streamBufMode |
Use linear or circular stream buffer
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
Adc_HwTriggerTimerType Adc_GroupConfigType::hwTrigTimer |
Hardware trigger event. Note: Since HW trigger is not supported, this parameter is not used. Set it to 0.
Adc_GroupReplacementType Adc_GroupConfigType::groupReplacement |
Group replacement logic when priority mechanism is ON - i.e prioritySupport is not ADC_PRIORITY_NONE.
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
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
uint32 Adc_GroupConfigType::numChannels |
Number of channels in this group
Adc_ChannelConfigType Adc_GroupConfigType::channelConfig[ADC_NUM_CHANNEL] |
Channel (HW step) configuration. numChannels elements should be initialized
Adc_HWUnitType Adc_HwUnitConfigType::hwUnitId |
ADC HW unit to use
uint32 Adc_HwUnitConfigType::baseAddr |
uint8 Adc_ConfigType::maxGroup |
Maximum number of group Should not be more than ADC_MAX_GROUP
uint8 Adc_ConfigType::maxHwUnit |
Maximum number of HW unit Should not be more than ADC_MAX_HW_UNIT
Adc_GroupConfigType Adc_ConfigType::groupCfg[ADC_MAX_GROUP] |
Group configurations
Adc_HwUnitConfigType Adc_ConfigType::hwUnitCfg[ADC_MAX_HW_UNIT] |
HW Unit configurations
uint32 Adc_RegisterReadbackType::adcRev |
IP revision identifier
uint32 Adc_RegisterReadbackType::adcCtrl |
Control Register
uint32 Adc_RegisterReadbackType::adcMisc |
Internal Calibration
|
extern |
ADC Configuration struct declaration.
|
extern |
ADC Configuration struct declaration.