21 #include "adc_pal_cfg.h"
50 #if defined(ADC_PAL_S32K1xx)
66 #elif defined(ADC_PAL_MPC574xC_G_R) || defined(ADC_PAL_MPC574xP)
73 typedef uint16_t adc_input_chan_t;
75 #if defined(ADC_PAL_MPC574xC_G_R)
82 typedef uint8_t adc_trigger_source_t;
84 #elif defined(ADC_PAL_MPC574xP)
93 typedef uint32_t adc_trigger_source_t;
103 #define ADC_CHAN_ADC_IDX_MASK (0xF000u)
104 #define ADC_CHAN_CHAN_IDX_MASK (0xFFFu)
105 #define ADC_CHAN_ADC_IDX_OFFSET (12u)
107 #define ADC_CHAN_MAP(ADC_IDX, CHAN_IDX) ((adc_input_chan_t) (((CHAN_IDX) & ADC_CHAN_CHAN_IDX_MASK) + ((((uint16_t)ADC_IDX) << ADC_CHAN_ADC_IDX_OFFSET) & ADC_CHAN_ADC_IDX_MASK)))
165 #if defined(ADC_PAL_S32K1xx)
177 bool supplyMonitoringEnable;
180 } extension_adc_s32k1xx_t;
184 #if defined(ADC_PAL_MPC574xC_G_R)
192 adc_clk_sel_t clkSelect;
193 adc_ref_sel_t refSelect;
195 } extension_adc_mpc574xc_g_r_t;
199 #if defined(ADC_PAL_MPC574xP)
207 adc_clk_sel_t clkSelect;
208 adc_ref_sel_t refSelect;
210 ctu_prescaler_t ctuPrescaler;
211 } extension_adc_mpc574xp_t;
219 #if defined(__cplusplus)
354 #if defined(__cplusplus)
adc_resolution_t
Conversion resolution selection.
adc_voltage_reference_t
Voltage reference selection.
status_t ADC_StopGroupConversion(const adc_instance_t *const instance, const uint32_t groupIdx, const uint32_t timeout)
Stops the selected SW triggered ADC conversion group execution.
const adc_group_config_t * groupConfigArray
status_t ADC_DisableNotification(const adc_instance_t *const instance, const uint32_t groupIdx)
Disables the notification callback for a configured group.
adc_clk_divide_t
Clock Divider selection.
Defines the configuration structure for ADC PAL.
const adc_input_chan_t * inputChannelArray
adc_trigger_source_t triggerSource
adc_input_clock_t
Input clock source selection.
Defines the configuration structure for an ADC PAL conversion group.
adc_delay_type_t delayType
status_t ADC_StartGroupConversion(const adc_instance_t *const instance, const uint32_t groupIdx)
Starts the execution of a selected SW triggered ADC conversion group.
status_t ADC_EnableHardwareTrigger(const adc_instance_t *const instance, const uint32_t groupIdx)
Enables the selected HW trigger for a conversion group, if the conversion group has support for HW tr...
status_t ADC_Deinit(const adc_instance_t *const instance)
Deinitializes the ADC PAL instance.
enum trgmux_trigger_source_e trgmux_trigger_source_t
Enumeration for trigger source module of TRGMUX.
status_t
Status return codes. Common error codes will be a unified enumeration (C enum) that will contain all ...
adc_inputchannel_t
Enumeration of input channels assignable to a control channel. Note 0: entries in this enum are aff...
status_t ADC_Init(const adc_instance_t *const instance, const adc_config_t *const config)
Initializes the ADC PAL instance.
status_t ADC_EnableNotification(const adc_instance_t *const instance, const uint32_t groupIdx)
Enables the notification callback for a configured group.
uint8_t numSetsResultBuffer
pdb_clk_prescaler_div_t
Defines the type of prescaler divider for the PDB counter clock. Implements : pdb_clk_prescaler_div_t...
status_t ADC_DisableHardwareTrigger(const adc_instance_t *const instance, const uint32_t groupIdx, const uint32_t timeout)
Disables the selected HW trigger for a conversion group, if the conversion group is HW triggered...
Structure storing PAL instance information.
void(*const adc_callback_t)(const adc_callback_info_t *const callbackInfo, void *userData)
adc_delay_type_t
Defines an enumeration which contains the types of delay configurations for ADC conversions within a ...