Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
adc_generic.c File Reference
#include "adc_generic.h"
#include "mcu_periph/adc.h"
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
#include <BOARD_CONFIG>
+ Include dependency graph for adc_generic.c:

Go to the source code of this file.

Macros

#define ADC_CHANNEL_GENERIC_NB_SAMPLES   DEFAULT_AV_NB_SAMPLE
 

Functions

void adc_generic_init (void)
 
void adc_generic_periodic (void)
 

Variables

uint16_t adc_generic_val1
 
uint16_t adc_generic_val2
 

Macro Definition Documentation

#define ADC_CHANNEL_GENERIC_NB_SAMPLES   DEFAULT_AV_NB_SAMPLE

Definition at line 18 of file adc_generic.c.

Referenced by adc_generic_init().

Function Documentation

void adc_generic_init ( void  )

Definition at line 30 of file adc_generic.c.

References adc_buf_channel(), and ADC_CHANNEL_GENERIC_NB_SAMPLES.

+ Here is the call graph for this function:

void adc_generic_periodic ( void  )

Definition at line 40 of file adc_generic.c.

References adc_generic_val1, adc_generic_val2, DefaultChannel, and DefaultDevice.

Variable Documentation

uint16_t adc_generic_val1

Definition at line 8 of file adc_generic.c.

Referenced by adc_generic_periodic().

uint16_t adc_generic_val2

Definition at line 9 of file adc_generic.c.

Referenced by adc_generic_periodic().