Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros 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 60 of file adc.h.

Field Documentation

uint8_t adc_buf::head

Definition at line 63 of file adc.h.

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

uint16_t adc_buf::values[MAX_AV_NB_SAMPLE]

Definition at line 62 of file adc.h.

Referenced by adc_push_sample(), adcISR1(), main_event_task(), and main_periodic().


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