adc_pal.h File Reference
#include "adc_pal_cfg.h"
#include "adc_pal_mapping.h"
#include "status.h"
#include "callbacks.h"

Go to the source code of this file.

Data Structures

struct  adc_group_config_t
 Defines the configuration structure for an ADC PAL conversion group. More...
 
struct  adc_config_t
 Defines the configuration structure for ADC PAL. More...
 

Enumerations

enum  adc_delay_type_t { ADC_DELAY_TYPE_NO_DELAY = 0u, ADC_DELAY_TYPE_GROUP_DELAY = 1u, ADC_DELAY_TYPE_INDIVIDUAL_DELAY = 2u }
 Defines an enumeration which contains the types of delay configurations for ADC conversions within a group. More...
 

Functions

status_t ADC_Init (const adc_instance_t *const instance, const adc_config_t *const config)
 Initializes the ADC PAL instance. More...
 
status_t ADC_Deinit (const adc_instance_t *const instance)
 Deinitializes the ADC PAL instance. More...
 
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 trigger. More...
 
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. More...
 
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. More...
 
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. More...
 
status_t ADC_EnableNotification (const adc_instance_t *const instance, const uint32_t groupIdx)
 Enables the notification callback for a configured group. More...
 
status_t ADC_DisableNotification (const adc_instance_t *const instance, const uint32_t groupIdx)
 Disables the notification callback for a configured group. More...