Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros 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 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
 
#define DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE
 

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().

#define DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE

Definition at line 22 of file adc_generic.c.

Function Documentation

void adc_generic_init ( void  )

Definition at line 33 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 42 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().