ChibiOS/HAL  7.0.3
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. 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 159 of file hal_adc.h.

Field Documentation

adcstate_t hal_adc_driver::state
const ADCConfig* hal_adc_driver::config

Current configuration data.

Definition at line 167 of file hal_adc.h.

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

adcsample_t* hal_adc_driver::samples

Current samples buffer pointer or NULL.

Definition at line 171 of file hal_adc.h.

Referenced by adcObjectInit(), and adcStartConversionI().

size_t hal_adc_driver::depth

Current samples buffer depth or 0.

Definition at line 175 of file hal_adc.h.

Referenced by adcObjectInit(), and adcStartConversionI().

const ADCConversionGroup* hal_adc_driver::grpp

Current conversion group pointer or NULL.

Definition at line 179 of file hal_adc.h.

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

thread_reference_t hal_adc_driver::thread

Waiting thread.

Definition at line 184 of file hal_adc.h.

Referenced by adcConvert(), and adcObjectInit().

mutex_t hal_adc_driver::mutex

Mutex protecting the peripheral.

Definition at line 190 of file hal_adc.h.

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