ChibiOS/RT Architecture - Reference Manual - Guides |
Structure representing an ADC driver. More...
#include <adc_lld.h>
Data Fields | |
adcstate_t | ad_state |
Driver state. | |
const ADCConfig * | ad_config |
Current configuration data. | |
Semaphore | ad_sem |
Synchronization semaphore. | |
adccallback_t | ad_callback |
Current callback function or NULL . | |
adcsample_t * | ad_samples |
Current samples buffer pointer or NULL . | |
size_t | ad_depth |
Current samples buffer depth or 0 . | |
const ADCConversionGroup * | ad_grpp |
Current conversion group pointer or NULL . | |
ADC_TypeDef * | ad_adc |
Pointer to the ADCx registers block. | |
DMA_Channel_TypeDef * | ad_dma |
Pointer to the DMA channel registers block. | |
uint32_t | ad_dmaprio |
DMA priority bit mask. |
Structure representing an ADC driver.
Definition at line 106 of file templates/adc_lld.h.
Driver state.
Definition at line 110 of file templates/adc_lld.h.
Referenced by adcObjectInit(), adcStart(), adcStartConversion(), adcStop(), adcStopConversion(), adcWaitConversion(), and CH_IRQ_HANDLER().
const ADCConfig * ADCDriver::ad_config |
Current configuration data.
Definition at line 114 of file templates/adc_lld.h.
Referenced by adcObjectInit(), and adcStart().
Synchronization semaphore.
Definition at line 118 of file templates/adc_lld.h.
Referenced by adcObjectInit(), adcStopConversion(), adcWaitConversion(), and CH_IRQ_HANDLER().
Current callback function or NULL
.
Definition at line 122 of file templates/adc_lld.h.
Referenced by adcObjectInit(), adcStartConversion(), and CH_IRQ_HANDLER().
Current samples buffer pointer or NULL
.
Definition at line 126 of file templates/adc_lld.h.
Referenced by adcObjectInit(), adcStartConversion(), and CH_IRQ_HANDLER().
size_t ADCDriver::ad_depth |
Current samples buffer depth or 0
.
Definition at line 130 of file templates/adc_lld.h.
Referenced by adcObjectInit(), adcStartConversion(), and CH_IRQ_HANDLER().
const ADCConversionGroup * ADCDriver::ad_grpp |
Current conversion group pointer or NULL
.
Definition at line 134 of file templates/adc_lld.h.
Referenced by adcObjectInit(), adcStartConversion(), adcStopConversion(), and CH_IRQ_HANDLER().
ADC_TypeDef* ADCDriver::ad_adc |
Pointer to the ADCx registers block.
Definition at line 226 of file platforms/STM32/adc_lld.h.
DMA_Channel_TypeDef* ADCDriver::ad_dma |
Pointer to the DMA channel registers block.
Definition at line 230 of file platforms/STM32/adc_lld.h.
DMA priority bit mask.
Definition at line 234 of file platforms/STM32/adc_lld.h.