ChibiOS/HAL 9.0.0
hal_adc_driver Struct Reference

Structure representing an ADC driver. More...

#include <hal_adc.h>

Collaboration diagram for hal_adc_driver:
Collaboration graph

Data Fields

adcstate_t state
 Driver state.
const ADCConfigconfig
 Current configuration data.
adcsample_tsamples
 Current samples buffer pointer or NULL.
size_t depth
 Current samples buffer depth or 0.
const ADCConversionGroupgrpp
 Current conversion group pointer or NULL.
thread_reference_t thread
 Waiting thread.
mutex_t mutex
 Mutex protecting the peripheral.

Detailed Description

Structure representing an ADC driver.

Definition at line 160 of file hal_adc.h.

Field Documentation

◆ state

adcstate_t hal_adc_driver::state

◆ config

const ADCConfig* hal_adc_driver::config

Current configuration data.

Definition at line 168 of file hal_adc.h.

Referenced by adcObjectInit(), adcStart(), and adcStop().

◆ samples

adcsample_t* hal_adc_driver::samples

Current samples buffer pointer or NULL.

Definition at line 172 of file hal_adc.h.

Referenced by adcObjectInit(), and adcStartConversionI().

◆ depth

size_t hal_adc_driver::depth

Current samples buffer depth or 0.

Definition at line 176 of file hal_adc.h.

Referenced by adcObjectInit(), and adcStartConversionI().

◆ grpp

const ADCConversionGroup* hal_adc_driver::grpp

Current conversion group pointer or NULL.

Definition at line 180 of file hal_adc.h.

Referenced by adcObjectInit(), adcStartConversionI(), adcStopConversion(), and adcStopConversionI().

◆ thread

thread_reference_t hal_adc_driver::thread

Waiting thread.

Definition at line 185 of file hal_adc.h.

Referenced by adcConvert(), and adcObjectInit().

◆ mutex

mutex_t hal_adc_driver::mutex

Mutex protecting the peripheral.

Definition at line 191 of file hal_adc.h.

Referenced by adcAcquireBus(), adcObjectInit(), and adcReleaseBus().