ChibiOS/HAL 9.0.0
hal_adc_lld.h File Reference

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

Go to the source code of this file.

Macros

#define adc_lld_driver_fields
 Low level fields of the ADC driver structure.
#define adc_lld_config_fields
 Low level fields of the ADC configuration structure.
#define adc_lld_configuration_group_fields
 Low level fields of the ADC configuration structure.
Possible ADC errors mask bits.
#define ADC_ERR_DMAFAILURE   1U
#define ADC_ERR_OVERFLOW   2U
#define ADC_ERR_AWD   4U
PLATFORM configuration options
#define PLATFORM_ADC_USE_ADC1   FALSE
 ADC1 driver enable switch.

Typedefs

typedef uint16_t adcsample_t
 ADC sample data type.
typedef uint16_t adc_channels_num_t
 Channels number in a conversion group.
typedef uint32_t adcerror_t
 Type of an ADC error mask.

Functions

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

Detailed Description

PLATFORM ADC subsystem low level driver header.

Definition in file hal_adc_lld.h.