ChibiOS/HAL  6.1.0
hal_adc_lld.h File Reference

PLATFORM ADC subsystem low level driver header. More...

Go to the source code of this file.

Data Structures

struct  ADCConversionGroup
 Conversion group configuration structure. More...
 
struct  ADCConfig
 Driver configuration structure. More...
 
struct  ADCDriver
 Structure representing an ADC driver. More...
 

Macros

PLATFORM configuration options
#define PLATFORM_ADC_USE_ADC1   FALSE
 ADC1 driver enable switch. More...
 

Typedefs

typedef uint16_t adcsample_t
 ADC sample data type. More...
 
typedef uint16_t adc_channels_num_t
 Channels number in a conversion group. More...
 
typedef struct ADCDriver ADCDriver
 Type of a structure representing an ADC driver. More...
 
typedef void(* adccallback_t) (ADCDriver *adcp, adcsample_t *buffer, size_t n)
 ADC notification callback type. More...
 
typedef void(* adcerrorcallback_t) (ADCDriver *adcp, adcerror_t err)
 ADC error callback type. More...
 

Enumerations

Functions

void adc_lld_init (void)
 Low level ADC driver initialization. More...
 
void adc_lld_start (ADCDriver *adcp)
 Configures and activates the ADC peripheral. More...
 
void adc_lld_stop (ADCDriver *adcp)
 Deactivates the ADC peripheral. More...
 
void adc_lld_start_conversion (ADCDriver *adcp)
 Starts an ADC conversion. More...
 
void adc_lld_stop_conversion (ADCDriver *adcp)
 Stops an ongoing conversion. More...
 

Detailed Description

PLATFORM ADC subsystem low level driver header.

Definition in file hal_adc_lld.h.