39#ifndef ADC_INTERFACE_H
40#define ADC_INTERFACE_H
46#include "../system/interrupt_types.h"
This is the generated driver types header file for the ADC driver.
ADC_RESOLUTION_TYPE
Defines the supported ADC resolution types.
ADC_PWM_TRIGGERS
Defines the PWM triggers that are available in each individual PWM.
ADC_CMP
Defines the ADC comparators that are available for the module to use.
ADC_PWM_INSTANCE
Defines the ADC PWM trigger sources that are available for the module to use.
ADC_DEDICATED_CORE
Defines the ADC cores that are available for the module to use.
ADC_CHANNEL
Defines the ADC channles that are selected from the MCC Melody User Interface for the ADC conversions...
Structure containing the function pointers of ADC driver.
void(* Enable)(void)
Pointer to ADCx_Enable e.g. ADC1_Enable.
const struct ADC_MULTICORE * adcMulticoreInterface
Pointer to ADC_MULTICORE.
void(* Tasks)(void)
Pointer to ADCx_Tasks e.g. ADC1_Tasks (Supported only in polling mode)
void(* ChannelSelect)(enum ADC_CHANNEL channel)
Pointer to ADCx_ChannelSelect e.g. ADC1_ChannelSelect.
void(* ResolutionSet)(enum ADC_RESOLUTION_TYPE resolution)
Pointer to ADCx_ResolutionSet e.g. ADC1_ResolutionSet.
uint16_t(* ConversionResultGet)(enum ADC_CHANNEL channel)
Pointer to ADCx_ConversionResultGet e.g. ADC1_ConversionResultGet.
void(* InterruptEnable)(void)
Pointer to ADCx_InterruptEnable e.g. ADC1_InterruptEnable.
void(* CommonCallbackRegister)(void(*callback)(void))
Pointer to ADCx_CommonCallbackRegister e.g. ADC1_CommonCallbackRegister.
void(* InterruptPrioritySet)(uint16_t priorityValue)
Pointer to ADCx_InterruptPrioritySet e.g. ADC1_InterruptPrioritySet.
void(* Disable)(void)
Pointer to ADCx_Disable e.g. ADC1_Disable.
bool(* IsConversionComplete)(enum ADC_CHANNEL channel)
Pointer to ADCx_IsConversionComplete e.g. ADC1_IsConversionComplete.
void(* Deinitialize)(void)
Pointer to ADCx_Deinitialize e.g. ADC1_Deinitialize.
void(* InterruptFlagClear)(void)
Pointer to ADCx_InterruptFlagClear e.g. ADC1_InterruptFlagClear.
void(* SoftwareTriggerEnable)(void)
Pointer to ADCx_SoftwareTriggerEnable e.g. ADC1_SoftwareTriggerEnable.
void(* SoftwareTriggerDisable)(void)
Pointer to ADCx_SoftwareTriggerDisable e.g. ADC1_SoftwareTriggerDisable.
void(* InterruptDisable)(void)
Pointer to ADCx_InterruptDisable e.g. ADC1_InterruptDisable.
void(* Initialize)(void)
Pointer to ADCx_Initialize e.g. ADC1_Initialize.
Structure containing the function pointers of ADC driver.
void(* ComparatorCallbackRegister)(void(*callback)(enum ADC_CMP comparator))
Pointer to ADCx_ComparatorCallbackRegister e.g. ADC1_ComparatorCallbackRegister.
void(* IndividualChannelInterruptFlagClear)(enum ADC_CHANNEL channel)
Pointer to ADCx_IndividualChannelInterruptFlagClear e.g. ADC1_IndividualChannelInterruptFlagClear.
void(* IndividualChannelInterruptEnable)(enum ADC_CHANNEL channel)
Pointer to ADCx_IndividualChannelInterruptEnable e.g. ADC1_IndividualChannelInterruptEnable.
void(* CorePowerEnable)(enum ADC_DEDICATED_CORE core)
Pointer to ADCx_CorePowerEnable e.g. ADC1_CorePowerEnable.
void(* PWMTriggerSourceSet)(enum ADC_CHANNEL channel, enum ADC_PWM_INSTANCE pwmInstance, enum ADC_PWM_TRIGGERS triggerNumber)
Pointer to ADCx_PWMTriggerSourceSet e.g. ADC1_PWMTriggerSourceSet.
void(* IndividualChannelInterruptDisable)(enum ADC_CHANNEL channel)
Pointer to ADCx_IndividualChannelInterruptDisable e.g. ADC1_IndividualChannelInterruptDisable.
void(* ComparatorTasks)(enum ADC_CMP comparator)
Pointer to ADCx_ComparatorTasks e.g. ADC1_ComparatorTasks.
void(* SharedCorePowerEnable)(void)
Pointer to ADCx_SharedCorePowerEnable e.g. ADC1_SharedCorePowerEnable.
void(* ChannelCallbackRegister)(void(*callback)(enum ADC_CHANNEL channel, uint16_t adcVal))
Pointer to ADCx_ChannelCallbackRegister e.g. ADC1_ChannelCallbackRegister.
void(* IndividualChannelInterruptPrioritySet)(enum ADC_CHANNEL channel, enum INTERRUPT_PRIORITY priorityValue)
Pointer to ADCx_IndividualChannelInterruptPrioritySet e.g. ADC1_IndividualChannelInterruptPrioritySet...
void(* ChannelTasks)(enum ADC_CHANNEL channel)
Pointer to ADCx_ChannelTasks e.g. ADC1_ChannelTasks.