Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
adc_buf Struct Reference

Generic interface for all ADC hardware drivers, independent from microcontroller architecture. More...

#include <adc.h>

Data Fields

uint32_t sum
 
uint16_t values [MAX_AV_NB_SAMPLE]
 
uint8_t head
 
uint8_t av_nb_sample
 

Detailed Description

Generic interface for all ADC hardware drivers, independent from microcontroller architecture.

Struct to collect samples from ADC and building an average over MAX_AV_NB_SAMPLE values. See adc_buf_channel.

Definition at line 53 of file adc.h.

Field Documentation

uint8_t adc_buf::head

Definition at line 56 of file adc.h.

Referenced by adc_push_sample(), adcISR0(), adcISR1(), and imu_periodic().

uint16_t adc_buf::values[MAX_AV_NB_SAMPLE]

Definition at line 55 of file adc.h.

Referenced by adc_push_sample(), adcISR0(), and adcISR1().


The documentation for this struct was generated from the following file: