ChibiOS/HAL  6.1.0
ADCDriver Struct Reference

Structure representing an ADC driver. More...

#include <hal_adc_lld.h>

Collaboration diagram for ADCDriver:
Collaboration graph

Data Fields

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

Detailed Description

Structure representing an ADC driver.

Definition at line 144 of file hal_adc_lld.h.

Field Documentation

const ADCConfig* ADCDriver::config

Current configuration data.

Definition at line 152 of file hal_adc_lld.h.

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

adcsample_t* ADCDriver::samples

Current samples buffer pointer or NULL.

Definition at line 156 of file hal_adc_lld.h.

Referenced by adcObjectInit(), and adcStartConversionI().

size_t ADCDriver::depth

Current samples buffer depth or 0.

Definition at line 160 of file hal_adc_lld.h.

Referenced by adcObjectInit(), and adcStartConversionI().

const ADCConversionGroup* ADCDriver::grpp

Current conversion group pointer or NULL.

Definition at line 164 of file hal_adc_lld.h.

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

thread_reference_t ADCDriver::thread

Waiting thread.

Definition at line 169 of file hal_adc_lld.h.

Referenced by adcConvert(), and adcObjectInit().

mutex_t ADCDriver::mutex

Mutex protecting the peripheral.

Definition at line 175 of file hal_adc_lld.h.

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